Home
last modified time | relevance | path

Searched refs:notifyType (Results 1 – 16 of 16) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeNotifyPayload.java256 public final int notifyType; field in IkeNotifyPayload
275 notifyType = Short.toUnsignedInt(inputBuffer.getShort()); in IkeNotifyPayload()
303 if (!VALID_NOTIFY_TYPES_FOR_EXISTING_CHILD_SA.contains(notifyType)) { in validateNotifyPayloadForExistingChildSa()
305 "Expected Notify Type for existing Child SA: Notify Type is " + notifyType); in validateNotifyPayloadForExistingChildSa()
314 if (notifyType == ERROR_TYPE_INVALID_SELECTORS in validateNotifyPayloadForIkeAndNewChild()
315 || notifyType == ERROR_TYPE_CHILD_SA_NOT_FOUND) { in validateNotifyPayloadForIkeAndNewChild()
319 + notifyType); in validateNotifyPayloadForIkeAndNewChild()
365 cookie2Notify.notifyType == NOTIFY_TYPE_COOKIE2 ? "COOKIE2" : "COOKIE"; in handleCookieAndGenerateCopy()
373 return new IkeNotifyPayload(cookie2Notify.notifyType, notifyData); in handleCookieAndGenerateCopy()
398 byteBuffer.put((byte) protocolId).put(spiSize).putShort((short) notifyType); in encodeToByteBuffer()
[all …]
DIkeMessage.java330 public boolean hasNotifyPayload(@NotifyType int notifyType) { in hasNotifyPayload() argument
333 if (notify.notifyType == notifyType) { in hasNotifyPayload()
DIkeAuthDigitalSignPayload.java323 if (notifyPayload.notifyType != IkeNotifyPayload.NOTIFY_TYPE_SIGNATURE_HASH_ALGORITHMS) { in getSignatureHashAlgorithmsFromIkeNotifyPayload()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkNotificationManager.java157 public void showNotification(int id, NotificationType notifyType, NetworkAgentInfo nai, in showNotification() argument
160 final int eventId = notifyType.eventId; in showNotification()
186 if (priority(previousNotifyType) > priority(notifyType)) { in showNotification()
189 notifyType, id, previousNotifyType)); in showNotification()
201 if (highPriority && maybeNotifyViaDialog(r, notifyType, intent)) { in showNotification()
210 final boolean showAsNoInternet = notifyType == NotificationType.PARTIAL_CONNECTIVITY in showNotification()
215 if ((notifyType == NotificationType.NO_INTERNET || showAsNoInternet) in showNotification()
219 } else if (notifyType == NotificationType.PRIVATE_DNS_BROKEN) { in showNotification()
228 } else if (notifyType == NotificationType.PARTIAL_CONNECTIVITY in showNotification()
232 } else if (notifyType == NotificationType.LOST_INTERNET && in showNotification()
[all …]
DLingerMonitor.java184 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()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ike3gpp/
DIke3gppIkeAuth.java80 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()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ike3gpp/
DIke3gppExtensionExchangeTest.java86 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()
DIke3gppN1ModeUtilsTest.java46 n1ModeCapabilityPayload.notifyType); in testGenerateN1ModeCapabilityPayload()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/ike3gpp/
DIke3gppBackoffTimer.java117 public static boolean isValidErrorNotifyCause(int notifyType) { in isValidErrorNotifyCause() argument
118 return VALID_BACKOFF_TIMER_CAUSES.contains(notifyType); in isValidErrorNotifyCause()
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/exceptions/
DIkeProtocolExceptionTest.java43 assertEquals(ERROR_TYPE_UNSUPPORTED_CRITICAL_PAYLOAD, payload.notifyType); in buildNotifyPayloadWithData()
53 assertEquals(ERROR_TYPE_NO_PROPOSAL_CHOSEN, payload.notifyType); in buildNotifyPayloadWithoutData()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachine.java1560 if (notifyPayload.notifyType == IkeNotifyPayload.NOTIFY_TYPE_REKEY_SA) { in getIkeExchangeSubType()
2058 if (notify.notifyType == ERROR_TYPE_TEMPORARY_FAILURE) { in isTempFailure()
2084 if (notify.notifyType == NOTIFY_TYPE_COOKIE2) { in handleGenericInfoRequest()
2756 + ((IkeNotifyPayload) payload).notifyType); in handleInboundDeleteChildRequest()
2827 if (NOTIFY_TYPE_REKEY_SA != notifyPayload.notifyType) break; in handleInboundRekeyChildRequest()
3057 if (notify.notifyType == NOTIFY_TYPE_COOKIE) { in getNotifyCookie()
3222 && ((IkeNotifyPayload) payload).notifyType == NOTIFY_TYPE_COOKIE) { in buildReqWithCookie()
3284 switch (notifyPayload.notifyType) { in validateIkeInitResp()
3313 + notifyPayload.notifyType); in validateIkeInitResp()
3667 && notifyPayload.notifyType == NOTIFY_TYPE_MOBIKE_SUPPORTED) { in handleNotifyInLastAuthResp()
[all …]
DChildSessionStateMachine.java568 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()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeNotifyPayloadTest.java105 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/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachineTest.java1299 List<IkePayload> payloadList, @IkeNotifyPayload.NotifyType int notifyType) { in isNotifyExist() argument
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()
3830 ERROR_TYPE_UNSUPPORTED_CRITICAL_PAYLOAD, ((IkeNotifyPayload) payload).notifyType); in testRekeyIkeLocalCreateHandleReqWithNonFatalError()
4133 assertEquals(expectedErrorCode, notify.notifyType); in verifyProcessRekeyReqFailure()
4384 assertEquals(ERROR_TYPE_INVALID_SYNTAX, generatedPayload.notifyType); in testBuildEncryptedInformationalMessage()
[all …]
DChildSessionStateMachineTest.java662 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()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java8718 protected void notifyNetworkCallbacks(NetworkAgentInfo networkAgent, int notifyType, int arg1) { in notifyNetworkCallbacks() argument
8720 String notification = ConnectivityManager.getCallbackName(notifyType); in notifyNetworkCallbacks()
8728 callCallbackForRequest(nri, networkAgent, notifyType, arg1); in notifyNetworkCallbacks()
8730 sendPendingIntentForRequest(nri, networkAgent, notifyType); in notifyNetworkCallbacks()
8735 protected void notifyNetworkCallbacks(NetworkAgentInfo networkAgent, int notifyType) { in notifyNetworkCallbacks() argument
8736 notifyNetworkCallbacks(networkAgent, notifyType, 0); in notifyNetworkCallbacks()