/frameworks/base/services/tests/servicestests/src/com/android/server/appwidget/ |
D | AppWidgetServiceImplTest.java | 167 int widgetId = setupHostAndWidget(); in testProviderUpdatesReceived() local 169 mManager.updateAppWidget(widgetId, view); in testProviderUpdatesReceived() 170 mManager.updateAppWidget(widgetId, view); in testProviderUpdatesReceived() 171 mManager.updateAppWidget(widgetId, view); in testProviderUpdatesReceived() 172 mManager.updateAppWidget(widgetId, view); in testProviderUpdatesReceived() 175 verify(mMockHost, times(4)).updateAppWidget(eq(widgetId), any(RemoteViews.class)); in testProviderUpdatesReceived() 178 mManager.notifyAppWidgetViewDataChanged(widgetId, 22); in testProviderUpdatesReceived() 180 verify(mMockHost, times(1)).viewDataChanged(eq(widgetId), eq(22)); in testProviderUpdatesReceived() 184 int widgetId = setupHostAndWidget(); in testProviderUpdatesNotReceived() local 187 mManager.updateAppWidget(widgetId, view); in testProviderUpdatesNotReceived() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/ |
D | PeopleSpaceWidgetPinnedReceiver.java | 68 int widgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, INVALID_WIDGET_ID); in onReceive() local 69 if (widgetId == INVALID_WIDGET_ID) { in onReceive() 83 if (DEBUG) Log.d(TAG, "Adding widget: " + widgetId + ", key:" + key.toString()); in onReceive() 84 mPeopleSpaceWidgetManager.addNewWidget(widgetId, key); in onReceive()
|
D | PeopleSpaceWidgetManager.java | 589 public Optional<PeopleSpaceTile> getAugmentedTileForExistingWidget(int widgetId, in getAugmentedTileForExistingWidget() argument 591 if (DEBUG) Log.d(TAG, "Augmenting tile for existing widget: " + widgetId); in getAugmentedTileForExistingWidget() 592 PeopleSpaceTile tile = getTileForExistingWidget(widgetId); in getAugmentedTileForExistingWidget() 595 Log.w(TAG, "Widget: " + widgetId in getAugmentedTileForExistingWidget() 600 String contactUriString = mSharedPrefs.getString(String.valueOf(widgetId), null); in getAugmentedTileForExistingWidget() 603 if (DEBUG) Log.d(TAG, "Existing widget: " + widgetId + ". Tile key: " + key.toString()); in getAugmentedTileForExistingWidget() 606 Optional.of(widgetId))); in getAugmentedTileForExistingWidget() 862 public void registerConversationListenerIfNeeded(int widgetId, PeopleTileKey key) { in registerConversationListenerIfNeeded() argument 865 if (DEBUG) Log.w(TAG, "Could not register listener for widget: " + widgetId); in registerConversationListenerIfNeeded() 874 if (DEBUG) Log.d(TAG, "Register listener for " + widgetId + " with " + key.toString()); in registerConversationListenerIfNeeded() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/ |
D | PeopleSpaceUtils.java | 128 int widgetId, String contactUriString) { in removeSharedPreferencesStorageForTile() argument 133 editor.remove(String.valueOf(widgetId)); in removeSharedPreferencesStorageForTile() 134 removeAppWidgetIdForKey(sp, editor, widgetId, key.toString()); in removeSharedPreferencesStorageForTile() 135 removeAppWidgetIdForKey(sp, editor, widgetId, contactUriString); in removeSharedPreferencesStorageForTile() 139 SharedPreferences widgetSp = context.getSharedPreferences(String.valueOf(widgetId), in removeSharedPreferencesStorageForTile() 149 int widgetId, String storageKey) { in addAppWidgetIdForKey() argument 152 storedWidgetIdsByKey.add(String.valueOf(widgetId)); in addAppWidgetIdForKey() 158 int widgetId, String storageKey) { in removeAppWidgetIdForKey() argument 161 storedWidgetIds.remove(String.valueOf(widgetId)); in removeAppWidgetIdForKey()
|
D | PeopleBackupFollowUpJob.java | 210 int widgetId; in removeUnavailableShortcutsFromSharedStorage() local 212 widgetId = Integer.parseInt(id); in removeUnavailableShortcutsFromSharedStorage() 218 String contactUriString = sp.getString(String.valueOf(widgetId), EMPTY_STRING); in removeUnavailableShortcutsFromSharedStorage() 220 mContext, peopleTileKey, widgetId, contactUriString); in removeUnavailableShortcutsFromSharedStorage()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/ |
D | SharedPreferencesHelperTest.java | 49 private void setStorageForTile(PeopleTileKey peopleTileKey, int widgetId) { in setStorageForTile() argument 51 String.valueOf(widgetId), in setStorageForTile()
|
/frameworks/base/core/java/android/widget/ |
D | RemoteViewsAdapter.java | 811 final int widgetId; field in RemoteViewsAdapter.RemoteViewsCacheKey 813 RemoteViewsCacheKey(Intent.FilterComparison filter, int widgetId) { in RemoteViewsCacheKey() argument 815 this.widgetId = widgetId; in RemoteViewsCacheKey() 824 return other.filter.equals(filter) && other.widgetId == widgetId; in equals() 829 return (filter == null ? 0 : filter.hashCode()) ^ (widgetId << 2); in hashCode()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/ |
D | PeopleSpaceWidgetManagerTest.java | 1572 private void addTileForWidget(PeopleSpaceTile tile, int widgetId) throws Exception { in addTileForWidget() argument 1573 setStorageForTile(tile.getId(), tile.getPackageName(), widgetId, tile.getContactUri()); in addTileForWidget() local 1576 when(mAppWidgetManager.getAppWidgetOptions(eq(widgetId))) in addTileForWidget() 1689 private void setStorageForTile(String shortcutId, String packageName, int widgetId, in setStorageForTile() argument 1692 String.valueOf(widgetId), in setStorageForTile() 1702 editor.putString(String.valueOf(widgetId), contactUri.toString()); in setStorageForTile() 1706 storedWidgetIds.add(String.valueOf(widgetId)); in setStorageForTile() 1711 storedWidgetIdsByUri.add(String.valueOf(widgetId)); in setStorageForTile()
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 72590 Landroid/widget/RemoteViewsAdapter$RemoteViewsCacheKey;->widgetId:I
|