Home
last modified time | relevance | path

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

12345678

/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()
/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.java255 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()
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/
DMailAppHelper.kt41 val rowSel = By.res(getPackage(), "mail_row_item_text") in openMail()
51 uiDevice.wait(Until.gone(By.res(getPackage(), MAIL_LIST_RES_ID)), FIND_TIMEOUT) in openMail()
60 var sel = By.res(getPackage(), MAIL_LIST_RES_ID).scrollable(true) in waitForMailList()
DImeAppAutoFocusHelper.kt64 getPackage() in open()
70 val button = uiDevice.wait(Until.findObject(By.res(getPackage(), in startDialogThemedActivity()
118 val button = uiDevice.wait(Until.findObject(By.res(getPackage(), in toggleFixPortraitOrientation()
DImeAppHelper.kt48 Until.findObject(By.res(getPackage(), "plain_text_input")), in openIME()
90 Until.findObject(By.res(getPackage(), "finish_activity_btn")), in finishActivity()
/frameworks/base/core/java/android/service/notification/
DNotifyingApp.java54 public String getPackage() { in getPackage() method in NotifyingApp
124 return getPackage().compareTo(o.getPackage()); in compareTo()
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DJniUtilTest.kt34 JniUtil.getJniLibraryName(java.util.Set::class.java.getPackage())) in testGetJniLibraryName()
36 JniUtil.getJniLibraryName(org.junit.Before::class.java.getPackage())) in testGetJniLibraryName()
/frameworks/base/core/java/android/app/
DNotificationHistory.java58 public String getPackage() { in getPackage() method in NotificationHistory.HistoricalNotification
129 Objects.equals(getPackage(), that.getPackage()) && in equals()
140 return Objects.hash(getPackage(), getChannelName(), getChannelId(), getUid(), in hashCode()
313 mStringsToWrite.add(notification.getPackage()); in poolStringsFromNotifications()
358 if (packageName.equals(mNotificationsToWrite.get(i).getPackage())) { in removeNotificationsFromWrite()
372 if (packageName.equals(hn.getPackage()) in removeNotificationFromWrite()
392 if (packageName.equals(hn.getPackage()) in removeConversationsFromWrite()
413 if (packageName.equals(hn.getPackage()) in removeChannelFromWrite()
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationHistoryTest.java100 assertThat(n.getPackage()).isEqualTo(expectedPackage); in testHistoricalNotificationBuilder()
154 assertThat(history.getPooledStringsToWrite()).asList().contains(n4.getPackage()); in testAddNotificationsToWrite()
164 expectedStrings.add(n.getPackage()); in testPoolStringsFromNotifications()
194 expectedStrings.add(n.getPackage()); in testAddPooledStrings()
229 postRemoveExpectedStrings.add(n.getPackage()); in testRemoveNotificationsFromWrite()
266 postRemoveExpectedStrings.add(n.getPackage()); in testRemoveNotificationFromWrite()
303 postRemoveExpectedStrings.add(n.getPackage()); in testRemoveConversationNotificationFromWrite()
342 postRemoveExpectedStrings.add(n.getPackage()); in testRemoveChannelFromWrite()
/frameworks/base/core/java/android/app/prediction/
DAppTarget.java72 mPackageName = mShortcutInfo.getPackage(); in AppTarget()
95 mPackageName = mShortcutInfo.getPackage(); in AppTarget()
237 mPackageName = info.getPackage(); in Builder()
263 setTarget(info.getPackage(), info.getUserHandle()); in setTarget()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutRequestPinProcessor.java209 + " package=" + shortcutOriginal.getPackage()); in tryAccept()
302 inShortcut.getPackage(), inShortcut.getUserId()); in requestPinShortcutLocked()
309 Slog.d(TAG, "requestPinnedShortcut: package=" + inShortcut.getPackage() in requestPinShortcutLocked()
348 inShortcut.getPackage(), inShortcut.getUserId())); in requestPinShortcutLocked()
356 inShortcut.getPackage(), inShortcut.getUserId())); in requestPinShortcutLocked()
451 final String appPackageName = original.getPackage(); in directPinShortcut()
DDomainVerificationConnection.java86 public AndroidPackage getPackage(@NonNull String packageName) { in getPackage() method in DomainVerificationConnection
87 return mPm.snapshotComputer().getPackage(packageName); in getPackage()
DComputerEngine.java195 public PackageStateInternal getPackage(@NonNull String packageName) { in getPackage() method in ComputerEngine.Settings
205 PackageStateInternal pkgState = getPackage(componentInfo.packageName); in isEnabledAndMatch()
217 PackageStateInternal pkgState = getPackage(component.getPackageName()); in isEnabledAndMatch()
500 final String pkgName = intent.getPackage(); in queryIntentActivitiesInternal()
699 String pkgName = intent.getPackage(); in queryIntentServicesInternalBody()
889 PackageStateInternal ps = mSettings.getPackage(component.getPackageName()); in getActivityInfoInternalBody()
905 public AndroidPackage getPackage(String packageName) { in getPackage() method in ComputerEngine
911 public AndroidPackage getPackage(int uid) { in getPackage() method in ComputerEngine
924 PackageStateInternal ps = mSettings.getPackage(packageName); in generateApplicationInfoFromSettings()
990 PackageStateInternal ps = mSettings.getPackage(packageName); in getApplicationInfoInternalBody()
[all …]
/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccStateChangedLauncherTest.java111 assertEquals(PROVISIONING_PACKAGE_NAME, intentArgumentCaptor.getValue().getPackage()); in testProvisioningPackageSet()
122 assertEquals(PROVISIONING_PACKAGE_NAME, intentArgumentCaptor.getValue().getPackage()); in testProvisioningPackageSet()
137 assertEquals(PROVISIONING_PACKAGE_NAME, intentArgumentCaptor.getValue().getPackage()); in testProvisioningPackageSet()
/frameworks/base/core/tests/coretests/src/android/content/res/
DFontResourcesParserTest.java108 assertEquals("com.example.test.fontprovider.package", providerEntry.getPackage()); in testParseDownloadableFont()
124 assertEquals("com.example.test.fontprovider.package", providerResourceEntry.getPackage()); in testParseDownloadableFont_singleCerts()
145 assertEquals("com.example.test.fontprovider.package", providerResourceEntry.getPackage()); in testParseDownloadableFont_multipleCerts()
/frameworks/base/tests/componentalias/src/android/content/componentalias/tests/
DComponentAliasServiceTest.java128 assertThat(m.getIntent().getOriginalIntent().getPackage()) in testStartAndStopService_common()
129 .isEqualTo(originalIntent.getPackage()); in testStartAndStopService_common()
225 assertThat(m.getIntent().getOriginalIntent().getPackage()) in testBindAndUnbindService_common()
226 .isEqualTo(originalIntent.getPackage()); in testBindAndUnbindService_common()
/frameworks/base/services/robotests/src/com/android/server/pm/
DCrossProfileAppsServiceImplRoboTest.java158 when(mPackageManagerInternal.getPackage(uid)) in mockCrossProfileAppInstalledOnProfile()
477 when(mPackageManagerInternal.getPackage(WORK_PROFILE_UID)).thenReturn(null); in mockUninstallCrossProfileAppFromWorkProfile()
636 && CROSS_PROFILE_APP_PACKAGE_NAME.equals(intent.getPackage()); in isBroadcastCanInteractAcrossProfilesChanged()
640 when(mPackageManagerInternal.getPackage(CROSS_PROFILE_APP_PACKAGE_NAME)) in mockCrossProfileAndroidPackage()
642 when(mPackageManagerInternal.getPackage(PERSONAL_PROFILE_UID)) in mockCrossProfileAndroidPackage()
644 when(mPackageManagerInternal.getPackage(WORK_PROFILE_UID)) in mockCrossProfileAndroidPackage()
646 when(mPackageManagerInternal.getPackage(OTHER_PROFILE_GROUP_UID)) in mockCrossProfileAndroidPackage()
648 when(mPackageManagerInternal.getPackage(OTHER_PROFILE_GROUP_2_UID)) in mockCrossProfileAndroidPackage()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DItemInflater.java30 setDefaultPackage(Item.class.getPackage().getName() + "."); in ItemInflater()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
DOnePlayerService.java28 OnePlayerService.class.getPackage().getName()); in getServiceIntent()
/frameworks/libs/net/common/device/com/android/net/module/util/
DTcUtils.java26 System.loadLibrary(JniUtil.getJniLibraryName(TcUtils.class.getPackage())); in JniUtil.getJniLibraryName()
/frameworks/base/services/core/java/com/android/server/pm/snapshot/
DPackageDataSnapshot.java36 AndroidPackage getPackage(String packageName); in getPackage() method
/frameworks/base/services/people/java/com/android/server/people/prediction/
DShareTargetPredictor.java178 String packageName = shortcutInfo.getPackage(); in getDirectShareTargets()
180 PackageData packageData = getDataManager().getPackage(packageName, userId); in getDirectShareTargets()
200 PackageData packageData = getDataManager().getPackage(target.getPackageName(), in getAppShareTargets()

12345678