Home
last modified time | relevance | path

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

12345

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java159 DefaultPhoneAccountHandle input = new DefaultPhoneAccountHandle(Process.myUserHandle(), in testDefaultPhoneAccountHandleEmptyGroup()
323 mRegistrar.setUserSelectedOutgoingPhoneAccount(telAccount1, Process.myUserHandle()); in testReplacePhoneAccountByGroup()
368 mRegistrar.setUserSelectedOutgoingPhoneAccount(telAccount1, Process.myUserHandle()); in testAddSameDefault()
370 mRegistrar.getUserSelectedOutgoingPhoneAccount(Process.myUserHandle()); in testAddSameDefault()
381 mRegistrar.getUserSelectedOutgoingPhoneAccount(Process.myUserHandle()); in testAddSameDefault()
392 mRegistrar.getUserSelectedOutgoingPhoneAccount(Process.myUserHandle()); in testAddSameDefault()
413 mRegistrar.setUserSelectedOutgoingPhoneAccount(telAccount1, Process.myUserHandle()); in testAddSameGroup()
415 mRegistrar.getUserSelectedOutgoingPhoneAccount(Process.myUserHandle()); in testAddSameGroup()
426 mRegistrar.getUserSelectedOutgoingPhoneAccount(Process.myUserHandle()); in testAddSameGroup()
438 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.java330 null, Process.myUserHandle()); in testOutgoingCallAndSelectPhoneAccount()
516 Process.myUserHandle()); in do_testDeadlockOnOutgoingCall()
925 Process.myUserHandle(), VideoProfile.STATE_BIDIRECTIONAL); in testOutgoingCallSelectPhoneAccountVideo()
948 Process.myUserHandle(), VideoProfile.STATE_BIDIRECTIONAL); in testOutgoingCallSelectPhoneAccountNoVideo()
1104 mConnectionServiceFixtureA, Process.myUserHandle()); in testDeflectCallWhenOutgoing()
DTelecomSystemTest.java515 mPhoneAccountA0.getAccountHandle(), Process.myUserHandle()); in setupConnectionServices()
572 connectionServiceFixture, Process.myUserHandle(), VideoProfile.STATE_AUDIO_ONLY, in startOutgoingPhoneCallWithNoPhoneAccount()
946 Process.myUserHandle(), videoState); in startAndMakeActiveOutgoingCall()
1021 connectionServiceFixture, Process.myUserHandle(), VideoProfile.STATE_AUDIO_ONLY); in startAndMakeDialingEmergencyCall()
/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.java174 Utils.updateUserSensitive(getApplication(), Process.myUserHandle()); in onGrantDefaultRoles()
231 role.onHolderAddedAsUser(packageName, Process.myUserHandle(), this); in onAddRoleHolder()
232 role.onHolderChangedAsUser(Process.myUserHandle(), this); in onAddRoleHolder()
267 role.onHolderChangedAsUser(Process.myUserHandle(), this); in onRemoveRoleHolder()
301 role.onHolderChangedAsUser(Process.myUserHandle(), this); in onClearRoleHolders()
421 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/Launcher3/src/com/android/launcher3/compat/
DPackageInstallerCompatVL.java67 UserHandle user = Process.myUserHandle(); in updateAndGetActiveSessionCache()
146 addSessionInfoToCache(session, Process.myUserHandle());
168 ApplicationInfo.FLAG_SYSTEM, Process.myUserHandle()) != null; in verify()
DShortcutConfigActivityInfo.java110 super(new ComponentName(info.packageName, info.name), Process.myUserHandle()); in ShortcutConfigActivityInfoVL()
147 if (getUser().equals(Process.myUserHandle())) { in startConfigActivity()
DAppWidgetManagerCompatVL.java77 if (FeatureFlags.ENABLE_CUSTOM_WIDGETS && Process.myUserHandle().equals(packageUser.mUser) in getAllProviders()
111 if (FeatureFlags.ENABLE_CUSTOM_WIDGETS && Process.myUserHandle().equals(user)) { in findProvider()
DLauncherAppsCompatVL.java75 final boolean isPrimaryUser = Process.myUserHandle().equals(user); in getApplicationInfo()
190 if (packageUser != null && !packageUser.mUser.equals(Process.myUserHandle())) { in getCustomShortcutActivityList()
/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/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.java279 return isAvailableAsUser(Process.myUserHandle(), context); in isAvailable()
338 return isVisibleAsUser(Process.myUserHandle(), context); in isVisible()
415 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()
/packages/apps/Launcher3/src/com/android/launcher3/
DBaseDraggingActivity.java163 } else if (user == null || user.equals(Process.myUserHandle())) { in startActivitySafely()
171 Process.myUserHandle(), sourceContainer); in startActivitySafely()
DInstallShortcutReceiver.java238 data, Process.myUserHandle(), context); in createPendingInfo()
597 : Process.myUserHandle(); in Decoder()
643 info.user = Process.myUserHandle(); in createWorkspaceItemInfo()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DBaseModelUpdateTaskTestCase.java87 myUser = Process.myUserHandle(); in setUp()
214 mCache.put(new ComponentKey(key, Process.myUserHandle()), entry); in addCache()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DPackageUpdatedTask.java102 appsList.removePackage(packages[i], Process.myUserHandle()); in execute()
107 if (!Utilities.ATLEAST_OREO && !Process.myUserHandle().equals(mUser)) { in execute()

12345