Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
DPeopleTileKey.java32 public class PeopleTileKey { class
39 public PeopleTileKey(String shortcutId, int userId, String packageName) { in PeopleTileKey() method in PeopleTileKey
45 public PeopleTileKey(PeopleSpaceTile tile) { in PeopleTileKey() method in PeopleTileKey
51 public PeopleTileKey(NotificationEntry entry) { in PeopleTileKey() method in PeopleTileKey
103 public static PeopleTileKey fromString(String key) { in fromString()
111 return new PeopleTileKey(m.group(1), userId, m.group(3)); in fromString()
120 public static boolean isValid(PeopleTileKey key) { in isValid()
129 if (!(other instanceof PeopleTileKey)) { in equals()
132 final PeopleTileKey o = (PeopleTileKey) other; in equals()
DPeopleSpaceWidgetManager.java159 public static Map<PeopleTileKey, TileConversationListener>
331 new PeopleTileKey(tile)); in updateSingleConversationWidgets()
340 PeopleTileKey key = getKeyFromStorageByWidgetId(appWidgetId); in updateAppWidgetViews()
343 if (!PeopleTileKey.isValid(key)) { in updateAppWidgetViews()
407 PeopleTileKey key = new PeopleTileKey( in getTileForExistingWidgetThrowing()
420 public PeopleSpaceTile getTileFromPersistentStorage(PeopleTileKey key, int appWidgetId, in getTileFromPersistentStorage()
423 if (!PeopleTileKey.isValid(key)) { in getTileFromPersistentStorage()
488 PeopleTileKey key = new PeopleTileKey( in updateWidgetsWithNotificationChangedInBackground()
490 if (!PeopleTileKey.isValid(key)) { in updateWidgetsWithNotificationChangedInBackground()
524 Map<PeopleTileKey, Set<NotificationEntry>> groupedNotifications = in updateWidgetIdsBasedOnNotifications()
[all …]
DAppWidgetOptionsHelper.java35 PeopleTileKey key) { in setPeopleTileKey()
44 public static PeopleTileKey getPeopleTileKeyFromBundle(Bundle options) { in getPeopleTileKeyFromBundle()
48 return new PeopleTileKey(shortcutId, userId, pkg); in getPeopleTileKeyFromBundle()
DPeopleSpaceWidgetPinnedReceiver.java77 PeopleTileKey key = new PeopleTileKey(shortcutId, userId, packageName); in onReceive()
78 if (!PeopleTileKey.isValid(key)) { in onReceive()
DPeopleBackupHelper.java287 PeopleTileKey peopleTileKey = PeopleTileKey.fromString(key); in backupPeopleTileKey()
318 PeopleTileKey peopleTileKey = PeopleTileKey.fromString(key); in restorePeopleTileKeyAndCorrespondingWidgetFile()
326 if (!PeopleTileKey.isValid(peopleTileKey)) { in restorePeopleTileKeyAndCorrespondingWidgetFile()
397 PeopleTileKey key) { in restoreWidgetIdFiles()
426 PackageManager packageManager, PeopleTileKey key) { in isReadyForRestore()
428 if (!PeopleTileKey.isValid(key)) { in isReadyForRestore()
479 PeopleTileKey peopleTileKey = PeopleTileKey.fromString(key); in getEntryType()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/people/
DFakePeopleWidgetRepository.kt20 import com.android.systemui.people.widget.PeopleTileKey in <lambda>()
24 private val onSetWidgetTile: (widgetId: Int, tileKey: PeopleTileKey) -> Unit = { _, _ -> }, in <lambda>()
26 override fun setWidgetTile(widgetId: Int, tileKey: PeopleTileKey) { in setWidgetTile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DSharedPreferencesHelper.java26 import com.android.systemui.people.widget.PeopleTileKey;
38 public static void setPeopleTileKey(SharedPreferences sp, PeopleTileKey key) { in setPeopleTileKey()
53 public static PeopleTileKey getPeopleTileKey(SharedPreferences sp) { in getPeopleTileKey()
57 return new PeopleTileKey(shortcutId, userId, packageName); in getPeopleTileKey()
DPeopleBackupFollowUpJob.java41 import com.android.systemui.people.widget.PeopleTileKey;
147 PeopleTileKey peopleTileKey = PeopleTileKey.fromString(key); in processFollowUpFile()
197 PeopleTileKey peopleTileKey = PeopleTileKey.fromString(entry.getKey()); in removeUnavailableShortcutsFromSharedStorage()
198 if (!PeopleTileKey.isValid(peopleTileKey)) { in removeUnavailableShortcutsFromSharedStorage()
DPeopleSpaceUtils.java59 import com.android.systemui.people.widget.PeopleTileKey;
85 public static final PeopleTileKey EMPTY_KEY =
86 new PeopleTileKey(EMPTY_STRING, INVALID_USER_ID, EMPTY_STRING);
93 public static Set<String> getStoredWidgetIds(SharedPreferences sp, PeopleTileKey key) { in getStoredWidgetIds()
94 if (!PeopleTileKey.isValid(key)) { in getStoredWidgetIds()
101 public static void setSharedPreferencesStorageForTile(Context context, PeopleTileKey key, in setSharedPreferencesStorageForTile()
103 if (!PeopleTileKey.isValid(key)) { in setSharedPreferencesStorageForTile()
127 public static void removeSharedPreferencesStorageForTile(Context context, PeopleTileKey key, in removeSharedPreferencesStorageForTile()
168 Map<PeopleTileKey, Set<NotificationEntry>> notifications) { in getNotificationsByUri() argument
235 PeopleTileKey key, NotificationEntry notificationEntry, int messagesCount, in augmentTileFromNotification()
[all …]
DPeopleTileViewHelper.java80 import com.android.systemui.people.widget.PeopleTileKey;
183 private PeopleTileKey mKey;
195 int appWidgetId, int width, int height, PeopleTileKey key) { in PeopleTileViewHelper()
213 int appWidgetId, Bundle options, PeopleTileKey key) { in createRemoteViews()
554 if (!PeopleTileKey.isValid(mKey) || mTile == null) { in setLaunchIntents()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/data/repository/
DPeopleWidgetRepository.kt21 import com.android.systemui.people.widget.PeopleTileKey
31 fun setWidgetTile(widgetId: Int, tileKey: PeopleTileKey) in setWidgetTile()
40 override fun setWidgetTile(widgetId: Int, tileKey: PeopleTileKey) { in setWidgetTile()
DPeopleTileRepository.kt24 import com.android.systemui.people.widget.PeopleTileKey
53 PeopleTileKey(this), in priorityTiles()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DSharedPreferencesHelperTest.java32 import com.android.systemui.people.widget.PeopleTileKey;
44 private static final PeopleTileKey PEOPLE_TILE_KEY =
45 new PeopleTileKey(SHORTCUT_ID_1, USER_ID_1, PACKAGE_NAME_1);
49 private void setStorageForTile(PeopleTileKey peopleTileKey, int widgetId) { in setStorageForTile()
67 PeopleTileKey actual = SharedPreferencesHelper.getPeopleTileKey(sp); in testGetPeopleTileKey()
DPeopleSpaceUtilsTest.java63 import com.android.systemui.people.widget.PeopleTileKey;
250 PeopleTileKey key = new PeopleTileKey(tile); in testAugmentTileFromNotification()
290 PeopleTileKey key = new PeopleTileKey(tile); in testAugmentTileFromNotificationGroupWithSender()
323 PeopleTileKey key = new PeopleTileKey(tile); in testAugmentTileFromNotificationGroupWithImageUri()
356 PeopleTileKey key = new PeopleTileKey(tile); in testAugmentTileFromNotificationGroupWithAudioUri()
374 PeopleTileKey key = new PeopleTileKey(tile); in testAugmentTileFromNotificationNoContent()
DPeopleBackupFollowUpJobTest.java43 import com.android.systemui.people.widget.PeopleTileKey;
66 private static final PeopleTileKey PEOPLE_TILE_KEY =
67 new PeopleTileKey(SHORTCUT_ID_1, USER_ID_1, PACKAGE_NAME_1);
DPeopleTileViewHelperTest.java64 import com.android.systemui.people.widget.PeopleTileKey;
1173 new PeopleTileKey(tile.getId(), 0, tile.getPackageName())); in getPeopleTileViewHelper()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/ui/viewmodel/
DPeopleTileViewModel.kt20 import com.android.systemui.people.widget.PeopleTileKey
24 val key: PeopleTileKey,
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/data/model/
DPeopleTileModel.kt20 import com.android.systemui.people.widget.PeopleTileKey
24 val key: PeopleTileKey,
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/
DPeopleSpaceWidgetManagerTest.java175 private static final PeopleTileKey KEY = new PeopleTileKey(SHORTCUT_ID, 0, TEST_PACKAGE_A);
612 new PeopleTileKey(OTHER_SHORTCUT_ID, 0, TEST_PACKAGE_A), in testDoNotUpdateStatusPostedIfDifferentShortcutId()
629 new PeopleTileKey(SHORTCUT_ID, 0, TEST_PACKAGE_A), in testUpdateStatusPostedIfExistingTile()
647 new PeopleTileKey(SHORTCUT_ID, 0, TEST_PACKAGE_A), Arrays.asList(status)); in testUpdateStatusPostedOnTwoExistingTiles()
1003 mManager.addNewWidget(WIDGET_ID_WITH_SHORTCUT, new PeopleTileKey(PERSON_TILE)); in testAddThenReconfigureWidgetsUpdatesStorageCacheAndListeners()
1023 WIDGET_ID_WITH_SHORTCUT, new PeopleTileKey(PERSON_TILE_WITH_SAME_URI)); in testAddThenReconfigureWidgetsUpdatesStorageCacheAndListeners()
1156 new PeopleTileKey(SHORTCUT_ID, 0, TEST_PACKAGE_A)); in testGetPeopleTileFromPersistentStorageExistingConversation()
1158 PeopleTileKey key = new PeopleTileKey(SHORTCUT_ID, 0, TEST_PACKAGE_A); in testGetPeopleTileFromPersistentStorageExistingConversation()
1167 PeopleTileKey key = new PeopleTileKey(SHORTCUT_ID, 0, TEST_PACKAGE_A); in testGetPeopleTileFromPersistentStorageNoConversation()
1176 new PeopleTileKey(SHORTCUT_ID, 0, TEST_PACKAGE_A)); in testRequestPinAppWidgetExistingConversation()
[all …]