Home
last modified time | relevance | path

Searched refs:instrumentedContext (Results 1 – 25 of 195) sorted by relevance

12345678

/cts/common/device-side/bedstead/modules/permissions/src/test/kotlin/com/android/bedstead/permissions/
DPermissionsAnnotationExecutorTest.kt50 assertThat(context().instrumentedContext().checkSelfPermission(TEST_PERMISSION_1)) in <lambda>()
57 assertThat(context().instrumentedContext().checkSelfPermission(TEST_PERMISSION_1)) in <lambda>()
59 assertThat(context().instrumentedContext().checkSelfPermission(TEST_PERMISSION_2)) in <lambda>()
66 assertThat(context().instrumentedContext().checkSelfPermission(TEST_PERMISSION_1)) in <lambda>()
73 assertThat(context().instrumentedContext().checkSelfPermission(TEST_PERMISSION_1)) in <lambda>()
75 assertThat(context().instrumentedContext().checkSelfPermission(TEST_PERMISSION_2)) in <lambda>()
87 assertThat(context().instrumentedContext().checkSelfPermission(TEST_PERMISSION_1)) in <lambda>()
89 assertThat(context().instrumentedContext().checkSelfPermission(TEST_PERMISSION_2)) in <lambda>()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DBlockingPendingIntent.java48 mPendingIntent = PendingIntent.getBroadcast(TestApis.context().instrumentedContext(), 0, in register()
51 TestApis.context().instrumentedContext()); in register()
52 TestApis.context().instrumentedContext().registerReceiver(mBlockingBroadcastReceiver, in register()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/settings/
DSecureSettingsTest.kt129 TestApis.context().instrumentedContext().contentResolver, KEY, INT_VALUE) in <lambda>()
132 TestApis.context().instrumentedContext().contentResolver, KEY)).isEqualTo(INT_VALUE) in <lambda>()
140 TestApis.context().instrumentedContext().contentResolver, KEY) in <lambda>()
149 TestApis.context().instrumentedContext().contentResolver, INVALID_KEY) in <lambda>()
157 TestApis.context().instrumentedContext().contentResolver, INVALID_KEY, INT_VALUE)) in <lambda>()
278 TestApis.context().instrumentedContext().contentResolver, KEY, STRING_VALUE) in <lambda>()
280 TestApis.context().instrumentedContext().contentResolver, KEY)) in <lambda>()
289 TestApis.context().instrumentedContext().contentResolver, KEY) in <lambda>()
297 TestApis.context().instrumentedContext().contentResolver, INVALID_KEY)).isNull() in <lambda>()
304 TestApis.context().instrumentedContext().contentResolver, in <lambda>()
[all …]
DGlobalSettingsTest.kt125 TestApis.context().instrumentedContext().contentResolver, KEY, INT_VALUE) in <lambda>()
127 TestApis.context().instrumentedContext().contentResolver, KEY)).isEqualTo(INT_VALUE) in <lambda>()
135 TestApis.context().instrumentedContext().contentResolver, INVALID_KEY) in <lambda>()
143 TestApis.context().instrumentedContext().contentResolver, in <lambda>()
257 TestApis.context().instrumentedContext().contentResolver, KEY, STRING_VALUE) in <lambda>()
260 TestApis.context().instrumentedContext().contentResolver, KEY)) in <lambda>()
305 val contentResolver = TestApis.context().instrumentedContext().contentResolver in <lambda>()
323 val contentResolver = TestApis.context().instrumentedContext().contentResolver in <lambda>()
377 private val context = TestApis.context().instrumentedContext() in <lambda>()
DSystemSettingsTest.kt122 TestApis.context().instrumentedContext().contentResolver, KEY, INT_VALUE) in <lambda>()
124 TestApis.context().instrumentedContext().contentResolver, KEY)) in <lambda>()
133 TestApis.context().instrumentedContext().contentResolver, INVALID_KEY) in <lambda>()
141 TestApis.context().instrumentedContext().contentResolver, INVALID_KEY, INT_VALUE)) in <lambda>()
254 TestApis.context().instrumentedContext().contentResolver, KEY, STRING_VALUE) in <lambda>()
256 TestApis.context().instrumentedContext().contentResolver, KEY)) in <lambda>()
290 private val sContext = TestApis.context().instrumentedContext() in <lambda>()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicyStringResources.java45 TestApis.context().instrumentedContext().getSystemService(DevicePolicyManager.class)
56 set(new DevicePolicyStringResource(TestApis.context().instrumentedContext(), id, resource)); in set()
63 …ream().map(id -> new DevicePolicyStringResource(TestApis.context().instrumentedContext(), id, reso… in set()
DDevicePolicyDrawableResources.java44 TestApis.context().instrumentedContext().getSystemService(DevicePolicyManager.class)
55 …set(new DevicePolicyDrawableResource(TestApis.context().instrumentedContext(), id, style, resource… in set()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/settings/
DGlobalSettings.kt72 TestApis.context().instrumentedContext().contentResolver, key, value) in <lambda>()
116 TestApis.context().instrumentedContext().contentResolver, key, value) in <lambda>()
197 return getIntInner(TestApis.context().instrumentedContext().contentResolver, key) in <lambda>()
208 TestApis.context().instrumentedContext().contentResolver, key, defaultValue) in <lambda>()
250 return getStringInner(TestApis.context().instrumentedContext().contentResolver, key) in <lambda>()
296 TestApis.context().instrumentedContext().contentResolver, /* tag= */ in <lambda>()
DSecureSettings.kt73 TestApis.context().instrumentedContext().contentResolver, key, value) in putInt()
154 return getIntInner(TestApis.context().instrumentedContext().contentResolver, key) in getInt()
165 TestApis.context().instrumentedContext().contentResolver, key, defaultValue) in getInt()
209 TestApis.context().instrumentedContext().contentResolver, key, value) in putString()
291 return getStringInner(TestApis.context().instrumentedContext().contentResolver, key) in getString()
302 TestApis.context().instrumentedContext().contentResolver, key, defaultValue) in getString()
349 TestApis.context().instrumentedContext().contentResolver, /* tag= */ in reset()
DSystemSettings.kt72 TestApis.context().instrumentedContext().contentResolver, key, value) in putInt()
116 TestApis.context().instrumentedContext().contentResolver, key, value) in putString()
197 return getIntInner(TestApis.context().instrumentedContext().contentResolver, key) in getInt()
208 TestApis.context().instrumentedContext().contentResolver, key, defaultValue) in getInt()
250 return getStringInner(TestApis.context().instrumentedContext().contentResolver, key) in getString()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/utils/
DPolicyEngineUtils.java54 DevicePolicyManager dpm = TestApis.context().instrumentedContext().getSystemService( in getBooleanPolicyState()
73 DevicePolicyManager dpm = TestApis.context().instrumentedContext().getSystemService( in getStringSetPolicyState()
92 DevicePolicyManager dpm = TestApis.context().instrumentedContext().getSystemService( in getLockTaskPolicyState()
106 DevicePolicyManager dpm = TestApis.context().instrumentedContext().getSystemService( in getComponentNamePolicyState()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DOrganizationOwnedProfileOwnerTest.java47 assertThat(TestApis.context().instrumentedContext().getSystemService(UserManager.class) in organizationOwnedProfileOwner_userCannotBeRemoved()
58 assertThat(TestApis.context().instrumentedContext().getSystemService(UserManager.class) in organizationOwnedProfileOwner_parentCannotBeRemoved()
DInputMethodsTest.java52 TestApis.context().instrumentedContext().getContentResolver(), in isCurrentInputMethodSetByOwner_isSetByOwner_returnsTrue()
77 TestApis.context().instrumentedContext().getContentResolver(), in isCurrentInputMethodSetByOwner_isNotSetByOwner_returnsFalse()
/cts/common/device-side/interactive/steps/src/main/java/com/android/interactive/steps/notesrole/
DLockTheDeviceThenAccessSavedNote.java33 TestApis.context().instrumentedContext().getSystemService( in LockTheDeviceThenAccessSavedNote()
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/
DTestAppActivityReference.java74 TestApis.context().instrumentedContext().startActivityAsUser( in start()
94 TestApis.context().instrumentedContext().startActivityAsUser( in start()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/activities/
DActivities.java102 TestApis.context().instrumentedContext().getSystemService( in recentActivities()
157 TestApis.context().instrumentedContext().getSystemService( in getLockTaskModeState()
199 ResolveInfo resolveInfo = TestApis.context().instrumentedContext() in getResolvedActivityOfIntent()
/cts/common/device-side/bedstead/modules/usb/src/main/kotlin/com/android/bedstead/usb/
DUsb.kt26 TestApis.context().instrumentedContext().getSystemService(UsbManager::class.java)!!
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/resources/
DResources.java29 TestApis.context().instrumentedContext().getResources());
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/device/
DDevice.java41 TestApis.context().instrumentedContext()
46 TestApis.context().instrumentedContext().getPackageManager();
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DAnnotationLogicExtensions.kt95 TestApis.context().instrumentedContext() in logic()
105 !TestApis.context().instrumentedContext() in RequireNotLowRamDevice()
/cts/common/device-side/interactive/automation/src/main/java/com/android/interactive/steps/enterprise/settings/
DNavigateToPersonalBluetoothSettingsStepAutomation.java19 TestApis.context().instrumentedContext().startActivity(intent); in automate()
DNavigateToPersonalNetworkSettingsStepAutomation.java36 TestApis.context().instrumentedContext().startActivity(intent); in automate()
DNavigateToPersonalLocationSettingsStepAutomation.java36 TestApis.context().instrumentedContext().startActivity(intent); in automate()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/inputmethods/
DInputMethods.java33 TestApis.context().instrumentedContext().getSystemService(InputMethodManager.class);
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackages.java172 TestApis.context().instrumentedContext().getPackageManager();
179 mInstrumentedContext = TestApis.context().instrumentedContext(); in Packages()
186 PackageManager pm = TestApis.context().instrumentedContext().getPackageManager(); in features()
218 return TestApis.context().instrumentedContext().getPackageManager() in installedForUser()
657 return find(TestApis.context().instrumentedContext().getPackageName()); in instrumented()
692 String defaultDialerPackage = TestApis.context().instrumentedContext().getString( in oemDefaultDialerApp()
702 String defaultSmsPackage = TestApis.context().instrumentedContext().getString( in oemDefaultSmsApp()
740 return TestApis.context().instrumentedContext().getPackageManager() in queryIntentActivities()

12345678