Home
last modified time | relevance | path

Searched refs:getUserId (Results 1 – 25 of 86) sorted by relevance

1234

/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/
DApplicationVisibilityCrossUserTest.java58 pm.getInstalledPackagesAsUser(0, mContext.getUserId()); in testPackageVisibility_currentUser()
67 pm.getInstalledPackagesAsUser(MATCH_KNOWN_PACKAGES, mContext.getUserId()); in testPackageVisibility_anyUserCrossUserGrant()
78 pm.getInstalledPackagesAsUser(MATCH_KNOWN_PACKAGES, mContext.getUserId()); in testPackageVisibility_anyUserCrossUserNoGrant()
109 pm.getInstalledApplicationsAsUser(0, mContext.getUserId()); in testApplicationVisibility_currentUser()
118 pm.getInstalledApplicationsAsUser(MATCH_KNOWN_PACKAGES, mContext.getUserId()); in testApplicationVisibility_anyUserCrossUserGrant()
129 pm.getInstalledApplicationsAsUser(MATCH_KNOWN_PACKAGES, mContext.getUserId()); in testApplicationVisibility_anyUserCrossUserNoGrant()
159 final int userId = mContext.getUserId(); in testGetPackagesForUidVisibility_currentUser()
229 return mContext.getUserId(); in getTestUser()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceAdminServiceDeviceOwnerTest.java23 protected int getUserId() { in getUserId() method in DeviceAdminServiceDeviceOwnerTest
41 setDeviceOwnerOrFail(component, getUserId()); in setAsOwnerOrFail()
DBaseDeviceAdminServiceTest.java52 removeAdmin(OWNER_COMPONENT, getUserId()); in tearDown()
53 removeAdmin(OWNER_COMPONENT_B, getUserId()); in tearDown()
60 protected abstract int getUserId(); in getUserId() method in BaseDeviceAdminServiceTest
63 runDeviceTestsAsUser(OWNER_PKG, className, testName, getUserId()); in executeDeviceTestMethod()
DDeviceAdminServiceProfileOwnerTest.java29 protected int getUserId() { in getUserId() method in DeviceAdminServiceProfileOwnerTest
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DOperationSafetyChangedCallback.java68 Log.d(TAG, "Received intent with event " + event + " on user " + context.getUserId());
79 Log.d(TAG, "Registering " + ACTION_STATE_CHANGED + " on user " + context.getUserId()); in register()
90 Log.d(TAG, "Unregistering " + mReceiver + " on user " + context.getUserId()); in unregister()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DTestAppHelper.java45 + " locally on user " + context.getUserId()); in registerTestCaseReceiver()
58 Log.d(TAG, "Unegistering " + receiver + " locally on user " + context.getUserId()); in unregisterTestCaseReceiver()
DUserManagerWrapper.java40 int userId = context.getUserId(); in getWrapper()
47 Log.d(TAG, "get(): creating spy for user " + context.getUserId()); in getWrapper()
DHardwarePropertiesManagerWrapper.java42 int userId = context.getUserId(); in getWrapper()
49 Log.d(TAG, "get(): creating spy for user " + context.getUserId()); in getWrapper()
DWifiManagerWrapper.java43 int userId = context.getUserId(); in getWrapper()
52 Log.d(TAG, "get(): created spy for user " + context.getUserId() + ": " + spyString); in getWrapper()
DDeviceOwnerHelper.java72 Log.d(TAG, "runManagerMethod(): user=" + context.getUserId() + ", action=" + action); in runManagerMethod()
83 Log.d(TAG, "runManagerMethod(): userId=" + context.getUserId() in runManagerMethod()
138 + context.getUserId()); in sendBroadcastToTestAppReceivers()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBasicAdminReceiver.java55 Log.d(TAG, "onReceive(userId=" + context.getUserId() + "): " + action); in onReceive()
87 Log.d(TAG, "onNetworkLogsAvailable() on user " + context.getUserId() in onNetworkLogsAvailable()
100 Log.d(TAG, "onOperationSafetyStateChanged() on user " + context.getUserId() + ": " + event); in onOperationSafetyStateChanged()
DPreDeviceOwnerTest.java39 Log.d(TAG, "setUp(): running on user " + mContext.getUserId()); in setUp()
DDefaultSmsApplicationTest.java39 + ", new=" + newSmsAppName + ", user=" + mContext.getUserId() in testSetDefaultSmsApplication()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DDevicePolicyManagerTest.java295 sContext.getUserId(), in newlyProvisionedManagedProfile_removesNonRequiredAppsFromProfile()
415 if (sContext.getUserId() == user.getIdentifier()) { in getContextForUser()
438 DEVICE_ADMIN_COMPONENT_NAME, sContext.getUserId()); in newlyProvisionedFullyManagedDevice_setsDeviceOwner()
455 DEVICE_ADMIN_COMPONENT_NAME, sContext.getUserId()); in newlyProvisionedFullyManagedDevice_doesNotThrowException()
475 DEVICE_ADMIN_COMPONENT_NAME, sContext.getUserId()); in newlyProvisionedFullyManagedDevice_canControlSensorPermissionGrantsByDefault()
497 DEVICE_ADMIN_COMPONENT_NAME, sContext.getUserId()); in newlyProvisionedFullyManagedDevice_canOptOutOfControllingSensorPermissionGrants()
522 DEVICE_ADMIN_COMPONENT_NAME, sContext.getUserId()); in newlyProvisionedFullyManagedDevice_leavesAllSystemAppsEnabledWhenRequested()
551 sDevicePolicyManager.forceUpdateUserSetupComplete(sContext.getUserId()); in resetUserSetupCompletedFlag()
558 sDevicePolicyManager.forceUpdateUserSetupComplete(sContext.getUserId()); in setUserSetupCompletedFlag()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerNegativeTest.java112 "package", getTestContext().getUserId()); in testDirectAidlCalls()
114 checkAidlCall("getBackupPayload", "Caller must be", getTestContext().getUserId()); in testDirectAidlCalls()
116 checkAidlCall("applyRestore", "Caller must be", null, getTestContext().getUserId()); in testDirectAidlCalls()
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DIntentSenderActivity.java56 Log.d(TAG, "Created on user " + getUserId()); in onCreate()
61 Log.d(TAG, "onActivityResult(): userId=" + getUserId() + ", requestCode=" + requestCode in onActivityResult()
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/common/src/com/android/cts/appdataisolation/common/
DUserUtils.java24 return UserHandle.getUserId(Process.myUid()); in getCurrentUserId()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DBroadcastIntentReceiver.java36 Log.i(TAG, "onReceive(userId=" + c.getUserId() + "): " + i); in onReceive()
DSimpleIntentReceiverActivity.java45 Log.i(TAG, "activity " + className + " started on user " + getUserId() in onCreate()
/cts/apps/EmptyDeviceOwner/src/com/android/cts/emptydeviceowner/
DEmptyDeviceAdmin.java37 Log.d(TAG, "onReceive(): user=" + context.getUserId() + ", action=" + action); in onReceive()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DApplicationHiddenTest.java135 Log.v(mTag, "Received intent on user " + context.getUserId() + ": " in onReceive()
173 fail("Did not receive " + broadcast + " broadcast on user " + mContext.getUserId() in failBroadcastNotReceived()
/cts/hostsidetests/appbinding/app/src/com/android/cts/appbinding/app/
DMyEnabler.java44 Log.w(TAG, "Enabled " + cn + " on user " + context.getUserId()); in enableService()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/apphibernation/
DAppHibernationStatsTest.java120 if (apps.getUserId() == userId) { in testUserLevelHibernatedApps()
150 assertThat(atom.getUserId()).isEqualTo(currentUser); in assertUserLevelHibernationStateChangedEvent()
/cts/hostsidetests/appsearch/test-apps/AppSearchHostTestHelperA/src/android/appsearch/app/a/
DAppSearchInstantAppTest.java46 int userId = context.getUserId(); in testInstantAppDoesntHaveAccess()
/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/
DAccountUtilsTest.java46 Log.d(TAG, "setUp(): running on user " + mContext.getUserId()); in setUp()

1234