Home
last modified time | relevance | path

Searched refs:mServiceContext (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest8.java182 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 …]
DShortcutManagerTest9.java101 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()
DShortcutManagerTest10.java157 doReturn(getTestContext().getPackageName()).when(mServiceContext).getPackageName(); in setupMockActivityInfo()
158 doReturn(getTestContext().getContentResolver()).when(mServiceContext).getContentResolver(); in setupMockActivityInfo()
DShortcutManagerTest6.java255 mService.mPackageMonitor.onReceive(mServiceContext, in testHasShortcutHostPermissionInner_clearCache()
270 mService.mPackageMonitor.onReceive(mServiceContext, in testHasShortcutHostPermissionInner_clearCache()
DBaseShortcutManagerTest.java578 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()
DShortcutManagerTest1.java5581 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 …]
DShortcutManagerTest2.java1564 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/tests/net/java/android/net/util/
DVersionedBroadcastListenerTest.java49 private BroadcastInterceptingContext mServiceContext; field in VersionedBroadcastListenerTest
72 mServiceContext = new MockContext(mContext); in setUp()
78 TAG, mServiceContext, mHandler, filter, (Intent intent) -> doCallback()); in setUp()
90 mServiceContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL); in sendBroadcast()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStartInterceptor.java73 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/
DWatchlistLoggingHandlerTests.java75 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/
DNetworkPolicyManagerServiceTest.java217 private BroadcastInterceptingContext mServiceContext; field in NetworkPolicyManagerServiceTest
323 mServiceContext = new BroadcastInterceptingContext(context) { in callSystemReady()
372 mService = new NetworkPolicyManagerService(mServiceContext, mActivityManager, in callSystemReady()
999 mServiceContext.sendBroadcast(new Intent(CONNECTIVITY_ACTION));
1051 mServiceContext.getOpPackageName());
1175 mServiceContext.getOpPackageName());
1404 mServiceContext.sendBroadcast(
1419 mServiceContext.sendBroadcast(
1438 mServiceContext.sendBroadcast(
1460 mServiceContext.sendBroadcast(
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DTetheringTest.java170 private BroadcastInterceptingContext mServiceContext; field in TetheringTest
359 mServiceContext = new MockContext(mContext); in setUp()
360 mContentResolver = new MockContentResolver(mServiceContext); in setUp()
370 mServiceContext.registerReceiver(mBroadcastReceiver, in setUp()
378 return new Tethering(mServiceContext, mNMService, mStatsService, mPolicyManager, in makeTethering()
385 mServiceContext.unregisterReceiver(mBroadcastReceiver); in tearDown()
391 mServiceContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL); in sendWifiApStateChanged()
399 mServiceContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL); in sendWifiApStateChanged()
407 mServiceContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL); in sendUsbBroadcast()
412 mServiceContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL); in sendConfigurationChanged()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java145 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()
1192 mServiceContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in testSetProfileOwner()
1193 runAsCaller(mServiceContext, dpms, dpm -> { in testSetProfileOwner()
4688 mServiceContext.packageName = mRealTestContext.getPackageName(); in testGetOwnerInstalledCaCertsForDeviceOwner()
[all …]
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java166 private BroadcastInterceptingContext mServiceContext; field in NetworkStatsServiceTest
192 mServiceContext = new BroadcastInterceptingContext(context); in setUp()
198 PowerManager powerManager = (PowerManager) mServiceContext.getSystemService( in setUp()
204 mServiceContext, mNetManager, mAlarmManager, wakeLock, mClock, in setUp()
235 mServiceContext = null; in tearDown()
336 mServiceContext.sendBroadcast(new Intent(Intent.ACTION_SHUTDOWN)); in testStatsRebootPersist()
527 mServiceContext.sendBroadcast(intent); in testUidRemovedIsMoved()
529 mServiceContext.sendBroadcast(intent); in testUidRemovedIsMoved()
1064 mService.registerUsageCallback(mServiceContext.getOpPackageName(), inputRequest, in testRegisterUsageCallback()
1410 mServiceContext.sendBroadcast(new Intent(ACTION_NETWORK_STATS_POLL)); in forcePollAndWaitForIdle()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java269 private MockContext mServiceContext; field in ConnectivityServiceTest
574 mNetworkAgent = new NetworkAgent(mHandlerThread.getLooper(), mServiceContext, in MockNetworkAgent()
999 super(startHandlerThreadAndReturnLooper(), mServiceContext, mNetworkManagementService, in MockVpn() local
1296 mServiceContext = new MockContext(InstrumentationRegistry.getContext(), in setUp()
1302 mService = new WrappedConnectivityService(mServiceContext, in setUp()
1424 mServiceContext.registerReceiver(new BroadcastReceiver() { in waitForConnectivityBroadcasts()
1429 mServiceContext.unregisterReceiver(this); in waitForConnectivityBroadcasts()
2478 mServiceContext, "testFactory", filter); in tryNetworkFactoryRequests()
2908 mServiceContext.expectNoStartActivityIntent(fastTimeoutMs); in testCaptivePortalApp()
2927 final Intent signInIntent = mServiceContext.expectStartActivityIntent(TIMEOUT_MS); in testCaptivePortalApp()
[all …]