Home
last modified time | relevance | path

Searched refs:getPackage (Results 1 – 25 of 132) sorted by relevance

123456

/frameworks/base/services/core/java/com/android/server/notification/
DNotificationHistoryFilter.java33 public String getPackage() { in getPackage() method in NotificationHistoryFilter
49 return getPackage() != null || getChannel() != null in isFiltering()
58 if (!TextUtils.isEmpty(getPackage())) { in matchesPackageAndChannelFilter()
59 if (!getPackage().equals(notification.getPackage())) { in matchesPackageAndChannelFilter()
DNotificationHistoryProtoHelper.java241 if (!notification.getPackage().equals(notification.getIcon().getResPackage())) { in writeIcon()
260 final int packageIndex = Arrays.binarySearch(stringPool, notification.getPackage()); in writeNotification()
265 Slog.w(TAG, "notification package name (" + notification.getPackage() in writeNotification()
267 proto.write(Notification.PACKAGE, notification.getPackage()); in writeNotification()
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/
DCloseImeWindowToHomeTest.java80 .showsLayer(mTestApp.getPackage()) in checkVisibility_imeAppLayerBecomesInvisible()
82 .hidesLayer(mTestApp.getPackage()) in checkVisibility_imeAppLayerBecomesInvisible()
89 .showsAppWindowOnTop(mTestApp.getPackage()) in checkVisibility_imeAppWindowBecomesInvisible()
91 .hidesAppWindowOnTop(mTestApp.getPackage()) in checkVisibility_imeAppWindowBecomesInvisible()
DCloseImeWindowToAppTest.java68 .showsLayer(mTestApp.getPackage()) in checkVisibility_imeAppLayerIsAlwaysVisible()
75 .showsAppWindowOnTop(mTestApp.getPackage()) in checkVisibility_imeAppWindowIsAlwaysVisible()
DSplitScreenToLauncherTest.java74 .showsLayer(mTestApp.getPackage()) in checkVisibility_appLayerBecomesInVisible()
76 .hidesLayer(mTestApp.getPackage()) in checkVisibility_appLayerBecomesInVisible()
DChangeAppRotationTest.java126 .hasVisibleRegion(mTestApp.getPackage(), startingPos).inTheBeginning(); in checkPosition_appLayerRotates()
128 .hasVisibleRegion(mTestApp.getPackage(), endingPos).atTheEnd(); in checkPosition_appLayerRotates()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotifyingAppTest.java41 assertEquals(null, na.getPackage()); in testConstructor()
48 assertEquals("test", na.getPackage()); in testPackage()
77 assertEquals(na.getPackage(), na1.getPackage()); in testWriteToParcel()
DNotificationHistoryProtoHelperTest.java145 expectedStrings.add(n.getPackage()); in testReadNotificationsWithPkgFilter()
187 expectedStrings.add(n.getPackage()); in testReadNotificationsWithNumberFilter()
239 expectedStrings.add(n.getPackage()); in testReadNotificationsWithNumberFilter_preExistingNotifs()
279 expectedStrings.add(n.getPackage()); in testReadMergeIntoExistingHistory()
297 expectedStrings.add(n.getPackage()); in testReadMergeIntoExistingHistory()
DShortcutHelperTest.java244 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()
/frameworks/base/core/java/android/service/notification/
DNotifyingApp.java53 public String getPackage() { in getPackage() method in NotifyingApp
123 return getPackage().compareTo(o.getPackage()); in compareTo()
/frameworks/base/core/java/android/app/
DNotificationHistory.java60 public String getPackage() { in getPackage() method in NotificationHistory.HistoricalNotification
131 Objects.equals(getPackage(), that.getPackage()) && in equals()
142 return Objects.hash(getPackage(), getChannelName(), getChannelId(), getUid(), in hashCode()
315 mStringsToWrite.add(notification.getPackage()); in poolStringsFromNotifications()
360 if (packageName.equals(mNotificationsToWrite.get(i).getPackage())) { in removeNotificationsFromWrite()
374 if (packageName.equals(hn.getPackage()) in removeNotificationFromWrite()
394 if (packageName.equals(hn.getPackage()) in removeConversationFromWrite()
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationHistoryTest.java98 assertThat(n.getPackage()).isEqualTo(expectedPackage); in testHistoricalNotificationBuilder()
152 assertThat(history.getPooledStringsToWrite()).asList().contains(n4.getPackage()); in testAddNotificationsToWrite()
162 expectedStrings.add(n.getPackage()); in testPoolStringsFromNotifications()
192 expectedStrings.add(n.getPackage()); in testAddPooledStrings()
227 postRemoveExpectedStrings.add(n.getPackage()); in testRemoveNotificationsFromWrite()
264 postRemoveExpectedStrings.add(n.getPackage()); in testRemoveNotificationFromWrite()
301 postRemoveExpectedStrings.add(n.getPackage()); in testRemoveConversationNotificationFromWrite()
/frameworks/base/core/java/android/app/prediction/
DAppTarget.java74 mPackageName = mShortcutInfo.getPackage(); in AppTarget()
97 mPackageName = mShortcutInfo.getPackage(); in AppTarget()
242 mPackageName = info.getPackage(); in Builder()
268 setTarget(info.getPackage(), info.getUserHandle()); in setTarget()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutRequestPinProcessor.java209 + " package=" + shortcutOriginal.getPackage()); in tryAccept()
301 inShortcut.getPackage(), inShortcut.getUserId()); in requestPinShortcutLocked()
308 Slog.d(TAG, "requestPinnedShortcut: package=" + inShortcut.getPackage() in requestPinShortcutLocked()
349 inShortcut.getPackage(), inShortcut.getUserId())); in requestPinShortcutLocked()
357 inShortcut.getPackage(), inShortcut.getUserId())); in requestPinShortcutLocked()
452 final String appPackageName = original.getPackage(); in directPinShortcut()
/frameworks/base/core/tests/coretests/src/android/debug/
DAdbNotificationsTest.java62 assertFalse(TextUtils.isEmpty(notification.contentIntent.getIntent().getPackage())); in testCreateNotification_UsbTransportType()
82 assertFalse(TextUtils.isEmpty(notification.contentIntent.getIntent().getPackage())); in testCreateNotification_WifiTransportType()
/frameworks/base/core/tests/coretests/src/android/content/res/
DFontResourcesParserTest.java106 assertEquals("com.example.test.fontprovider.package", providerEntry.getPackage()); in testParseDownloadableFont()
121 assertEquals("com.example.test.fontprovider.package", providerResourceEntry.getPackage()); in testParseDownloadableFont_singleCerts()
142 assertEquals("com.example.test.fontprovider.package", providerResourceEntry.getPackage()); in testParseDownloadableFont_multipleCerts()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccStateChangedLauncherTest.java113 assertEquals(PROVISIONING_PACKAGE_NAME, intentArgumentCaptor.getValue().getPackage()); in testProvisioningPackageSet()
124 assertEquals(PROVISIONING_PACKAGE_NAME, intentArgumentCaptor.getValue().getPackage()); in testProvisioningPackageSet()
139 assertEquals(PROVISIONING_PACKAGE_NAME, intentArgumentCaptor.getValue().getPackage()); in testProvisioningPackageSet()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DItemInflater.java30 setDefaultPackage(Item.class.getPackage().getName() + "."); in ItemInflater()
/frameworks/base/services/people/java/com/android/server/people/prediction/
DShareTargetPredictor.java145 String packageName = shortcutInfo.getPackage(); in getDirectShareTargets()
147 PackageData packageData = getDataManager().getPackage(packageName, userId); in getDirectShareTargets()
167 PackageData packageData = getDataManager().getPackage(target.getPackageName(), in getAppShareTargets()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
DOnePlayerService.java28 OnePlayerService.class.getPackage().getName()); in getServiceIntent()
/frameworks/base/services/robotests/src/com/android/server/pm/
DCrossProfileAppsServiceImplRoboTest.java151 when(mPackageManagerInternal.getPackage(uid)) in mockCrossProfileAppInstalledOnProfile()
439 when(mPackageManagerInternal.getPackage(WORK_PROFILE_UID)).thenReturn(null); in mockUninstallCrossProfileAppFromWorkProfile()
598 && CROSS_PROFILE_APP_PACKAGE_NAME.equals(intent.getPackage()); in isBroadcastCanInteractAcrossProfilesChanged()
602 when(mPackageManagerInternal.getPackage(CROSS_PROFILE_APP_PACKAGE_NAME)) in mockCrossProfileAndroidPackage()
604 when(mPackageManagerInternal.getPackage(PERSONAL_PROFILE_UID)).thenReturn(androidPackage); in mockCrossProfileAndroidPackage()
605 when(mPackageManagerInternal.getPackage(WORK_PROFILE_UID)).thenReturn(androidPackage); in mockCrossProfileAndroidPackage()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest2.java233 assertEquals(mClientContext.getPackageName(), si.getPackage()); in testShortcutInfoParcel()
264 assertEquals(getTestContext().getPackageName(), si.getPackage()); in testShortcutInfoParcel()
321 assertEquals(getTestContext().getPackageName(), si.getPackage()); in testShortcutInfoParcel_resId()
374 assertEquals(mClientContext.getPackageName(), si.getPackage()); in testShortcutInfoClone()
398 assertEquals(mClientContext.getPackageName(), si.getPackage()); in testShortcutInfoClone()
423 assertEquals(mClientContext.getPackageName(), si.getPackage()); in testShortcutInfoClone()
445 assertEquals(mClientContext.getPackageName(), si.getPackage()); in testShortcutInfoClone()
468 assertEquals(mClientContext.getPackageName(), si.getPackage()); in testShortcutInfoClone()
520 assertEquals(mClientContext.getPackageName(), si.getPackage()); in testShortcutInfoClone_resId()
544 assertEquals(mClientContext.getPackageName(), si.getPackage()); in testShortcutInfoClone_resId()
[all …]
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/
DImeAppHelper.java37 UiObject2 editText = device.findObject(By.res(getPackage(), "plain_text_input")); in clickEditTextWidget()
DPipAppHelper.java34 UiObject2 enterPipButton = device.findObject(By.res(getPackage(), "enter_pip")); in clickEnterPipButton()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DDataManagerTest.java331 ConversationInfo conversationInfo = mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY) in testReportAppTargetEvent_directSharing_createConversation()
500 ConversationInfo conversationInfo = mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY) in testNotificationChannelCreated()
525 ConversationInfo conversationInfo = mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY) in testNotificationChannelModified()
547 ConversationInfo conversationInfo = mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY) in testNotificationChannelDeleted()
554 conversationInfo = mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY) in testNotificationChannelDeleted()
701 assertNotNull(mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY)); in testDeleteUninstalledPackageDataOnPackageRemoved()
708 assertNull(mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY)); in testDeleteUninstalledPackageDataOnPackageRemoved()
718 assertNotNull(mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY)); in testPruneUninstalledPackageData()
723 assertNull(mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY)); in testPruneUninstalledPackageData()
806 ConversationInfo conversationInfo = dataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY) in testBackupAndRestoration()

123456