/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/Settings/tests/robotests/src/com/android/settings/dashboard/ |
D | CategoryManagerTest.java | 36 import com.android.settingslib.drawer.Tile; 53 private Map<Pair<String, String>, Tile> mTileByComponentCache; 75 final Tile tile1 = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys() 76 final Tile tile2 = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys() 92 final Tile tile1 = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForMixedKeys() 94 final Tile tile2 = new ActivityTile(mActivityInfo, oldCategory); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForMixedKeys() 115 final Tile tile1 = new ActivityTile(mActivityInfo, oldCategory); in backwardCompatCleanupForCategory_shouldChangeCategoryForOldKeys() 138 final Tile tile1 = createActivityTile(category.key, testPackage, "class1", 100); in sortCategories_singlePackage_shouldReorderBasedOnPriority() 139 final Tile tile2 = createActivityTile(category.key, testPackage, "class2", 50); in sortCategories_singlePackage_shouldReorderBasedOnPriority() 140 final Tile tile3 = createActivityTile(category.key, testPackage, "class3", 200); in sortCategories_singlePackage_shouldReorderBasedOnPriority() [all …]
|
D | DashboardFeatureProviderImplTest.java | 70 import com.android.settingslib.drawer.Tile; 152 final Tile tile = spy(new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE)); in bindPreference_shouldBindAllData() 172 final Tile tile = spy(new ProviderTile(mProviderInfo, CategoryKey.CATEGORY_HOMEPAGE, in bindPreference_shouldBindAllSwitchData() 194 final Tile tile = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in bindPreference_noFragmentMetadata_shouldBindIntent() 207 final Tile tile = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in bindPreference_noFragmentMetadata_shouldBindToProfileSelector() 222 final Tile tile = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in bindPreference_noFragmentMetadataSingleUser_shouldBindToDirectLaunchIntent() 244 final Tile tile = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in bindPreference_toInternalSettingActivity_shouldBindToDirectLaunchIntentAndNotLog() 260 final Tile tile = mock(Tile.class); in bindPreference_nullPreference_shouldIgnore() 270 final Tile tile = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in bindPreference_withNullKeyNullPriority_shouldGenerateKeyAndPriority() 284 final Tile tile = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in bindPreference_noSummary_shouldSetSummaryToPlaceholder() [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/Settings/src/com/android/settings/dashboard/ |
D | CategoryManager.java | 31 import com.android.settingslib.drawer.Tile; 50 private final Map<Pair<String, String>, Tile> mTileByComponentCache; 97 Tile tile = category.getTile(j); in updateCategoryFromBlacklist() 106 public synchronized Map<ComponentName, Tile> getTileByComponentMap() { in getTileByComponentMap() 107 final Map<ComponentName, Tile> result = new ArrayMap<>(); in getTileByComponentMap() 114 final Tile tile = category.getTile(i); in getTileByComponentMap() 158 Map<Pair<String, String>, Tile> tileByComponentCache, in backwardCompatCleanupForCategory() 165 final Map<String, List<Tile>> packageToTileMap = new HashMap<>(); in backwardCompatCleanupForCategory() 166 for (Entry<Pair<String, String>, Tile> tileEntry : tileByComponentCache.entrySet()) { in backwardCompatCleanupForCategory() 168 List<Tile> tiles = packageToTileMap.get(packageName); in backwardCompatCleanupForCategory() [all …]
|
D | DashboardFeatureProvider.java | 22 import com.android.settingslib.drawer.Tile; 44 String getDashboardKeyForTile(Tile tile); in getDashboardKeyForTile() 61 boolean forceRoundedIcon, int sourceMetricsCategory, Preference pref, Tile tile, in bindPreferenceToTileAndGetObservers() 67 void openTileIntent(FragmentActivity activity, Tile tile); in openTileIntent()
|
D | DashboardFeatureProviderImpl.java | 67 import com.android.settingslib.drawer.Tile; 109 public String getDashboardKeyForTile(Tile tile) { in getDashboardKeyForTile() 124 boolean forceRoundedIcon, int sourceMetricsCategory, Preference pref, Tile tile, in bindPreferenceToTileAndGetObservers() 188 public void openTileIntent(FragmentActivity activity, Tile tile) { in openTileIntent() 226 private DynamicDataObserver bindTitleAndGetObserver(Preference preference, Tile tile) { 257 private DynamicDataObserver bindSummaryAndGetObserver(Preference preference, Tile tile) { 288 private DynamicDataObserver bindSwitchAndGetObserver(Preference preference, Tile tile) { 359 void bindIcon(Preference preference, Tile tile, boolean forceRoundedIcon) { 398 private void launchIntentOrSelectProfile(FragmentActivity activity, Tile tile, Intent intent,
|
D | DashboardFragment.java | 49 import com.android.settingslib.drawer.Tile; 313 protected boolean displayTile(Tile tile) { in displayTile() 482 final List<Tile> tiles = category.getTiles(); in refreshDashboardTiles() 492 for (Tile tile : tiles) { in refreshDashboardTiles() 538 Preference createPreference(Tile tile) { in createPreference()
|
/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/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 | 54 import com.android.settingslib.drawer.Tile; 95 public String getDashboardKeyForTile(Tile tile) { in getDashboardKeyForTile() 110 int sourceMetricsCategory, Preference pref, Tile tile, String key, int baseOrder) { in bindPreferenceToTile() 160 public void openTileIntent(FragmentActivity activity, Tile tile) { in openTileIntent() 174 private void bindSummary(Preference preference, Tile tile) { in bindSummary() 198 void bindIcon(Preference preference, Tile tile, boolean forceRoundedIcon) { in bindIcon() 237 private void launchIntentOrSelectProfile(FragmentActivity activity, Tile tile, Intent intent, in launchIntentOrSelectProfile()
|
D | DashboardFragment.java | 42 import com.android.settingslib.drawer.Tile; 177 public void notifySummaryChanged(Tile tile) { in notifySummaryChanged() 285 protected boolean displayTile(Tile tile) { in displayTile() 395 final List<Tile> tiles = category.getTiles(); in refreshDashboardTiles() 412 for (Tile tile : tiles) { in refreshDashboardTiles()
|
/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() 179 Tile tile = mTiles.get(position - mSeekbarTiles.size()); in onBindViewHolder()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | AccountDetailDashboardFragmentTest.java | 52 import com.android.settingslib.drawer.Tile; 109 final Tile tile = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_HasAccountType_shouldDisplay() 118 final Tile tile = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_NoAccountType_shouldNotDisplay() 126 final Tile tile = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_OtherAccountType_shouldNotDisplay() 142 final Tile tile = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_HasAccountType_shouldAddAccountNameToIntent() 170 final Tile tile = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in displayTile_shouldAddUserHandleToTileIntent()
|
/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 | 34 import com.android.settingslib.drawer.Tile; 46 private Tile mSelectedTile; 54 public static void show(FragmentManager manager, Tile tile, int sourceMetricCategory) { in show() 94 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/Traceur/src/com/android/traceur/ |
D | QsService.java | 24 import android.service.quicksettings.Tile; 57 getQsTile().setState(tracingOn ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE); in update()
|
/packages/apps/Settings/src/com/android/settings/development/qstile/ |
D | DevelopmentTiles.java | 39 import android.service.quicksettings.Tile; 94 state = Tile.STATE_UNAVAILABLE; in refresh() 96 state = isEnabled() ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in refresh() 104 setIsEnabled(getQsTile().getState() == Tile.STATE_INACTIVE); in onClick()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/ |
D | ProfileSelectDialogTest.java | 34 import com.android.settingslib.drawer.Tile; 70 final Tile tile = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in updateUserHandlesIfNeeded_Normal() 82 final Tile tile = new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE); in updateUserHandlesIfNeeded_Remove()
|
/packages/apps/Settings/src/com/android/settings/core/ |
D | SettingsBaseActivity.java | 44 import com.android.settingslib.drawer.Tile; 226 private Map<ComponentName, Tile> mPreviousTileMap; 258 final Map<ComponentName, Tile> currentTileMap = in getChangedCategories() 261 final Tile previousTile = mPreviousTileMap.get(component); in getChangedCategories()
|