Home
last modified time | relevance | path

Searched refs:PKG (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DGlobalSortKeyComparatorTest.java42 private final String PKG = "PKG"; field in GlobalSortKeyComparatorTest
51 new StatusBarNotification(PKG, in testComparator()
52 PKG, 1, "media", UID, UID, n, in testComparator()
58 new StatusBarNotification(PKG, in testComparator()
59 PKG, 1, "media", UID, UID, n, in testComparator()
65 new StatusBarNotification(PKG, in testComparator()
66 PKG, 1, "media", UID, UID, n, in testComparator()
90 new StatusBarNotification(PKG, in testNoCrash_leftNull()
91 PKG, 1, "media", UID, UID, n, in testNoCrash_leftNull()
96 new StatusBarNotification(PKG, in testNoCrash_leftNull()
[all …]
DNotificationManagerServiceTest.java250 private final String PKG = mContext.getPackageName(); field in NotificationManagerServiceTest
476 when(mPackageManager.getPackagesForUid(mUid)).thenReturn(new String[]{PKG}); in setUp()
477 when(mPackageManagerClient.getPackagesForUid(anyInt())).thenReturn(new String[]{PKG}); in setUp()
495 null, new ComponentName(PKG, "test_class"), in setUp()
568 when(info.getPackage()).thenReturn(PKG); in setUp()
589 PKG, new ParceledListSlice(Arrays.asList(mTestNotificationChannel))); in setUp()
595 PKG, mContext.getUserId(), PKG, TEST_CHANNEL_ID)); in setUp()
730 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, id, in generateNotificationRecord()
752 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, 8, "tag", mUid, 0, in generateNotificationRecord()
764 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, 1, "tag", mUid, 0, in generateNotificationRecord()
[all …]
DRankingHelperTest.java65 private static final String PKG = "com.android.server.notification"; field in RankingHelperTest
113 when(mPm.getApplicationInfoAsUser(eq(PKG), anyInt(), anyInt())).thenReturn(legacy); in setUp()
116 when(mPm.getPackageUidAsUser(eq(PKG), anyInt())).thenReturn(UID); in setUp()
122 when(mPm.getPackageInfoAsUser(eq(PKG), anyInt(), anyInt())) in setUp()
158 PKG, PKG, 1, null, 0, 0, mNotiGroupGSortA, user, in setUp()
168 PKG, PKG, 1, null, 0, 0, mNotiGroupGSortB, user, in setUp()
176 PKG, PKG, 1, null, 0, 0, mNotiNoGroup, user, in setUp()
184 PKG, PKG, 1, null, 0, 0, mNotiNoGroup2, user, in setUp()
193 PKG, PKG, 1, null, 0, 0, mNotiNoGroupSortA, user, in setUp()
306 PKG, PKG, 1, "summary", 0, 0, lowSummaryN, USER, in testGroupNotifications_highestIsProxy()
[all …]
DShortcutHelperTest.java66 private static final String PKG = "pkg"; field in ShortcutHelperTest
99 when(mSbn.getPackageName()).thenReturn(PKG); in setUp()
216 callback.onShortcutsChanged(PKG, Collections.emptyList(), mock(UserHandle.class)); in testOnShortcutsChanged_listenerRemoved()
228 callback.onShortcutsChanged(PKG, shortcutInfos, mock(UserHandle.class)); in testListenerNotifiedOnShortcutRemoved()
255 when(si.getPackage()).thenReturn(PKG); in testGetValidShortcutInfo_notLongLived()
273 when(si.getPackage()).thenReturn(PKG); in testGetValidShortcutInfo_notSharingShortcut()
290 when(si.getPackage()).thenReturn(PKG); in testGetValidShortcutInfo_notEnabled()
307 when(si.getPackage()).thenReturn(PKG); in testGetValidShortcutInfo_isValid()
328 when(si.getPackage()).thenReturn(PKG); in testGetValidShortcutInfo_isValidButUserLocked()
DBubbleExtractorTest.java69 private static final String PKG = "com.android.server.notification"; field in BubbleExtractorTest
104 when(mConfig.getNotificationChannel(PKG, UID, CHANNEL_ID, false)).thenReturn(mChannel); in setUp()
129 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, ID, TAG, UID, in getNotificationRecord()
153 when(mShortcutHelper.getValidShortcutInfo(SHORTCUT_ID, PKG, mUser)).thenReturn(answer); in setUpShortcutBubble()
/frameworks/base/core/tests/coretests/src/android/service/notification/
DStatusBarNotificationTest.java56 private static final String PKG = "com.example.o"; field in StatusBarNotificationTest
82 final LogMaker logMaker = getNotification(PKG, GROUP_ID_1, CHANNEL_ID).getLogMaker(); in testLogMaker()
85 assertEquals(PKG, logMaker.getPackageName()); in testLogMaker()
102 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerNoStaleData()
113 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithCategory()
120 final LogMaker logMaker = getNotification(PKG, GROUP_ID_1, null).getLogMaker(); in testLogMakerNoChannel()
127 final LogMaker logMaker = getNotification(PKG, null, CHANNEL_ID_LONG).getLogMaker(); in testLogMakerLongChannel()
136 final LogMaker logMaker = getNotification(PKG, null, CHANNEL_ID).getLogMaker(); in testLogMakerNoGroup()
144 final LogMaker logMaker = getNotification(PKG, GROUP_ID_LONG, CHANNEL_ID) in testLogMakerLongGroup()
155 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerOverrideGroup()
[all …]
/frameworks/base/services/core/java/com/android/server/
DHardwarePropertiesManagerService.java132 final String PKG = getCallingPackageName(); in dump() local
133 dumpTempValues(PKG, pw, DEVICE_TEMPERATURE_CPU, "CPU "); in dump()
134 dumpTempValues(PKG, pw, DEVICE_TEMPERATURE_GPU, "GPU "); in dump()
135 dumpTempValues(PKG, pw, DEVICE_TEMPERATURE_BATTERY, "Battery "); in dump()
136 dumpTempValues(PKG, pw, DEVICE_TEMPERATURE_SKIN, "Skin "); in dump()
138 float[] fanSpeeds = getFanSpeeds(PKG); in dump()
141 CpuUsageInfo[] cpuUsageInfos = getCpuUsages(PKG); in dump()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationTestHelper.java92 public static final String PKG = "com.android.systemui"; field in NotificationTestHelper
173 return createRow(PKG, UID, USER_HANDLE); in createRow()
197 return generateRow(notification, PKG, UID, USER_HANDLE, 0 /* extraInflationFlags */); in createRow()
210 return generateRow(createNotification(), PKG, UID, USER_HANDLE, extraInflationFlags); in createRow()
232 return createRow(PKG, UID, USER_HANDLE, true /* isGroupSummary */, groupkey); in createGroupSummary()
236 return createRow(PKG, UID, USER_HANDLE, false /* isGroupSummary */, groupkey); in createGroupChild()
247 ExpandableNotificationRow row = generateRow(n, PKG, UID, USER_HANDLE, in createBubble()
264 ExpandableNotificationRow row = generateRow(n, PKG, UID, USER_HANDLE, in createBubbleInGroup()
308 .setPkg(PKG) in createBubble()
309 .setOpPkg(PKG) in createBubble()
/frameworks/base/core/proto/android/providers/settings/
Dglobal.proto432 // ANGLE - Corresponding OpenGL driver selection for the PKG
460 // ANGLE - Show a dialog box when ANGLE is selected for the currently running PKG
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DQuotaController.java2253 mPkg.dumpDebug(proto, StateControllerProto.QuotaController.Timer.PKG);
2361 mPkg.dumpDebug(proto, StateControllerProto.QuotaController.TopAppTimer.PKG);
2937 StateControllerProto.QuotaController.InQuotaAlarmListener.Alarm.PKG);
/frameworks/base/proto/src/metrics_constants/
Dmetrics_constants.proto2084 // the package of the 3rd party app in the PKG field.
2090 // the package of the 3rd party app in the PKG field.
2096 // the package of the 3rd party app in the PKG field.
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProtoDumpUtil.java1683 proto.write(SettingProto.PKG, setting.getPackageName()); in dumpSetting()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DAlarmManagerService.java3370 proto.write(IdleDispatchEntryProto.PKG, ent.pkg); in dumpProto()