Home
last modified time | relevance | path

Searched refs:appUid (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/cmds/statsd/tests/e2e/
DMetricConditionLink_e2e_test.cpp114 int appUid = 123; in TEST() local
115 auto crashEvent1 = CreateAppCrashEvent(appUid, bucketStartTimeNs + 1); in TEST()
116 auto crashEvent2 = CreateAppCrashEvent(appUid, bucketStartTimeNs + 201); in TEST()
117 auto crashEvent3= CreateAppCrashEvent(appUid, bucketStartTimeNs + 2 * bucketSizeNs - 101); in TEST()
119 auto crashEvent4 = CreateAppCrashEvent(appUid, bucketStartTimeNs + 51); in TEST()
120 auto crashEvent5 = CreateAppCrashEvent(appUid, bucketStartTimeNs + bucketSizeNs + 299); in TEST()
121 auto crashEvent6 = CreateAppCrashEvent(appUid, bucketStartTimeNs + bucketSizeNs + 2001); in TEST()
123 auto crashEvent7 = CreateAppCrashEvent(appUid, bucketStartTimeNs + 16); in TEST()
124 auto crashEvent8 = CreateAppCrashEvent(appUid, bucketStartTimeNs + bucketSizeNs + 249); in TEST()
126 auto crashEvent9 = CreateAppCrashEvent(appUid, bucketStartTimeNs + bucketSizeNs + 351); in TEST()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java88 int appUid = intent.getIntExtra(Intent.EXTRA_UID, -1); in PermissionMonitor()
97 onAppAdded(appName, appUid); in PermissionMonitor()
99 onAppRemoved(appUid); in PermissionMonitor()
289 private synchronized void onAppAdded(String appName, int appUid) { in onAppAdded() argument
290 if (TextUtils.isEmpty(appName) || appUid < 0) { in onAppAdded()
291 loge("Invalid app in onAppAdded: " + appName + " | " + appUid); in onAppAdded()
297 final Boolean permission = highestPermissionForUid(mApps.get(appUid), appName); in onAppAdded()
298 if (permission != mApps.get(appUid)) { in onAppAdded()
299 mApps.put(appUid, permission); in onAppAdded()
302 apps.put(appUid, permission); in onAppAdded()
[all …]
/frameworks/base/core/java/android/bluetooth/
DUidTraffic.java31 public UidTraffic(int appUid) { in UidTraffic() argument
32 mAppUid = appUid; in UidTraffic()
35 public UidTraffic(int appUid, long rx, long tx) { in UidTraffic() argument
36 mAppUid = appUid; in UidTraffic()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationGutsManager.java121 private void startAppNotificationSettingsActivity(String packageName, final int appUid, in startAppNotificationSettingsActivity() argument
126 intent.putExtra(Settings.EXTRA_APP_UID, appUid); in startAppNotificationSettingsActivity()
130 mPresenter.startNotificationGutsIntent(intent, appUid, row); in startAppNotificationSettingsActivity()
264 onSettingsClick = (View v, NotificationChannel channel, int appUid) -> { in initializeNotificationInfo()
268 startAppNotificationSettingsActivity(packageName, appUid, channel, row); in initializeNotificationInfo()
DNotificationPresenter.java49 void startNotificationGutsIntent(Intent intent, int appUid, ExpandableNotificationRow row); in startNotificationGutsIntent() argument
DNotificationInfo.java128 void onClick(View v, NotificationChannel channel, int appUid); in onClick() argument
530 String packageName, int appUid, @Nullable NotificationChannel channelToUpdate, in UpdateImportanceRunnable() argument
534 mAppUid = appUid; in UpdateImportanceRunnable()
DNotificationGuts.java112 void onClick(View v, int appUid); in onClick() argument
/frameworks/base/services/core/java/com/android/server/am/
DServiceRecord.java579 final int appUid = appInfo.uid; in postNotification() local
652 if (nm.getNotificationChannel(localPackageName, appUid, in postNotification()
677 appUid, appPid, null, localForegroundId, localForegroundNoti, in postNotification()
687 ams.crashApplication(appUid, appPid, localPackageName, -1, in postNotification()
DBatteryStatsService.java318 void addIsolatedUid(int isolatedUid, int appUid) { in addIsolatedUid() argument
320 mStats.addIsolatedUidLocked(isolatedUid, appUid); in addIsolatedUid()
324 void removeIsolatedUid(int isolatedUid, int appUid) { in removeIsolatedUid() argument
326 mStats.scheduleRemoveIsolatedUidLocked(isolatedUid, appUid); in removeIsolatedUid()
DActivityManagerService.java23062 final int appUid = app.info.uid; in computeOomAdjLocked() local
23070 if (DEBUG_OOM_ADJ_REASON || logUid == appUid) { in computeOomAdjLocked()
23137 if (DEBUG_OOM_ADJ_REASON || logUid == appUid) { in computeOomAdjLocked()
23145 if (DEBUG_OOM_ADJ_REASON || logUid == appUid) { in computeOomAdjLocked()
23154 if (DEBUG_OOM_ADJ_REASON || logUid == appUid) { in computeOomAdjLocked()
23167 if (DEBUG_OOM_ADJ_REASON || logUid == appUid) { in computeOomAdjLocked()
23178 if (DEBUG_OOM_ADJ_REASON || logUid == appUid) { in computeOomAdjLocked()
23188 if (DEBUG_OOM_ADJ_REASON || logUid == appUid) { in computeOomAdjLocked()
23201 if (DEBUG_OOM_ADJ_REASON || logUid == appUid) { in computeOomAdjLocked()
23226 if (DEBUG_OOM_ADJ_REASON || logUid == appUid) { in computeOomAdjLocked()
[all …]
/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java783 final int appUid = 10001; in testApply464xlatAdjustments() local
789 otherIface, appUid, SET_DEFAULT, TAG_NONE, in testApply464xlatAdjustments()
797 .addValues(v4Iface, appUid, SET_DEFAULT, TAG_NONE, in testApply464xlatAdjustments()
814 assertValues(stats, 0, v4Iface, appUid, SET_DEFAULT, TAG_NONE, in testApply464xlatAdjustments()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationInfoTest.java276 (View v, NotificationChannel c, int appUid) -> { in testBindNotification_SetsOnClickListenerForSettings()
301 (View v, NotificationChannel c, int appUid) -> { in testBindNotification_SettingsButtonReappearsAfterSecondBind()
329 (View v, NotificationChannel c, int appUid) -> { in testOnClickListenerPassesNullChannelForBundle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBar.java5276 public void startNotificationGutsIntent(final Intent intent, final int appUid, in startNotificationGutsIntent() argument
5284 new UserHandle(UserHandle.getUserId(appUid))); in startNotificationGutsIntent()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java4030 public void addIsolatedUidLocked(int isolatedUid, int appUid) { in addIsolatedUidLocked() argument
4031 mIsolatedUids.put(isolatedUid, appUid); in addIsolatedUidLocked()
4032 StatsLog.write(StatsLog.ISOLATED_UID_CHANGED, appUid, isolatedUid, in addIsolatedUidLocked()
4034 final Uid u = getUidStatsLocked(appUid); in addIsolatedUidLocked()
4042 public void scheduleRemoveIsolatedUidLocked(int isolatedUid, int appUid) { in scheduleRemoveIsolatedUidLocked() argument
4044 if (curUid == appUid) { in scheduleRemoveIsolatedUidLocked()