Home
last modified time | relevance | path

Searched refs:PKG (Results 1 – 14 of 14) 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.java223 private final String PKG = mContext.getPackageName(); field in NotificationManagerServiceTest
428 when(mPackageManager.getPackagesForUid(mUid)).thenReturn(new String[]{PKG}); in setUp()
429 when(mPackageManagerClient.getPackagesForUid(anyInt())).thenReturn(new String[]{PKG}); in setUp()
443 null, new ComponentName(PKG, "test_class"), in setUp()
486 when(info.getPackage()).thenReturn(PKG); in setUp()
506 PKG, new ParceledListSlice(Arrays.asList(mTestNotificationChannel))); in setUp()
512 PKG, mContext.getUserId(), PKG, TEST_CHANNEL_ID)); in setUp()
595 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, id, in generateNotificationRecord()
616 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, 8, "tag", mUid, 0, in generateNotificationRecord()
628 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, 1, "tag", mUid, 0, in generateNotificationRecord()
[all …]
DRankingHelperTest.java64 private static final String PKG = "com.android.server.notification"; field in RankingHelperTest
111 when(mPm.getApplicationInfoAsUser(eq(PKG), anyInt(), anyInt())).thenReturn(legacy); in setUp()
114 when(mPm.getPackageUidAsUser(eq(PKG), anyInt())).thenReturn(UID); in setUp()
120 when(mPm.getPackageInfoAsUser(eq(PKG), anyInt(), anyInt())) in setUp()
155 PKG, PKG, 1, null, 0, 0, mNotiGroupGSortA, user, in setUp()
165 PKG, PKG, 1, null, 0, 0, mNotiGroupGSortB, user, in setUp()
173 PKG, PKG, 1, null, 0, 0, mNotiNoGroup, user, in setUp()
181 PKG, PKG, 1, null, 0, 0, mNotiNoGroup2, user, in setUp()
190 PKG, PKG, 1, null, 0, 0, mNotiNoGroupSortA, user, in setUp()
303 PKG, PKG, 1, "summary", 0, 0, lowSummaryN, USER, in testGroupNotifications_highestIsProxy()
[all …]
DShortcutHelperTest.java61 private static final String PKG = "pkg"; field in ShortcutHelperTest
89 when(mSbn.getPackageName()).thenReturn(PKG); in setUp()
205 callback.onShortcutsChanged(PKG, Collections.emptyList(), mock(UserHandle.class)); in testOnShortcutsChanged_listenerRemoved()
217 callback.onShortcutsChanged(PKG, shortcutInfos, mock(UserHandle.class)); in testListenerNotifiedOnShortcutRemoved()
244 when(si.getPackage()).thenReturn(PKG); in testGetValidShortcutInfo_notLongLived()
262 when(si.getPackage()).thenReturn(PKG); in testGetValidShortcutInfo_notSharingShortcut()
279 when(si.getPackage()).thenReturn(PKG); in testGetValidShortcutInfo_notEnabled()
296 when(si.getPackage()).thenReturn(PKG); in testGetValidShortcutInfo_isValid()
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()
DAlarmManagerService.java2825 proto.write(IdleDispatchEntryProto.PKG, ent.pkg); in dumpProto()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationTestHelper.java86 public static final String PKG = "com.android.systemui"; field in NotificationTestHelper
164 return createRow(PKG, UID, USER_HANDLE); in createRow()
188 return generateRow(notification, PKG, UID, USER_HANDLE, 0 /* extraInflationFlags */); in createRow()
201 return generateRow(createNotification(), PKG, UID, USER_HANDLE, extraInflationFlags); in createRow()
223 return createRow(PKG, UID, USER_HANDLE, true /* isGroupSummary */, groupkey); in createGroupSummary()
227 return createRow(PKG, UID, USER_HANDLE, false /* isGroupSummary */, groupkey); in createGroupChild()
235 return createBubble(makeBubbleMetadata(null), PKG, true); in createBubbleInGroup()
243 return createBubble(makeBubbleMetadata(null), PKG, false); in createBubble()
253 return createBubble(makeBubbleMetadata(deleteIntent), PKG, false); in createBubble()
/frameworks/base/packages/CarSystemUI/tests/src/com/android/systemui/car/notification/
DNotificationVisibilityLoggerTest.java57 private static final String PKG = "package_1"; field in NotificationVisibilityLoggerTest
85 mMessageNotification = new AlertEntry(new StatusBarNotification(PKG, OP_PKG, in setUp()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DQuotaController.java1659 mPkg.dumpDebug(proto, StateControllerProto.QuotaController.Timer.PKG); in dump()
2016 StateControllerProto.QuotaController.InQuotaAlarmListener.Alarm.PKG); in dumpLocked()
/frameworks/base/core/proto/android/providers/settings/
Dglobal.proto429 // ANGLE - Corresponding OpenGL driver selection for the PKG
456 // ANGLE - Show a dialog box when ANGLE is selected for the currently running 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.java1702 proto.write(SettingProto.PKG, setting.getPackageName()); in dumpSetting()