Home
last modified time | relevance | path

Searched refs:mUserId (Results 1 – 6 of 6) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DVisibleBackgroundUserPreparer.java49 private Integer mUserId; field in VisibleBackgroundUserPreparer
61 mUserId = UserHelper.createUser(device, mReuseTestUser); in setUp()
63 startUserVisibleOnBackground(testInfo, device, mUserId); in setUp()
127 "Failed to start to user '%s' on display %d", mUserId, displayId), in startUserVisibleOnBackground()
132 CLog.i("Setting test property %s=%d", RUN_TESTS_AS_USER_KEY, mUserId); in startUserVisibleOnBackground()
133 testInfo.properties().put(RUN_TESTS_AS_USER_KEY, Integer.toString(mUserId)); in startUserVisibleOnBackground()
138 if (mUserId == null) { in tearDown()
153 device.removeUser(mUserId); in tearDown()
159 CLog.d("stopTestUser(): user %d was already visible on start", mUserId); in stopTestUser()
162 CLog.d("stopTestUser(): stopping user %d ", mUserId); in stopTestUser()
[all …]
DTestAppInstallSetup.java216 private Integer mUserId = null; field in TestAppInstallSetup
276 mUserId = userId; in setUserId()
385 if (mUserId == null && testInfo.properties().get(RUN_TESTS_AS_USER_KEY) != null) { in setUp()
386 mUserId = Integer.parseInt(testInfo.properties().get(RUN_TESTS_AS_USER_KEY)); in setUp()
387 if (!testInfo.getDevice().getUserInfos().containsKey(mUserId)) { in setUp()
388 CLog.w("User requested: %s doesn't exist on device. Ignoring it.", mUserId); in setUp()
389 mUserId = null; in setUp()
391 CLog.d("Using user %s from testInfo properties.", mUserId); in setUp()
685 if (mUserId == null) { in installPackage()
699 mUserId, in installPackage()
[all …]
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DUserInfo.java45 private final int mUserId; field in UserInfo
123 mUserId = userId; in UserInfo()
135 return mUserId; in userId()
163 return mUserId == USER_SYSTEM; in isSystem()
198 return mUserId == currentUserId; in isUserType()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DDeviceTestRunOptions.java36 private Integer mUserId; // optional field in DeviceTestRunOptions
109 return mUserId; in getUserId()
114 this.mUserId = userId; in setUserId()
/tools/tradefederation/core/src/com/android/tradefed/device/
DDumpsysPackageReceiver.java199 private final int mUserId; field in DumpsysPackageReceiver.PerUserPackageParserState
207 mUserId = userId; in PerUserPackageParserState()
229 mPkgInfo.addPerUserAttribute(mUserId, prop[0], prop[1]); in parseAttributes()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/contentprovider/
DContentProviderHandler.java85 private final Integer mUserId; field in ContentProviderHandler
96 mUserId = userId; in ContentProviderHandler()
103 return mUserId; in getUserId()
384 return mUserId == null ? mDevice.getCurrentUser() : mUserId; in getEffectiveUserId()