/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/drawer/ |
D | ProfileSelectDialogTest.java | 55 NORMAL_USER.getIdentifier(), "test_user", UserInfo.FLAG_RESTRICTED); in setUp() 56 when(mUserManager.getUserInfo(NORMAL_USER.getIdentifier())).thenReturn(userInfo); in setUp() 68 assertEquals(tile.userHandle.get(0).getIdentifier(), NORMAL_USER.getIdentifier()); in testUpdateUserHandlesIfNeeded_Normal() 69 verify(mUserManager, never()).getUserInfo(NORMAL_USER.getIdentifier()); in testUpdateUserHandlesIfNeeded_Normal() 83 assertEquals(tile.userHandle.get(0).getIdentifier(), NORMAL_USER.getIdentifier()); in testUpdateUserHandlesIfNeeded_Remove() 84 verify(mUserManager, times(1)).getUserInfo(NORMAL_USER.getIdentifier()); in testUpdateUserHandlesIfNeeded_Remove() 85 verify(mUserManager, times(2)).getUserInfo(REMOVED_USER.getIdentifier()); in testUpdateUserHandlesIfNeeded_Remove()
|
/frameworks/base/core/tests/benchmarks/src/android/content/res/ |
D | ResourcesBenchmark.java | 45 mTextId = mRes.getIdentifier("cancel", "string", "android"); in setUp() 46 mColorId = mRes.getIdentifier("transparent", "color", "android"); in setUp() 47 mIntegerId = mRes.getIdentifier("config_shortAnimTime", "integer", "android"); in setUp() 48 mLayoutId = mRes.getIdentifier("two_line_list_item", "layout", "android"); in setUp()
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | RemotePrintSpooler.java | 176 Slog.i(LOG_TAG, "[user: " + mUserHandle.getIdentifier() + "] getPrintJobInfos()"); in getPrintJobInfos() 198 Slog.i(LOG_TAG, "[user: " + mUserHandle.getIdentifier() + "] createPrintJob()"); in createPrintJob() 219 Slog.i(LOG_TAG, "[user: " + mUserHandle.getIdentifier() + "] writePrintJobData()"); in writePrintJobData() 244 Slog.i(LOG_TAG, "[user: " + mUserHandle.getIdentifier() + "] getPrintJobInfo()"); in getPrintJobInfo() 267 Slog.i(LOG_TAG, "[user: " + mUserHandle.getIdentifier() + "] setPrintJobState()"); in setPrintJobState() 296 Slog.i(LOG_TAG, "[user: " + mUserHandle.getIdentifier() + "] setProgress()"); in setProgress() 323 Slog.i(LOG_TAG, "[user: " + mUserHandle.getIdentifier() + "] setStatus()"); in setStatus() 352 Slog.i(LOG_TAG, "[user: " + mUserHandle.getIdentifier() + "] setStatus()"); in setStatus() 383 "[user: " + mUserHandle.getIdentifier() + "] onCustomPrinterIconLoaded()"); in onCustomPrinterIconLoaded() 416 "[user: " + mUserHandle.getIdentifier() + "] getCustomPrinterIcon()"); in getCustomPrinterIcon() [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbSettingsManager.java | 91 UserInfo parentUserInfo = mUserManager.getProfileParent(user.getIdentifier()); in getSettingsForProfileGroup() 100 parentUser.getIdentifier()); in getSettingsForProfileGroup() 103 mSettingsByProfileGroup.put(parentUser.getIdentifier(), settings); in getSettingsForProfileGroup() 116 mSettingsByUser.remove(userToRemove.getIdentifier()); in remove() 120 if (mSettingsByProfileGroup.indexOfKey(userToRemove.getIdentifier()) >= 0) { in remove() 123 mSettingsByProfileGroup.remove(userToRemove.getIdentifier()); in remove()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | CertificateMonitor.java | 145 if (!mInjector.getUserManager().isUserUnlocked(userHandle.getIdentifier())) { in updateInstalledCertificates() 183 int parentUserId = userHandle.getIdentifier(); in buildNotification() 185 if (mService.getProfileOwner(userHandle.getIdentifier()) != null) { in buildNotification() 187 mService.getProfileOwnerName(userHandle.getIdentifier())); in buildNotification() 189 parentUserId = mService.getProfileParentId(userHandle.getIdentifier()); in buildNotification() 190 } else if (mService.getDeviceOwnerUserId() == userHandle.getIdentifier()) { in buildNotification() 204 dialogIntent.putExtra(Intent.EXTRA_USER_ID, userHandle.getIdentifier()); in buildNotification()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | LauncherAppsService.java | 222 return canAccessProfile(callingPackage, targetUser.getIdentifier(), message); in canAccessProfile() 284 return isUserEnabled(user.getIdentifier()); in isUserEnabled() 327 callingUid, user.getIdentifier()); in resolveActivity() 358 callingUid, user.getIdentifier()); in queryActivitiesForUser() 407 callingUid, user.getIdentifier()); in isPackageEnabled() 431 callingUid, user.getIdentifier()); in getApplicationInfo() 464 componentName, flags, targetUser.getIdentifier())); in getShortcuts() 480 callingPackage, packageName, ids, targetUser.getIdentifier()); in pinShortcuts() 594 callingUid, user.getIdentifier()); in isActivityEnabled() 627 callingUid, user.getIdentifier()); in startActivityAsUser() [all …]
|
/frameworks/base/core/java/android/os/ |
D | UserManager.java | 1140 return isUserRunning(user.getIdentifier()); in isUserRunning() 1172 user.getIdentifier(), ActivityManager.FLAG_OR_STOPPED); in isUserRunningOrStopping() 1215 return isUserUnlocked(user.getIdentifier()); in isUserUnlocked() 1229 return isUserUnlockingOrUnlocked(user.getIdentifier()); in isUserUnlockingOrUnlocked() 1273 return mService.getUserRestrictionSource(restrictionKey, userHandle.getIdentifier()); in getUserRestrictionSource() 1292 return mService.getUserRestrictionSources(restrictionKey, userHandle.getIdentifier()); in getUserRestrictionSources() 1313 return mService.getUserRestrictions(userHandle.getIdentifier()); in getUserRestrictions() 1329 return mService.hasBaseUserRestriction(restrictionKey, userHandle.getIdentifier()); in hasBaseUserRestriction() 1385 mService.setUserRestriction(key, value, userHandle.getIdentifier()); in setUserRestriction() 1412 userHandle.getIdentifier()); in hasUserRestriction() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserState.java | 67 mUnlockProgress = new ProgressReporter(handle.getIdentifier()); in UserState() 75 Slog.w(TAG, "Expected user " + mHandle.getIdentifier() + " in state " in setState() 85 final int userId = mHandle.getIdentifier(); in setState()
|
/frameworks/base/core/java/android/content/pm/ |
D | AppsQueryHelper.java | 83 mAllApps = getAllApps(user.getIdentifier()); in queryApps() 102 user.getIdentifier()); in queryApps() 123 Manifest.permission.INTERACT_ACROSS_USERS, user.getIdentifier()); in queryApps() 138 new Intent(InputMethod.SERVICE_INTERFACE), user.getIdentifier()); in queryApps()
|
D | LauncherApps.java | 417 if (UserHandle.myUserId() != target.getIdentifier() && mUserManager.isManagedProfile()) { in logErrorForInvalidProfileAccess() 493 Log.i(TAG, "StartMainActivity " + component + " " + user.getIdentifier()); in startMainActivity() 632 + user.getIdentifier()); in getApplicationInfo() 788 return getShortcutIconFd(packageName, shortcutId, user.getIdentifier()); in getShortcutIconFd() 923 user.getIdentifier()); in startShortcut() 1051 Log.d(TAG, "onPackageRemoved " + user.getIdentifier() + "," + packageName); 1063 Log.d(TAG, "onPackageChanged " + user.getIdentifier() + "," + packageName); 1075 Log.d(TAG, "onPackageAdded " + user.getIdentifier() + "," + packageName); 1088 Log.d(TAG, "onPackagesAvailable " + user.getIdentifier() + "," + packageNames); 1101 Log.d(TAG, "onPackagesUnavailable " + user.getIdentifier() + "," + packageNames); [all …]
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
D | MusicItem.java | 57 .getIdentifier(mFile, "raw", context.getPackageName())); in getMediaSourceUri() 86 .getIdentifier(mArt, "drawable", context.getPackageName()); in getMediaAlbumArtResId()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/ |
D | AppRestrictionsHelper.java | 77 mRestrictedProfile = mUserManager.getUserInfo(mUser.getIdentifier()).isRestricted(); in AppRestrictionsHelper() 97 if (!mRestrictedProfile && mUser.getIdentifier() != UserHandle.myUserId()) { in applyUserAppsStates() 110 final int userId = mUser.getIdentifier(); in applyUserAppState() 118 mIPm.installExistingPackageAsUser(packageName, mUser.getIdentifier(), in applyUserAppState() 142 PackageManager.DELETE_SYSTEM_APP, mUser.getIdentifier()); in applyUserAppState() 216 PackageManager.MATCH_UNINSTALLED_PACKAGES, mUser.getIdentifier()); in fetchAndMergeApps() 352 return mIPm.getApplicationInfo(packageName, flags, user.getIdentifier()); in getAppInfoForUser()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
D | Partner.java | 103 final int partnerId = partner.getIdentifier(name, type); in getResourceEntry() 188 public int getIdentifier(String name, String defType) { in getIdentifier() method in Partner 189 return mResources.getIdentifier(name, defType, mPackageName); in getIdentifier()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/ |
D | AuthenticatorHelper.java | 177 .getAuthenticatorTypesAsUser(mUserHandle.getIdentifier()); in updateAuthDescriptions() 204 accounts = AccountManager.get(mContext).getAccountsAsUser(mUserHandle.getIdentifier()); in onAccountsUpdated() 224 .getAccountsAsUser(mUserHandle.getIdentifier()); in onReceive() 254 mUserHandle.getIdentifier()); in buildAccountTypeToAuthoritiesMap()
|
/frameworks/base/core/java/android/service/notification/ |
D | StatusBarNotification.java | 117 String sbnKey = user.getIdentifier() + "|" + pkg + "|" + id + "|" + tag + "|" + uid; in key() 126 return user.getIdentifier() + "|" + pkg + "|" + "g:" + overrideGroupKey; in groupKey() 134 return user.getIdentifier() + "|" + pkg + "|" + in groupKey() 252 return this.user.getIdentifier(); in getUserId()
|
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/models/ |
D | Song.java | 98 .getIdentifier(mFile, "raw", context.getPackageName()); in getFileResource() 103 .getIdentifier(mImage, "drawable", context.getPackageName()); in getImageResource()
|
/frameworks/base/core/jni/ |
D | android_view_InputDevice.cpp | 46 env->NewStringUTF(deviceInfo.getIdentifier().descriptor.string())); in android_view_InputDevice_create() 58 const InputDeviceIdentifier& ident = deviceInfo.getIdentifier(); in android_view_InputDevice_create()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/ |
D | ProfileSelectDialog.java | 82 if (userManager.getUserInfo(userHandles.get(i).getIdentifier()) == null) { in updateUserHandlesIfNeeded() 84 Log.d(TAG, "Delete the user: " + userHandles.get(i).getIdentifier()); in updateUserHandlesIfNeeded()
|
D | UserAdapter.java | 55 UserInfo userInfo = um.getUserInfo(mUserHandle.getIdentifier()); in UserDetails() 107 int userHandle = user.mUserHandle.getIdentifier(); in getTitle() 142 return data.get(position).mUserHandle.getIdentifier(); in getItemId()
|
/frameworks/base/core/java/android/app/usage/ |
D | StorageStatsManager.java | 199 user.getIdentifier(), mContext.getOpPackageName()); in queryStatsForPackage() 278 return mService.queryStatsForUser(convert(storageUuid), user.getIdentifier(), in queryStatsForUser() 315 return mService.queryExternalStatsForUser(convert(storageUuid), user.getIdentifier(), in queryExternalStatsForUser()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/ |
D | AppRestrictionsHelperTest.java | 76 mTestUser.getIdentifier(), "test_user", UserInfo.FLAG_RESTRICTED); in setUp() 77 when(mUm.getUserInfo(mTestUser.getIdentifier())).thenReturn(user); in setUp() 129 final int testUserId = mTestUser.getIdentifier(); in testApplyUserAppsStates() 153 nullable(IPackageDeleteObserver.class), anyInt(), eq(mTestUser.getIdentifier())); in testApplyUserAppsStates()
|
/frameworks/base/core/java/android/service/trust/ |
D | TrustAgentService.java | 485 mCallback.addEscrowToken(token, user.getIdentifier()); in addEscrowToken() 508 mCallback.isEscrowTokenActive(handle, user.getIdentifier()); in isEscrowTokenActive() 531 mCallback.removeEscrowToken(handle, user.getIdentifier()); in removeEscrowToken() 559 mCallback.unlockUserWithToken(handle, token, user.getIdentifier()); in unlockUserWithToken()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LockscreenWallpaper.java | 109 selectedUser != null ? selectedUser.getIdentifier() : currentUserId; in loadBitmap() 128 mWallpaperManager.getBitmapAsUser(selectedUser.getIdentifier())); in loadBitmap() 139 if (mSelectedUser == null || user != mSelectedUser.getIdentifier()) { in setCurrentUser()
|
/frameworks/compile/libbcc/lib/ |
D | Source.cpp | 215 getIdentifier().c_str(), pSource.getIdentifier().c_str()); in merge() 224 const std::string &Source::getIdentifier() const { in getIdentifier() function in bcc::Source
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/ |
D | RenderTests.java | 713 assertEquals(id, resources.getIdentifier("string/app_name", null, null)); in testResourcesGetIdentifier() 714 assertEquals(id, resources.getIdentifier("app_name", "string", null)); in testResourcesGetIdentifier() 715 assertEquals(0, resources.getIdentifier("string/does_not_exist", null, null)); in testResourcesGetIdentifier() 716 assertEquals(R.string.accept, resources.getIdentifier("android:string/accept", null, in testResourcesGetIdentifier() 718 assertEquals(R.string.accept, resources.getIdentifier("string/accept", null, in testResourcesGetIdentifier() 720 assertEquals(R.id.message, resources.getIdentifier("id/message", null, in testResourcesGetIdentifier() 722 assertEquals(R.string.accept, resources.getIdentifier("accept", "string", in testResourcesGetIdentifier()
|