Home
last modified time | relevance | path

Searched refs:getSystemService (Results 1 – 25 of 1693) sorted by relevance

12345678910>>...68

/cts/tests/tests/telecom/src/android/telecom/cts/carmodetestapp/
DCtsCarModeInCallServiceControl.java58 UiModeManager uiModeManager = getSystemService(UiModeManager.class);
80 UiModeManager uiModeManager = getSystemService(UiModeManager.class);
86 UiModeManager uiModeManager = getSystemService(UiModeManager.class);
92 UiModeManager uiModeManager = getSystemService(UiModeManager.class);
98 UiModeManager uiModeManager = getSystemService(UiModeManager.class);
109 TelecomManager telecomManager = getSystemService(TelecomManager.class);
116 TelecomManager telecomManager = getSystemService(TelecomManager.class);
123 TelecomManager telecomManager = getSystemService(TelecomManager.class);
131 TelecomManager telecomManager = getSystemService(TelecomManager.class);
/cts/tests/tests/vcn/src/android/net/vcn/cts/
DVcnSystemRequirementsTest.java43 private final VcnManager mVcnManager = mContext.getSystemService(VcnManager.class);
48 context.getSystemService(CarrierConfigManager.class)); in assertNotNullVcnDependencies()
51 context.getSystemService(SubscriptionManager.class)); in assertNotNullVcnDependencies()
54 context.getSystemService(ConnectivityManager.class)); in assertNotNullVcnDependencies()
57 context.getSystemService(TelephonyManager.class)); in assertNotNullVcnDependencies()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/
DPhoneAccountUtils.java90 TelecomManager telecomManager = (TelecomManager) context.getSystemService( in registerTestPhoneAccount()
101 TelecomManager telecomManager = (TelecomManager) context.getSystemService( in getPhoneAccount()
113 TelecomManager telecomManager = context.getSystemService(TelecomManager.class); in getSpecificPhoneAccount()
123 TelecomManager telecomManager = (TelecomManager) context.getSystemService( in unRegisterTestPhoneAccount()
133 TelecomManager telecomManager = (TelecomManager) context.getSystemService( in registerTestSelfManagedPhoneAccount()
144 TelecomManager telecomManager = (TelecomManager) context.getSystemService( in unRegisterTestSelfManagedPhoneAccount()
156 TelecomManager telecomManager = (TelecomManager) context.getSystemService( in getSelfManagedPhoneAccount()
167 TelecomManager telecomManager = (TelecomManager) context.getSystemService( in getDefaultOutgoingPhoneAccount()
178 TelecomManager telecomManager = (TelecomManager) context.getSystemService( in getSelfManagedPhoneAccount2()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCrossProfileUtils.java66 final DevicePolicyManager dpm = (DevicePolicyManager) getContext().getSystemService( in testAddParentCanAccessManagedFilters()
75 final DevicePolicyManager dpm = (DevicePolicyManager) getContext().getSystemService( in testAddManagedCanAccessParentFilters()
93 final DevicePolicyManager dpm = (DevicePolicyManager) getContext().getSystemService( in testRemoveAllFilters()
100 getContext().getSystemService(Context.DEVICE_POLICY_SERVICE); in testDisallowCrossProfileCopyPaste()
107 getContext().getSystemService(Context.DEVICE_POLICY_SERVICE); in testAllowCrossProfileCopyPaste()
116 getContext().getSystemService(Context.DEVICE_POLICY_SERVICE); in testDisableAllBrowsers()
127 final DevicePolicyManager dpm = (DevicePolicyManager) getContext().getSystemService( in testSetCrossProfilePackages()
DLauncherAppsTest.java78 ShortcutManager shortcutManager = mContext.getSystemService(ShortcutManager.class); in addDynamicShortcuts()
85 ShortcutManager shortcutManager = mContext.getSystemService(ShortcutManager.class); in removeAllDynamicShortcuts()
98 LauncherApps launcherApps = contextAsUser.getSystemService(LauncherApps.class); in shortcutIconDrawable_currentToOtherProfile_withUsersFullPermission_isNotNull()
114 LauncherApps launcherApps = contextAsUser.getSystemService(LauncherApps.class); in shortcutIconDrawable_currentToOtherProfile_withoutUsersFullPermission_isNull()
130 return contextAsUser.getSystemService(LauncherApps.class) in getShortcuts()
/cts/tests/tests/os/src/android/os/health/cts/
DSystemHealthManagerTest.java41 final SystemHealthManager healthy = context.getSystemService(SystemHealthManager.class); in testTakeMyUidSnapshot()
65 final SystemHealthManager healthy = context.getSystemService(SystemHealthManager.class); in testTakeUidSnapshotWithMe()
76 final SystemHealthManager healthy = context.getSystemService(SystemHealthManager.class); in testTakeMyUidSnapshotWithSystem()
94 final SystemHealthManager healthy = context.getSystemService(SystemHealthManager.class); in testTakeUidSnapshotsWithEmptyArray()
106 final SystemHealthManager healthy = context.getSystemService(SystemHealthManager.class); in testTakeUidSnapshotsWithMe()
123 final SystemHealthManager healthy = context.getSystemService(SystemHealthManager.class); in testTakeMyUidSnapshotsWithSystem()
/cts/hostsidetests/accounts/test-apps/AccountManagerCrossUserApp/src/com/android/cts/accountmanager/
DAccountManagerCrossUserTest.java96 profileHandle, 0).getSystemService(Context.ACCOUNT_SERVICE); in testAccountManager_addMockAccount()
114 AccountManager accountManager = mContext.getSystemService(AccountManager.class); in testAccountManager_addMockAccountForCurrentUser()
135 profileHandle, 0).getSystemService(Context.ACCOUNT_SERVICE); in testAccountManager_getAccountsForTestUser()
151 AccountManager accountManager = (AccountManager) mContext.getSystemService( in testAccountManager_addAccountExplicitlyForCurrentUser()
160 AccountManager accountManager = (AccountManager) mContext.getSystemService( in testRemoveAccountExplicitly()
170 AccountManager accountManager = (AccountManager) mContext.getSystemService( in testAccountManager_getAccountsForCurrentUser()
189 profileHandle, 0).getSystemService(Context.ACCOUNT_SERVICE); in testAccountManager_failCreateContextAsUserRevokePermissions()
204 profileHandle, 0).getSystemService(Context.ACCOUNT_SERVICE); in testAccountManager_createContextAsUserForCurrentUserRevokePermissions()
211 AccountManager accountManager = mContext.getSystemService(AccountManager.class); in testAccountManager_getAuthTokenForCurrentUser()
/cts/tests/BlobStore/helper-app/src/com/android/cts/blob/helper/
DBlobStoreTestService.java59 final BlobStoreManager blobStoreManager = getSystemService( in commit()
81 final BlobStoreManager blobStoreManager = getSystemService( in openBlob()
92 final BlobStoreManager blobStoreManager = getSystemService( in openSession()
105 final BlobStoreManager blobStoreManager = getSystemService( in acquireLease()
117 final BlobStoreManager blobStoreManager = getSystemService( in releaseLease()
129 final StorageStatsManager storageStatsManager = getSystemService( in queryStatsForPackage()
141 final StorageStatsManager storageStatsManager = getSystemService( in queryStatsForUid()
/cts/hostsidetests/media/app/MediaMetricsTest/src/android/media/metrics/cts/
DMediaMetricsAtomHostSideTests.java96 MediaMetricsManager manager = context.getSystemService(MediaMetricsManager.class); in testPlaybackStateEvent_default()
109 MediaMetricsManager manager = context.getSystemService(MediaMetricsManager.class); in testPlaybackStateEvent()
125 MediaMetricsManager manager = context.getSystemService(MediaMetricsManager.class); in testPlaybackErrorEvent_default()
139 MediaMetricsManager manager = context.getSystemService(MediaMetricsManager.class); in testPlaybackErrorEvent()
157 MediaMetricsManager manager = context.getSystemService(MediaMetricsManager.class); in testTrackChangeEvent_default()
169 MediaMetricsManager manager = context.getSystemService(MediaMetricsManager.class); in testTrackChangeEvent_text()
191 MediaMetricsManager manager = context.getSystemService(MediaMetricsManager.class); in testTrackChangeEvent_audio()
215 MediaMetricsManager manager = context.getSystemService(MediaMetricsManager.class); in testTrackChangeEvent_video()
241 MediaMetricsManager manager = context.getSystemService(MediaMetricsManager.class); in testNetworkEvent_default()
253 MediaMetricsManager manager = context.getSystemService(MediaMetricsManager.class); in testNetworkEvent()
[all …]
/cts/tests/tests/wifi/src/android/net/wifi/nl80211/cts/
DWifiNl80211ManagerTest.java153 WifiNl80211Manager manager = mContext.getSystemService(WifiNl80211Manager.class); in testSendMgmtFrame()
168 WifiNl80211Manager manager = mContext.getSystemService(WifiNl80211Manager.class); in testGetTxPacketCounters()
177 WifiNl80211Manager manager = mContext.getSystemService(WifiNl80211Manager.class); in testGetMaxSsidsPerScan()
186 WifiNl80211Manager manager = mContext.getSystemService(WifiNl80211Manager.class); in testStartScan2()
195 WifiNl80211Manager manager = mContext.getSystemService(WifiNl80211Manager.class); in testSetOnServiceDeadCallback()
206 WifiManager wifiManager = mContext.getSystemService(WifiManager.class); in testCountryCodeChangeListener()
209 WifiNl80211Manager manager = mContext.getSystemService(WifiNl80211Manager.class); in testCountryCodeChangeListener()
222 WifiNl80211Manager manager = mContext.getSystemService(WifiNl80211Manager.class); in testNotifyCountryCodeChanged()
244 WifiNl80211Manager manager = mContext.getSystemService(WifiNl80211Manager.class); in testScanEventCallback()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DPowerManagerTests.java32 PowerManager powerManager = context.getSystemService(PowerManager.class); in testGetCurrentThermalStatus()
40 PowerManager powerManager = context.getSystemService(PowerManager.class); in testGetThermalHeadroom()
48 PowerManager powerManager = context.getSystemService(PowerManager.class); in testGetThermalHeadroomThresholds()
/cts/tests/tests/activityrecognition/src/android/activityrecognition/cts/
DActivityRecognizerAttributionTags.kt46 val roleManager = context.getSystemService(RoleManager::class.java)!! in makeSelfActivityRecognizer()
61 val roleManager = context.getSystemService(RoleManager::class.java)!! in restoreActivityRecognizers()
69 val appOpsManager = context.getSystemService(AppOpsManager::class.java)!! in setUpTest()
77 val roleManager = context.getSystemService(RoleManager::class.java)!! in addActivityRecognizer()
104 val appOpsManager = context.getSystemService(AppOpsManager::class.java) in accessActivityRecognition()
114 val appOpsManager: AppOpsManager = context.getSystemService(AppOpsManager::class.java)!! in assertNotedOpsSinceLastArAccess()
/cts/tests/tests/telephony2/src/android/telephony2/cts/
DNoLocationPermissionTest.java56 TelephonyManager telephonyManager = mContext.getSystemService(TelephonyManager.class); in testGetCellLocation()
73 TelephonyManager telephonyManager = mContext.getSystemService(TelephonyManager.class); in testGetAllCellInfo()
90 TelephonyManager telephonyManager = mContext.getSystemService(TelephonyManager.class); in testListenCellLocation()
108 TelephonyManager telephonyManager = mContext.getSystemService(TelephonyManager.class); in testRequestCellInfoUpdate()
/cts/apps/NotificationBot/src/com/android/cts/robot/
DNotificationBot.java74 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in onReceive()
86 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in onReceive()
105 final NotificationManager nm = context.getSystemService(NotificationManager.class); in testShortcutResetSetupNotification()
108 final ShortcutManager sm = context.getSystemService(ShortcutManager.class); in testShortcutResetSetupNotification()
139 context.getSystemService(NotificationManager.class); in testShortcutResetSetupNotification()
161 final NotificationManager nm = context.getSystemService(NotificationManager.class); in testShortcutResetInlineReplyReceived()
168 final ShortcutManager sm = context.getSystemService(ShortcutManager.class); in testShortcutResetInlineReplyReceived()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DUiDeviceUtils.java60 final KeyguardManager keyguardManager = context.getSystemService(KeyguardManager.class); in wakeUpAndUnlock()
61 final PowerManager powerManager = context.getSystemService(PowerManager.class); in wakeUpAndUnlock()
62 final DreamManager dreamManager = context.getSystemService(DreamManager.class); in wakeUpAndUnlock()
112 .getContext().getSystemService(PowerManager.class); in pressSleepButton()
120 .getContext().getSystemService(PowerManager.class); in pressWakeupButton()
128 .getContext().getSystemService(KeyguardManager.class); in pressUnlockButton()
/cts/tests/tests/carrierapi/targetprep/device/src/android/carrierapi/cts/targetprep/
DCsimRemover.java78 getContext().getSystemService(TelephonyManager.class).hasCarrierPrivileges()); in ensurePreconditionsMet()
94 PollingCheck.waitFor(5000, () -> getContext().getSystemService(TelephonyManager.class) in removeCsim()
98 .that(getContext().getSystemService(TelephonyManager.class).hasCarrierPrivileges()) in removeCsim()
108 .getSystemService(TelephonyManager.class) in isCsimPresent()
/cts/tests/tests/shortcutmanager/throttling/src/android/content/pm/cts/shortcutmanager/throttling/
DThrottledTests.java37 final ShortcutManager manager = context.getSystemService(ShortcutManager.class); in assertThrottled()
59 final ShortcutManager manager = context.getSystemService(ShortcutManager.class); in ensureThrottled()
65 final ShortcutManager manager = context.getSystemService(ShortcutManager.class); in assertCallNotThrottled()
/cts/hostsidetests/devicepolicy/app/StartInfoApp/src/com/android/cts/startinfoapp/
DApiTestActivity.java126 ActivityManager am = getSystemService(ActivityManager.class); in queryStart()
145 ActivityManager am = getSystemService(ActivityManager.class); in addTimestamp()
161 ActivityManager am = getSystemService(ActivityManager.class); in addOneListener()
181 ActivityManager am = getSystemService(ActivityManager.class); in addMultipleListeners()
213 ActivityManager am = getSystemService(ActivityManager.class); in addAndRemoveListener()
/cts/tests/tests/telecom/src/android/telecom/cts/
DBackgroundCallAudioTest.java54 mRoleManager = (RoleManager) mContext.getSystemService(Context.ROLE_SERVICE); in setUp()
61 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in setUp()
96 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessingFromCallScreeningAllow()
122 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testHoldAfterAudioProcessingFromCallScreening()
153 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessingFromCallScreeningDisallow()
181 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessingFromCallScreeningMissed()
207 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessingFromCallScreeningRemoteHangupDuringRing()
246 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessingFromCallScreeningAllowPlaceEmergencyCall()
291 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessingFromIncomingActivePlaceEmergencyCall()
327 AudioManager audioManager = mContext.getSystemService(AudioManager.class); in testAudioProcessActiveCall()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/cts/util/
DDefaultSmsAppHelper.java54 RoleManager roleManager = context.getSystemService(RoleManager.class); in ensureDefaultSmsApp()
88 RoleManager roleManager = context.getSystemService(RoleManager.class); in stopBeingDefaultSmsApp()
121 RoleManager roleManager = context.getSystemService(RoleManager.class); in getDefaultSmsApp()
142 RoleManager roleManager = context.getSystemService(RoleManager.class); in setDefaultSmsApp()
179 ApplicationProvider.getApplicationContext().getSystemService( in hasSms()
/cts/tests/tests/content/src/android/content/om/cts/
DOverlayManagerTest.java132 final Object overlayManager = mContext.getSystemService(OverlayManager.class); in getOverlayManagerFromContext_shouldSucceed()
142 final Object overlayManager = context.getSystemService(OVERLAY_SERVICE); in getOverlayManager_ByServiceName_shouldSucceed()
151 final OverlayManager overlayManager = context.getSystemService(OverlayManager.class); in getOverlayInfosForTarget_byDefault_returnEmptyList()
164 final OverlayManager overlayManager = context.getSystemService(OverlayManager.class); in getOverlayInfosForTarget_registerMultipleOverlays_shouldReturnRegisteredOverlays()
200 final OverlayManager overlayManager = mContext.getSystemService(OverlayManager.class); in commit_selfTargetOverlay_isSelfTargetingTransaction_shouldSucceed()
214 final OverlayManager overlayManager = mContext.getSystemService(OverlayManager.class); in commit_notSelfTargetOverlay_isSelfTargetingTransaction_shouldSucceed()
228 final OverlayManager overlayManager = mContext.getSystemService(OverlayManager.class); in commit_selfTargetOverlay_notSelfTargetingTransaction_shouldSucceed()
242 final OverlayManager overlayManager = mContext.getSystemService(OverlayManager.class); in commit_notSelfTargetOverlay_notSelfTargetingTransaction_shouldSucceed()
/cts/tests/framework/base/locale/TestApp/src/android/localemanager/cts/app/
DMainActivity.java72 LocaleManager localeManager = getSystemService(LocaleManager.class); in onCreate()
85 LocaleManager localeManager = getSystemService(LocaleManager.class); in onCreate()
95 LocaleManager localeManager = getSystemService(LocaleManager.class); in onCreate()
111 LocaleManager localeManager = getSystemService(LocaleManager.class); in onCreate()
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/
DNotificationUtils.java86 context.getSystemService(NotificationManager.class); in updateNotificationToOngoing()
97 NotificationManager notificationManager = c.getSystemService(NotificationManager.class); in clearNotification()
104 NotificationManager notificationManager = c.getSystemService(NotificationManager.class); in deleteNotificationChannel()
116 NotificationManager notificationManager = c.getSystemService(NotificationManager.class); in isTargetNotificationPosted()
/cts/tests/location/location_privileged/src/android/location/cts/privileged/
DSmsNiSuplTest.java58 mLocationManager = mContext.getSystemService(LocationManager.class); in setUp()
59 mTelephonyManager = mContext.getSystemService(TelephonyManager.class); in setUp()
60 mSmsManager = mContext.getSystemService(SmsManager.class); in setUp()
/cts/tests/tests/batterysaving/src/android/os/cts/powerexemption/
DPowerExemptionTest.java39 assertNotNull(context.getSystemService(PowerExemptionManager.class)); in testPowerExemptionManager_WithClass()
45 assertNotNull(context.getSystemService(Context.POWER_EXEMPTION_SERVICE)); in testPowerExemptionManager_WithContextString()

12345678910>>...68