Home
last modified time | relevance | path

Searched refs:myUserHandle (Results 1 – 25 of 117) sorted by relevance

12345

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java223 DefaultPhoneAccountHandle input = new DefaultPhoneAccountHandle(Process.myUserHandle(), in testDefaultPhoneAccountHandleEmptyGroup()
387 mRegistrar.setUserSelectedOutgoingPhoneAccount(telAccount1, Process.myUserHandle()); in testReplacePhoneAccountByGroup()
432 mRegistrar.setUserSelectedOutgoingPhoneAccount(telAccount1, Process.myUserHandle()); in testAddSameDefault()
434 mRegistrar.getUserSelectedOutgoingPhoneAccount(Process.myUserHandle()); in testAddSameDefault()
445 mRegistrar.getUserSelectedOutgoingPhoneAccount(Process.myUserHandle()); in testAddSameDefault()
456 mRegistrar.getUserSelectedOutgoingPhoneAccount(Process.myUserHandle()); in testAddSameDefault()
477 mRegistrar.setUserSelectedOutgoingPhoneAccount(telAccount1, Process.myUserHandle()); in testAddSameGroup()
479 mRegistrar.getUserSelectedOutgoingPhoneAccount(Process.myUserHandle()); in testAddSameGroup()
490 mRegistrar.getUserSelectedOutgoingPhoneAccount(Process.myUserHandle()); in testAddSameGroup()
502 mRegistrar.getUserSelectedOutgoingPhoneAccount(Process.myUserHandle()); in testAddSameGroup()
[all …]
DVideoCallTests.java203 mConnectionServiceFixtureA, Process.myUserHandle(), in testOutgoingVideoCallCanceledCheckVideoHistory()
221 mConnectionServiceFixtureA, Process.myUserHandle(), in testOutgoingVideoCallRejectedCheckVideoHistory()
239 mConnectionServiceFixtureA, Process.myUserHandle(), in testOutgoingVideoCallAnsweredAsAudio()
DBasicCallTests.java329 null, Process.myUserHandle()); in testOutgoingCallAndSelectPhoneAccount()
528 Process.myUserHandle()); in do_testDeadlockOnOutgoingCall()
941 Process.myUserHandle(), VideoProfile.STATE_BIDIRECTIONAL); in testOutgoingCallSelectPhoneAccountVideo()
964 Process.myUserHandle(), VideoProfile.STATE_BIDIRECTIONAL); in testOutgoingCallSelectPhoneAccountNoVideo()
1121 mConnectionServiceFixtureA, Process.myUserHandle()); in testDeflectCallWhenOutgoing()
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DTopLevelLocationPreferenceControllerTest.java53 mLocationManager.setLocationEnabledForUser(false, android.os.Process.myUserHandle()); in getSummary_whenLocationIsOff_shouldReturnStringForOff()
60 mLocationManager.setLocationEnabledForUser(true, android.os.Process.myUserHandle()); in getSummary_whenLocationIsOn_shouldShowLoadingString()
68 mLocationManager.setLocationEnabledForUser(true, android.os.Process.myUserHandle()); in getSummary_whenLocationAppCountIsOne_shouldShowSingularString()
79 mLocationManager.setLocationEnabledForUser(true, android.os.Process.myUserHandle()); in getSummary_whenLocationAppCountIsGreaterThanOne_shouldShowPluralString()
DAppLocationPermissionPreferenceControllerTest.java62 mLocationManager.setLocationEnabledForUser(false, android.os.Process.myUserHandle()); in getSummary_whenLocationIsOff_shouldReturnStringForOff()
70 mLocationManager.setLocationEnabledForUser(true, android.os.Process.myUserHandle()); in getSummary_whenLocationIsOn_shouldReturnLoadingString()
78 mLocationManager.setLocationEnabledForUser(true, android.os.Process.myUserHandle()); in getSummary_whenLocationAppCountIsOne_shouldShowSingularString()
88 mLocationManager.setLocationEnabledForUser(true, android.os.Process.myUserHandle()); in getSummary_whenLocationAppCountIsGreaterThanOne_shouldShowPluralString()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/service/
DRoleControllerServiceImpl.java182 () -> Utils.updateUserSensitive(getApplication(), Process.myUserHandle())); in onGrantDefaultRoles()
239 role.onHolderAddedAsUser(packageName, Process.myUserHandle(), this); in onAddRoleHolder()
240 role.onHolderChangedAsUser(Process.myUserHandle(), this); in onAddRoleHolder()
275 role.onHolderChangedAsUser(Process.myUserHandle(), this); in onRemoveRoleHolder()
309 role.onHolderChangedAsUser(Process.myUserHandle(), this); in onClearRoleHolders()
429 return role.isVisibleAsUser(Process.myUserHandle(), this); in onIsRoleVisible()
/packages/apps/Nfc/src/com/android/nfc/
DBeamShareActivity.java215 UserHandle myUserHandle = new UserHandle(UserHandle.myUserId()); in parseShareIntentAndFinish() local
245 shareData = new BeamShareData(null, uriArray, myUserHandle, 0); in parseShareIntentAndFinish()
248 shareData = new BeamShareData(null, null, myUserHandle, 0); in parseShareIntentAndFinish()
251 shareData = new BeamShareData(mNdefMessage, null, myUserHandle, 0); in parseShareIntentAndFinish()
256 shareData = new BeamShareData(null, null, myUserHandle, 0); in parseShareIntentAndFinish()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/profileselector/
DUserAdapter.java197 UserHandle myUserHandle = new UserHandle(UserHandle.myUserId()); in createUserSpinnerAdapter() local
199 userProfiles.remove(myUserHandle); in createUserSpinnerAdapter()
200 userProfiles.add(0, myUserHandle); in createUserSpinnerAdapter()
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/
DUserAdapter.java197 UserHandle myUserHandle = new UserHandle(UserHandle.myUserId()); in createUserSpinnerAdapter() local
199 userProfiles.remove(myUserHandle); in createUserSpinnerAdapter()
200 userProfiles.add(0, myUserHandle); in createUserSpinnerAdapter()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/utils/
DUserUtils.java62 UserHandle user = Process.myUserHandle(); in getWorkProfile()
89 if (Process.myUserHandle().equals(user)) { in getUserContext()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DEditUserInfoControllerTest.java91 R.string.profile_info_settings_title, null, android.os.Process.myUserHandle()); in photoControllerOnActivityResult_whenWaiting_isCalled()
108 android.os.Process.myUserHandle()); in userNameView_inputLongName_shouldBeConstrained()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DBrowserRoleBehavior.java62 List<String> packageNames = role.getQualifyingPackagesAsUser(Process.myUserHandle(), in getFallbackHolder()
85 Process.myUserHandle(), context); in isPackageQualified()
DPermissions.java577 UserHandle user = Process.myUserHandle(); in getPermissionFlags()
617 UserHandle user = Process.myUserHandle(); in setPermissionFlags()
638 UserHandle user = Process.myUserHandle(); in grantPermissionWithoutAppOp()
649 UserHandle user = Process.myUserHandle(); in revokePermissionWithoutAppOp()
DRole.java290 return isAvailableAsUser(Process.myUserHandle(), context); in isAvailable()
349 return isVisibleAsUser(Process.myUserHandle(), context); in isVisible()
443 if (!isPackageMinimallyQualifiedAsUser(packageName, Process.myUserHandle(), context)) { in isPackageQualified()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/
DSpecialAppAccessListChildFragment.java110 role.preparePreferenceAsUser(preference, Process.myUserHandle(), context); in onRoleListChanged()
123 UserHandle user = Process.myUserHandle(); in onPreferenceClick()
DHomeSettingsActivity.java35 Process.myUserHandle(), this) in onCreate()
DRequestRoleViewModel.java34 super(role, Process.myUserHandle(), application); in RequestRoleViewModel()
DRoleSearchTrampolineActivity.java53 RoleSearchIndexablesProvider.getOriginalKey(intent), Process.myUserHandle(), in onCreate()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DShortcutConfigActivityInfo.java110 super(new ComponentName(info.packageName, info.name), Process.myUserHandle()); in ShortcutConfigActivityInfoVL()
147 if (getUser().equals(Process.myUserHandle())) { in startConfigActivity()
DAppWidgetManagerCompatVL.java75 if (Process.myUserHandle().equals(packageUser.mUser) in getAllProviders()
107 if (Process.myUserHandle().equals(user)) { in findProvider()
DLauncherAppsCompatVL.java80 final boolean isPrimaryUser = Process.myUserHandle().equals(user); in getApplicationInfo()
199 if (packageUser != null && !packageUser.mUser.equals(Process.myUserHandle())) { in getCustomShortcutActivityList()
/packages/apps/Launcher3/src/com/android/launcher3/
DAppWidgetsRestoredReceiver.java22 import static android.os.Process.myUserHandle;
86 .getSerialNumberForUser(myUserHandle()); in restoreAppWidgetIds()
DBaseDraggingActivity.java163 } else if (user == null || user.equals(Process.myUserHandle())) { in startActivitySafely()
167 Process.myUserHandle(), sourceContainer); in startActivitySafely()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DFirstScreenBroadcast.java38 import static android.os.Process.myUserHandle;
78 if (myUserHandle().equals(entry.getKey().mUser)) { in getPackagesForInstaller()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DBaseModelUpdateTaskTestCase.java86 myUser = Process.myUserHandle(); in setUp()
213 mCache.put(new ComponentKey(key, Process.myUserHandle()), entry); in addCache()

12345