Home
last modified time | relevance | path

Searched refs:mShortcutInfo (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/accessibilityservice/
DAccessibilityShortcutInfoTest.java59 private AccessibilityShortcutInfo mShortcutInfo; field in AccessibilityShortcutInfoTest
67 mShortcutInfo = getAccessibilityShortcutInfo(mComponentName); in setUp()
68 assertNotNull("Can't find " + mComponentName, mShortcutInfo); in setUp()
78 mShortcutInfo.loadDescription(mPackageManager), is(description)); in testDescription()
88 mShortcutInfo.loadSummary(mPackageManager), is(summary)); in testSummary()
98 mShortcutInfo.loadIntro(mPackageManager), is(intro)); in testIntro()
104 mShortcutInfo.getAnimatedImageRes(), is(R.drawable.bitmap_drawable)); in testAnimatedImageRes()
110 mShortcutInfo.loadAnimatedImage(mTargetContext)); in testLoadAnimatedImage()
120 mShortcutInfo.loadHtmlDescription(mPackageManager), is(htmlDescription)); in testHtmlDescription()
126 mShortcutInfo.getSettingsActivityName(), is(SETTINGS_ACTIVITY_NAME)); in testSettingsActivity()
[all …]
/frameworks/base/core/java/android/app/prediction/
DAppTarget.java42 private final ShortcutInfo mShortcutInfo; field in AppTarget
54 mShortcutInfo = null; in AppTarget()
70 mShortcutInfo = Objects.requireNonNull(shortcutInfo); in AppTarget()
72 mPackageName = mShortcutInfo.getPackage(); in AppTarget()
73 mUser = mShortcutInfo.getUserHandle(); in AppTarget()
81 mShortcutInfo = shortcutInfo; in AppTarget()
90 mShortcutInfo = parcel.readTypedObject(ShortcutInfo.CREATOR); in AppTarget()
91 if (mShortcutInfo == null) { in AppTarget()
95 mPackageName = mShortcutInfo.getPackage(); in AppTarget()
96 mUser = mShortcutInfo.getUserHandle(); in AppTarget()
[all …]
/frameworks/base/core/java/android/app/people/
DConversationChannel.java37 private ShortcutInfo mShortcutInfo; field in ConversationChannel
62 mShortcutInfo = shortcutInfo; in ConversationChannel()
75 mShortcutInfo = shortcutInfo; in ConversationChannel()
86mShortcutInfo = in.readParcelable(ShortcutInfo.class.getClassLoader(), android.content.pm.Shortcut… in ConversationChannel()
105 dest.writeParcelable(mShortcutInfo, flags); in writeToParcel()
116 return mShortcutInfo; in getShortcutInfo()
156 "mShortcutInfo=" + mShortcutInfo + in toString()
/frameworks/base/core/java/android/service/notification/
DConversationChannelWrapper.java36 private ShortcutInfo mShortcutInfo; field in ConversationChannelWrapper
46mShortcutInfo = in.readParcelable(ShortcutInfo.class.getClassLoader(), android.content.pm.Shortcut… in ConversationChannelWrapper()
56 dest.writeParcelable(mShortcutInfo, flags); in writeToParcel()
106 return mShortcutInfo; in getShortcutInfo()
110 mShortcutInfo = shortcutInfo; in setShortcutInfo()
DNotificationListenerService.java1767 private ShortcutInfo mShortcutInfo; field in NotificationListenerService.Ranking
1809 out.writeParcelable(mShortcutInfo, flags); in writeToParcel()
1849 mShortcutInfo = in.readParcelable(cl, android.content.pm.ShortcutInfo.class); in Ranking()
2126 return mShortcutInfo; in getConversationShortcutInfo()
2174 mShortcutInfo = shortcutInfo; in populate()
2217 other.mShortcutInfo, in populate()
2277 && Objects.equals((mShortcutInfo == null ? 0 : mShortcutInfo.getId()), in equals()
2278 (other.mShortcutInfo == null ? 0 : other.mShortcutInfo.getId())) in equals()
/frameworks/base/core/java/android/app/search/
DSearchTarget.java137 private final ShortcutInfo mShortcutInfo; field in SearchTarget
157 mShortcutInfo = parcel.readTypedObject(ShortcutInfo.CREATOR); in SearchTarget()
185 mShortcutInfo = shortcutInfo; in SearchTarget()
268 return mShortcutInfo; in getShortcutInfo()
319 parcel.writeTypedObject(mShortcutInfo, flags); in writeToParcel()
363 private ShortcutInfo mShortcutInfo; field in SearchTarget.Builder
413 mShortcutInfo = Objects.requireNonNull(shortcutInfo); in setShortcutInfo()
503 mSearchAction, mShortcutInfo, mSliceUri, mAppWidgetProviderInfo, in build()
/frameworks/base/core/java/com/android/internal/app/chooser/
DSelectableTargetInfo.java64 private ShortcutInfo mShortcutInfo; field in SelectableTargetInfo
85 mShortcutInfo = shortcutInfo; in SelectableTargetInfo()
125 mShortcutInfo = other.mShortcutInfo; in SelectableTargetInfo()
157 shortcutInfo = mShortcutInfo; in loadIcon()
165 mShortcutInfo = null; in loadIcon()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/
DRankingBuilder.java59 private ShortcutInfo mShortcutInfo = null; field in RankingBuilder
90 mShortcutInfo = ranking.getConversationShortcutInfo(); in RankingBuilder()
121 mShortcutInfo, in build()
211 mShortcutInfo = shortcutInfo; in setShortcutInfo()
/frameworks/base/core/java/android/content/pm/
DShortcutManager.java694 private final ShortcutInfo mShortcutInfo; field in ShortcutManager.ShareShortcutInfo
709 mShortcutInfo = shortcutInfo; in ShareShortcutInfo()
714mShortcutInfo = in.readParcelable(ShortcutInfo.class.getClassLoader(), android.content.pm.Shortcut… in ShareShortcutInfo()
720 return mShortcutInfo; in getShortcutInfo()
735 dest.writeParcelable(mShortcutInfo, flags); in writeToParcel()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubble.java96 private ShortcutInfo mShortcutInfo; field in Bubble
210 mShortcutInfo = shortcutInfo; in Bubble()
375 return mShortcutInfo; in getShortcutInfo()
571 mShortcutInfo = info.shortcutInfo; in setViewInfo()
628 mShortcutInfo = entry.getRanking().getConversationShortcutInfo(); in setEntry()
775 return null != mShortcutInfo; in isConversation()
931 final ApplicationInfo info = pm.getApplicationInfo(mShortcutInfo.getPackage(), 0); in getUid()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DPeopleProviderTest.java62 private final ShortcutInfo mShortcutInfo = field in PeopleProviderTest
65 new ConversationChannel(mShortcutInfo, USER_HANDLE_A.getIdentifier(),
DPeopleSpaceUtilsTest.java124 private final ShortcutInfo mShortcutInfo = new ShortcutInfo.Builder(mContext, field in PeopleSpaceUtilsTest
448 new PeopleSpaceTile.Builder(mShortcutInfo, in testUpdateSingleConversationAppWidgetToRemoveBirthdayWhenNoLongerBirthday()
472 new PeopleSpaceTile.Builder(mShortcutInfo, in testUpdateSingleConversationAppWidgetWhenBirthday()
/frameworks/base/core/java/android/window/
DWindowContainerTransaction.java1465 private ShortcutInfo mShortcutInfo; field in WindowContainerTransaction.HierarchyOp
1599 mShortcutInfo = copy.mShortcutInfo; in HierarchyOp()
1620 mShortcutInfo = in.readTypedObject(ShortcutInfo.CREATOR); in HierarchyOp()
1704 return mShortcutInfo; in getShortcutInfo()
1781 .append(" info=").append(mShortcutInfo); in toString()
1841 dest.writeTypedObject(mShortcutInfo, flags); in writeToParcel()
1902 private ShortcutInfo mShortcutInfo; field in WindowContainerTransaction.HierarchyOp.Builder
1989 mShortcutInfo = shortcutInfo; in setShortcutInfo()
2022 hierarchyOp.mShortcutInfo = mShortcutInfo; in build()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationConversationInfo.java104 private ShortcutInfo mShortcutInfo; field in NotificationConversationInfo
163 mPeopleSpaceWidgetManager.requestPinAppWidget(mShortcutInfo, new Bundle());
237 mShortcutInfo = entry.getRanking().getConversationShortcutInfo(); in bindNotification()
238 if (mShortcutInfo == null) { in bindNotification()
337 Drawable person = mIconFactory.getBaseIconDrawable(mShortcutInfo); in bindIcon()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DBubbleExtractorTest.java88 ShortcutInfo mShortcutInfo; field in BubbleExtractorTest
105 when(mShortcutInfo.getId()).thenReturn(SHORTCUT_ID); in setUp()
132 r.setShortcutInfo(mShortcutInfo); in getNotificationRecord()
152 ShortcutInfo answer = isValid ? mShortcutInfo : null; in setUpShortcutBubble()
DShortcutHelperTest.java87 ShortcutInfo mShortcutInfo; field in ShortcutHelperTest
100 when(mShortcutInfo.getId()).thenReturn(SHORTCUT_ID); in setUp()
112 when(mockRecord.getShortcutInfo()).thenReturn(mShortcutInfo); in setUpMockNotificationRecord()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationConversationInfoTest.java125 private ShortcutInfo mShortcutInfo; field in NotificationConversationInfoTest
195 when(mShortcutInfo.getLabel()).thenReturn("Convo name"); in setUp()
196 List<ShortcutInfo> shortcuts = Arrays.asList(mShortcutInfo); in setUp()
213 mEntry = new NotificationEntryBuilder().setSbn(mSbn).setShortcutInfo(mShortcutInfo).build(); in setUp()
224 .setShortcutInfo(mShortcutInfo) in setUp()
405 .setShortcutInfo(mShortcutInfo) in testBindNotification_delegate()
1350 verify(mPeopleSpaceWidgetManager, never()).requestPinAppWidget(eq(mShortcutInfo), any()); in testSelectDefaultDoesNotRequestPinPeopleTile()
1385 verify(mPeopleSpaceWidgetManager, never()).requestPinAppWidget(eq(mShortcutInfo), any()); in testSelectPriority_AlreadyPriority_DoesNotRequestPinPeopleTile()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecord.java183 private ShortcutInfo mShortcutInfo; field in NotificationRecord
567 + " found valid? " + (mShortcutInfo != null)); in dump()
1572 mShortcutInfo = shortcutInfo; in setShortcutInfo()
1576 return mShortcutInfo; in getShortcutInfo()
1616 && (mShortcutInfo == null || isOnlyBots(mShortcutInfo.getPersons()))) { in isConversation()
1619 if (mHasSentValidMsg && mShortcutInfo == null) { in isConversation()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/
DPeopleSpaceWidgetManagerTest.java227 private ShortcutInfo mShortcutInfo; field in PeopleSpaceWidgetManagerTest
311 mShortcutInfo = new ShortcutInfo.Builder(mMockContext, in setUp()
317 .setShortcutInfo(mShortcutInfo) in setUp()
664 .setShortcutInfo(mShortcutInfo) in testUpdateNotificationPostedIfExistingTile()
723 .setShortcutInfo(mShortcutInfo) in testUpdateMissedCallNotificationWithoutContentPostedIfExistingTile()
747 .setShortcutInfo(mShortcutInfo) in testUpdateMissedCallNotificationWithContentPostedIfExistingTile()
771 .setShortcutInfo(mShortcutInfo) in testUpdateMissedCallNotificationWithContentPostedIfMatchingUriTile()
801 .setShortcutInfo(mShortcutInfo) in testRemoveMissedCallNotificationWithContentPostedIfMatchingUriTile()
844 .setShortcutInfo(mShortcutInfo) in testUpdateMissedCallNotificationWithContentPostedIfMatchingUriTileFromSender()
889 .setShortcutInfo(mShortcutInfo) in testDoNotUpdateMissedCallNotificationWithContentPostedIfNoPersonsAttached()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DDataManagerTest.java186 private ShortcutInfo mShortcutInfo; field in DataManagerTest
284 mShortcutInfo = buildShortcutInfo(TEST_PKG_NAME, USER_ID_PRIMARY, TEST_SHORTCUT_ID, in setUp()
289 .thenReturn(Collections.singletonList(mShortcutInfo)); in setUp()