/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | NotificationsPreferenceController.java | 44 private int mUid; field in NotificationsPreferenceController 61 mUid = packageInfo.applicationInfo.uid; in setPackageInfo() 79 if (mNotificationManager.onlyHasDefaultChannel(mPackageName, mUid)) { in handlePreferenceChanged() 83 mUid, in handlePreferenceChanged() 88 .updateNotificationChannelForPackage(mPackageName, mUid, defaultChannel); in handlePreferenceChanged() 90 mNotificationManager.setNotificationsEnabledForPackage(mPackageName, mUid, enabled); in handlePreferenceChanged() 100 return mNotificationManager.areNotificationsEnabledForPackage(mPackageName, mUid); in isNotificationsEnabled()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | NotificationSettingsBase.java | 69 protected int mUid; field in NotificationSettingsBase 101 mUid = mArgs != null && mArgs.containsKey(AppInfoBase.ARG_PACKAGE_UID) in onAttach() 105 if (mUid < 0) { in onAttach() 107 mUid = mPm.getPackageUid(mPkg, 0); in onAttach() 112 mPkgInfo = findPackageInfo(mPkg, mUid); in onAttach() 115 mUserId = UserHandle.getUserId(mUid); in onAttach() 143 if (mUid < 0 || TextUtils.isEmpty(mPkg) || mPkgInfo == null) { in onCreate() 161 if (mUid < 0 || TextUtils.isEmpty(mPkg) || mPkgInfo == null || mAppRow == null) { in onResume() 187 mChannel = mBackend.getChannel(mPkg, mUid, channelId); in loadChannel() 204 NotificationChannelGroup group = mBackend.getGroup(mPkg, mUid, mChannel.getGroup()); in loadChannelGroup() [all …]
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | NotificationSettingsBase.java | 77 protected int mUid; field in NotificationSettingsBase 109 mUid = mArgs != null && mArgs.containsKey(AppInfoBase.ARG_PACKAGE_UID) in onAttach() 113 if (mUid < 0) { in onAttach() 115 mUid = mPm.getPackageUid(mPkg, 0); in onAttach() 120 mPkgInfo = findPackageInfo(mPkg, mUid); in onAttach() 123 mUserId = UserHandle.getUserId(mUid); in onAttach() 150 if (mUid < 0 || TextUtils.isEmpty(mPkg) || mPkgInfo == null) { in onCreate() 168 if (mUid < 0 || TextUtils.isEmpty(mPkg) || mPkgInfo == null || mAppRow == null) { in onResume() 194 mChannel = mBackend.getChannel(mPkg, mUid, channelId); in loadChannel() 211 NotificationChannelGroup group = mBackend.getGroup(mPkg, mUid, mChannel.getGroup()); in loadChannelGroup()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowAppOpsManager.java | 70 PackageOps packageOp = new PackageOps(key.mPackageName, key.mUid, in getPackagesForOps() 79 private int mUid; field in ShadowAppOpsManager.InternalKey 83 mUid = uid; in InternalKey() 91 return mUid == that.mUid && mPackageName.equals(that.mPackageName); in equals() 98 return Objects.hash(mUid, mPackageName); in hashCode()
|
/packages/services/Car/service/src/com/android/car/stats/ |
D | VmsClientStats.java | 31 private final int mUid; field in VmsClientStats 59 mUid = uid; in VmsClientStats() 71 this.mUid = other.mUid; in VmsClientStats() 123 return mUid; in getUid()
|
D | VmsClientLogger.java | 58 private final int mUid; field in VmsClientLogger 68 mUid = clientUid; in VmsClientLogger() 73 return mUid; in getUid() 87 mUid, mPackageName, connectionState); in logConnectionState() 147 (k) -> new VmsClientStats(mUid, layer)); in getLayerEntry()
|
/packages/modules/ExtServices/tests/src/android/ext/services/notification/ |
D | NotificationEntryTest.java | 62 private int mUid = 2018; field in NotificationEntryTest 81 return new StatusBarNotification(mPkg, mPkg, 0, "tag", mUid, mUid, n, in generateSbn() 90 return new StatusBarNotification(packageName, packageName, 0, "tag", mUid, mUid, n, in generateSbn() 95 return new StatusBarNotification(mPkg, mPkg, 0, "tag", mUid, mUid, n, in generateSbn() 103 mUid = Process.myUid(); in setUp()
|
D | AgingHelperTest.java | 57 private int mUid = 2018; field in AgingHelperTest 81 return new StatusBarNotification(mPkg, mPkg, 0, "tag", mUid, mUid, n, in generateSbn() 89 mUid = Process.myUid(); in setUp()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | ProcStatsEntry.java | 42 final int mUid; field in ProcStatsEntry 65 mUid = proc.getUid(); in ProcStatsEntry() 83 mUid = uid; in ProcStatsEntry() 94 mUid = in.readInt(); in ProcStatsEntry() 146 = stats.mPackages.get(mPackages.get(ipkg), mUid); in evaluateTargetPackage() 153 + mUid + " in process " + mName); in evaluateTargetPackage() 159 + mPackages.get(ipkg) + "/" + mUid); in evaluateTargetPackage() 280 dest.writeInt(mUid); in writeToParcel() 301 return mUid; in getUid()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ProcStatsEntry.java | 42 final int mUid; field in ProcStatsEntry 65 mUid = proc.getUid(); in ProcStatsEntry() 83 mUid = uid; in ProcStatsEntry() 94 mUid = in.readInt(); in ProcStatsEntry() 146 = stats.mPackages.get(mPackages.get(ipkg), mUid); in evaluateTargetPackage() 153 + mUid + " in process " + mName); in evaluateTargetPackage() 159 + mPackages.get(ipkg) + "/" + mUid); in evaluateTargetPackage() 280 dest.writeInt(mUid); in writeToParcel() 301 return mUid; in getUid()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | BackgroundActivityPreferenceController.java | 50 private final int mUid; field in BackgroundActivityPreferenceController 72 mUid = uid; in BackgroundActivityPreferenceController() 86 .checkOpNoThrow(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, mUid, mTargetPackage); in updateState() 111 .checkOpNoThrow(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, mUid, mTargetPackage); in handlePreferenceTreeClick() 125 .checkOpNoThrow(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, mUid, mTargetPackage); in updateSummary() 139 .setUid(mUid) in showDialog()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BackgroundActivityPreferenceController.java | 50 private final int mUid; field in BackgroundActivityPreferenceController 72 mUid = uid; in BackgroundActivityPreferenceController() 86 .checkOpNoThrow(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, mUid, mTargetPackage); in updateState() 111 .checkOpNoThrow(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, mUid, mTargetPackage); in handlePreferenceTreeClick() 125 .checkOpNoThrow(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, mUid, mTargetPackage); in updateSummary() 139 .setUid(mUid) in showDialog()
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | CredentialStorage.java | 259 private final int mUid; field in CredentialStorage.InstallKeyInKeyChain 267 mUid = uid; in InstallKeyInKeyChain() 274 if (!service.installKeyPair(mKeyData, mCertData, mCaListData, mAlias, mUid)) { in doInBackground() 281 if (mUid == Process.SYSTEM_UID || mUid == KeyStore.UID_SELF) { in doInBackground() 287 Log.w(TAG, String.format("Failed to install key %s to uid %d", mAlias, mUid), e); in doInBackground() 298 CredentialStorage.this.onKeyInstalled(mAlias, mUid, result); in onPostExecute()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryUtilsTest.java | 124 private BatteryStats.Uid mUid; field in BatteryUtilsTest 179 doReturn(TIME_STATE_TOP).when(mUid).getProcessStateTime(eq(PROCESS_STATE_TOP), anyLong(), in setUp() 181 doReturn(TIME_STATE_FOREGROUND_SERVICE).when(mUid).getProcessStateTime( in setUp() 183 doReturn(TIME_STATE_TOP_SLEEPING).when(mUid).getProcessStateTime( in setUp() 185 doReturn(TIME_STATE_FOREGROUND).when(mUid).getProcessStateTime(eq(PROCESS_STATE_FOREGROUND), in setUp() 187 doReturn(TIME_STATE_BACKGROUND).when(mUid).getProcessStateTime(eq(PROCESS_STATE_BACKGROUND), in setUp() 250 .getForegroundActivityTotalTimeUs(eq(mUid), anyLong()); in testGetProcessTimeMs_typeForeground_timeCorrect() 252 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.FOREGROUND, mUid, in testGetProcessTimeMs_typeForeground_timeCorrect() 260 final long time = mBatteryUtils.getProcessTimeMs(BatteryUtils.StatusType.BACKGROUND, mUid, in testGetProcessTimeMs_typeBackground_timeCorrect() 269 .getForegroundActivityTotalTimeUs(eq(mUid), anyLong()); in testGetProcessTimeMs_typeAll_timeCorrect() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | AppFocusService.java | 197 ownershipCallback.onFocusAbandoned(appType, info.mUid, info.mPid); in abandonAppFocus() 355 private final int mUid; field in AppFocusService.ClientInfo 362 this.mUid = uid; in ClientInfo() 382 return "ClientInfo{mUid=" + mUid + ",mPid=" + mPid in toString() 390 private final int mUid; field in AppFocusService.OwnershipClientInfo 397 this.mUid = uid; in OwnershipClientInfo() 423 return mUid; in getUid() 433 return "ClientInfo{mUid=" + mUid + ",mPid=" + mPid in toString()
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
D | CredentialHelper.java | 84 private int mUid = Process.INVALID_UID; field in CredentialHelper 112 mUid = uid; in CredentialHelper() 127 outStates.putInt(Credentials.EXTRA_INSTALL_AS_UID, mUid); in onSaveStates() 150 mUid = savedStates.getInt(Credentials.EXTRA_INSTALL_AS_UID, Process.INVALID_UID); in onRestoreStates() 292 mUid = getUidFromCertificateUsage(certUsageSelected); in setCertUsageSelectedAndUid() 309 intent.putExtra(Credentials.EXTRA_INSTALL_AS_UID, mUid); in createSystemInstallIntent() 459 if (mUid != UID_SELF) { in hasOnlyVpnAndAppsTrustAnchors() 479 return mUid; in getUid()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpItem.java | 73 private long mUid; field in AvrcpItem 106 return mUid; in getUid() 225 extras.putLong(AVRCP_ITEM_KEY_UID, mUid); in toMediaItem() 237 return "AvrcpItem{mUuid=" + mUuid + ", mUid=" + mUid + ", mItemType=" + mItemType in toString() 257 && Objects.equals(mUid, other.getUid()) in equals() 414 mAvrcpItem.mUid = uid; in setUid()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | SyncStateSwitchPreference.java | 42 private int mUid; field in SyncStateSwitchPreference 55 mUid = 0; in SyncStateSwitchPreference() 68 mUid = uid; in setup() 171 return mUid; in getUid()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/ |
D | SyncStateSwitchPreference.java | 42 private int mUid; field in SyncStateSwitchPreference 55 mUid = 0; in SyncStateSwitchPreference() 68 mUid = uid; in setup() 171 return mUid; in getUid()
|
/packages/services/Car/procfs-inspector/server/ |
D | process.h | 30 uid_t getUid() { return mUid; } in getUid() 33 ProcessInfo(pid_t pid = -1, uid_t uid = -1) : mPid(pid), mUid(uid) {} in mPid() 40 uid_t mUid; variable
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | NotificationChannelSlice.java | 139 private int mUid; field in NotificationChannelSlice 163 mUid = getApplicationUid(mPackageName); in getSlice() 172 .setSubtitle(getSubTitle(mPackageName, mUid)) in getSlice() 207 args.putInt(AppInfoBase.ARG_PACKAGE_UID, mUid); in getIntent() 252 channelArgs.putInt(AppInfoBase.ARG_PACKAGE_UID, mUid); in buildRowSliceAction() 302 .putExtra(PACKAGE_UID, mUid) in getToggleIntent() 445 mUid); in isChannelEnabled()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/ |
D | NotificationChannelSlice.java | 136 private int mUid; field in NotificationChannelSlice 167 mUid = getApplicationUid(mPackageName); in getSlice() 176 .setSubtitle(getSubTitle(mPackageName, mUid)) in getSlice() 211 args.putInt(AppInfoBase.ARG_PACKAGE_UID, mUid); in getIntent() 245 channelArgs.putInt(AppInfoBase.ARG_PACKAGE_UID, mUid); in buildRowSliceAction() 297 .putExtra(PACKAGE_UID, mUid) in getToggleIntent() 444 mUid); in isChannelEnabled()
|
/packages/services/Car/car-lib/src/android/car/cluster/renderer/ |
D | InstrumentClusterRenderingService.java | 125 final int mUid; field in InstrumentClusterRenderingService.ContextOwner 131 mUid = uid; in ContextOwner() 146 return "{uid: " + mUid + ", pid: " + mPid + ", packagenames: " + mPackageNames in toString() 310 if (contextOwner == null || contextOwner.mUid == 0 || mActivityOptions == null in updateNavigationActivity() 545 if (mNavContextOwner.mUid != uid || mNavContextOwner.mPid != pid) { in assertContextOwnership() 619 int userId = UserHandle.getUserId(contextOwner.mUid); in getBitmap() 698 int userId = UserHandle.getUserId(contextOwner.mUid); in getBitmap()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/ |
D | CredentialStorage.java | 258 private final int mUid; field in CredentialStorage.InstallKeyInKeyChain 266 mUid = uid; in InstallKeyInKeyChain() 273 .installKeyPair(mKeyData, mCertData, mCaListData, mAlias, mUid); in doInBackground() 275 Log.w(TAG, String.format("Failed to install key %s to uid %d", mAlias, mUid), e); in doInBackground() 288 CredentialStorage.this.onKeyInstalled(mAlias, mUid, result); in onPostExecute()
|
/packages/apps/Car/Settings/src/com/android/car/settings/security/ |
D | CredentialStorageActivity.java | 279 private final int mUid; field in CredentialStorageActivity.InstallKeyInKeyChain 287 mUid = uid; in InstallKeyInKeyChain() 295 .installKeyPair(mKeyData, mCertData, mCaListData, mAlias, mUid); in doInBackground() 297 LOG.w(String.format("Failed to install key %s to uid %d", mAlias, mUid), e); in doInBackground() 310 CredentialStorageActivity.this.onKeyInstalled(mAlias, mUid, result); in onPostExecute()
|