Home
last modified time | relevance | path

Searched refs:nc (Results 1 – 25 of 38) sorted by relevance

12

/packages/modules/ExtServices/tests/src/android/ext/services/notification/
DNotificationCategorizerTest.java69 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/apps/Settings/tests/robotests/src/com/android/settings/sim/
DSimSelectNotificationTest.java150 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/apps/Email/provider_src/com/android/email/
DSecurityPolicy.java464 final NotificationController nc = in setAccountHoldFlag() local
466 nc.showSecurityNeededNotification(account); in setAccountHoldFlag()
513 final NotificationController nc = in policiesRequired() local
516 nc.showSecurityNeededNotification(account); in policiesRequired()
518 nc.showSecurityUnsupportedNotification(account); in policiesRequired()
627 final NotificationController nc = in setAccountPolicy() local
635 nc.showSecurityUnsupportedNotification(account); in setAccountPolicy()
646 nc.showSecurityChangedNotification(account); in setAccountPolicy()
657 nc.showSecurityNeededNotification(account); in setAccountPolicy()
669 final NotificationController nc = in clearNotification() local
[all …]
DEmailIntentService.java40 final NotificationController nc = in onHandleIntent() local
42 if (nc != null) { in onHandleIntent()
43 nc.handleUpdateNotificationIntent(this, intent); in onHandleIntent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/
DWifiDetailPreferenceControllerTest.java880 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/
DContextualWifiSliceTest.java153 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()
DWifiSliceTest.java252 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/
DWifiInfoProviderImpl.java119 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/
DContextualWifiSlice.java86 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()
DWifiScanWorker.java212 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()
DWifiSlice.java297 final NetworkCapabilities nc = mConnectivityManager.getNetworkCapabilities( in isCaptivePortal() local
299 return WifiUtils.canSignIntoNetwork(nc); in isCaptivePortal()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiNoInternetDialog.java100 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/
Ddb_feature_detection.cpp84 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/
DWifiNoInternetDialog.java101 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/apps/Email/provider_src/com/android/email/service/
DEmailServiceStub.java435 final NotificationController nc = in sendMailImpl() local
483 if (me instanceof AuthenticationFailedException && nc != null) { in sendMailImpl()
484 nc.showLoginFailedNotificationSynchronous(account.mId, in sendMailImpl()
519 if (nc != null) { in sendMailImpl()
520 nc.cancelLoginFailedNotification(account.mId); in sendMailImpl()
523 if (me instanceof AuthenticationFailedException && nc != null) { in sendMailImpl()
524 nc.showLoginFailedNotificationSynchronous(account.mId, false /* incoming */); in sendMailImpl()
DPop3Service.java111 final NotificationController nc = in synchronizeMailboxSynchronous() local
116 if (nc != null) { in synchronizeMailboxSynchronous()
117 nc.cancelLoginFailedNotification(account.mId); in synchronizeMailboxSynchronous()
123 if (e instanceof AuthenticationFailedException && nc != null) { in synchronizeMailboxSynchronous()
125 nc.showLoginFailedNotificationSynchronous(account.mId, true /* incoming */); in synchronizeMailboxSynchronous()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DDigestMd5Utils.java63 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/
DWifiDetailPreferenceController.java231 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/src/com/android/settings/wifi/details/
DWifiDetailPreferenceController.java230 private boolean hasCapabilityChanged(NetworkCapabilities nc, int cap) {
235 return mNetworkCapabilities.hasCapability(cap) != nc.hasCapability(cap);
239 public void onCapabilitiesChanged(Network network, NetworkCapabilities nc) {
244 if (network.equals(mNetwork) && !nc.equals(mNetworkCapabilities)) {
245 if (hasCapabilityChanged(nc, NET_CAPABILITY_VALIDATED)
246 || hasCapabilityChanged(nc, NET_CAPABILITY_CAPTIVE_PORTAL)
247 || hasCapabilityChanged(nc, NET_CAPABILITY_PARTIAL_CONNECTIVITY)) {
251 mNetworkCapabilities = nc;
/packages/modules/NetworkStack/src/com/android/server/
DNetworkStackService.java361 public void notifyNetworkConnected(LinkProperties lp, NetworkCapabilities nc) { in notifyNetworkConnected() argument
363 mNm.notifyNetworkConnected(lp, nc); in notifyNetworkConnected()
379 public void notifyNetworkCapabilitiesChanged(NetworkCapabilities nc) { in notifyNetworkCapabilitiesChanged() argument
381 mNm.notifyNetworkCapabilitiesChanged(nc); in notifyNetworkCapabilitiesChanged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DPrivateDnsPreferenceControllerTest.java145 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/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java432 private WrappedNetworkMonitor makeMonitor(NetworkCapabilities nc) { in makeMonitor() argument
435 setNetworkCapabilities(nm, nc); in makeMonitor()
451 private void setNetworkCapabilities(NetworkMonitor nm, NetworkCapabilities nc) { in setNetworkCapabilities() argument
452 nm.notifyNetworkCapabilitiesChanged(nc); in setNetworkCapabilities()
1106 private NetworkMonitor runNetworkTest(NetworkCapabilities nc, int testResult) { in runNetworkTest() argument
1107 final NetworkMonitor monitor = makeMonitor(nc); in runNetworkTest()
1108 monitor.notifyNetworkConnected(TEST_LINK_PROPERTIES, nc); in runNetworkTest()
/packages/apps/Email/provider_src/com/android/email/provider/
DAccountReconciler.java210 final NotificationController nc = in reconcileAccountsInternal() local
212 if (nc != null) { in reconcileAccountsInternal()
213 nc.cancelNotifications(context, providerAccount); in reconcileAccountsInternal()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java153 NetworkCapabilities nc = mConnectivityManager.getNetworkCapabilities(n); in getRequestForNetwork() local
158 for (int transportType : nc.getTransportTypes()) { in getRequestForNetwork()
162 for (int capability : nc.getCapabilities()) { in getRequestForNetwork()
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java643 NetworkCapabilities nc = mCm.getNetworkCapabilities(mNetwork); in getHeaderTitle() local
646 || nc == null || !nc.hasTransport(NetworkCapabilities.TRANSPORT_WIFI)) { in getHeaderTitle()

12