/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest8.java | 182 verify(mServiceContext, times(0)) in testRequestPinShortcut_notSupported() 184 verify(mServiceContext, times(0)) in testRequestPinShortcut_notSupported() 194 verify(mServiceContext, times(0)) in testRequestPinShortcut_notSupported() 196 verify(mServiceContext, times(0)) in testRequestPinShortcut_notSupported() 206 verify(mServiceContext, times(0)) in testRequestPinShortcut_notSupported() 208 verify(mServiceContext, times(0)) in testRequestPinShortcut_notSupported() 233 verify(mServiceContext, times(0)).sendIntentSender(any(IntentSender.class)); in testNotForeground() 234 verify(mServiceContext, times(0)).startActivityAsUser( in testNotForeground() 269 verify(mServiceContext, times(0)).sendIntentSender(any(IntentSender.class)); in checkRequestPinShortcut() 280 verify(mServiceContext).startActivityAsUser(intent.capture(), eq(HANDLE_USER_0)); in checkRequestPinShortcut() [all …]
|
D | ShortcutManagerTest9.java | 101 verify(mServiceContext, times(0)).sendIntentSender(any(IntentSender.class)); in testNotForeground() 102 verify(mServiceContext, times(0)).startActivityAsUser( in testNotForeground() 117 verify(mServiceContext, times(0)).sendIntentSender(any(IntentSender.class)); in checkRequestPinAppWidget() 124 verify(mServiceContext).startActivityAsUser(intent.capture(), eq(HANDLE_USER_0)); in checkRequestPinAppWidget() 138 verify(mServiceContext, times(1)).sendIntentSender(eq(null)); in checkRequestPinAppWidget() 140 verify(mServiceContext, times(1)).sendIntentSender(any(IntentSender.class)); in checkRequestPinAppWidget()
|
D | ShortcutManagerTest10.java | 157 doReturn(getTestContext().getPackageName()).when(mServiceContext).getPackageName(); in setupMockActivityInfo() 158 doReturn(getTestContext().getContentResolver()).when(mServiceContext).getContentResolver(); in setupMockActivityInfo()
|
D | ShortcutManagerTest6.java | 255 mService.mPackageMonitor.onReceive(mServiceContext, in testHasShortcutHostPermissionInner_clearCache() 270 mService.mPackageMonitor.onReceive(mServiceContext, in testHasShortcutHostPermissionInner_clearCache()
|
D | BaseShortcutManagerTest.java | 578 protected ServiceContext mServiceContext; field in BaseShortcutManagerTest 751 mServiceContext = spy(new ServiceContext()); in setUp() 995 mService = new ShortcutServiceTestable(mServiceContext, mLooper); in initService() 1000 mLauncherAppImpl = new LauncherAppImplTestable(mServiceContext); in initService() 1029 final long token = mServiceContext.injectClearCallingIdentity(); in runOnHandler() 1033 mServiceContext.injectRestoreCallingIdentity(token); in runOnHandler()
|
D | ShortcutManagerTest1.java | 5581 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_manifestRePublished() 5600 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_manifestRePublished() 5633 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_manifestRePublished() 5635 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_manifestRePublished() 5674 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_appAlreadyInstalledWhenRestored() 5693 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_appAlreadyInstalledWhenRestored() 5701 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_appAlreadyInstalledWhenRestored() 5799 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_disabledShortcutsAreIgnored() 5826 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_disabledShortcutsAreIgnored() 5828 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_disabledShortcutsAreIgnored() [all …]
|
D | ShortcutManagerTest2.java | 1564 mService.mReceiver.onReceive(mServiceContext, new Intent(Intent.ACTION_LOCALE_CHANGED)); 1596 mService.mReceiver.onReceive(mServiceContext, new Intent(Intent.ACTION_LOCALE_CHANGED)); 1606 mService.mReceiver.onReceive(mServiceContext, new Intent(Intent.ACTION_LOCALE_CHANGED));
|
/frameworks/base/packages/Tethering/tests/unit/src/android/net/util/ |
D | VersionedBroadcastListenerTest.java | 49 private BroadcastInterceptingContext mServiceContext; field in VersionedBroadcastListenerTest 74 mServiceContext = new MockContext(mContext); in setUp() 80 TAG, mServiceContext, mHandler, filter, (Intent intent) -> doCallback()); in setUp() 92 mServiceContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL); in sendBroadcast()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/emergency/ |
D | EmergencyAffordanceServiceTest.java | 82 private TestContext mServiceContext; field in EmergencyAffordanceServiceTest 124 mServiceContext = new TestContext(context); in setUp() 125 mContentResolver = new MockContentResolver(mServiceContext); in setUp() 130 mService = new EmergencyAffordanceService(mServiceContext); in setUp() 408 mServiceContext.sendBroadcastAsUser(intent, UserHandle.ALL); in sendBroadcastNetworkCountryChanged() 444 mServiceContext.sendBroadcastAsUser(intent, UserHandle.ALL); in setAirplaneMode()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityStartInterceptor.java | 73 private final Context mServiceContext; field in ActivityStartInterceptor 114 mServiceContext = context; in ActivityStartInterceptor() 148 mUserManager = UserManager.get(mServiceContext); in intercept() 301 final KeyguardManager km = (KeyguardManager) mServiceContext in interceptWithConfirmCredentialsIfNeeded() 330 mIntent = HarmfulAppWarningActivity.createHarmfulAppWarningIntent(mServiceContext, in interceptHarmfulAppIfNeeded()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/ |
D | WatchlistLoggingHandlerTests.java | 75 private Context mServiceContext; field in WatchlistLoggingHandlerTests 86 mServiceContext = new ContextWrapper(context) { in setUp() 168 List<String> result = new WatchlistLoggingHandler(mServiceContext, in testWatchlistLoggingHandler_getAllDigestsForReportWithMultiUsers()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 218 private BroadcastInterceptingContext mServiceContext; field in NetworkPolicyManagerServiceTest 324 mServiceContext = new BroadcastInterceptingContext(context) { in callSystemReady() 373 mService = new NetworkPolicyManagerService(mServiceContext, mActivityManager, in callSystemReady() 1000 mServiceContext.sendBroadcast(new Intent(CONNECTIVITY_ACTION)); 1052 mServiceContext.getOpPackageName()); 1176 mServiceContext.getOpPackageName()); 1409 mServiceContext.sendBroadcast( 1424 mServiceContext.sendBroadcast( 1443 mServiceContext.sendBroadcast( 1465 mServiceContext.sendBroadcast( [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 145 private DpmMockContext mServiceContext; field in DevicePolicyManagerTest 183 mServiceContext = mContext; in setUp() 184 mServiceContext.binder.callingUid = DpmMockContext.CALLER_UID; in setUp() 270 final long ident = mServiceContext.binder.clearCallingIdentity(); in setAsProfileOwner() 272 mServiceContext.binder.callingUid = in setAsProfileOwner() 274 runAsCaller(mServiceContext, dpms, dpm -> { in setAsProfileOwner() 283 mServiceContext.binder.restoreCallingIdentity(ident); in setAsProfileOwner() 1219 mServiceContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in testSetProfileOwner() 1220 runAsCaller(mServiceContext, dpms, dpm -> { in testSetProfileOwner() 4715 mServiceContext.packageName = mRealTestContext.getPackageName(); in testGetOwnerInstalledCaCertsForDeviceOwner() [all …]
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 327 private MockContext mServiceContext; field in ConnectivityServiceTest 612 super(transport, linkProperties, mServiceContext); in TestNetworkAgentWrapper() 1033 super(startHandlerThreadAndReturnLooper(), mServiceContext, mNetworkManagementService, in MockVpn() local 1219 mServiceContext = new MockContext(InstrumentationRegistry.getContext(), in setUp() 1231 mService = new ConnectivityService(mServiceContext, in setUp() 1407 mServiceContext.unregisterReceiver(this); in registerConnectivityBroadcastThat() 1411 mServiceContext.registerReceiver(receiver, intentFilter); in registerConnectivityBroadcastThat() 1456 mServiceContext.clearRegisteredReceivers(); in testNetworkFeature() 1899 mServiceContext.setPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, in networkCallbacksSanitizationTest_Sanitize() 1901 mServiceContext.setPermission(Manifest.permission.NETWORK_SETTINGS, in networkCallbacksSanitizationTest_Sanitize() [all …]
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 165 private BroadcastInterceptingContext mServiceContext; field in NetworkStatsServiceTest 195 mServiceContext = new BroadcastInterceptingContext(context); in setUp() 201 PowerManager powerManager = (PowerManager) mServiceContext.getSystemService( in setUp() 208 mService = new NetworkStatsService(mServiceContext, mNetManager, mAlarmManager, wakeLock, in setUp() 268 mServiceContext = null; 369 mServiceContext.sendBroadcast(new Intent(Intent.ACTION_SHUTDOWN)); 555 mServiceContext.sendBroadcast(intent); 557 mServiceContext.sendBroadcast(intent); 1061 mService.registerUsageCallback(mServiceContext.getOpPackageName(), inputRequest, 1518 mServiceContext.sendBroadcast(new Intent(ACTION_NETWORK_STATS_POLL));
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringTest.java | 222 private BroadcastInterceptingContext mServiceContext; field in TetheringTest 423 return mServiceContext; in getContext() 528 mServiceContext = new TestContext(mContext); in setUp() 529 mContentResolver = new MockContentResolver(mServiceContext); in setUp() 539 mServiceContext.registerReceiver(mBroadcastReceiver, in setUp() 600 mServiceContext.unregisterReceiver(mBroadcastReceiver); in tearDown() 606 mServiceContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL); in sendWifiApStateChanged() 614 mServiceContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL); in sendWifiApStateChanged() 639 mServiceContext.sendBroadcastAsUserMultiplePermissions(intent, UserHandle.ALL, in sendWifiP2pConnectionChanged() 653 mServiceContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL); in sendUsbBroadcast() [all …]
|