Home
last modified time | relevance | path

Searched refs:myUserId (Results 1 – 25 of 174) sorted by relevance

1234567

/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/util/
DShortcutUtilsTest.java101 mAccessibilityManagerService, UserHandle.myUserId(), in setUp()
114 ShortcutConstants.UserShortcutType.SOFTWARE, UserHandle.myUserId()) in getShortcutTargets_softwareShortcutNoService_emptyResult()
123 UserHandle.myUserId()) in getShortcutTargets_volumeKeyShortcutNoService_emptyResult()
135 UserHandle.myUserId()) in getShortcutTargets_softwareShortcut1Service_return1Service()
147 UserHandle.myUserId()) in getShortcutTargets_volumeShortcut2Service_return2Service()
160 UserHandle.myUserId()) in getShortcutTargets_tripleTapShortcut_magnificationDisabled_emptyResult()
173 UserHandle.myUserId()) in getShortcutTargets_tripleTapShortcut_magnificationEnabled_returnMagnification()
185 UserHandle.myUserId() in updateAccessibilityServiceStateIfNeeded_alwaysOnServiceOn_noShortcuts_serviceTurnedOff()
199 UserHandle.myUserId() in updateAccessibilityServiceStateIfNeeded_alwaysOnServiceOn_hasShortcut_serviceKeepsOn()
213 UserHandle.myUserId() in updateAccessibilityServiceStateIfNeeded_alwaysOnServiceOff_noShortcuts_serviceKeepsOff()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DGlobalSortKeyComparatorTest.java53 new UserHandle(UserHandle.myUserId()), in testComparator()
60 new UserHandle(UserHandle.myUserId()), in testComparator()
67 new UserHandle(UserHandle.myUserId()), in testComparator()
92 new UserHandle(UserHandle.myUserId()), in testNoCrash_leftNull()
98 new UserHandle(UserHandle.myUserId()), in testNoCrash_leftNull()
122 new UserHandle(UserHandle.myUserId()), in testNoCrash_rightNull()
129 new UserHandle(UserHandle.myUserId()), in testNoCrash_rightNull()
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
DManageDialog.java60 mConfig = mVm.getVpnConfig(UserHandle.myUserId()); in onCreate()
118 final int myUserId = UserHandle.myUserId(); in onClick() local
120 mVm.prepareVpn(VpnConfig.LEGACY_VPN, VpnConfig.LEGACY_VPN, myUserId); in onClick()
122 mVm.prepareVpn(mConfig.user, VpnConfig.LEGACY_VPN, myUserId); in onClick()
DConfirmDialog.java108 if (mVm.prepareVpn(mPackage, null, UserHandle.myUserId())) { in onCreate()
117 final String alwaysOnVpnPackage = mVm.getAlwaysOnVpnPackageForUser(UserHandle.myUserId()); in onCreate()
177 if (mVm.prepareVpn(null, mPackage, UserHandle.myUserId())) { in onClick()
180 mVm.setVpnPackageAuthorization(mPackage, UserHandle.myUserId(), mVpnType); in onClick()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/accessibility/
DAccessibilityUtilsTest.java56 UserHandle.myUserId()); in getEnabledServicesFromSettings_badFormat_emptyResult()
67 UserHandle.myUserId()); in getEnabledServicesFromSettings_1Service_1result()
80 UserHandle.myUserId()); in getEnabledServicesFromSettings_2Services_2results()
/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/
DComplicationTypesUpdater.java75 UserHandle.myUserId()); in onStart()
79 UserHandle.myUserId()); in onStart()
83 UserHandle.myUserId()); in onStart()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DTetherUtil.java29 UserHandle.myUserId()) != null; in isTetherAvailable()
31 context, DISALLOW_CONFIG_TETHERING, UserHandle.myUserId()); in isTetherAvailable()
DRestrictedPreferenceHelper.java93 UserHandle.myUserId())) { in RestrictedPreferenceHelper()
179 checkRestrictionAndSetDisabled(mAttrUserRestriction, UserHandle.myUserId()); in onAttachedToHierarchy()
217 mAttrUserRestriction, UserHandle.myUserId()); in checkRestrictionEnforced()
/frameworks/base/packages/SettingsLib/DisplayUtils/src/com/android/settingslib/display/
DDisplayDensityConfiguration.java55 final int userId = UserHandle.myUserId(); in clearForcedDisplayDensity()
77 final int userId = UserHandle.myUserId(); in setForcedDisplayDensity()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java315 UserHandle.myUserId()); in testSetSticky()
317 ActivityManager.broadcastStickyIntent(intent, UserHandle.myUserId()); in testSetSticky()
329 ActivityManager.broadcastStickyIntent(intent, UserHandle.myUserId()); in testClearSticky()
333 UserHandle.myUserId()); in testClearSticky()
344 ActivityManager.broadcastStickyIntent(intent, UserHandle.myUserId()); in testReplaceSticky()
347 ActivityManager.broadcastStickyIntent(intent, UserHandle.myUserId()); in testReplaceSticky()
361 ActivityManager.broadcastStickyIntent(intent, UserHandle.myUserId()); in testReceiveSticky()
371 ActivityManager.broadcastStickyIntent(intent, UserHandle.myUserId()); in testReceive2Sticky()
374 ActivityManager.broadcastStickyIntent(intent, UserHandle.myUserId()); in testReceive2Sticky()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DScreenshotNotificationSmartActionsTest.java86 true, UserHandle.of(UserHandle.myUserId())); in testExceptionHandlingInGetSmartActionsFuture()
127 true, UserHandle.of(UserHandle.myUserId())); in testUnsupportedBitmapConfiguration()
142 UserHandle.of(UserHandle.myUserId())); in testScreenshotNotificationSmartActionsProviderInvokedOnce()
158 true, UserHandle.of(UserHandle.myUserId())); in testSupportedBitmapConfiguration()
/frameworks/base/core/tests/coretests/src/android/app/compat/
DCompatChangesTest.java70 UserHandle.of(UserHandle.myUserId()))).isTrue(); in testEnabledChange()
79 UserHandle.of(UserHandle.myUserId()))).isFalse(); in testDisabledChange()
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DWindowManagerPermissionTests.java72 mWm.disableKeyguard(token, "foo", UserHandle.myUserId()); in testDISABLE_KEYGUARD()
82 mWm.reenableKeyguard(token, UserHandle.myUserId()); in testDISABLE_KEYGUARD()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/enterprise/
DActionDisabledByAdminControllerFactory.java66 new UserHandle(UserHandle.myUserId())); in isSupervisedDevice()
81 BiometricAuthenticator.TYPE_ANY_BIOMETRIC, new UserHandle(UserHandle.myUserId())); in doesBiometricRequireParentalConsent()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/development/
DAbstractEnableAdbPreferenceController.java85 checkIfUsbDataSignalingIsDisabled(mContext, UserHandle.myUserId())); in updateState()
94 checkIfUsbDataSignalingIsDisabled(mContext, UserHandle.myUserId())); in onDeveloperOptionsSwitchEnabled()
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowUserManager.java78 return getUserInfo(UserHandle.myUserId()).isAdmin(); in isAdminUser()
86 UserInfo userInfo = getUserInfo(UserHandle.myUserId()); in setIsAdminUser()
/frameworks/base/errorprone/tests/res/android/os/
DUserHandle.java32 public static int myUserId() { in myUserId() method in UserHandle
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPackageManagerServiceTest.java475 UserHandle.myUserId())).isEqualTo( in testInstallReason_afterUpdate_keepUnchanged()
482 UserHandle.myUserId())).isEqualTo( in testInstallReason_afterUpdate_keepUnchanged()
501 UserHandle.myUserId())).isEqualTo( in testInstallReason_userRemainsUninstalled_keepUnknown()
537 UserHandle.myUserId())).isEqualTo( in testInstallReason_installForAllUsers_sameReason()
563 UserHandle.myUserId())).isEqualTo( in testInstallReason_installSeparately_withSeparatedReason()
582 UserHandle.myUserId()); in testSetSplashScreenTheme_samePackage_succeeds()
592 UserHandle.myUserId()); in testSetSplashScreenTheme_differentPackage_fails()
603 mIPackageManager.setUserMinAspectRatio(PACKAGE_NAME, UserHandle.myUserId(), in testSetUserMinAspectRatio_samePackage_succeeds()
613 mIPackageManager.setUserMinAspectRatio(TEST_PKG_NAME, UserHandle.myUserId(), in testSetUserMinAspectRatio_differentPackage_fails()
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DObserverNodeTest.java66 final int myUserHandle = UserHandle.myUserId(); in testUri()
100 final int myUserHandle = UserHandle.myUserId(); in testUriNotNotify()
130 final int myUserHandle = UserHandle.myUserId(); in testCluster()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DChooserActivityOverrideData.java79 public Integer myUserId; field in ChooserActivityOverrideData
107 myUserId = null; in reset()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbDialogHelper.java185 final int userId = UserHandle.myUserId(); in setDefaultPackage()
201 final int userId = UserHandle.myUserId(); in clearDefaultPackage()
217 final int userId = UserHandle.myUserId(); in confirmDialogStartActivity()
/frameworks/base/core/java/android/security/net/config/
DUserCertificateSource.java34 Environment.getUserConfigDirectory(UserHandle.myUserId()), "cacerts-added")); in UserCertificateSource()
/frameworks/base/core/tests/coretests/src/android/content/
DManagedUserContentResolverTest.java46 UserManager.USER_TYPE_PROFILE_MANAGED, /* flags */ 0, UserHandle.myUserId()); in createUser()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DSingleUserReceiver.java30 res.putInt("user", UserHandle.myUserId()); in onReceive()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTestable.java39 public int myUserId() { in myUserId() method in DevicePolicyManagerTestable

1234567