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.java592 protected ServiceContext mServiceContext; field in BaseShortcutManagerTest
770 mServiceContext = spy(new ServiceContext()); in setUp()
1019 mService = new ShortcutServiceTestable(mServiceContext, mLooper); in initService()
1024 mLauncherAppImpl = new LauncherAppImplTestable(mServiceContext); in initService()
1053 final long token = mServiceContext.injectClearCallingIdentity(); in runOnHandler()
1057 mServiceContext.injectRestoreCallingIdentity(token); in runOnHandler()
DShortcutManagerTest1.java6063 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_manifestRePublished()
6082 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_manifestRePublished()
6115 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_manifestRePublished()
6117 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_manifestRePublished()
6156 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_appAlreadyInstalledWhenRestored()
6175 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_appAlreadyInstalledWhenRestored()
6183 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_appAlreadyInstalledWhenRestored()
6281 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_disabledShortcutsAreIgnored()
6308 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_disabledShortcutsAreIgnored()
6310 mService.mPackageMonitor.onReceive(mServiceContext, in testBackupAndRestore_disabledShortcutsAreIgnored()
[all …]
DShortcutManagerTest2.java1746 mService.mReceiver.onReceive(mServiceContext, new Intent(Intent.ACTION_LOCALE_CHANGED));
1778 mService.mReceiver.onReceive(mServiceContext, new Intent(Intent.ACTION_LOCALE_CHANGED));
1788 mService.mReceiver.onReceive(mServiceContext, new Intent(Intent.ACTION_LOCALE_CHANGED));
/frameworks/base/packages/Tethering/tests/unit/src/android/net/util/
DVersionedBroadcastListenerTest.java49 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/
DEmergencyAffordanceServiceTest.java82 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/
DActivityStartInterceptor.java75 private final Context mServiceContext; field in ActivityStartInterceptor
117 mServiceContext = context; in ActivityStartInterceptor()
152 mUserManager = UserManager.get(mServiceContext); in intercept()
337 final KeyguardManager km = (KeyguardManager) mServiceContext in interceptWithConfirmCredentialsIfNeeded()
367 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.java223 private BroadcastInterceptingContext mServiceContext; field in NetworkPolicyManagerServiceTest
330 mServiceContext = new BroadcastInterceptingContext(context) { in callSystemReady()
379 mService = new NetworkPolicyManagerService(mServiceContext, mActivityManager, in callSystemReady()
1078 mServiceContext.sendBroadcast(new Intent(CONNECTIVITY_ACTION));
1130 mServiceContext.getOpPackageName());
1254 mServiceContext.getOpPackageName());
1486 mServiceContext.sendBroadcast(
1501 mServiceContext.sendBroadcast(
1520 mServiceContext.sendBroadcast(
1542 mServiceContext.sendBroadcast(
[all …]
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java327 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/
DNetworkStatsServiceTest.java161 private BroadcastInterceptingContext mServiceContext; field in NetworkStatsServiceTest
189 mServiceContext = new BroadcastInterceptingContext(context); in setUp()
195 PowerManager powerManager = (PowerManager) mServiceContext.getSystemService( in setUp()
202 mService = new NetworkStatsService(mServiceContext, mNetManager, mAlarmManager, wakeLock, in setUp()
248 mServiceContext = null;
349 mServiceContext.sendBroadcast(new Intent(Intent.ACTION_SHUTDOWN));
535 mServiceContext.sendBroadcast(intent);
537 mServiceContext.sendBroadcast(intent);
1041 mService.registerUsageCallback(mServiceContext.getOpPackageName(), inputRequest,
1405 mServiceContext.sendBroadcast(new Intent(ACTION_NETWORK_STATS_POLL));
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java222 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 …]