Home
last modified time | relevance | path

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

1234

/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DObserverNodeTest.java66 final int myUserHandle = UserHandle.myUserId(); in testUri() local
84 0, 0, myUserHandle); in testUri()
87 0, 0, myUserHandle); in testUri()
92 root.collectObserversLocked(uris[i], 0, null, false, 0, myUserHandle, collector); in testUri()
100 final int myUserHandle = UserHandle.myUserId(); in testUriNotNotify() local
117 0, 0, myUserHandle); in testUriNotNotify()
122 root.collectObserversLocked(uris[i], 0, null, false, 0, myUserHandle, collector); in testUriNotNotify()
130 final int myUserHandle = UserHandle.myUserId(); in testCluster() local
144 true, root, 0, 1000, myUserHandle); in testCluster()
148 0, myUserHandle, collector); in testCluster()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/process/
DProcessWrapper.java36 return myUserHandle().isSystem(); in isSystemUser()
47 public UserHandle myUserHandle() { in myUserHandle() method in ProcessWrapper
48 return Process.myUserHandle(); in myUserHandle()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/handheld/
DUninstallAlertDialogFragment.java137 final UserHandle myUserHandle = Process.myUserHandle(); in onCreateDialog() local
150 } else if (!dialogInfo.user.equals(myUserHandle)) { in onCreateDialog()
158 && customUserManager.isSameProfileGroup(dialogInfo.user, myUserHandle)) { in onCreateDialog()
164 && customUserManager.isSameProfileGroup(dialogInfo.user, myUserHandle)) { in onCreateDialog()
171 && customUserManager.isSameProfileGroup(dialogInfo.user, myUserHandle)) { in onCreateDialog()
184 } else if (isCloneProfile(myUserHandle)) { in onCreateDialog()
188 } else if (Process.myUserHandle().equals(UserHandle.SYSTEM) in onCreateDialog()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/
DUninstallRepository.kt138 uninstalledUser = Process.myUserHandle() in performPreUninstallChecks()
144 "User " + Process.myUserHandle() + " can't request uninstall " + in performPreUninstallChecks()
204 val myUserHandle = Process.myUserHandle() in generateUninstallDetails() constant
219 } else if (uninstalledUser != myUserHandle) { in generateUninstallDetails()
228 if (userManager!!.isSameProfileGroup(myUserHandle, uninstalledUser!!)) { in generateUninstallDetails()
256 } else if (myUserHandle == UserHandle.SYSTEM && in generateUninstallDetails()
494 val myUserHandle = Process.myUserHandle() in handleUninstallResult() constant
499 findUserOfDeviceAdmin(myUserHandle, targetPackageName!!) in handleUninstallResult()
537 myUserHandle, in handleUninstallResult()
595 private fun findUserOfDeviceAdmin(myUserHandle: UserHandle, packageName: String): UserHandle? { in findUserOfDeviceAdmin()
[all …]
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUninstallFinish.java100 UserHandle myUserHandle = Process.myUserHandle(); in onReceive() local
105 if (isProfileOfOrSame(userManager, myUserHandle, otherUserHandle)) { in onReceive()
148 UserHandle myUserHandle = Process.myUserHandle(); in onReceive() local
149 if (isProfileOfOrSame(userManager, myUserHandle, otherBlockingUserHandle)) { in onReceive()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/television/
DUninstallAlertFragment.java66 final UserHandle myUserHandle = Process.myUserHandle(); in onCreateGuidance() local
77 } else if (!dialogInfo.user.equals(myUserHandle)) { in onCreateGuidance()
85 && customUserManager.isSameProfileGroup(dialogInfo.user, myUserHandle)) { in onCreateGuidance()
DUninstallAppProgress.java148 UserHandle myUserHandle = Process.myUserHandle(); in handleMessage() local
153 if (isProfileOfOrSame(userManager, myUserHandle, otherUserHandle)) { in handleMessage()
194 UserHandle myUserHandle = Process.myUserHandle(); in handleMessage() local
195 if (isProfileOfOrSame(userManager, myUserHandle, otherBlockingUserHandle)) { in handleMessage()
264 user = Process.myUserHandle(); in onCreate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DActionIntentExecutorTest.kt20 import android.os.Process.myUserHandle
67 val userHandle = myUserHandle() in launchIntent_callsCloseSystemWindows()
DDefaultScreenshotActionsProviderTest.kt51 private val validResult = ScreenshotSavedResult(Uri.EMPTY, Process.myUserHandle(), 0)
98 .startSharedTransition(intentCaptor.capture(), eq(Process.myUserHandle()), eq(false)) in <lambda>()
120 .startSharedTransition(intentCaptor.capture(), eq(Process.myUserHandle()), eq(true)) in <lambda>()
DImageExporterTest.java135 Process.myUserHandle(), Display.DEFAULT_DISPLAY); in testImageExport()
201 Process.myUserHandle(), customizedFileName); in testImageExport_customizedFileName()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DSliceBroadcastRelay.java61 Process.myUserHandle().getIdentifier())); in registerReceiver()
81 Process.myUserHandle().getIdentifier())); in unregisterReceivers()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DSensitiveContentProtectionManagerServiceContentTest.java100 new MediaProjectionInfo(mScreenRecorderPackage, Process.myUserHandle(), null); in setUp()
106 mExemptedScreenRecorderPackage, Process.myUserHandle(), null); in testExemptedRecorderPackageForScreenCapture()
153 int userId = Process.myUserHandle().getIdentifier(); in testAutofillServicePackageExemption()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/process/
DProcessWrapperFake.kt31 override fun myUserHandle() = userHandle method in com.android.systemui.process.ProcessWrapperFake
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DMediaRouter2ManagerTest.java391 android.os.Process.myUserHandle()); in testRouterOnSessionCreated()
419 android.os.Process.myUserHandle()); in testGetRoutingSessions()
461 android.os.Process.myUserHandle(), in testTransfer_unknownRoute_fail()
499 android.os.Process.myUserHandle(), in testRouterRelease_managerGetRoutingSessions()
537 android.os.Process.myUserHandle()), in testSelectAndTransferAndRelease()
552 android.os.Process.myUserHandle()), in testSelectAndTransferAndRelease()
611 mPackageName, route1, android.os.Process.myUserHandle()); in testTransferTwice()
614 mPackageName, route2, android.os.Process.myUserHandle()); in testTransferTwice()
664 android.os.Process.myUserHandle(), in testTransfer_ignored_fails()
739 android.os.Process.myUserHandle()); in testSetSessionVolume()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DInitializationChecker.kt36 Process.myUserHandle().isSystem &&
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DActionIntentExecutor.kt24 import android.os.Process.myUserHandle
99 if (user == myUserHandle()) { in launchIntent()
DScreenshotData.kt36 return userHandle ?: Process.myUserHandle() in getUserOrDefault()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/policy/
DPolicyRequestProcessor.kt24 import android.os.Process.myUserHandle in <lambda>()
53 private val defaultOwner: UserHandle = myUserHandle(), in <lambda>()
DScreenshotPolicyModule.kt81 defaultOwner = Process.myUserHandle(), in bindProfileTypeRepository()
/frameworks/base/core/java/android/app/
DUiAutomation.java317 Log.i(LOG_TAG, "Initialized for user " + Process.myUserHandle().getIdentifier() in UiAutomation()
364 Log.d(LOG_TAG, "connectWithTimeout: user=" + Process.myUserHandle().getIdentifier() in connectWithTimeout()
1540 grantRuntimePermissionAsUser(packageName, permission, android.os.Process.myUserHandle()); in grantRuntimePermission()
1586 revokeRuntimePermissionAsUser(packageName, permission, android.os.Process.myUserHandle()); in revokeRuntimePermission()
1867 + windowToken + ", user=" + Process.myUserHandle() in IAccessibilityServiceClientImpl()
1934 Log.v(LOG_TAG, "onAccessibilityEvent(" + Process.myUserHandle() + "): " in IAccessibilityServiceClientImpl()
/frameworks/base/tests/inputmethod/ConcurrentMultiSessionImeTest/src/com/android/server/inputmethod/multisessiontest/
DMainActivity.java52 + Process.myUserHandle().getIdentifier() + " on display " in onCreate()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
DSuggestionController.java84 android.os.Process.myUserHandle()); in start()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/recents/
DOverviewProxyServiceTest.kt206 `when`(Process.myUserHandle()).thenReturn(UserHandle.SYSTEM) in connectToOverviewService_primaryUser_expectBindService()
221 `when`(Process.myUserHandle()).thenReturn(UserHandle.of(12345)) in connectToOverviewService_nonPrimaryUser_expectNoBindService()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/draganddrop/
DDragAndDropPolicyTest.java158 .thenReturn(android.os.Process.myUserHandle()); in setUp()
195 doReturn(android.os.Process.myUserHandle()).when(pi).getCreatorUserHandle(); in createAppClipData()
199 i.putExtra(Intent.EXTRA_USER, android.os.Process.myUserHandle()); in createAppClipData()
/frameworks/base/telecomm/java/android/telecom/
DPhoneAccountHandle.java83 this(componentName, id, Process.myUserHandle()); in PhoneAccountHandle()

1234