Home
last modified time | relevance | path

Searched refs:widgetSp (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DSharedPreferencesHelperTest.java50 SharedPreferences widgetSp = mContext.getSharedPreferences( in setStorageForTile() local
53 SharedPreferences.Editor widgetEditor = widgetSp.edit(); in setStorageForTile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
DPeopleSpaceWidgetManager.java404 SharedPreferences widgetSp = mContext.getSharedPreferences( in getTileForExistingWidgetThrowing() local
408 widgetSp.getString(SHORTCUT_ID, EMPTY_STRING), in getTileForExistingWidgetThrowing()
409 widgetSp.getInt(USER_ID, INVALID_USER_ID), in getTileForExistingWidgetThrowing()
410 widgetSp.getString(PACKAGE_NAME, EMPTY_STRING)); in getTileForExistingWidgetThrowing()
922 SharedPreferences widgetSp = mContext.getSharedPreferences(String.valueOf(widgetId), in getKeyFromStorageByWidgetId() local
925 widgetSp.getString(SHORTCUT_ID, EMPTY_STRING), in getKeyFromStorageByWidgetId()
926 widgetSp.getInt(USER_ID, INVALID_USER_ID), in getKeyFromStorageByWidgetId()
927 widgetSp.getString(PACKAGE_NAME, EMPTY_STRING)); in getKeyFromStorageByWidgetId()
941 SharedPreferences widgetSp = mContext.getSharedPreferences(String.valueOf(widgetId), in deleteWidgets() local
944 widgetSp.getString(SHORTCUT_ID, null), in deleteWidgets()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/
DPeopleSpaceWidgetManagerTest.java1005 SharedPreferences widgetSp = mContext.getSharedPreferences( in testAddThenReconfigureWidgetsUpdatesStorageCacheAndListeners() local
1008 assertThat(widgetSp.getString(PACKAGE_NAME, null)).isEqualTo(TEST_PACKAGE_A); in testAddThenReconfigureWidgetsUpdatesStorageCacheAndListeners()
1009 assertThat(widgetSp.getString(PeopleSpaceUtils.SHORTCUT_ID, null)).isEqualTo( in testAddThenReconfigureWidgetsUpdatesStorageCacheAndListeners()
1011 assertThat(widgetSp.getInt(USER_ID, INVALID_USER_ID)).isEqualTo(0); in testAddThenReconfigureWidgetsUpdatesStorageCacheAndListeners()
1031 assertThat(widgetSp.getString(PACKAGE_NAME, null)).isEqualTo(TEST_PACKAGE_B); in testAddThenReconfigureWidgetsUpdatesStorageCacheAndListeners()
1032 assertThat(widgetSp.getString(PeopleSpaceUtils.SHORTCUT_ID, null)).isEqualTo( in testAddThenReconfigureWidgetsUpdatesStorageCacheAndListeners()
1034 assertThat(widgetSp.getInt(USER_ID, INVALID_USER_ID)).isEqualTo(0); in testAddThenReconfigureWidgetsUpdatesStorageCacheAndListeners()
1056 SharedPreferences widgetSp = mContext.getSharedPreferences( in testDeleteAllWidgetsForConversationsUncachesShortcutAndRemovesListeners() local
1059 assertThat(widgetSp.getString(PACKAGE_NAME, null)).isNull(); in testDeleteAllWidgetsForConversationsUncachesShortcutAndRemovesListeners()
1060 assertThat(widgetSp.getString(SHORTCUT_ID, null)).isNull(); in testDeleteAllWidgetsForConversationsUncachesShortcutAndRemovesListeners()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DPeopleSpaceUtils.java108 SharedPreferences widgetSp = context.getSharedPreferences(String.valueOf(appWidgetId), in setSharedPreferencesStorageForTile() local
110 SharedPreferencesHelper.setPeopleTileKey(widgetSp, key); in setSharedPreferencesStorageForTile()
139 SharedPreferences widgetSp = context.getSharedPreferences(String.valueOf(widgetId), in removeSharedPreferencesStorageForTile() local
141 SharedPreferences.Editor widgetEditor = widgetSp.edit(); in removeSharedPreferencesStorageForTile()