/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeNotifyPayload.java | 266 public final int notifyType; field in IkeNotifyPayload 285 notifyType = Short.toUnsignedInt(inputBuffer.getShort()); in IkeNotifyPayload() 313 if (!VALID_NOTIFY_TYPES_FOR_EXISTING_CHILD_SA.contains(notifyType)) { in validateNotifyPayloadForExistingChildSa() 315 "Expected Notify Type for existing Child SA: Notify Type is " + notifyType); in validateNotifyPayloadForExistingChildSa() 324 if (notifyType == ERROR_TYPE_INVALID_SELECTORS in validateNotifyPayloadForIkeAndNewChild() 325 || notifyType == ERROR_TYPE_CHILD_SA_NOT_FOUND) { in validateNotifyPayloadForIkeAndNewChild() 329 + notifyType); in validateNotifyPayloadForIkeAndNewChild() 375 cookie2Notify.notifyType == NOTIFY_TYPE_COOKIE2 ? "COOKIE2" : "COOKIE"; in handleCookieAndGenerateCopy() 383 return new IkeNotifyPayload(cookie2Notify.notifyType, notifyData); in handleCookieAndGenerateCopy() 408 byteBuffer.put((byte) protocolId).put(spiSize).putShort((short) notifyType); in encodeToByteBuffer() [all …]
|
D | IkeMessage.java | 372 public boolean hasNotifyPayload(@NotifyType int notifyType) { in hasNotifyPayload() argument 375 if (notify.notifyType == notifyType) { in hasNotifyPayload() 452 if (notifyPayload.notifyType == IkeNotifyPayload.NOTIFY_TYPE_REKEY_SA) { in getIkeExchangeSubType()
|
D | IkeAuthDigitalSignPayload.java | 368 if (notifyPayload.notifyType != IkeNotifyPayload.NOTIFY_TYPE_SIGNATURE_HASH_ALGORITHMS) { in getSignatureHashAlgorithmsFromIkeNotifyPayload()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | NetworkNotificationManager.java | 160 public void showNotification(int id, NotificationType notifyType, NetworkAgentInfo nai, in showNotification() argument 163 final int eventId = notifyType.eventId; in showNotification() 191 if (priority(previousNotifyType) > priority(notifyType)) { in showNotification() 194 notifyType, id, previousNotifyType)); in showNotification() 206 if (highPriority && maybeNotifyViaDialog(r, notifyType, intent)) { in showNotification() 215 final boolean showAsNoInternet = notifyType == NotificationType.PARTIAL_CONNECTIVITY in showNotification() 220 if ((notifyType == NotificationType.NO_INTERNET || showAsNoInternet) in showNotification() 224 } else if (notifyType == NotificationType.PRIVATE_DNS_BROKEN) { in showNotification() 233 } else if (notifyType == NotificationType.PARTIAL_CONNECTIVITY in showNotification() 237 } else if (notifyType == NotificationType.LOST_INTERNET && in showNotification() [all …]
|
D | LingerMonitor.java | 183 int notifyType = mResources.getInteger(R.integer.config_networkNotifySwitchType); in notify() local 184 if (notifyType == NOTIFY_TYPE_NOTIFICATION && forceToast) { in notify() 185 notifyType = NOTIFY_TYPE_TOAST; in notify() 189 Log.d(TAG, "Notify type: " + sNotifyTypeNames.get(notifyType, "" + notifyType)); in notify() 192 switch (notifyType) { in notify() 202 Log.e(TAG, "Unknown notify type " + notifyType); in notify() 209 + " type=" + sNotifyTypeNames.get(notifyType, "unknown(" + notifyType + ")")); in notify()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ike3gpp/ |
D | Ike3gppExtensionExchangeTest.java | 101 assertEquals(NOTIFY_TYPE_DEVICE_IDENTITY, deviceIdentity.notifyType); in testGetRequestPayloadsInEapIkeAuthServerAuthenticatedAndNetworkRequested() 143 assertEquals(NOTIFY_TYPE_N1_MODE_CAPABILITY, n1ModeCapability.notifyType); in testGetRequestPayloadsIkeAuth() 157 assertEquals(NOTIFY_TYPE_DEVICE_IDENTITY, deviceIdentity.notifyType); in testGetResponsePayloadsIkeInfo() 217 if (notifyPayload.notifyType == NOTIFY_TYPE_N1_MODE_INFORMATION) { in testExtract3gppResponsePayloadsIkeAuth() 219 } else if (notifyPayload.notifyType == NOTIFY_TYPE_BACKOFF_TIMER) { in testExtract3gppResponsePayloadsIkeAuth() 221 } else if (notifyPayload.notifyType == NOTIFY_TYPE_DEVICE_IDENTITY) { in testExtract3gppResponsePayloadsIkeAuth()
|
D | Ike3gppDeviceIdentityUtilsTest.java | 48 deviceIdentityPayload.notifyType); in testGenerateDeviceIdentityWithImeisv() 59 deviceIdentityPayload.notifyType); in testGenerateDeviceIdentityWithImei()
|
D | Ike3gppN1ModeUtilsTest.java | 46 n1ModeCapabilityPayload.notifyType); in testGenerateN1ModeCapabilityPayload()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ike3gpp/ |
D | Ike3gppIkeAuth.java | 94 if (SUPPORTED_RESPONSE_NOTIFY_TYPES.contains(notifyPayload.notifyType) in extract3gppResponsePayloads() 117 switch (notifyPayload.notifyType) { in handleAuthResp() 155 new Ike3gppBackoffTimer(backoffTimer, backoffTimerCause.notifyType)); in handleAuthResp()
|
D | Ike3gppIkeInfo.java | 53 switch (notifyPayload.notifyType) { in getResponsePayloads()
|
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/exceptions/ |
D | IkeProtocolExceptionTest.java | 43 assertEquals(ERROR_TYPE_UNSUPPORTED_CRITICAL_PAYLOAD, payload.notifyType); in buildNotifyPayloadWithData() 53 assertEquals(ERROR_TYPE_NO_PROPOSAL_CHOSEN, payload.notifyType); in buildNotifyPayloadWithoutData()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeNotifyPayloadTest.java | 105 assertEquals(IkeNotifyPayload.NOTIFY_TYPE_NAT_DETECTION_SOURCE_IP, payload.notifyType); in testDecodeNotifyPayloadSpiUnset() 117 assertEquals(IkeNotifyPayload.NOTIFY_TYPE_REKEY_SA, payload.notifyType); in testDecodeNotifyPayloadSpiSet() 149 assertEquals(cookieType, outboundCookieNotify.notifyType); in verifyHandleCookieAndGenerateCopy()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | ChildSessionStateMachine.java | 612 private void replyErrorNotification(@NotifyType int notifyType) { in replyErrorNotification() argument 613 replyErrorNotification(notifyType, new byte[0]); in replyErrorNotification() 616 private void replyErrorNotification(@NotifyType int notifyType, byte[] notifyData) { in replyErrorNotification() argument 618 IkeNotifyPayload notifyPayload = new IkeNotifyPayload(notifyType, notifyData); in replyErrorNotification() 1414 + notify.notifyType); in validateDeleteRespPayloadAndExchangeType() 2457 if (notifyPayload.notifyType == NOTIFY_TYPE_REKEY_SA in hasRemoteChildSpiForRekey() 2517 logw("Received unexpected error notification: " + notify.notifyType); in validateAndNegotiateChild() 2524 switch (notify.notifyType) { in validateAndNegotiateChild() 2546 + notify.notifyType); in validateAndNegotiateChild()
|
D | IkeSessionStateMachine.java | 2221 if (notify.notifyType == ERROR_TYPE_TEMPORARY_FAILURE) { in isTempFailure() 2247 if (notify.notifyType == NOTIFY_TYPE_COOKIE2) { in handleGenericInfoRequest() 3005 + ((IkeNotifyPayload) payload).notifyType); in handleInboundDeleteChildRequest() 3076 if (NOTIFY_TYPE_REKEY_SA != notifyPayload.notifyType) break; in handleInboundRekeyChildRequest() 3327 if (notify.notifyType == NOTIFY_TYPE_COOKIE) { in getNotifyCookie() 3524 && ((IkeNotifyPayload) payload).notifyType == NOTIFY_TYPE_COOKIE) { in buildReqWithCookie() 3587 switch (notifyPayload.notifyType) { in validateIkeInitResp() 3615 + notifyPayload.notifyType); in validateIkeInitResp() 4027 && notifyPayload.notifyType == NOTIFY_TYPE_MOBIKE_SUPPORTED) { in handleNotifyInLastAuthResp() 4038 + notifyPayload.notifyType); in handleNotifyInLastAuthResp() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSessionStateMachineTest.java | 1420 List<IkePayload> payloadList, @IkeNotifyPayload.NotifyType int notifyType) { in isNotifyExist() argument 1424 if (notify.notifyType == notifyType) return true; in isNotifyExist() 1795 assertEquals(NOTIFY_TYPE_COOKIE, outCookieNotify.notifyType); in testCreateIkeLocalIkeInitReceivesCookie() 1914 if (notifyPayload.notifyType == NOTIFY_TYPE_NAT_DETECTION_SOURCE_IP) { in verifyNatdSrcIpFromIkeInitReqMessage() 2698 ((IkeNotifyPayload) ikePayloadList.get(0)).notifyType); in testRemoteCreateChild() 2782 assertEquals(ERROR_TYPE_CHILD_SA_NOT_FOUND, notifyPayload.notifyType); in testHandleRekeyChildReqWithUnrecognizedSpi() 2848 ((IkeNotifyPayload) ikePayloadList.get(0)).notifyType); in testRcvRemoteRekeyIkeWhenChildProcedureOngoing() 3173 if (notifyPayload.notifyType == NOTIFY_TYPE_N1_MODE_CAPABILITY) { in verifyN1ModeCapabilityPayload() 3688 if (notifyPayload.notifyType == NOTIFY_TYPE_DEVICE_IDENTITY) { in testCreateIkeLocalIkeAuthInEapOutboundResponseIncludesDeviceIdentity() 4234 ERROR_TYPE_UNSUPPORTED_CRITICAL_PAYLOAD, ((IkeNotifyPayload) payload).notifyType); in testRekeyIkeLocalCreateHandleReqWithNonFatalError() [all …]
|
D | ChildSessionStateMachineTest.java | 716 private void createChildSessionAndReceiveErrorNotification(int notifyType) throws Exception { in createChildSessionAndReceiveErrorNotification() argument 723 IkeNotifyPayload notifyPayload = new IkeNotifyPayload(notifyType); in createChildSessionAndReceiveErrorNotification() 1037 assertEquals(ERROR_TYPE_TEMPORARY_FAILURE, notifyPayload.notifyType); in testReplyRekeyRequestDuringDeletion() 1092 assertEquals(NOTIFY_TYPE_REKEY_SA, notifyPayload.notifyType); in verifyOutboundRekeyNotifyPayload() 1792 assertEquals(errorCode, ((IkeNotifyPayload) payload).notifyType); in verifyOutboundErrorNotify()
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | ConnectivityService.java | 11532 protected void notifyNetworkCallbacks(NetworkAgentInfo networkAgent, int notifyType, int arg1) { 11534 String notification = ConnectivityManager.getCallbackName(notifyType); 11542 callCallbackForRequest(nri, networkAgent, notifyType, arg1); 11544 sendPendingIntentForRequest(nri, networkAgent, notifyType); 11549 protected void notifyNetworkCallbacks(NetworkAgentInfo networkAgent, int notifyType) { 11550 notifyNetworkCallbacks(networkAgent, notifyType, 0);
|