/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/ |
D | CategoryManagerTest.java | 32 import com.android.settingslib.drawer.Tile; 49 private Map<Pair<String, String>, Tile> mTileByComponentCache; 71 final Tile tile1 = new Tile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys() 72 final Tile tile2 = new Tile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys() 88 final Tile tile1 = new Tile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForMixedKeys() 90 final Tile tile2 = new Tile(mActivityInfo, oldCategory); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForMixedKeys() 111 final Tile tile1 = new Tile(mActivityInfo, oldCategory); in backwardCompatCleanupForCategory_shouldChangeCategoryForOldKeys() 149 final Tile tile1 = new Tile(activityInfo1, category.key); in sortCategories_singlePackage_shouldReorderBasedOnPriority() 150 final Tile tile2 = new Tile(activityInfo2, category.key); in sortCategories_singlePackage_shouldReorderBasedOnPriority() 151 final Tile tile3 = new Tile(activityInfo3, category.key); in sortCategories_singlePackage_shouldReorderBasedOnPriority() [all …]
|
D | DashboardFeatureProviderImplTest.java | 65 import com.android.settingslib.drawer.Tile; 130 final Tile tile = spy(new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE)); in bindPreference_shouldBindAllData() 151 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in bindPreference_noFragmentMetadata_shouldBindIntent() 164 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in bindPreference_noFragmentMetadata_shouldBindToProfileSelector() 179 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in bindPreference_noFragmentMetadataSingleUser_shouldBindToDirectLaunchIntent() 202 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in bindPreference_toInternalSettingActivity_shouldBindToDirectLaunchIntentAndNotLog() 219 final Tile tile = mock(Tile.class); in bindPreference_nullPreference_shouldIgnore() 229 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in bindPreference_withNullKeyNullPriority_shouldGenerateKeyAndPriority() 242 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in bindPreference_noSummary_shouldSetSummaryToPlaceholder() 255 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in bindPreference_hasSummaryUri_shouldLoadSummaryFromContentProvider() [all …]
|
D | SummaryLoaderTest.java | 34 import com.android.settingslib.drawer.Tile; 53 private Tile mTile; 64 mTile = new Tile(activityInfo, CategoryKey.CATEGORY_HOMEPAGE); in SetUp() 102 final Tile tile = new Tile(activityInfo, category.key); in testUpdateSummaryToCache_hasCache_shouldUpdate()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | MultiAttachmentLayout.java | 81 private static class Tile { class in MultiAttachmentLayout 87 private Tile(final int startX, final int startY, final int endX, final int endY) { in Tile() method in MultiAttachmentLayout.Tile 104 public static Tile large(final int startX, final int startY) { in large() 105 return new Tile(startX, startY, startX + 1, startY + 1); in large() 108 public static Tile wide(final int startX, final int startY) { in wide() 109 return new Tile(startX, startY, startX + 1, startY); in wide() 112 public static Tile small(final int startX, final int startY) { in small() 113 return new Tile(startX, startY, startX, startY); in small() 121 public final List<Tile> tiles; 122 public Layout(final Tile[] tilesArray) { in Layout() [all …]
|
/packages/apps/WallpaperPicker/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 96 private final LongSparseArray<Tile> mActiveTiles = new LongSparseArray<Tile>(); 310 Tile tile = mActiveTiles.valueAt(i); in layoutTiles() 342 Tile tile = mActiveTiles.valueAt(i); in invalidateTiles() 395 Tile tile = mRecycledQueue.pop(); in freeTextures() 404 Tile texture = mActiveTiles.valueAt(i); in freeTextures() 474 Tile tile = mActiveTiles.valueAt(i); in uploadBackgroundTiles() 481 private void queueForDecode(Tile tile) { in queueForDecode() 492 private void decodeTile(Tile tile) { in decodeTile() 519 private Tile obtainTile(int x, int y, int level) { in obtainTile() 521 Tile tile = mRecycledQueue.pop(); in obtainTile() [all …]
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 96 private final LongSparseArray<Tile> mActiveTiles = new LongSparseArray<Tile>(); 310 Tile tile = mActiveTiles.valueAt(i); in layoutTiles() 342 Tile tile = mActiveTiles.valueAt(i); in invalidateTiles() 395 Tile tile = mRecycledQueue.pop(); in freeTextures() 404 Tile texture = mActiveTiles.valueAt(i); in freeTextures() 474 Tile tile = mActiveTiles.valueAt(i); in uploadBackgroundTiles() 481 private void queueForDecode(Tile tile) { in queueForDecode() 492 private void decodeTile(Tile tile) { in decodeTile() 519 private Tile obtainTile(int x, int y, int level) { in obtainTile() 521 Tile tile = mRecycledQueue.pop(); in obtainTile() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | TileImageView.java | 99 private final LongSparseArray<Tile> mActiveTiles = new LongSparseArray<Tile>(); 254 Tile tile = mActiveTiles.valueAt(i); in layoutTiles() 285 Tile tile = mActiveTiles.valueAt(i); in invalidateTiles() 377 Tile texture = mActiveTiles.valueAt(i); in freeTextures() 386 Tile tile = mRecycledQueue.pop(); in freeTextures() 470 Tile tile = mActiveTiles.valueAt(i); in uploadBackgroundTiles() 475 void queueForUpload(Tile tile) { in queueForUpload() 484 synchronized void queueForDecode(Tile tile) { in queueForDecode() 491 boolean decodeTile(Tile tile) { in decodeTile() 512 private synchronized Tile obtainTile(int x, int y, int level) { in obtainTile() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | TiledTexture.java | 49 private static Tile sFreeTileHead = null; 59 private final Tile[] mTiles; // Can be modified in different threads. 112 private static class Tile extends UploadedTexture { class in TiledTexture 116 public Tile nextFreeTile; 161 private static void freeTile(Tile tile) { in freeTile() 170 private static Tile obtainTile() { in obtainTile() 172 Tile result = sFreeTileHead; in obtainTile() 173 if (result == null) return new Tile(); in obtainTile() 184 Tile next = mTiles[mUploadIndex++]; in uploadNextTile() 205 ArrayList<Tile> list = new ArrayList<Tile>(); in TiledTexture() [all …]
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
D | SummaryLoader.java | 40 import com.android.settingslib.drawer.Tile; 90 final Tile tile = getTileFromCategory( in setSummary() 108 void updateSummaryIfNeeded(Context context, Tile tile, CharSequence summary) { in updateSummaryIfNeeded() 160 private SummaryProvider getSummaryProvider(Tile tile) { in getSummaryProvider() 217 for (Tile tile : category.getTiles()) { in updateSummaryToCache() 242 private synchronized void makeProviderW(Tile tile) { in makeProviderW() 250 private Tile getTileFromCategory(DashboardCategory category, ComponentName component) { in getTileFromCategory() 254 final List<Tile> tiles = category.getTiles(); in getTileFromCategory() 257 final Tile tile = tiles.get(j); in getTileFromCategory() 271 void notifySummaryChanged(Tile tile); in notifySummaryChanged() [all …]
|
D | CategoryManager.java | 30 import com.android.settingslib.drawer.Tile; 48 private final Map<Pair<String, String>, Tile> mTileByComponentCache; 94 Tile tile = category.getTile(j); in updateCategoryFromBlacklist() 126 Map<Pair<String, String>, Tile> tileByComponentCache, in backwardCompatCleanupForCategory() 133 final Map<String, List<Tile>> packageToTileMap = new HashMap<>(); in backwardCompatCleanupForCategory() 134 for (Entry<Pair<String, String>, Tile> tileEntry : tileByComponentCache.entrySet()) { in backwardCompatCleanupForCategory() 136 List<Tile> tiles = packageToTileMap.get(packageName); in backwardCompatCleanupForCategory() 144 for (Entry<String, List<Tile>> entry : packageToTileMap.entrySet()) { in backwardCompatCleanupForCategory() 145 final List<Tile> tiles = entry.getValue(); in backwardCompatCleanupForCategory() 149 for (Tile tile : tiles) { in backwardCompatCleanupForCategory() [all …]
|
D | DashboardFeatureProvider.java | 22 import com.android.settingslib.drawer.Tile; 44 String getDashboardKeyForTile(Tile tile); in getDashboardKeyForTile() 59 int sourceMetricsCategory, Preference pref, Tile tile, String key, int baseOrder); in bindPreferenceToTile() 64 void openTileIntent(FragmentActivity activity, Tile tile); in openTileIntent()
|
D | DashboardFeatureProviderImpl.java | 51 import com.android.settingslib.drawer.Tile; 92 public String getDashboardKeyForTile(Tile tile) { in getDashboardKeyForTile() 107 int sourceMetricsCategory, Preference pref, Tile tile, String key, int baseOrder) { in bindPreferenceToTile() 157 public void openTileIntent(FragmentActivity activity, Tile tile) { in openTileIntent() 171 private void bindSummary(Preference preference, Tile tile) { in bindSummary() 194 void bindIcon(Preference preference, Tile tile, boolean forceRoundedIcon) { in bindIcon() 232 private void launchIntentOrSelectProfile(FragmentActivity activity, Tile tile, Intent intent, in launchIntentOrSelectProfile()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/ |
D | SummaryLoader.java | 40 import com.android.settingslib.drawer.Tile; 90 final Tile tile = getTileFromCategory( in setSummary() 108 void updateSummaryIfNeeded(Context context, Tile tile, CharSequence summary) { in updateSummaryIfNeeded() 160 private SummaryProvider getSummaryProvider(Tile tile) { in getSummaryProvider() 217 for (Tile tile : category.getTiles()) { in updateSummaryToCache() 242 private synchronized void makeProviderW(Tile tile) { in makeProviderW() 250 private Tile getTileFromCategory(DashboardCategory category, ComponentName component) { in getTileFromCategory() 254 final List<Tile> tiles = category.getTiles(); in getTileFromCategory() 257 final Tile tile = tiles.get(j); in getTileFromCategory() 271 void notifySummaryChanged(Tile tile); in notifySummaryChanged() [all …]
|
D | CategoryManager.java | 30 import com.android.settingslib.drawer.Tile; 48 private final Map<Pair<String, String>, Tile> mTileByComponentCache; 94 Tile tile = category.getTile(j); in updateCategoryFromBlacklist() 126 Map<Pair<String, String>, Tile> tileByComponentCache, in backwardCompatCleanupForCategory() 133 final Map<String, List<Tile>> packageToTileMap = new HashMap<>(); in backwardCompatCleanupForCategory() 134 for (Entry<Pair<String, String>, Tile> tileEntry : tileByComponentCache.entrySet()) { in backwardCompatCleanupForCategory() 136 List<Tile> tiles = packageToTileMap.get(packageName); in backwardCompatCleanupForCategory() 144 for (Entry<String, List<Tile>> entry : packageToTileMap.entrySet()) { in backwardCompatCleanupForCategory() 145 final List<Tile> tiles = entry.getValue(); in backwardCompatCleanupForCategory() 149 for (Tile tile : tiles) { in backwardCompatCleanupForCategory() [all …]
|
D | DashboardFeatureProvider.java | 22 import com.android.settingslib.drawer.Tile; 44 String getDashboardKeyForTile(Tile tile); in getDashboardKeyForTile() 59 int sourceMetricsCategory, Preference pref, Tile tile, String key, int baseOrder); in bindPreferenceToTile() 64 void openTileIntent(FragmentActivity activity, Tile tile); in openTileIntent()
|
D | DashboardFeatureProviderImpl.java | 51 import com.android.settingslib.drawer.Tile; 92 public String getDashboardKeyForTile(Tile tile) { in getDashboardKeyForTile() 107 int sourceMetricsCategory, Preference pref, Tile tile, String key, int baseOrder) { in bindPreferenceToTile() 157 public void openTileIntent(FragmentActivity activity, Tile tile) { in openTileIntent() 171 private void bindSummary(Preference preference, Tile tile) { in bindSummary() 194 void bindIcon(Preference preference, Tile tile, boolean forceRoundedIcon) { in bindIcon() 232 private void launchIntentOrSelectProfile(FragmentActivity activity, Tile tile, Intent intent, in launchIntentOrSelectProfile()
|
D | DashboardFragment.java | 43 import com.android.settingslib.drawer.Tile; 177 public void notifySummaryChanged(Tile tile) { in notifySummaryChanged() 286 protected boolean displayTile(Tile tile) { in displayTile() 396 final List<Tile> tiles = category.getTiles(); in refreshDashboardTiles() 413 for (Tile tile : tiles) { in refreshDashboardTiles()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | AccountDetailDashboardFragmentTest.java | 51 import com.android.settingslib.drawer.Tile; 108 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_HasAccountType_shouldDisplay() 117 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_NoAccountType_shouldNotDisplay() 125 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_OtherAccountType_shouldNotDisplay() 141 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_HasAccountType_shouldAddAccountNameToIntent() 169 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in displayTile_shouldAddUserHandleToTileIntent()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/ |
D | ProfileSelectDialogTest.java | 33 import com.android.settingslib.drawer.Tile; 69 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in updateUserHandlesIfNeeded_Normal() 81 final Tile tile = new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in updateUserHandlesIfNeeded_Remove()
|
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/ |
D | QuickSettingGridAdapter.java | 48 private final List<Tile> mTiles = new ArrayList<>(); 68 interface Tile extends View.OnClickListener { interface in QuickSettingGridAdapter 129 QuickSettingGridAdapter addTile(Tile tile) { in addTile() 140 for (Tile tile : mTiles) { in start() 149 for (Tile tile : mTiles) { in stop() 181 Tile tile = mTiles.get(position - mSeekbarTiles.size()); in onBindViewHolder()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/profileselector/ |
D | ProfileSelectDialog.java | 33 import com.android.settingslib.drawer.Tile; 43 private Tile mSelectedTile; 45 public static void show(FragmentManager manager, Tile tile) { in show() 80 public static void updateUserHandlesIfNeeded(Context context, Tile tile) { in updateUserHandlesIfNeeded()
|
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/ |
D | ProfileSelectDialog.java | 33 import com.android.settingslib.drawer.Tile; 43 private Tile mSelectedTile; 45 public static void show(FragmentManager manager, Tile tile) { in show() 80 public static void updateUserHandlesIfNeeded(Context context, Tile tile) { in updateUserHandlesIfNeeded()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/qstile/ |
D | DevelopmentTiles.java | 31 import android.service.quicksettings.Tile; 84 state = Tile.STATE_UNAVAILABLE; in refresh() 86 state = isEnabled() ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in refresh() 94 setIsEnabled(getQsTile().getState() == Tile.STATE_INACTIVE); in onClick()
|
/packages/apps/Settings/src/com/android/settings/development/qstile/ |
D | DevelopmentTiles.java | 31 import android.service.quicksettings.Tile; 84 state = Tile.STATE_UNAVAILABLE; in refresh() 86 state = isEnabled() ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in refresh() 94 setIsEnabled(getQsTile().getState() == Tile.STATE_INACTIVE); in onClick()
|
/packages/apps/Traceur/src/com/google/android/traceur/ |
D | QsService.java | 24 import android.service.quicksettings.Tile; 57 getQsTile().setState(tracingOn ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE); in update()
|