Home
last modified time | relevance | path

Searched refs:SHORTCUT_ID (Results 1 – 19 of 19) sorted by relevance

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
H A DConversationStoreTest.java46 private static final String SHORTCUT_ID = "abc"; field in ConversationStoreTest
86 assertEquals(SHORTCUT_ID, out.getShortcutId()); in testAddConversation()
111 mConversationStore.deleteConversation(SHORTCUT_ID); in testDeleteConversation()
137 assertEquals(SHORTCUT_ID, out.getShortcutId()); in testGetConversationByLocusId()
139 mConversationStore.deleteConversation(SHORTCUT_ID); in testGetConversationByLocusId()
150 assertEquals(SHORTCUT_ID, out.getShortcutId()); in testGetConversationByContactUri()
152 mConversationStore.deleteConversation(SHORTCUT_ID); in testGetConversationByContactUri()
163 assertEquals(SHORTCUT_ID, out.getShortcutId()); in testGetConversationByPhoneNumber()
165 mConversationStore.deleteConversation(SHORTCUT_ID); in testGetConversationByPhoneNumber()
177 assertEquals(SHORTCUT_ID, out.getShortcutId()); in testGetConversationByNotificationChannelId()
[all …]
H A DPackageDataTest.java43 private static final String SHORTCUT_ID = "abc"; field in PackageDataTest
66 .setShortcutId(SHORTCUT_ID) in setUp()
89 EventHistory eventHistory = mPackageData.getEventHistory(SHORTCUT_ID); in testGetEventHistory()
108 EventHistory eventHistory = mPackageData.getEventHistory(SHORTCUT_ID); in testGetEventHistoryDefaultDialerAndSmsApp()
126 EventHistory eventHistory = mPackageData.getEventHistory(SHORTCUT_ID); in testGetEventHistoryNotDefaultDialerOrSmsApp()
144 EventHistory eventHistory = mPackageData.getEventHistory(SHORTCUT_ID); in testDeleteConversationData()
148 mPackageData.deleteDataForConversation(SHORTCUT_ID); in testDeleteConversationData()
150 eventHistory = mPackageData.getEventHistory(SHORTCUT_ID); in testDeleteConversationData()
167 EventHistory eventHistory = mPackageData.getEventHistory(SHORTCUT_ID); in testPruneOrphanEvents()
172 .setShortcutId(SHORTCUT_ID) in testPruneOrphanEvents()
[all …]
H A DConversationInfoTest.java43 private static final String SHORTCUT_ID = "abc"; field in ConversationInfoTest
56 .setShortcutId(SHORTCUT_ID) in testBuild()
77 assertEquals(SHORTCUT_ID, conversationInfo.getShortcutId()); in testBuild()
102 .setShortcutId(SHORTCUT_ID) in testBuildEmpty()
105 assertEquals(SHORTCUT_ID, conversationInfo.getShortcutId()); in testBuildEmpty()
132 .setShortcutId(SHORTCUT_ID) in testBuildFromAnotherConversationInfo()
156 assertEquals(SHORTCUT_ID, destination.getShortcutId()); in testBuildFromAnotherConversationInfo()
181 .setShortcutId(SHORTCUT_ID) in testBuildFromAnotherConversation_identicalConversation()
202 assertEquals(SHORTCUT_ID, destination.getShortcutId()); in testBuildFromAnotherConversation_identicalConversation()
230 .setShortcutId(SHORTCUT_ID) in testBuildFromBackupPayload()
[all …]
H A DUsageStatsQueryHelperTest.java70 private static final String SHORTCUT_ID = "abc"; field in UsageStatsQueryHelperTest
95 .setShortcutId(SHORTCUT_ID) in setUp()
296 e.mShortcutId = SHORTCUT_ID; in createShortcutInvocationEvent()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/
H A DPeopleSpaceWidgetManagerTest.java318 SHORTCUT_ID, false, 3); in testGetRecentTilesReturnsSortedListWithOnlyRecentConversations()
320 SHORTCUT_ID + 1, true, 3); in testGetRecentTilesReturnsSortedListWithOnlyRecentConversations()
322 SHORTCUT_ID + 2, in testGetRecentTilesReturnsSortedListWithOnlyRecentConversations()
356 SHORTCUT_ID, false, 3); in testGetPriorityTilesReturnsSortedListWithOnlyImportantConversations()
358 SHORTCUT_ID + 1, true, 3); in testGetPriorityTilesReturnsSortedListWithOnlyImportantConversations()
360 SHORTCUT_ID + 2, in testGetPriorityTilesReturnsSortedListWithOnlyImportantConversations()
382 SHORTCUT_ID, false, 3); in testGetTilesReturnsNothingInQuietMode()
384 SHORTCUT_ID + 1, true, 3); in testGetTilesReturnsNothingInQuietMode()
386 SHORTCUT_ID + 2, in testGetTilesReturnsNothingInQuietMode()
1001 eq(SHORTCUT_ID), any(), in testAddThenReconfigureWidgetsUpdatesStorageCacheAndListeners()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
H A DSharedPreferencesHelperTest.java20 import static com.android.systemui.people.PeopleSpaceUtils.SHORTCUT_ID;
55 widgetEditor.putString(PeopleSpaceUtils.SHORTCUT_ID, peopleTileKey.getShortcutId()); in setStorageForTile()
81 assertThat(sp.getString(SHORTCUT_ID, null)).isEqualTo(SHORTCUT_ID_1); in testSetPeopleTileKey()
95 assertThat(sp.getString(SHORTCUT_ID, null)).isEqualTo(null); in testClear()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
H A DSharedPreferencesHelper.java21 import static com.android.systemui.people.PeopleSpaceUtils.SHORTCUT_ID;
46 editor.putString(SHORTCUT_ID, shortcutId); in setPeopleTileKey()
54 String shortcutId = sp.getString(SHORTCUT_ID, null); in getPeopleTileKey()
H A DPeopleSpaceUtils.java82 public static final String SHORTCUT_ID = "shortcut_id"; field in PeopleSpaceUtils
144 widgetEditor.remove(SHORTCUT_ID); in removeSharedPreferencesStorageForTile()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
H A DAppWidgetOptionsHelper.java23 import static com.android.systemui.people.PeopleSpaceUtils.SHORTCUT_ID;
37 options.putString(SHORTCUT_ID, key.getShortcutId()); in setPeopleTileKey()
47 String shortcutId = options.getString(SHORTCUT_ID, EMPTY_STRING); in getPeopleTileKeyFromBundle()
H A DPeopleSpaceWidgetManager.java37 import static com.android.systemui.people.PeopleSpaceUtils.SHORTCUT_ID;
375 widgetSp.getString(SHORTCUT_ID, EMPTY_STRING), in getTileForExistingWidgetThrowing()
892 widgetSp.getString(SHORTCUT_ID, EMPTY_STRING), in getKeyFromStorageByWidgetId()
911 widgetSp.getString(SHORTCUT_ID, null), in deleteWidgets()
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DShortcutHelperTest.java65 private static final String SHORTCUT_ID = "shortcut"; field in ShortcutHelperTest
100 when(mShortcutInfo.getId()).thenReturn(SHORTCUT_ID); in setUp()
102 when(mBubbleMetadata.getShortcutId()).thenReturn(SHORTCUT_ID); in setUp()
256 when(si.getId()).thenReturn(SHORTCUT_ID); in testGetValidShortcutInfo_notLongLived()
274 when(si.getId()).thenReturn(SHORTCUT_ID); in testGetValidShortcutInfo_notSharingShortcut()
291 when(si.getId()).thenReturn(SHORTCUT_ID); in testGetValidShortcutInfo_notEnabled()
308 when(si.getId()).thenReturn(SHORTCUT_ID); in testGetValidShortcutInfo_isValid()
329 when(si.getId()).thenReturn(SHORTCUT_ID); in testGetValidShortcutInfo_isValidButUserLocked()
H A DBubbleExtractorTest.java68 private static final String SHORTCUT_ID = "shortcut"; field in BubbleExtractorTest
105 when(mShortcutInfo.getId()).thenReturn(SHORTCUT_ID); in setUp()
118 builder.setShortcutId(SHORTCUT_ID); in getNotificationRecord()
150 when(mBubbleMetadata.getShortcutId()).thenReturn(SHORTCUT_ID); in setUpShortcutBubble()
153 when(mShortcutHelper.getValidShortcutInfo(SHORTCUT_ID, PKG, mUser)).thenReturn(answer); in setUpShortcutBubble()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/notetask/
H A DNoteTaskController.kt345 shortcutManager.enableShortcuts(listOf(SHORTCUT_ID))
349 shortcutManager.disableShortcuts(listOf(SHORTCUT_ID))
378 const val SHORTCUT_ID = "note_task_shortcut_id"
H A DNoteTaskRoleManagerExt.kt69 return ShortcutInfo.Builder(context, NoteTaskController.SHORTCUT_ID)
/aosp14/frameworks/base/services/people/java/com/android/server/people/data/
H A DConversationInfo.java333 protoOutputStream.write(ConversationInfoProto.SHORTCUT_ID, mShortcutId); in writeToProto()
392 case (int) ConversationInfoProto.SHORTCUT_ID: in readFromProto()
394 protoInputStream.readString(ConversationInfoProto.SHORTCUT_ID)); in readFromProto()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/
H A DNoteTaskControllerTest.kt51 import com.android.systemui.notetask.NoteTaskController.Companion.SHORTCUT_ID
748 verify(shortcutManager).enableShortcuts(listOf(SHORTCUT_ID))
751 assertThat(id).isEqualTo(SHORTCUT_ID)
782 verify(shortcutManager).disableShortcuts(listOf(SHORTCUT_ID))
801 verify(shortcutManager).disableShortcuts(listOf(SHORTCUT_ID))
/aosp14/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsProtoV2.java683 case (int) PendingEventProto.SHORTCUT_ID: in parsePendingEvent()
684 event.mShortcutId = proto.readString(PendingEventProto.SHORTCUT_ID); in parsePendingEvent()
784 proto.write(PendingEventProto.SHORTCUT_ID, event.mShortcutId); in writePendingEvent()
H A DIntervalStats.java210 case (int) IntervalStatsProto.Event.SHORTCUT_ID: in buildEvent()
212 IntervalStatsProto.Event.SHORTCUT_ID).intern(); in buildEvent()
H A DUsageStatsProto.java469 proto.write(IntervalStatsProto.Event.SHORTCUT_ID, event.mShortcutId); in writeEvent()