/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
D | TileTest.java | 33 private Tile mTile; 44 mTile = new Tile(mActivityInfo, "category"); in setUp() 73 final Tile tile = new Tile(mActivityInfo, "category"); in getIcon_noContextOrMetadata_returnNull() 103 final Tile tile = new Tile(mActivityInfo, "category"); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() 114 final Tile tile = new Tile(mActivityInfo, "category"); in isIconTintable_noIcon_shouldReturnFalse() 121 final Tile tile = new Tile(mActivityInfo, "category"); in isIconTintable_noTintableMetadata_shouldReturnFalse() 129 final Tile tile = new Tile(mActivityInfo, "category"); in getPriority_noMetadata_return0() 138 final Tile tile = new Tile(mActivityInfo, "category"); in getPriority_badMetadata_return0() 147 final Tile tile = new Tile(mActivityInfo, "category"); in getPriority_validMetadata_returnMetadataValue() 160 final Tile tile = new Tile(mActivityInfo, "category"); in getTitle_shouldEnsureMetadataNotStale() [all …]
|
D | TileUtilsTest.java | 101 Map<Pair<String, String>, Tile> addedCache = new ArrayMap<>(); in getTilesForIntent_shouldParseCategory() 102 List<Tile> outTiles = new ArrayList<>(); in getTilesForIntent_shouldParseCategory() 118 Map<Pair<String, String>, Tile> addedCache = new ArrayMap<>(); in getTilesForIntent_shouldParseKeyHintForSystemApp() 119 List<Tile> outTiles = new ArrayList<>(); in getTilesForIntent_shouldParseKeyHintForSystemApp() 137 Map<Pair<String, String>, Tile> addedCache = new ArrayMap<>(); in getTilesForIntent_shouldSkipNonSystemApp() 138 List<Tile> outTiles = new ArrayList<>(); in getTilesForIntent_shouldSkipNonSystemApp() 154 Map<Pair<String, String>, Tile> cache = new ArrayMap<>(); in getCategories_withPackageName() 172 Map<Pair<String, String>, Tile> addedCache = new ArrayMap<>(); in getTilesForIntent_shouldReadMetadataTitleAsString() 173 List<Tile> outTiles = new ArrayList<>(); in getTilesForIntent_shouldReadMetadataTitleAsString() 191 Map<Pair<String, String>, Tile> addedCache = new ArrayMap<>(); in getTilesForIntent_shouldReadMetadataTitleFromResource() [all …]
|
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
D | DashboardCategory.java | 41 private List<Tile> mTiles = new ArrayList<>(); 53 Tile tile = Tile.CREATOR.createFromParcel(in); in DashboardCategory() 64 public synchronized List<Tile> getTiles() { in getTiles() 65 final List<Tile> result = new ArrayList<>(mTiles.size()); in getTiles() 66 for (Tile tile : mTiles) { in getTiles() 75 public synchronized void addTile(Tile tile) { in addTile() 96 public Tile getTile(int n) { in getTile() 104 Collections.sort(mTiles, Tile.TILE_COMPARATOR); in sortTiles() 148 Tile tile = mTiles.get(n); in writeToParcel()
|
D | Tile.java | 55 public class Tile implements Parcelable { class 75 public Tile(ActivityInfo activityInfo, String category) { in Tile() method in Tile 84 Tile(Parcel in) { in Tile() method in Tile 358 public static final Creator<Tile> CREATOR = new Creator<Tile>() { 359 public Tile createFromParcel(Parcel source) { 360 return new Tile(source); 363 public Tile[] newArray(int size) { 364 return new Tile[size]; 378 public static final Comparator<Tile> TILE_COMPARATOR =
|
D | TileUtils.java | 211 Map<Pair<String, String>, Tile> cache) { in getCategories() 215 ArrayList<Tile> tiles = new ArrayList<>(); in getCategories() 234 for (Tile tile : tiles) { in getCategories() 262 UserHandle user, String action, Map<Pair<String, String>, Tile> addedCache, in getTilesForAction() 263 String defaultCategory, List<Tile> outTiles, boolean requireSettings) { in getTilesForAction() 292 Tile tile = addedCache.get(key); in getTilesForAction() 294 tile = new Tile(activityInfo, categoryKey); in getTilesForAction()
|
/frameworks/base/core/java/android/service/quicksettings/ |
D | Tile.java | 36 public final class Tile implements Parcelable { class 76 public Tile(Parcel source) { in Tile() method in Tile 83 public Tile() { in Tile() method in Tile 232 public static final @android.annotation.NonNull Creator<Tile> CREATOR = new Creator<Tile>() { 234 public Tile createFromParcel(Parcel source) { 235 return new Tile(source); 239 public Tile[] newArray(int size) { 240 return new Tile[size];
|
D | IQSService.aidl | 20 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/WallpaperCropper/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 …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | TileColorPicker.java | 20 import android.service.quicksettings.Tile; 51 case Tile.STATE_UNAVAILABLE: in getColor() 53 case Tile.STATE_INACTIVE: in getColor() 55 case Tile.STATE_ACTIVE: in getColor()
|
D | CustomTile.java | 35 import android.service.quicksettings.Tile; 65 private final Tile mTile; 82 mTile = new Tile(); in CustomTile() 178 public Tile getQsTile() { in getQsTile() 183 public void updateState(Tile tile) { in updateState() 276 if (mTile.getState() == Tile.STATE_UNAVAILABLE) { in handleClick() 305 tileState = Tile.STATE_UNAVAILABLE; in handleUpdateState() 313 state.state = Tile.STATE_UNAVAILABLE; in handleUpdateState()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | AdaptiveIconTest.java | 41 import com.android.settingslib.drawer.Tile; 87 final Tile tile = spy(new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE)); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() 100 final Tile tile = spy(new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE)); in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor() 113 final Tile tile = spy(new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE)); in onBindTile_externalTileWithBackgroundColorHint_shouldUpdateIcon()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileColorPickerTest.java | 21 import android.service.quicksettings.Tile; 50 final int color = mTileColorPicker.getColor(Tile.STATE_UNAVAILABLE); in testGetColor_StateUnavailable_ReturnUnavailableColor() 59 final int color = mTileColorPicker.getColor(Tile.STATE_INACTIVE); in testGetColor_StateInactive_ReturnInactiveColor() 68 final int color = mTileColorPicker.getColor(Tile.STATE_ACTIVE); in testGetColor_StateActive_ReturnActiveColor()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | BatterySaverTile.java | 20 import android.service.quicksettings.Tile; 87 if (getState().state == Tile.STATE_UNAVAILABLE) { in handleClick() 100 state.state = mPluggedIn ? Tile.STATE_UNAVAILABLE in handleUpdateState() 101 : mPowerSave ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in handleUpdateState()
|
D | UiModeNightTile.java | 23 import android.service.quicksettings.Tile; 78 if (getState().state == Tile.STATE_UNAVAILABLE) { in handleClick() 101 state.state = Tile.STATE_UNAVAILABLE; in handleUpdateState() 103 state.state = state.value ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in handleUpdateState()
|
D | NfcTile.java | 27 import android.service.quicksettings.Tile; 106 ? Tile.STATE_UNAVAILABLE in handleUpdateState() 107 : state.value ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in handleUpdateState()
|
D | FlashlightTile.java | 22 import android.service.quicksettings.Tile; 109 state.state = Tile.STATE_UNAVAILABLE; in handleUpdateState() 125 state.state = state.value ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in handleUpdateState()
|
D | CellularTile.java | 27 import android.service.quicksettings.Tile; 96 if (getState().state == Tile.STATE_UNAVAILABLE) { in handleClick() 171 state.state = Tile.STATE_UNAVAILABLE; in handleUpdateState() 174 state.state = Tile.STATE_UNAVAILABLE; in handleUpdateState() 177 state.state = Tile.STATE_ACTIVE; in handleUpdateState() 183 state.state = Tile.STATE_INACTIVE; in handleUpdateState() 191 if (state.state == Tile.STATE_INACTIVE) { in handleUpdateState()
|
D | RotationLockTile.java | 23 import android.service.quicksettings.Tile; 83 state.state = state.value ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in handleUpdateState()
|
D | ColorInversionTile.java | 22 import android.service.quicksettings.Tile; 102 state.state = state.value ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in handleUpdateState()
|
D | WorkModeTile.java | 21 import android.service.quicksettings.Tile; 115 state.state = state.value ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in handleUpdateState()
|
D | HotspotTile.java | 23 import android.service.quicksettings.Tile; 143 state.state = Tile.STATE_UNAVAILABLE; in handleUpdateState() 145 state.state = isTileActive ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in handleUpdateState()
|
D | DataSaverTile.java | 20 import android.service.quicksettings.Tile; 95 state.state = state.value ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in handleUpdateState()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | CastTileTest.java | 30 import android.service.quicksettings.Tile; 115 assertEquals(Tile.STATE_UNAVAILABLE, mCastTile.getState().state); in testStateUnavailable_wifiDisabled() 127 assertEquals(Tile.STATE_UNAVAILABLE, mCastTile.getState().state); in testStateUnavailable_wifiNotConnected() 148 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testStateActive_wifiEnabledAndCasting() 154 assertEquals(Tile.STATE_INACTIVE, mCastTile.getState().state); in testStateInactive_wifiEnabledNotCasting() 200 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testUpdateState_projectionOnly() 224 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testUpdateState_castingAndProjection() 248 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testUpdateState_connectedAndConnecting()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/ |
D | QSIconViewImplTest.java | 27 import android.service.quicksettings.Tile; 80 s.state = Tile.STATE_ACTIVE; in testNoFirstFade() 92 s.state = Tile.STATE_ACTIVE; in testStateSetCorrectly_toString() 99 assertEquals("QSIconViewImpl[state=" + Tile.STATE_ACTIVE + ", tint=" + desiredColor in testStateSetCorrectly_toString()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
D | QSTileBaseView.java | 32 import android.service.quicksettings.Tile; 213 setClickable(state.state != Tile.STATE_UNAVAILABLE); in handleStateChanged() 219 state.state == Tile.STATE_UNAVAILABLE ? null : state.expandedAccessibilityClassName; in handleStateChanged() 244 case Tile.STATE_ACTIVE: in getCircleColor() 246 case Tile.STATE_INACTIVE: in getCircleColor() 247 case Tile.STATE_UNAVAILABLE: in getCircleColor()
|