/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | TileImageView.java | 254 Tile tile = mActiveTiles.valueAt(i); in layoutTiles() local 255 int level = tile.mTileLevel; in layoutTiles() 257 || !range[level - fromLevel].contains(tile.mX, tile.mY)) { in layoutTiles() 261 recycleTile(tile); in layoutTiles() 285 Tile tile = mActiveTiles.valueAt(i); in invalidateTiles() local 286 recycleTile(tile); in invalidateTiles() 386 Tile tile = mRecycledQueue.pop(); in freeTextures() local 387 while (tile != null) { in freeTextures() 388 tile.recycle(); in freeTextures() 389 tile = mRecycledQueue.pop(); in freeTextures() [all …]
|
/packages/apps/WallpaperPicker/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 310 Tile tile = mActiveTiles.valueAt(i); in layoutTiles() local 311 int level = tile.mTileLevel; in layoutTiles() 313 || !range[level - fromLevel].contains(tile.mX, tile.mY)) { in layoutTiles() 317 recycleTile(tile); in layoutTiles() 342 Tile tile = mActiveTiles.valueAt(i); in invalidateTiles() local 343 recycleTile(tile); in invalidateTiles() 395 Tile tile = mRecycledQueue.pop(); in freeTextures() local 396 while (tile != null) { in freeTextures() 397 tile.recycle(); in freeTextures() 398 tile = mRecycledQueue.pop(); in freeTextures() [all …]
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 310 Tile tile = mActiveTiles.valueAt(i); in layoutTiles() local 311 int level = tile.mTileLevel; in layoutTiles() 313 || !range[level - fromLevel].contains(tile.mX, tile.mY)) { in layoutTiles() 317 recycleTile(tile); in layoutTiles() 342 Tile tile = mActiveTiles.valueAt(i); in invalidateTiles() local 343 recycleTile(tile); in invalidateTiles() 395 Tile tile = mRecycledQueue.pop(); in freeTextures() local 396 while (tile != null) { in freeTextures() 397 tile.recycle(); in freeTextures() 398 tile = mRecycledQueue.pop(); in freeTextures() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/ |
D | DashboardFeatureProviderImplTest.java | 130 final Tile tile = spy(new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE)); in bindPreference_shouldBindAllData() local 133 .when(tile).getIcon(any(Context.class)); in bindPreference_shouldBindAllData() 136 preference, tile, "123", Preference.DEFAULT_ORDER); in bindPreference_shouldBindAllData() 144 assertThat(preference.getOrder()).isEqualTo(tile.getOrder()); in bindPreference_shouldBindAllData() 151 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in bindPreference_noFragmentMetadata_shouldBindIntent() local 154 preference, tile, "123", Preference.DEFAULT_ORDER); in bindPreference_noFragmentMetadata_shouldBindIntent() 158 assertThat(preference.getOrder()).isEqualTo(tile.getOrder()); in bindPreference_noFragmentMetadata_shouldBindIntent() 164 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in bindPreference_noFragmentMetadata_shouldBindToProfileSelector() local 165 tile.userHandle = new ArrayList<>(); in bindPreference_noFragmentMetadata_shouldBindToProfileSelector() 166 tile.userHandle.add(mock(UserHandle.class)); in bindPreference_noFragmentMetadata_shouldBindToProfileSelector() [all …]
|
D | SummaryLoaderTest.java | 71 mSummaryLoader.setSummaryConsumer(tile -> mCallbackInvoked = true); in SetUp() 102 final Tile tile = new Tile(activityInfo, category.key); in testUpdateSummaryToCache_hasCache_shouldUpdate() local 104 category.addTile(tile); in testUpdateSummaryToCache_hasCache_shouldUpdate() 105 when(mFeatureFactory.dashboardFeatureProvider.getDashboardKeyForTile(tile)) in testUpdateSummaryToCache_hasCache_shouldUpdate() 106 .thenReturn(tile.getKey(RuntimeEnvironment.application)); in testUpdateSummaryToCache_hasCache_shouldUpdate() 108 mSummaryLoader.updateSummaryIfNeeded(mContext, tile, testSummary); in testUpdateSummaryToCache_hasCache_shouldUpdate() 109 tile.overrideSummary(null); in testUpdateSummaryToCache_hasCache_shouldUpdate() 112 assertThat(tile.getSummary(mContext)).isEqualTo(testSummary); in testUpdateSummaryToCache_hasCache_shouldUpdate()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/ |
D | DashboardFeatureProviderImpl.java | 92 public String getDashboardKeyForTile(Tile tile) { in getDashboardKeyForTile() argument 93 if (tile == null) { in getDashboardKeyForTile() 96 if (tile.hasKey()) { in getDashboardKeyForTile() 97 return tile.getKey(mContext); in getDashboardKeyForTile() 100 final ComponentName component = tile.getIntent().getComponent(); in getDashboardKeyForTile() 107 int sourceMetricsCategory, Preference pref, Tile tile, String key, int baseOrder) { in bindPreferenceToTile() argument 111 pref.setTitle(tile.getTitle(activity.getApplicationContext())); in bindPreferenceToTile() 115 pref.setKey(getDashboardKeyForTile(tile)); in bindPreferenceToTile() 117 bindSummary(pref, tile); in bindPreferenceToTile() 118 bindIcon(pref, tile, forceRoundedIcon); in bindPreferenceToTile() [all …]
|
D | SummaryLoader.java | 90 final Tile tile = getTileFromCategory( in setSummary() local 93 if (tile == null) { in setSummary() 100 Log.d(TAG, "setSummary " + tile.getDescription() + " - " + summary); in setSummary() 103 updateSummaryIfNeeded(mActivity.getApplicationContext(), tile, summary); in setSummary() local 108 void updateSummaryIfNeeded(Context context, Tile tile, CharSequence summary) { in updateSummaryIfNeeded() argument 109 if (TextUtils.equals(tile.getSummary(context), summary)) { in updateSummaryIfNeeded() 112 + tile.getDescription()); in updateSummaryIfNeeded() 116 mSummaryTextMap.put(mDashboardFeatureProvider.getDashboardKeyForTile(tile), summary); in updateSummaryIfNeeded() 117 tile.overrideSummary(summary); in updateSummaryIfNeeded() 119 mSummaryConsumer.notifySummaryChanged(tile); in updateSummaryIfNeeded() [all …]
|
D | CategoryManager.java | 94 Tile tile = category.getTile(j); in updateCategoryFromBlacklist() local 95 if (tileBlacklist.contains(tile.getIntent().getComponent())) { in updateCategoryFromBlacklist() 149 for (Tile tile : tiles) { in backwardCompatCleanupForCategory() 150 if (CategoryKey.KEY_COMPAT_MAP.containsKey(tile.getCategory())) { in backwardCompatCleanupForCategory() 159 for (Tile tile : tiles) { in backwardCompatCleanupForCategory() 161 CategoryKey.KEY_COMPAT_MAP.get(tile.getCategory()); in backwardCompatCleanupForCategory() 162 tile.setCategory(newCategoryKey); in backwardCompatCleanupForCategory() 169 newCategory.addTile(tile); in backwardCompatCleanupForCategory() 201 final Tile tile = category.getTile(i); in filterDuplicateTiles() local 202 final ComponentName tileComponent = tile.getIntent().getComponent(); in filterDuplicateTiles()
|
D | DashboardFragment.java | 177 public void notifySummaryChanged(Tile tile) { in notifySummaryChanged() argument 178 final String key = mDashboardFeatureProvider.getDashboardKeyForTile(tile); in notifySummaryChanged() 183 key, tile.getDescription())); in notifySummaryChanged() 186 pref.setSummary(tile.getSummary(pref.getContext())); in notifySummaryChanged() 286 protected boolean displayTile(Tile tile) { in displayTile() argument 413 for (Tile tile : tiles) { in refreshDashboardTiles() 414 final String key = mDashboardFeatureProvider.getDashboardKeyForTile(tile); in refreshDashboardTiles() 416 Log.d(TAG, "tile does not contain a key, skipping " + tile); in refreshDashboardTiles() 419 if (!displayTile(tile)) { in refreshDashboardTiles() 426 getMetricsCategory(), preference, tile, key, in refreshDashboardTiles() local [all …]
|
D | DashboardFeatureProvider.java | 44 String getDashboardKeyForTile(Tile tile); in getDashboardKeyForTile() argument 59 int sourceMetricsCategory, Preference pref, Tile tile, String key, int baseOrder); in bindPreferenceToTile() argument 64 void openTileIntent(FragmentActivity activity, Tile tile); in openTileIntent() argument
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
D | DashboardFeatureProviderImpl.java | 92 public String getDashboardKeyForTile(Tile tile) { in getDashboardKeyForTile() argument 93 if (tile == null) { in getDashboardKeyForTile() 96 if (tile.hasKey()) { in getDashboardKeyForTile() 97 return tile.getKey(mContext); in getDashboardKeyForTile() 100 final ComponentName component = tile.getIntent().getComponent(); in getDashboardKeyForTile() 107 int sourceMetricsCategory, Preference pref, Tile tile, String key, int baseOrder) { in bindPreferenceToTile() argument 111 pref.setTitle(tile.getTitle(activity.getApplicationContext())); in bindPreferenceToTile() 115 pref.setKey(getDashboardKeyForTile(tile)); in bindPreferenceToTile() 117 bindSummary(pref, tile); in bindPreferenceToTile() 118 bindIcon(pref, tile, forceRoundedIcon); in bindPreferenceToTile() [all …]
|
D | SummaryLoader.java | 90 final Tile tile = getTileFromCategory( in setSummary() local 93 if (tile == null) { in setSummary() 100 Log.d(TAG, "setSummary " + tile.getDescription() + " - " + summary); in setSummary() 103 updateSummaryIfNeeded(mActivity.getApplicationContext(), tile, summary); in setSummary() local 108 void updateSummaryIfNeeded(Context context, Tile tile, CharSequence summary) { in updateSummaryIfNeeded() argument 109 if (TextUtils.equals(tile.getSummary(context), summary)) { in updateSummaryIfNeeded() 112 + tile.getDescription()); in updateSummaryIfNeeded() 116 mSummaryTextMap.put(mDashboardFeatureProvider.getDashboardKeyForTile(tile), summary); in updateSummaryIfNeeded() 117 tile.overrideSummary(summary); in updateSummaryIfNeeded() 119 mSummaryConsumer.notifySummaryChanged(tile); in updateSummaryIfNeeded() [all …]
|
D | CategoryManager.java | 94 Tile tile = category.getTile(j); in updateCategoryFromBlacklist() local 95 if (tileBlacklist.contains(tile.getIntent().getComponent())) { in updateCategoryFromBlacklist() 149 for (Tile tile : tiles) { in backwardCompatCleanupForCategory() 150 if (CategoryKey.KEY_COMPAT_MAP.containsKey(tile.getCategory())) { in backwardCompatCleanupForCategory() 159 for (Tile tile : tiles) { in backwardCompatCleanupForCategory() 161 CategoryKey.KEY_COMPAT_MAP.get(tile.getCategory()); in backwardCompatCleanupForCategory() 162 tile.setCategory(newCategoryKey); in backwardCompatCleanupForCategory() 169 newCategory.addTile(tile); in backwardCompatCleanupForCategory() 201 final Tile tile = category.getTile(i); in filterDuplicateTiles() local 202 final ComponentName tileComponent = tile.getIntent().getComponent(); in filterDuplicateTiles()
|
D | DashboardFragment.java | 183 public void notifySummaryChanged(Tile tile) { in notifySummaryChanged() argument 184 final String key = mDashboardFeatureProvider.getDashboardKeyForTile(tile); in notifySummaryChanged() 189 key, tile.getDescription())); in notifySummaryChanged() 192 pref.setSummary(tile.getSummary(pref.getContext())); in notifySummaryChanged() 293 protected boolean displayTile(Tile tile) { in displayTile() argument 294 if (mSuppressInjectedTileKeys != null && tile.hasKey()) { in displayTile() 296 return !mSuppressInjectedTileKeys.contains(tile.getKey(getContext())); in displayTile() 424 for (Tile tile : tiles) { in refreshDashboardTiles() 425 final String key = mDashboardFeatureProvider.getDashboardKeyForTile(tile); in refreshDashboardTiles() 427 Log.d(TAG, "tile does not contain a key, skipping " + tile); in refreshDashboardTiles() [all …]
|
D | DashboardFeatureProvider.java | 44 String getDashboardKeyForTile(Tile tile); in getDashboardKeyForTile() argument 59 int sourceMetricsCategory, Preference pref, Tile tile, String key, int baseOrder); in bindPreferenceToTile() argument 64 void openTileIntent(FragmentActivity activity, Tile tile); in openTileIntent() argument
|
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/ |
D | QuickSettingGridAdapter.java | 129 QuickSettingGridAdapter addTile(Tile tile) { in addTile() argument 130 if (tile.isAvailable()) { in addTile() 131 mTiles.add(tile); in addTile() 137 for (SeekbarTile tile : mSeekbarTiles) { in start() 138 tile.start(); in start() 140 for (Tile tile : mTiles) { in start() 141 tile.start(); in start() 146 for (SeekbarTile tile : mSeekbarTiles) { in stop() 147 tile.stop(); in stop() 149 for (Tile tile : mTiles) { in stop() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/ |
D | ProfileSelectDialogTest.java | 69 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in updateUserHandlesIfNeeded_Normal() local 70 tile.userHandle.add(NORMAL_USER); in updateUserHandlesIfNeeded_Normal() 72 ProfileSelectDialog.updateUserHandlesIfNeeded(mContext, tile); in updateUserHandlesIfNeeded_Normal() 74 assertThat(tile.userHandle).hasSize(1); in updateUserHandlesIfNeeded_Normal() 75 assertThat(tile.userHandle.get(0).getIdentifier()).isEqualTo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Normal() 81 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in updateUserHandlesIfNeeded_Remove() local 82 tile.userHandle.add(REMOVED_USER); in updateUserHandlesIfNeeded_Remove() 83 tile.userHandle.add(NORMAL_USER); in updateUserHandlesIfNeeded_Remove() 84 tile.userHandle.add(REMOVED_USER); in updateUserHandlesIfNeeded_Remove() 86 ProfileSelectDialog.updateUserHandlesIfNeeded(mContext, tile); in updateUserHandlesIfNeeded_Remove() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | AccountDetailDashboardFragmentTest.java | 108 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_HasAccountType_shouldDisplay() local 112 assertThat(mFragment.displayTile(tile)).isTrue(); in refreshDashboardTiles_HasAccountType_shouldDisplay() 117 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_NoAccountType_shouldNotDisplay() local 120 assertThat(mFragment.displayTile(tile)).isFalse(); in refreshDashboardTiles_NoAccountType_shouldNotDisplay() 125 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_OtherAccountType_shouldNotDisplay() local 129 assertThat(mFragment.displayTile(tile)).isFalse(); in refreshDashboardTiles_OtherAccountType_shouldNotDisplay() 141 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_HasAccountType_shouldAddAccountNameToIntent() local 148 tile.userHandle = null; in refreshDashboardTiles_HasAccountType_shouldAddAccountNameToIntent() 149 mFragment.displayTile(tile); in refreshDashboardTiles_HasAccountType_shouldAddAccountNameToIntent() 154 MetricsProto.MetricsEvent.DASHBOARD_SUMMARY, preference, tile, null /* key */, in refreshDashboardTiles_HasAccountType_shouldAddAccountNameToIntent() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | TiledTexture.java | 161 private static void freeTile(Tile tile) { in freeTile() argument 162 tile.invalidateContent(); in freeTile() 163 tile.bitmap = null; in freeTile() 165 tile.nextFreeTile = sFreeTileHead; in freeTile() 166 sFreeTileHead = tile; in freeTile() 209 Tile tile = obtainTile(); in TiledTexture() local 210 tile.offsetX = x; in TiledTexture() 211 tile.offsetY = y; in TiledTexture() 212 tile.bitmap = bitmap; in TiledTexture() 213 tile.setSize( in TiledTexture() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/profileselector/ |
D | ProfileSelectDialog.java | 45 public static void show(FragmentManager manager, Tile tile) { in show() argument 48 args.putParcelable(ARG_SELECTED_TILE, tile); in show() 80 public static void updateUserHandlesIfNeeded(Context context, Tile tile) { in updateUserHandlesIfNeeded() argument 81 List<UserHandle> userHandles = tile.userHandle; in updateUserHandlesIfNeeded() 82 if (tile.userHandle == null || tile.userHandle.size() <= 1) { in updateUserHandlesIfNeeded()
|
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/ |
D | ProfileSelectDialog.java | 45 public static void show(FragmentManager manager, Tile tile) { in show() argument 48 args.putParcelable(ARG_SELECTED_TILE, tile); in show() 80 public static void updateUserHandlesIfNeeded(Context context, Tile tile) { in updateUserHandlesIfNeeded() argument 81 List<UserHandle> userHandles = tile.userHandle; in updateUserHandlesIfNeeded() 82 if (tile.userHandle == null || tile.userHandle.size() <= 1) { in updateUserHandlesIfNeeded()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AccountDetailDashboardFragment.java | 152 protected boolean displayTile(Tile tile) { in displayTile() argument 153 if (!super.displayTile(tile)) { in displayTile() 159 final Bundle metadata = tile.getMetaData(); in displayTile() 165 final Intent intent = tile.getIntent(); in displayTile()
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | MessageAttachmentTile.java | 142 MessageAttachmentTile tile = (MessageAttachmentTile) tileGrid.getChildAt(i); in showAndDownloadAttachments() local 143 queue.add(tile); in showAndDownloadAttachments() 150 MessageAttachmentTile tile = queue.remove(); in showAndDownloadAttachments() local 151 tile.downloadAttachment(maxAdditionalPriority - i, i != 0); in showAndDownloadAttachments()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/ |
D | AccountDetailDashboardFragment.java | 152 protected boolean displayTile(Tile tile) { in displayTile() argument 156 final Bundle metadata = tile.getMetaData(); in displayTile() 162 final Intent intent = tile.getIntent(); in displayTile()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/search/ |
D | SettingsSearchIndexablesProvider.java | 176 for (Tile tile : category.getTiles()) { in querySiteMapPairs() 178 if (tile.getMetaData() != null) { in querySiteMapPairs() 179 childClass = tile.getMetaData().getString( in querySiteMapPairs()
|