/packages/modules/ExtServices/tests/src/android/ext/services/notification/ |
D | NotificationCategorizerTest.java | 69 NotificationCategorizer nc = new NotificationCategorizer(); in testPeopleCategory() local 74 assertEquals(NotificationCategorizer.CATEGORY_PEOPLE, nc.getCategory(mEntry)); in testPeopleCategory() 75 assertFalse(nc.shouldSilence(NotificationCategorizer.CATEGORY_PEOPLE)); in testPeopleCategory() 80 NotificationCategorizer nc = new NotificationCategorizer(); in testMin() local 85 assertEquals(NotificationCategorizer.CATEGORY_MIN, nc.getCategory(mEntry)); in testMin() 86 assertTrue(nc.shouldSilence(NotificationCategorizer.CATEGORY_MIN)); in testMin() 91 NotificationCategorizer nc = new NotificationCategorizer(); in testHigh() local 95 assertEquals(NotificationCategorizer.CATEGORY_HIGH, nc.getCategory(mEntry)); in testHigh() 96 assertFalse(nc.shouldSilence(NotificationCategorizer.CATEGORY_HIGH)); in testHigh() 101 NotificationCategorizer nc = new NotificationCategorizer(); in testOngoingCategory() local [all …]
|
/packages/modules/NetworkStack/common/moduleutils/src/android/net/shared/ |
D | NetworkMonitorUtils.java | 59 public static boolean isPrivateDnsValidationRequired(NetworkCapabilities nc) { in isPrivateDnsValidationRequired() argument 60 if (nc == null) return false; in isPrivateDnsValidationRequired() 63 if (nc.hasCapability(NET_CAPABILITY_INTERNET) in isPrivateDnsValidationRequired() 64 && nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED) in isPrivateDnsValidationRequired() 65 && nc.hasCapability(NET_CAPABILITY_TRUSTED)) { in isPrivateDnsValidationRequired() 78 if (nc.hasTransport(TRANSPORT_TEST) && nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED) && ( in isPrivateDnsValidationRequired() 79 nc.hasTransport(TRANSPORT_WIFI) in isPrivateDnsValidationRequired() 80 || nc.hasTransport(TRANSPORT_CELLULAR) in isPrivateDnsValidationRequired() 81 || nc.hasTransport(TRANSPORT_BLUETOOTH) in isPrivateDnsValidationRequired() 82 || nc.hasTransport(TRANSPORT_ETHERNET))) { in isPrivateDnsValidationRequired() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/metrics/ |
D | NetworkValidationMetricsTest.java | 109 NetworkCapabilities nc = new NetworkCapabilities(); in testNetworkValidationMetrics_VerifyTransportTypeToEnum() local 110 nc.addTransportType(TRANSPORT_WIFI); in testNetworkValidationMetrics_VerifyTransportTypeToEnum() 111 assertEquals(TransportType.TT_WIFI, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum() 112 nc.addTransportType(TRANSPORT_VPN); in testNetworkValidationMetrics_VerifyTransportTypeToEnum() 113 assertEquals(TransportType.TT_WIFI_VPN, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum() 114 nc.addTransportType(TRANSPORT_CELLULAR); in testNetworkValidationMetrics_VerifyTransportTypeToEnum() 115 assertEquals(TransportType.TT_WIFI_CELLULAR_VPN, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum() 117 nc = new NetworkCapabilities(); in testNetworkValidationMetrics_VerifyTransportTypeToEnum() 118 nc.addTransportType(TRANSPORT_CELLULAR); in testNetworkValidationMetrics_VerifyTransportTypeToEnum() 119 assertEquals(TransportType.TT_CELLULAR, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum() [all …]
|
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/ |
D | NetworkValidationMetrics.java | 67 public void startCollection(@Nullable NetworkCapabilities nc) { in startCollection() argument 72 mStatsBuilder.setTransportType(getTransportTypeFromNC(nc)); in startCollection() 90 public static TransportType getTransportTypeFromNC(@Nullable NetworkCapabilities nc) { in getTransportTypeFromNC() argument 91 if (nc == null) return TransportType.TT_UNKNOWN; in getTransportTypeFromNC() 93 final int trCount = nc.getTransportTypes().length; in getTransportTypeFromNC() 94 boolean hasCellular = nc.hasTransport(TRANSPORT_CELLULAR); in getTransportTypeFromNC() 95 boolean hasWifi = nc.hasTransport(TRANSPORT_WIFI); in getTransportTypeFromNC() 96 boolean hasBT = nc.hasTransport(TRANSPORT_BLUETOOTH); in getTransportTypeFromNC() 97 boolean hasEthernet = nc.hasTransport(TRANSPORT_ETHERNET); in getTransportTypeFromNC() 98 boolean hasVpn = nc.hasTransport(TRANSPORT_VPN); in getTransportTypeFromNC() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/ |
D | SimSelectNotificationTest.java | 150 ArgumentCaptor<NotificationChannel> nc = ArgumentCaptor.forClass(NotificationChannel.class); in onReceiveEnableMms_notificationShouldSend() local 151 verify(mNotificationManager).createNotificationChannel(nc.capture()); in onReceiveEnableMms_notificationShouldSend() 153 assertThat(nc.getValue().getId()).isEqualTo(ENABLE_MMS_NOTIFICATION_CHANNEL); in onReceiveEnableMms_notificationShouldSend() 154 assertThat(nc.getValue().getName()).isEqualTo(mFakeNotificationChannelTitle); in onReceiveEnableMms_notificationShouldSend() 155 assertThat(nc.getValue().getImportance()).isEqualTo(IMPORTANCE_HIGH); in onReceiveEnableMms_notificationShouldSend() 210 ArgumentCaptor<NotificationChannel> nc = ArgumentCaptor.forClass(NotificationChannel.class); in onReceivePrimarySubListChange_DualCdmaWarning_notificationShouldSend() local 211 verify(mNotificationManager).createNotificationChannel(nc.capture()); in onReceivePrimarySubListChange_DualCdmaWarning_notificationShouldSend() 213 assertThat(nc.getValue().getId()).isEqualTo(SIM_WARNING_NOTIFICATION_CHANNEL); in onReceivePrimarySubListChange_DualCdmaWarning_notificationShouldSend() 214 assertThat(nc.getValue().getName()).isEqualTo(mFakeDualCdmaWarningChannelTitle); in onReceivePrimarySubListChange_DualCdmaWarning_notificationShouldSend() 215 assertThat(nc.getValue().getImportance()).isEqualTo(IMPORTANCE_HIGH); in onReceivePrimarySubListChange_DualCdmaWarning_notificationShouldSend()
|
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/ |
D | CaptivePortalLoginActivityTest.java | 314 private void notifyCapabilitiesChanged(final NetworkCapabilities nc) { in notifyCapabilitiesChanged() argument 315 mActivity.handleCapabilitiesChanged(mNetwork, nc); in notifyCapabilitiesChanged() 326 private void notifyValidatedChangedAndDismissed(final NetworkCapabilities nc) { in notifyValidatedChangedAndDismissed() argument 327 notifyCapabilitiesChanged(nc); in notifyValidatedChangedAndDismissed() 338 private void notifyValidatedChangedNotDone(final NetworkCapabilities nc) { in notifyValidatedChangedNotDone() argument 339 notifyCapabilitiesChanged(nc); in notifyValidatedChangedNotDone() 363 final NetworkCapabilities nc = new NetworkCapabilities(); in testNetworkCapabilitiesUpdate() local 364 notifyValidatedChangedNotDone(nc); in testNetworkCapabilitiesUpdate() 367 nc.setCapability(NET_CAPABILITY_VALIDATED, true); in testNetworkCapabilitiesUpdate() 368 notifyValidatedChangedAndDismissed(nc); in testNetworkCapabilitiesUpdate() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/ |
D | WifiDetailPreferenceControllerTest.java | 880 private void updateNetworkCapabilities(NetworkCapabilities nc) { in updateNetworkCapabilities() argument 881 mCallbackCaptor.getValue().onCapabilitiesChanged(mockNetwork, new NetworkCapabilities(nc)); in updateNetworkCapabilities() 885 NetworkCapabilities nc = new NetworkCapabilities(); in makeNetworkCapabilities() local 886 nc.clearAll(); in makeNetworkCapabilities() 887 nc.addTransportType(NetworkCapabilities.TRANSPORT_WIFI); in makeNetworkCapabilities() 888 return nc; in makeNetworkCapabilities() 958 NetworkCapabilities nc = makeNetworkCapabilities(); in onCapabilitiesChanged_callsRefreshIfNecessary() local 960 .thenReturn(new NetworkCapabilities(nc)); in onCapabilitiesChanged_callsRefreshIfNecessary() 975 updateNetworkCapabilities(nc); in onCapabilitiesChanged_callsRefreshIfNecessary() 979 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); in onCapabilitiesChanged_callsRefreshIfNecessary() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/ |
D | ContextualWifiSliceTest.java | 153 private void connectToWifi(NetworkCapabilities nc) { in connectToWifi() argument 158 mWifiManager.getCurrentNetwork(), nc); in connectToWifi() local 162 final NetworkCapabilities nc = new NetworkCapabilities(); in makeValidatedNetworkCapabilities() local 163 nc.clearAll(); in makeValidatedNetworkCapabilities() 164 nc.addTransportType(NetworkCapabilities.TRANSPORT_WIFI); in makeValidatedNetworkCapabilities() 165 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); in makeValidatedNetworkCapabilities() 166 return nc; in makeValidatedNetworkCapabilities()
|
D | WifiSliceTest.java | 252 final NetworkCapabilities nc = new NetworkCapabilities(); in makeCaptivePortalNetworkCapabilities() local 253 nc.clearAll(); in makeCaptivePortalNetworkCapabilities() 254 nc.addTransportType(NetworkCapabilities.TRANSPORT_WIFI); in makeCaptivePortalNetworkCapabilities() 255 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL); in makeCaptivePortalNetworkCapabilities() 256 return nc; in makeCaptivePortalNetworkCapabilities()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/ |
D | WifiInfoProviderImpl.java | 119 private boolean hasCapabilityChanged(NetworkCapabilities nc, int cap) { 124 return mNetworkCapabilities.hasCapability(cap) != nc.hasCapability(cap); 128 public void onCapabilitiesChanged(Network network, NetworkCapabilities nc) { 130 if (network.equals(mNetwork) && !nc.equals(mNetworkCapabilities)) { 131 if (hasCapabilityChanged(nc, NET_CAPABILITY_VALIDATED) 132 || hasCapabilityChanged(nc, NET_CAPABILITY_CAPTIVE_PORTAL)) { 135 mNetworkCapabilities = nc;
|
/packages/apps/Settings/src/com/android/settings/wifi/slice/ |
D | ContextualWifiSlice.java | 86 final NetworkCapabilities nc = mConnectivityManager.getNetworkCapabilities( in hasInternetAccess() local 88 return nc != null in hasInternetAccess() 89 && !nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL) in hasInternetAccess() 90 && !nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_PARTIAL_CONNECTIVITY) in hasInternetAccess() 91 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); in hasInternetAccess()
|
D | WifiScanWorker.java | 212 public void onCapabilitiesChanged(Network network, NetworkCapabilities nc) { in onCapabilitiesChanged() argument 221 mIsCaptivePortal = nc.hasCapability(NET_CAPABILITY_CAPTIVE_PORTAL); in onCapabilitiesChanged() 222 mHasPartialConnectivity = nc.hasCapability(NET_CAPABILITY_PARTIAL_CONNECTIVITY); in onCapabilitiesChanged() 223 mIsValidated = nc.hasCapability(NET_CAPABILITY_VALIDATED); in onCapabilitiesChanged()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 630 private WrappedNetworkMonitor makeMonitor(NetworkCapabilities nc) { in makeMonitor() argument 633 setNetworkCapabilities(nm, nc); in makeMonitor() 656 private void setNetworkCapabilities(NetworkMonitor nm, NetworkCapabilities nc) { in setNetworkCapabilities() argument 657 nm.notifyNetworkCapabilitiesChanged(nc); in setNetworkCapabilities() 665 final NetworkCapabilities nc = new NetworkCapabilities() in testOnlyWifiTransport() local 668 setNetworkCapabilities(wnm, nc); in testOnlyWifiTransport() 670 nc.removeTransportType(TRANSPORT_VPN); in testOnlyWifiTransport() 671 setNetworkCapabilities(wnm, nc); in testOnlyWifiTransport() 685 final NetworkCapabilities nc = new NetworkCapabilities() in testNeedEvaluatingBandwidth() local 687 setNetworkCapabilities(wnm1, nc); in testNeedEvaluatingBandwidth() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | WifiNoInternetDialog.java | 100 public void onCapabilitiesChanged(Network network, NetworkCapabilities nc) { in onCreate() 102 if (mNetwork.equals(network) && nc.hasCapability(NET_CAPABILITY_VALIDATED)) { in onCreate() 113 final NetworkCapabilities nc = mCM.getNetworkCapabilities(mNetwork); in onCreate() local 114 if (ni == null || !ni.isConnectedOrConnecting() || nc == null) { in onCreate() 119 mNetworkName = nc.getSsid(); in onCreate()
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_feature_detection.cpp | 84 inline void db_IxIyRow_u(int *dxx,const unsigned char * const *img,int i,int j,int nc) in db_IxIyRow_u() argument 204 for(c=0;c<nc;c++) in db_IxIyRow_u() 264 inline void db_gxx_gxy_gyy_row_s(int *g,int *d0,int *d1,int *d2,int *d3,int *d4,int nc) in db_gxx_gxy_gyy_row_s() argument 347 for(c=0;c<nc;c++) in db_gxx_gxy_gyy_row_s() 384 inline void db_Filter14641_128_i(int *g,int nc) in db_Filter14641_128_i() argument 484 for(c=0;c<nc-4;c++) in db_Filter14641_128_i() 494 inline void db_HarrisStrength_row_s(float *s,int *gxx,int *gxy,int *gyy,int nc) in db_HarrisStrength_row_s() argument 500 db_Filter14641_128_i(gxx,nc); in db_HarrisStrength_row_s() 501 db_Filter14641_128_i(gxy,nc); in db_HarrisStrength_row_s() 502 db_Filter14641_128_i(gyy,nc); in db_HarrisStrength_row_s() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/details/ |
D | WifiDetailPreferenceController.java | 230 private boolean hasCapabilityChanged(NetworkCapabilities nc, int cap) { 235 return mNetworkCapabilities.hasCapability(cap) != nc.hasCapability(cap); 238 private boolean hasPrivateDnsStatusChanged(NetworkCapabilities nc) { 248 return mNetworkCapabilities.isPrivateDnsBroken() != nc.isPrivateDnsBroken(); 252 public void onCapabilitiesChanged(Network network, NetworkCapabilities nc) { 257 if (network.equals(mNetwork) && !nc.equals(mNetworkCapabilities)) { 258 if (hasPrivateDnsStatusChanged(nc) 259 || hasCapabilityChanged(nc, NET_CAPABILITY_VALIDATED) 260 || hasCapabilityChanged(nc, NET_CAPABILITY_CAPTIVE_PORTAL) 261 || hasCapabilityChanged(nc, NET_CAPABILITY_PARTIAL_CONNECTIVITY)) { [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiNoInternetDialog.java | 101 public void onCapabilitiesChanged(Network network, NetworkCapabilities nc) { in onCreate() 103 if (mNetwork.equals(network) && nc.hasCapability(NET_CAPABILITY_VALIDATED)) { in onCreate() 114 final NetworkCapabilities nc = mCM.getNetworkCapabilities(mNetwork); in onCreate() local 115 if (ni == null || !ni.isConnectedOrConnecting() || nc == null) { in onCreate() 120 mNetworkName = nc.getSsid(); in onCreate()
|
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/ |
D | CaptivePortalLoginActivity.java | 187 public void onCapabilitiesChanged(Network network, NetworkCapabilities nc) { in onCreate() 188 handleCapabilitiesChanged(network, nc); in onCreate() 247 @NonNull final NetworkCapabilities nc) { in handleCapabilitiesChanged() argument 252 if (network.equals(mNetwork) && nc.hasCapability(NET_CAPABILITY_VALIDATED)) { in handleCapabilitiesChanged() 525 final NetworkCapabilities nc = mCm.getNetworkCapabilities(network); in hasVpnNetwork() local 526 if (nc != null && nc.hasTransport(NetworkCapabilities.TRANSPORT_VPN)) { in hasVpnNetwork() 895 NetworkCapabilities nc = mCm.getNetworkCapabilities(mNetwork); in getHeaderTitle() local 898 || nc == null || !nc.hasTransport(NetworkCapabilities.TRANSPORT_WIFI)) { in getHeaderTitle()
|
/packages/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/ |
D | NetworkInformationShimImpl.java | 92 public String getSsid(@Nullable NetworkCapabilities nc) { in getSsid() argument 93 if (nc == null) return null; in getSsid() 94 return nc.getSsid(); in getSsid()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/ |
D | DigestMd5Utils.java | 63 public String nc; field in DigestMd5Utils.Data 79 nc = "00000001"; // Subsequent Authentication not supported, nounce count always 1. in Data() 114 .append(DIGEST_NC, nc) in createResponse() 177 + data.nc in getResponse()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/ |
D | WifiDetailPreferenceController.java | 231 private boolean hasCapabilityChanged(NetworkCapabilities nc, int cap) { 236 return mNetworkCapabilities.hasCapability(cap) != nc.hasCapability(cap); 240 public void onCapabilitiesChanged(Network network, NetworkCapabilities nc) { 245 if (network.equals(mNetwork) && !nc.equals(mNetworkCapabilities)) { 246 if (hasCapabilityChanged(nc, NET_CAPABILITY_VALIDATED) 247 || hasCapabilityChanged(nc, NET_CAPABILITY_CAPTIVE_PORTAL) 248 || hasCapabilityChanged(nc, NET_CAPABILITY_PARTIAL_CONNECTIVITY)) { 252 mNetworkCapabilities = nc;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | PrivateDnsPreferenceControllerTest.java | 145 NetworkCallback nc = mCallbackCaptor.getValue(); in updateLinkProperties() local 160 nc = mock(nc.getClass(), withSettings().useConstructor().outerInstance(mController) in updateLinkProperties() 162 nc.onLinkPropertiesChanged(mNetwork, lp); in updateLinkProperties()
|
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ |
D | INetworkMonitor.aidl | 64 void notifyNetworkConnected(in LinkProperties lp, in NetworkCapabilities nc); in notifyNetworkConnected() argument 67 void notifyNetworkCapabilitiesChanged(in NetworkCapabilities nc); in notifyNetworkCapabilitiesChanged() argument
|
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/1/android/net/ |
D | INetworkMonitor.aidl | 10 …id notifyNetworkConnected(in android.net.LinkProperties lp, in android.net.NetworkCapabilities nc); in notifyNetworkConnected() argument 13 oneway void notifyNetworkCapabilitiesChanged(in android.net.NetworkCapabilities nc); in notifyNetworkCapabilitiesChanged() argument
|
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/6/android/net/ |
D | INetworkMonitor.aidl | 28 …id notifyNetworkConnected(in android.net.LinkProperties lp, in android.net.NetworkCapabilities nc); in notifyNetworkConnected() argument 31 oneway void notifyNetworkCapabilitiesChanged(in android.net.NetworkCapabilities nc); in notifyNetworkCapabilitiesChanged() argument
|