Home
last modified time | relevance | path

Searched refs:mUid (Results 1 – 25 of 59) sorted by relevance

123

/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DNotificationsPreferenceController.java44 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/
DNotificationSettingsBase.java69 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/
DNotificationSettingsBase.java78 protected int mUid; field in NotificationSettingsBase
111 mUid = mArgs != null && mArgs.containsKey(AppInfoBase.ARG_PACKAGE_UID) in onAttach()
115 if (mUid < 0) { in onAttach()
117 mUid = mPm.getPackageUid(mPkg, 0); in onAttach()
122 mPkgInfo = findPackageInfo(mPkg, mUid); in onAttach()
125 mUserId = UserHandle.getUserId(mUid); in onAttach()
153 if (mUid < 0 || TextUtils.isEmpty(mPkg) || mPkgInfo == null) { in onCreate()
171 if (mUid < 0 || TextUtils.isEmpty(mPkg) || mPkgInfo == null || mAppRow == null) { in onResume()
197 mChannel = mBackend.getChannel(mPkg, mUid, channelId); in loadChannel()
214 NotificationChannelGroup group = mBackend.getGroup(mPkg, mUid, mChannel.getGroup()); in loadChannelGroup()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowAppOpsManager.java70 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/modules/ExtServices/tests/src/android/ext/services/notification/
DNotificationEntryTest.java62 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()
DAgingHelperTest.java57 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/apps/Settings/src/com/android/settings/applications/
DProcStatsEntry.java42 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/applications/
DProcStatsEntry.java42 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/
DBackgroundActivityPreferenceController.java50 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/
DBackgroundActivityPreferenceController.java50 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/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java124 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/apps/CertInstaller/src/com/android/certinstaller/
DCredentialHelper.java73 private int mUid = -1; field in CredentialHelper
93 mUid = bundle.getInt(Credentials.EXTRA_INSTALL_AS_UID, -1); in CredentialHelper()
109 outStates.putInt(Credentials.EXTRA_INSTALL_AS_UID, mUid); in onSaveStates()
132 mUid = savedStates.getInt(Credentials.EXTRA_INSTALL_AS_UID, -1); in onRestoreStates()
265 mUid = uid; in setInstallAsUid()
269 return mUid != -1; in isInstallAsUidSet()
273 return mUid; in getInstallAsUid()
282 intent.putExtra(Credentials.EXTRA_INSTALL_AS_UID, mUid); in createSystemInstallIntent()
/packages/services/Car/service/src/com/android/car/
DAppFocusService.java197 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/UnifiedEmail/src/com/android/emailcommon/mail/
DMessage.java29 protected String mUid; field in Message
38 return mUid; in getUid()
42 this.mUid = uid; in setUid()
144 return getClass().getSimpleName() + ':' + mUid; in toString()
/packages/apps/Settings/src/com/android/settings/accounts/
DSyncStateSwitchPreference.java42 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/
DSyncStateSwitchPreference.java42 private int mUid; field in SyncStateSwitchPreference
55 mUid = 0; in SyncStateSwitchPreference()
68 mUid = uid; in setup()
171 return mUid; in getUid()
/packages/services/Car/car-lib/src/android/car/cluster/renderer/
DInstrumentClusterRenderingService.java116 final int mUid; field in InstrumentClusterRenderingService.ContextOwner
122 mUid = uid; in ContextOwner()
137 return "{uid: " + mUid + ", pid: " + mPid + ", packagenames: " + mPackageNames in toString()
219 if (contextOwner == null || contextOwner.mUid == 0 || mActivityOptions == null in updateNavigationActivity()
455 if (mNavContextOwner.mUid != uid || mNavContextOwner.mPid != pid) { in assertContextOwnership()
526 int userId = UserHandle.getUserId(contextOwner.mUid); in getBitmap()
590 int userId = UserHandle.getUserId(contextOwner.mUid); in getBitmap()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DNotificationChannelSlice.java136 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/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DNotificationChannelSlice.java143 private int mUid; field in NotificationChannelSlice
168 mUid = getApplicationUid(mPackageName); in getSlice()
177 .setSubtitle(getSubTitle(mPackageName, mUid)) in getSlice()
212 args.putInt(AppInfoBase.ARG_PACKAGE_UID, mUid); in getIntent()
257 channelArgs.putInt(AppInfoBase.ARG_PACKAGE_UID, mUid); in buildRowSliceAction()
308 .putExtra(PACKAGE_UID, mUid) in getToggleIntent()
451 mUid); in isChannelEnabled()
/packages/services/Car/procfs-inspector/server/
Dprocess.h30 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/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DIoStatsTrackerTest.java246 private final int mUid; field in IoStatsTrackerTest.UserActivity
262 mUid = uid; in UserActivity()
273 UidIoRecord uidIoRecord = new UidIoRecord(mUid, in updateSystemState()
287 systemState.addProcess(new ProcessInfo(1, mUid)); in updateSystemState()
289 systemState.removeUserProcesses(mUid); in updateSystemState()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DAppInfo.java45 uid = builder.mUid; in AppInfo()
110 private int mUid; field in AppInfo.Builder
128 mUid = uid; in setUid()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DSyncPreference.java35 private int mUid; field in SyncPreference
120 return mUid; in getUid()
125 mUid = uid; in setUid()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DAppInfo.java45 uid = builder.mUid; in AppInfo()
110 private int mUid; field in AppInfo.Builder
128 mUid = uid; in setUid()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DEntityHeaderController.java90 private int mUid = UserHandle.USER_NULL; field in EntityHeaderController
211 mUid = uid; in setUid()
289 || mUid == UserHandle.USER_NULL) { in bindAppInfoLink()
298 mPackageName, mUid, mFragment, 0 /* request */, in bindAppInfoLink()

123