/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
H A D | IkeNotifyPayload.java | 256 public final int notifyType; field in IkeNotifyPayload 314 if (notifyType == ERROR_TYPE_INVALID_SELECTORS in validateNotifyPayloadForIkeAndNewChild() 319 + notifyType); in validateNotifyPayloadForIkeAndNewChild() 421 this.notifyType = notifyType; in IkeNotifyPayload() 433 public IkeNotifyPayload(int notifyType, byte[] notifyData) { in IkeNotifyPayload() argument 448 public IkeNotifyPayload(int notifyType) { in IkeNotifyPayload() argument 449 this(notifyType, new byte[0]); in IkeNotifyPayload() 475 return notifyType <= ERROR_NOTIFY_TYPE_MAX; in isErrorNotify() 501 + notifyType); in validateAndBuildIkeException() 505 switch (notifyType) { in validateAndBuildIkeException() [all …]
|
H A D | IkeMessage.java | 330 public boolean hasNotifyPayload(@NotifyType int notifyType) { in hasNotifyPayload() argument 333 if (notify.notifyType == notifyType) { in hasNotifyPayload()
|
H A D | IkeAuthDigitalSignPayload.java | 323 if (notifyPayload.notifyType != IkeNotifyPayload.NOTIFY_TYPE_SIGNATURE_HASH_ALGORITHMS) { in getSignatureHashAlgorithmsFromIkeNotifyPayload()
|
/aosp12/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
H A D | NetworkNotificationManager.java | 160 final int eventId = notifyType.eventId; in showNotification() 186 if (priority(previousNotifyType) > priority(notifyType)) { in showNotification() 189 notifyType, id, previousNotifyType)); in showNotification() 232 } else if (notifyType == NotificationType.LOST_INTERNET && in showNotification() 236 } else if (notifyType == NotificationType.SIGN_IN) { in showNotification() 266 } else if (notifyType == NotificationType.NO_INTERNET in showNotification() 297 .setOngoing(notifyType == NotificationType.SIGN_IN in showNotification() 300 if (notifyType == NotificationType.NETWORK_SWITCH) { in showNotification() 306 if (notifyType == NotificationType.SIGN_IN) { in showNotification() 322 if (notifyType != NotificationType.NO_INTERNET in maybeNotifyViaDialog() [all …]
|
H A D | LingerMonitor.java | 184 int notifyType = mResources.getInteger(R.integer.config_networkNotifySwitchType); in notify() local 185 if (notifyType == NOTIFY_TYPE_NOTIFICATION && forceToast) { in notify() 186 notifyType = NOTIFY_TYPE_TOAST; in notify() 190 Log.d(TAG, "Notify type: " + sNotifyTypeNames.get(notifyType, "" + notifyType)); in notify() 193 switch (notifyType) { in notify() 203 Log.e(TAG, "Unknown notify type " + notifyType); in notify() 210 + " type=" + sNotifyTypeNames.get(notifyType, "unknown(" + notifyType + ")")); in notify()
|
/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ike3gpp/ |
H A D | Ike3gppIkeAuth.java | 80 if (SUPPORTED_RESPONSE_NOTIFY_TYPES.contains(notifyPayload.notifyType)) { in extract3gppResponsePayloads() 102 switch (notifyPayload.notifyType) { in handleAuthResp() 124 + notifyPayload.notifyType); in handleAuthResp() 139 new Ike3gppBackoffTimer(backoffTimer, backoffTimerCause.notifyType)); in handleAuthResp()
|
/aosp12/packages/modules/IPsec/src/java/android/net/ipsec/ike/ike3gpp/ |
H A D | Ike3gppBackoffTimer.java | 117 public static boolean isValidErrorNotifyCause(int notifyType) { in isValidErrorNotifyCause() argument 118 return VALID_BACKOFF_TIMER_CAUSES.contains(notifyType); in isValidErrorNotifyCause()
|
/aosp12/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/exceptions/ |
H A 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()
|
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ike3gpp/ |
H A D | Ike3gppExtensionExchangeTest.java | 86 assertEquals(NOTIFY_TYPE_N1_MODE_CAPABILITY, n1ModeCapability.notifyType); in testGetRequestPayloadsIkeAuth() 122 if (notifyPayload.notifyType == NOTIFY_TYPE_N1_MODE_INFORMATION) { in testExtract3gppResponsePayloadsIkeAuth() 124 } else if (notifyPayload.notifyType == NOTIFY_TYPE_BACKOFF_TIMER) { in testExtract3gppResponsePayloadsIkeAuth()
|
H A D | Ike3gppN1ModeUtilsTest.java | 46 n1ModeCapabilityPayload.notifyType); in testGenerateN1ModeCapabilityPayload()
|
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
H A 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()
|
/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
H A D | ChildSessionStateMachine.java | 568 private void replyErrorNotification(@NotifyType int notifyType) { in replyErrorNotification() argument 569 replyErrorNotification(notifyType, new byte[0]); in replyErrorNotification() 572 private void replyErrorNotification(@NotifyType int notifyType, byte[] notifyData) { in replyErrorNotification() argument 574 IkeNotifyPayload notifyPayload = new IkeNotifyPayload(notifyType, notifyData); in replyErrorNotification() 1298 + notify.notifyType); in validateDeleteRespPayloadAndExchangeType() 2268 if (notifyPayload.notifyType == NOTIFY_TYPE_REKEY_SA in hasRemoteChildSpiForRekey() 2328 logw("Received unexpected error notification: " + notify.notifyType); in validateAndNegotiateChild() 2335 switch (notify.notifyType) { in validateAndNegotiateChild() 2357 + notify.notifyType); in validateAndNegotiateChild()
|
H A D | IkeSessionStateMachine.java | 2058 if (notify.notifyType == ERROR_TYPE_TEMPORARY_FAILURE) { in isTempFailure() 2084 if (notify.notifyType == NOTIFY_TYPE_COOKIE2) { in handleGenericInfoRequest() 3057 if (notify.notifyType == NOTIFY_TYPE_COOKIE) { in getNotifyCookie() 3284 switch (notifyPayload.notifyType) { in validateIkeInitResp() 3313 + notifyPayload.notifyType); in validateIkeInitResp() 3677 + notifyPayload.notifyType); in handleNotifyInLastAuthResp() 4161 + notifyPayload.notifyType); in handleResponseIkeMessage() 4430 if (ERROR_TYPE_INVALID_SYNTAX == notifyPayload.notifyType) { in handleErrorNotifyIfExists() 4460 + firstErrorNotifyPayload.notifyType in handleErrorNotifyIfExists() 5374 switch (notifyPayload.notifyType) { in validateResp() [all …]
|
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
H A D | IkeSessionStateMachineTest.java | 1303 if (notify.notifyType == notifyType) return true; in isNotifyExist() 1625 assertEquals(NOTIFY_TYPE_COOKIE, outCookieNotify.notifyType); in testCreateIkeLocalIkeInitReceivesCookie() 2420 ((IkeNotifyPayload) ikePayloadList.get(0)).notifyType); in testRemoteCreateChild() 2504 assertEquals(ERROR_TYPE_CHILD_SA_NOT_FOUND, notifyPayload.notifyType); in testHandleRekeyChildReqWithUnrecognizedSpi() 2550 ((IkeNotifyPayload) ikePayloadList.get(0)).notifyType); in testRcvRemoteRekeyIkeWhenChildProcedureOngoing() 2882 if (notifyPayload.notifyType == NOTIFY_TYPE_N1_MODE_CAPABILITY) { in verifyN1ModeCapabilityPayload() 4133 assertEquals(expectedErrorCode, notify.notifyType); in verifyProcessRekeyReqFailure() 4384 assertEquals(ERROR_TYPE_INVALID_SYNTAX, generatedPayload.notifyType); in testBuildEncryptedInformationalMessage() 5438 if (payload.notifyType == NOTIFY_TYPE_EAP_ONLY_AUTHENTICATION) { in hasEapOnlyNotifyPayload() 5807 if (notifyPayload.notifyType == NOTIFY_TYPE_MOBIKE_SUPPORTED) { in verifyMobikeEnabled() [all …]
|
H A D | ChildSessionStateMachineTest.java | 662 private void createChildSessionAndReceiveErrorNotification(int notifyType) throws Exception { in createChildSessionAndReceiveErrorNotification() argument 669 IkeNotifyPayload notifyPayload = new IkeNotifyPayload(notifyType); in createChildSessionAndReceiveErrorNotification() 952 assertEquals(ERROR_TYPE_TEMPORARY_FAILURE, notifyPayload.notifyType); in testReplyRekeyRequestDuringDeletion() 1007 assertEquals(NOTIFY_TYPE_REKEY_SA, notifyPayload.notifyType); in verifyOutboundRekeyNotifyPayload() 1569 assertEquals(errorCode, ((IkeNotifyPayload) payload).notifyType); in verifyOutboundErrorNotify()
|
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | ServiceStateTracker.java | 4565 public void setNotification(int notifyType) { in setNotification() argument 4566 if (DBG) log("setNotification: create notification " + notifyType); in setNotification() 4598 if (disableVoiceBarringNotification && (notifyType == CS_ENABLED in setNotification() 4599 || notifyType == CS_NORMAL_ENABLED in setNotification() 4600 || notifyType == CS_EMERGENCY_ENABLED)) { in setNotification() 4616 switch (notifyType) { in setNotification() 4665 notifyType = CS_REJECT_CAUSE_DISABLED; in setNotification() 4700 if (notifyType == PS_DISABLED || notifyType == CS_DISABLED in setNotification() 4701 || notifyType == CS_REJECT_CAUSE_DISABLED) { in setNotification() 4706 if (mSS.isEmergencyOnly() && notifyType == CS_EMERGENCY_ENABLED) { in setNotification() [all …]
|
/aosp12/packages/modules/Connectivity/services/core/java/com/android/server/ |
H A D | ConnectivityService.java | 5956 int notifyType = ConnectivityManager.CALLBACK_AVAILABLE; in notifyNetworkCallback() local 5963 callCallbackForRequest(nri, nai, notifyType); in notifyNetworkCallback() 6010 protected void notifyNetworkCallbacks(NetworkAgentInfo networkAgent, int notifyType) { in notifyNetworkCallbacks() argument 6011 if (VDBG) log("notifyType " + notifyType + " for " + networkAgent.name()); in notifyNetworkCallbacks() 6016 callCallbackForRequest(nri, networkAgent, notifyType); in notifyNetworkCallbacks()
|
/aosp12/packages/modules/Connectivity/service/src/com/android/server/ |
H A D | ConnectivityService.java | 8739 protected void notifyNetworkCallbacks(NetworkAgentInfo networkAgent, int notifyType, int arg1) { in notifyNetworkCallbacks() argument 8741 String notification = ConnectivityManager.getCallbackName(notifyType); in notifyNetworkCallbacks() 8749 callCallbackForRequest(nri, networkAgent, notifyType, arg1); in notifyNetworkCallbacks() 8751 sendPendingIntentForRequest(nri, networkAgent, notifyType); in notifyNetworkCallbacks() 8756 protected void notifyNetworkCallbacks(NetworkAgentInfo networkAgent, int notifyType) { in notifyNetworkCallbacks() argument 8757 notifyNetworkCallbacks(networkAgent, notifyType, 0); in notifyNetworkCallbacks()
|