Home
last modified time | relevance | path

Searched refs:Tile (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/
DCategoryManagerTest.java44 private Map<Pair<String, String>, Tile> mTileByComponentCache;
62 final Tile tile1 = new Tile(); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys()
63 final Tile tile2 = new Tile(); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys()
81 final Tile tile1 = new Tile(); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForMixedKeys()
82 final Tile tile2 = new Tile(); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForMixedKeys()
104 final Tile tile1 = new Tile(); in backwardCompatCleanupForCategory_shouldChangeCategoryForOldKeys()
127 final Tile tile1 = new Tile(); in sortCategories_singlePackage_shouldReorderBasedOnPriority()
131 final Tile tile2 = new Tile(); in sortCategories_singlePackage_shouldReorderBasedOnPriority()
135 final Tile tile3 = new Tile(); in sortCategories_singlePackage_shouldReorderBasedOnPriority()
160 final Tile tile1 = new Tile(); in sortCategories_multiPackage_shouldReorderBasedOnPackageAndPriority()
[all …]
DTileUtilsTest.java105 Map<Pair<String, String>, Tile> addedCache = new ArrayMap<>(); in getTilesForIntent_shouldParseCategory()
106 List<Tile> outTiles = new ArrayList<>(); in getTilesForIntent_shouldParseCategory()
109 Map<Pair<String, String>, Tile> cache = new ArrayMap<>(); in getTilesForIntent_shouldParseCategory()
125 Map<Pair<String, String>, Tile> addedCache = new ArrayMap<>(); in getTilesForIntent_shouldParseKeyHintForSystemApp()
126 List<Tile> outTiles = new ArrayList<>(); in getTilesForIntent_shouldParseKeyHintForSystemApp()
146 Map<Pair<String, String>, Tile> addedCache = new ArrayMap<>(); in getTilesForIntent_shouldSkipNonSystemApp()
147 List<Tile> outTiles = new ArrayList<>(); in getTilesForIntent_shouldSkipNonSystemApp()
165 Map<Pair<String, String>, Tile> addedCache = new ArrayMap<>(); in getTilesForIntent_shouldSkipFilteredApps()
166 List<Tile> outTiles = new ArrayList<>(); in getTilesForIntent_shouldSkipFilteredApps()
191 Map<Pair<String, String>, Tile> cache = new ArrayMap<>(); in getCategories_shouldHandleExtraIntentAction()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
DTileList.java31 private final SparseArray<Tile<T>> mTiles = new SparseArray<Tile<T>>(10);
33 Tile<T> mLastAccessedTile;
59 public Tile<T> getAtIndex(int index) { in getAtIndex()
63 public Tile<T> addOrReplace(Tile<T> newTile) { in addOrReplace()
69 Tile<T> oldTile = mTiles.valueAt(index); in addOrReplace()
77 public Tile<T> removeAtPos(int startPosition) { in removeAtPos()
78 Tile<T> tile = mTiles.get(startPosition); in removeAtPos()
86 public static class Tile<T> { class in TileList
90 Tile<T> mNext; // Used only for pooling recycled tiles.
92 public Tile(Class<T> klass, int size) { in Tile() method in TileList.Tile
DAsyncListUtil.java228 public void addTile(int generation, TileList.Tile<T> tile) {
236 TileList.Tile<T> duplicate = mTileList.addOrReplace(tile);
263 TileList.Tile<T> tile = mTileList.removeAtPos(position);
292 private TileList.Tile<T> mRecycledRoot;
368 TileList.Tile<T> tile = acquireTile();
377 public void recycleTile(TileList.Tile<T> tile) {
387 private TileList.Tile<T> acquireTile() {
389 TileList.Tile<T> result = mRecycledRoot;
393 return new TileList.Tile<T>(mTClass, mTileSize);
400 private void addTile(TileList.Tile<T> tile) {
DThreadUtil.java25 void addTile(int generation, TileList.Tile<T> tile); in addTile()
39 void recycleTile(TileList.Tile<T> tile); in recycleTile()
/frameworks/base/core/java/android/service/quicksettings/
DTile.java35 public final class Tile implements Parcelable { class
74 public Tile(Parcel source) { in Tile() method in Tile
81 public Tile() { in Tile() method in Tile
212 public static final Creator<Tile> CREATOR = new Creator<Tile>() {
214 public Tile createFromParcel(Parcel source) {
215 return new Tile(source);
219 public Tile[] newArray(int size) {
220 return new Tile[size];
DIQSService.aidl20 import android.service.quicksettings.Tile;
26 Tile getTile(in IBinder tile); in getTile()
27 void updateQsTile(in Tile tile, in IBinder service); in updateQsTile()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/
DDashboardCategory.java51 public List<Tile> tiles = new ArrayList<>();
58 public void addTile(Tile tile) { in addTile()
62 public void addTile(int n, Tile tile) { in addTile()
66 public void removeTile(Tile tile) { in removeTile()
78 public Tile getTile(int n) { in getTile()
83 for (Tile tile : tiles) { in containsComponent()
113 Tile tile = tiles.get(n); in writeToParcel()
126 Tile tile = Tile.CREATOR.createFromParcel(in); in readFromParcel()
DTile.java32 public class Tile implements Parcelable { class
87 public Tile() { in Tile() method in Tile
144 Tile(Parcel in) { in Tile() method in Tile
148 public static final Creator<Tile> CREATOR = new Creator<Tile>() {
149 public Tile createFromParcel(Parcel source) {
150 return new Tile(source);
152 public Tile[] newArray(int size) {
153 return new Tile[size];
DCategoryManager.java47 private final Map<Pair<String, String>, Tile> mTileByComponentCache;
108 Tile tile = category.tiles.get(j); in updateCategoryFromBlacklist()
142 Map<Pair<String, String>, Tile> tileByComponentCache, in backwardCompatCleanupForCategory()
149 final Map<String, List<Tile>> packageToTileMap = new HashMap<>(); in backwardCompatCleanupForCategory()
150 for (Entry<Pair<String, String>, Tile> tileEntry : tileByComponentCache.entrySet()) { in backwardCompatCleanupForCategory()
152 List<Tile> tiles = packageToTileMap.get(packageName); in backwardCompatCleanupForCategory()
160 for (Entry<String, List<Tile>> entry : packageToTileMap.entrySet()) { in backwardCompatCleanupForCategory()
161 final List<Tile> tiles = entry.getValue(); in backwardCompatCleanupForCategory()
165 for (Tile tile : tiles) { in backwardCompatCleanupForCategory()
175 for (Tile tile : tiles) { in backwardCompatCleanupForCategory()
[all …]
DTileUtils.java173 Map<Pair<String, String>, Tile> cache) { in getCategories()
183 Map<Pair<String, String>, Tile> cache, boolean categoryDefinedInManifest) { in getCategories()
195 Map<Pair<String, String>, Tile> cache, boolean categoryDefinedInManifest, in getCategories()
200 ArrayList<Tile> tiles = new ArrayList<>(); in getCategories()
228 for (Tile tile : tiles) { in getCategories()
285 UserHandle user, String action, Map<Pair<String, String>, Tile> addedCache, in getTilesForAction()
286 String defaultCategory, ArrayList<Tile> outTiles, boolean requireSettings, in getTilesForAction()
293 UserHandle user, String action, Map<Pair<String, String>, Tile> addedCache, in getTilesForAction()
294 String defaultCategory, ArrayList<Tile> outTiles, boolean requireSettings, in getTilesForAction()
305 Map<Pair<String, String>, Tile> addedCache, String defaultCategory, List<Tile> outTiles, in getTilesForIntent()
[all …]
DProfileSelectDialog.java39 private Tile mSelectedTile;
41 public static void show(FragmentManager manager, Tile tile) { in show()
77 public static void updateUserHandlesIfNeeded(Context context, Tile tile) { in updateUserHandlesIfNeeded()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageRenderer.java96 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 …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DSuggestionParser.java41 import com.android.settingslib.drawer.Tile;
102 private final ArrayMap<Pair<String, String>, Tile> mAddCache = new ArrayMap<>();
129 public List<Tile> getSuggestions() { in getSuggestions()
133 public List<Tile> getSuggestions(boolean isSmartSuggestionEnabled) { in getSuggestions()
134 List<Tile> suggestions = new ArrayList<>(); in getSuggestions()
142 public boolean dismissSuggestion(Tile suggestion) { in dismissSuggestion()
150 public boolean dismissSuggestion(Tile suggestion, boolean isSmartSuggestionEnabled) { in dismissSuggestion()
165 List<Tile> suggestions, int countBefore, boolean isSmartSuggestionEnabled) { in filterSuggestions()
180 SuggestionCategory category, List<Tile> suggestions, boolean isSmartSuggestionEnabled) { in readSuggestions()
193 Tile item = suggestions.remove(suggestions.size() - 1); in readSuggestions()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DSuggestionParserTest.java28 import com.android.settingslib.drawer.Tile;
57 private List<Tile> mSuggestionsBeforeDismiss;
58 private List<Tile> mSuggestionsAfterDismiss;
60 private Tile mSuggestion;
69 mSuggestion = new Tile(); in setUp()
117 mSuggestionsBeforeDismiss = new ArrayList<Tile>(); in readAndDismissSuggestion()
118 mSuggestionsAfterDismiss = new ArrayList<Tile>(); in readAndDismissSuggestion()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileColorPicker.java20 import android.service.quicksettings.Tile;
49 case Tile.STATE_UNAVAILABLE: in getColor()
51 case Tile.STATE_INACTIVE: in getColor()
53 case Tile.STATE_ACTIVE: in getColor()
DCustomTile.java32 import android.service.quicksettings.Tile;
61 private final Tile mTile;
78 mTile = new Tile(); in CustomTile()
164 public Tile getQsTile() { in getQsTile()
168 public void updateState(Tile tile) { in updateState()
260 if (mTile.getState() == Tile.STATE_UNAVAILABLE) { in handleClick()
289 tileState = Tile.STATE_UNAVAILABLE; in handleUpdateState()
297 state.state = Tile.STATE_UNAVAILABLE; in handleUpdateState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileColorPickerTest.java19 import android.service.quicksettings.Tile;
47 final int color = mTileColorPicker.getColor(Tile.STATE_UNAVAILABLE); in testGetColor_StateUnavailable_ReturnUnavailableColor()
56 final int color = mTileColorPicker.getColor(Tile.STATE_INACTIVE); in testGetColor_StateInactive_ReturnInactiveColor()
65 final int color = mTileColorPicker.getColor(Tile.STATE_ACTIVE); in testGetColor_StateActive_ReturnActiveColor()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoTile.java18 import android.service.quicksettings.Tile;
68 Tile tile = getQsTile(); in updateState()
76 tile.setState(foodState != 0 ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE); in updateState()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DThreadUtilTest.java69 public void addTile(int generation, TileList.Tile<Integer> data) { in setup()
104 public void recycleTile(TileList.Tile<Integer> data) { in setup()
126 TileList.Tile<Integer> tile = new TileList.Tile<Integer>(Integer.class, 10); in addTile()
169 TileList.Tile<Integer> tile = new TileList.Tile<Integer>(Integer.class, 10); in recycleTile()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/drawer/
DProfileSelectDialogTest.java61 final Tile tile = new Tile(); in testUpdateUserHandlesIfNeeded_Normal()
74 final Tile tile = new Tile(); in testUpdateUserHandlesIfNeeded_Remove()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DFlashlightTile.java23 import android.service.quicksettings.Tile;
114 state.state = Tile.STATE_UNAVAILABLE; in handleUpdateState()
130 state.state = state.value ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in handleUpdateState()
DNightDisplayTile.java22 import android.service.quicksettings.Tile;
85 state.state = state.value ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in handleUpdateState()
DHotspotTile.java25 import android.service.quicksettings.Tile;
142 state.state = state.isAirplaneMode ? Tile.STATE_UNAVAILABLE in handleUpdateState()
143 : state.value || state.isTransient ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in handleUpdateState()
DColorInversionTile.java22 import android.service.quicksettings.Tile;
100 state.state = state.value ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in handleUpdateState()

123