Searched refs:userContext (Results 1 – 7 of 7) sorted by relevance
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | AddWindowAsUserTest.java | 68 final Context userContext = mContext.createContextAsUser(user, 0); in getWindowManagerForUser() local 69 return userContext.getSystemService(WindowManager.class); in getWindowManagerForUser()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | StorageEscalationTest.kt | 106 var userContext = context in <lambda>() variable 109 userContext = context.createPackageContextAsUser( in <lambda>() 113 Assert.assertEquals(granted, userContext.packageManager.checkPermission(permName, in <lambda>()
|
/cts/tests/PhotoPicker/src/android/photopicker/cts/util/ |
D | PhotoPickerFilesUtils.java | 124 final Context userContext = userId == context.getUserId() ? context : in stageMedia() local 127 return stageMedia(resId, collectionUri, mimeType, userContext, isFavorite); in stageMedia()
|
/cts/tests/tests/multiuser/src/android/multiuser/cts/ |
D | UserManagerTest.java | 165 final Context userContext = sContext.createPackageContextAsUser("system", 0, in testCloneProfile() local 167 final UserManager cloneUserManager = userContext.getSystemService(UserManager.class); in testCloneProfile() 260 final Context userContext = sContext.createPackageContextAsUser("system", 0, user); in testRestrictedUser() local 261 final UserManager userUm = userContext.getSystemService(UserManager.class); in testRestrictedUser()
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_BitmapTest.cpp | 248 static bool compressWriteFn(void* userContext, const void* data, size_t size) { in compressWriteFn() argument 249 Context* c = reinterpret_cast<Context*>(userContext); in compressWriteFn()
|
/cts/tests/camera/libctscamera2jni/ |
D | native-camera-jni.cpp | 3699 intptr_t userContext = -1; in nativeImageReaderTestBase() local 3700 ret = ACaptureRequest_getUserContext(completedRequests[i], (void**) &userContext); in nativeImageReaderTestBase() 3706 if (userContext != i) { in nativeImageReaderTestBase() 3708 "Expect %" PRIdPTR ", got %" PRIdPTR, cameraId, i, userContext); in nativeImageReaderTestBase()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | UsageStatsTest.java | 1174 final Context userContext = mContext.createContextAsUser(otherUser, 0); in testCrossUserQuery_withPermission() local 1176 final UsageStatsManager usmOther = userContext.getSystemService( in testCrossUserQuery_withPermission()
|