Home
last modified time | relevance | path

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

12345

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/
DActivityTileTest.java52 private Tile mTile;
92 final Tile tile = new ActivityTile(mActivityInfo, "category"); in getIcon_noContextOrMetadata_returnNull()
121 final Tile tile = new ActivityTile(mActivityInfo, "category"); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata()
132 final Tile tile = new ActivityTile(mActivityInfo, "category"); in isIconTintable_noIcon_shouldReturnFalse()
139 final Tile tile = new ActivityTile(mActivityInfo, "category"); in isIconTintable_noTintableMetadata_shouldReturnFalse()
147 final Tile tile = new ActivityTile(mActivityInfo, "category"); in getPriority_noMetadata_return0()
156 final Tile tile = new ActivityTile(mActivityInfo, "category"); in getPriority_badMetadata_return0()
165 final Tile tile = new ActivityTile(mActivityInfo, "category"); in getPriority_validMetadata_returnMetadataValue()
178 final Tile tile = new ActivityTile(mActivityInfo, "category"); in getTitle_shouldEnsureMetadataNotStale()
194 final Tile tile = new ActivityTile(mActivityInfo, "category"); in getTitle_noActivity_returnNull()
[all …]
DProviderTileTest.java62 private Tile mTile;
100 final Tile tile = new ProviderTile(mProviderInfo, "category", null); in getIcon_noContextOrMetadata_shouldThrowNullPointerException()
113 final Tile tile = new ProviderTile(mProviderInfo, "category", mMetaData); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata()
124 final Tile tile = new ProviderTile(mProviderInfo, "category", mMetaData); in isIconTintable_noIcon_shouldReturnFalse()
131 final Tile tile = new ProviderTile(mProviderInfo, "category", mMetaData); in isIconTintable_noTintableMetadata_shouldReturnFalse()
139 final Tile tile = new ProviderTile(mProviderInfo, "category", mMetaData); in getPriority_noMetadata_return0()
148 final Tile tile = new ProviderTile(mProviderInfo, "category", mMetaData); in getPriority_badMetadata_return0()
157 final Tile tile = new ProviderTile(mProviderInfo, "category", mMetaData); in getPriority_validMetadata_returnMetadataValue()
172 final Tile tile = new ProviderTile(mProviderInfo, "category", mMetaData); in getTitle_shouldEnsureMetadataNotStale()
183 final Tile tile = new ProviderTile(mProviderInfo, "category", mMetaData); in hasPendingIntent_empty_returnsFalse()
[all …]
DTileUtilsTest.java122 Map<Pair<String, String>, Tile> addedCache = new ArrayMap<>(); in getTilesForIntent_shouldParseCategory()
123 List<Tile> outTiles = new ArrayList<>(); in getTilesForIntent_shouldParseCategory()
142 Map<Pair<String, String>, Tile> addedCache = new ArrayMap<>(); in getTilesForIntent_shouldParseKeyHintForSystemApp()
143 List<Tile> outTiles = new ArrayList<>(); in getTilesForIntent_shouldParseKeyHintForSystemApp()
164 Map<Pair<String, String>, Tile> addedCache = new ArrayMap<>(); in getTilesForIntent_shouldSkipNonSystemApp()
165 List<Tile> outTiles = new ArrayList<>(); in getTilesForIntent_shouldSkipNonSystemApp()
183 Map<Pair<String, String>, Tile> cache = new ArrayMap<>(); in getCategories_withPackageName()
203 Map<Pair<String, String>, Tile> addedCache = new ArrayMap<>(); in getTilesForIntent_shouldReadMetadataTitleAsString()
204 List<Tile> outTiles = new ArrayList<>(); in getTilesForIntent_shouldReadMetadataTitleAsString()
225 Map<Pair<String, String>, Tile> addedCache = new ArrayMap<>(); in getTilesForIntent_shouldReadMetadataTitleFromResource()
[all …]
/frameworks/base/core/tests/coretests/src/android/service/quicksettings/
DTileTest.java36 Tile tile = new Tile(); in testGetLabel_labelSet_usesCustomLabel()
45 Tile tile = new Tile(); in testGetLabel_labelNotSet_usesDefaultLabel()
53 Tile tile = new Tile(); in testGetCustomLabel_labelSet()
62 Tile tile = new Tile(); in testGetCustomLabel_labelNotSet()
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/
DDashboardCategory.java41 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/custom/commons/
DTileExt.kt19 import android.service.quicksettings.Tile
21 fun Tile.copy(): Tile = in Tile() method
22 Tile().also { in Tile()
32 fun Tile.setFrom(otherTile: Tile) { in setFrom() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DCustomTileStatePersister.kt22 import android.service.quicksettings.Tile
58 fun readState(key: TileServiceKey): Tile? in toString()
64 fun persistState(key: TileServiceKey, tile: Tile) in toString()
82 override fun readState(key: TileServiceKey): Tile? { in readState()
92 override fun persistState(key: TileServiceKey, tile: Tile) { in persistState()
104 internal fun readTileFromString(stateString: String): Tile { in readTileFromString()
106 return Tile().apply { in readTileFromString()
122 internal fun writeToString(tile: Tile): String { in writeToString()
DTileColorPicker.java20 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()
DCustomTileInterface.kt21 import android.service.quicksettings.Tile
26 val qsTile: Tile
32 fun updateTileState(tile: Tile, uid: Int)
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/
DTileSubject.kt19 import android.service.quicksettings.Tile in <lambda>()
31 class TileSubject private constructor(failureMetadata: FailureMetadata, subject: Tile?) : in <lambda>()
34 private val actual: Tile? = subject in <lambda>()
37 fun isEqualTo(other: Tile?) { in <lambda>()
62 fun tiles(): Factory<TileSubject, Tile?> { in <lambda>()
63 return Factory { failureMetadata: FailureMetadata, subject: Tile? -> in <lambda>()
69 fun assertThat(tile: Tile?): TileSubject = Truth.assertAbout(tiles()).that(tile) in <lambda>()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageRenderer.java95 private final LongSparseArray<Tile> mActiveTiles = new LongSparseArray<Tile>();
307 Tile tile = mActiveTiles.valueAt(i); in layoutTiles()
339 Tile tile = mActiveTiles.valueAt(i); in invalidateTiles()
392 Tile tile = mRecycledQueue.pop(); in freeTextures()
401 Tile texture = mActiveTiles.valueAt(i); in freeTextures()
471 Tile tile = mActiveTiles.valueAt(i); in uploadBackgroundTiles()
478 private void queueForDecode(Tile tile) { in queueForDecode()
489 private void decodeTile(Tile tile) { in decodeTile()
516 private Tile obtainTile(int x, int y, int level) { in obtainTile()
518 Tile tile = mRecycledQueue.pop(); in obtainTile()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DTileStateToProtoTest.kt4 import android.service.quicksettings.Tile
33 state = Tile.STATE_INACTIVE in platformTile_INACTIVE()
43 assertThat(proto?.state).isEqualTo(Tile.STATE_INACTIVE) in platformTile_INACTIVE()
54 state = Tile.STATE_UNAVAILABLE in componentTile_UNAVAILABLE()
66 assertThat(proto?.state).isEqualTo(Tile.STATE_UNAVAILABLE) in componentTile_UNAVAILABLE()
81 state = Tile.STATE_ACTIVE in adapterState_ACTIVE()
92 assertThat(proto?.state).isEqualTo(Tile.STATE_ACTIVE) in adapterState_ACTIVE()
108 state = Tile.STATE_INACTIVE in adapterState_INACTIVE()
119 assertThat(proto?.state).isEqualTo(Tile.STATE_INACTIVE) in adapterState_INACTIVE()
130 state = Tile.STATE_ACTIVE in noSpec_returnsNull()
/frameworks/base/core/java/android/service/quicksettings/
DTile.java37 public final class Tile implements Parcelable { class
80 public Tile(Parcel source) { in Tile() method in Tile
87 public Tile() { in Tile() method in Tile
311 public static final @android.annotation.NonNull Creator<Tile> CREATOR = new Creator<Tile>() {
313 public Tile createFromParcel(Parcel source) {
314 return new Tile(source);
318 public Tile[] newArray(int size) {
319 return new Tile[size];
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/external/
DFakeCustomTileStatePersister.kt19 import android.service.quicksettings.Tile
23 private val tiles: MutableMap<TileServiceKey, Tile> = mutableMapOf()
25 override fun readState(key: TileServiceKey): Tile? = tiles[key] in readState()
27 override fun persistState(key: TileServiceKey, tile: Tile) { in readState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSIconViewImplTest_311121830.kt21 import android.service.quicksettings.Tile
56 state = Tile.STATE_INACTIVE in alwaysLastIcon()
61 state = Tile.STATE_ACTIVE in alwaysLastIcon()
66 state = Tile.STATE_ACTIVE in alwaysLastIcon()
96 state = Tile.STATE_ACTIVE in alwaysLastIcon_twoStateChanges()
101 state = Tile.STATE_INACTIVE in alwaysLastIcon_twoStateChanges()
106 state = Tile.STATE_ACTIVE in alwaysLastIcon_twoStateChanges()
111 state = Tile.STATE_INACTIVE in alwaysLastIcon_twoStateChanges()
DQSTileViewImplTest.kt22 import android.service.quicksettings.Tile
71 state.state = Tile.STATE_UNAVAILABLE in testSecondaryLabelNotModified_unavailable()
83 state.state = Tile.STATE_INACTIVE in testSecondaryLabelNotModified_booleanInactive()
95 state.state = Tile.STATE_ACTIVE in testSecondaryLabelNotModified_booleanActive()
106 state.state = Tile.STATE_INACTIVE in testSecondaryLabelNotModified_availableNotBoolean_inactive()
117 state.state = Tile.STATE_ACTIVE in testSecondaryLabelNotModified_availableNotBoolean_active()
128 state.state = Tile.STATE_UNAVAILABLE in testSecondaryLabelDescription_unavailable_default()
140 state.state = Tile.STATE_INACTIVE in testSecondaryLabelDescription_booleanInactive_default()
152 state.state = Tile.STATE_ACTIVE in testSecondaryLabelDescription_booleanActive_default()
243 state.state = Tile.STATE_UNAVAILABLE in testUseStateStringsForKnownSpec_Boolean()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/custom/data/repository/
DCustomTileRepository.kt23 import android.service.quicksettings.Tile
60 fun getTiles(user: UserHandle): Flow<Tile> in restoreForTheUserIfNeeded()
68 fun getTile(user: UserHandle): Tile? in restoreForTheUserIfNeeded()
83 newTile: Tile, in restoreForTheUserIfNeeded()
127 override fun getTiles(user: UserHandle): Flow<Tile> = in restoreForTheUserIfNeeded()
130 override fun getTile(user: UserHandle): Tile? { in restoreForTheUserIfNeeded()
142 newTile: Tile, in restoreForTheUserIfNeeded()
194 update: Tile.() -> Unit in restoreForTheUserIfNeeded()
202 Tile() in restoreForTheUserIfNeeded()
234 private data class TileWithUser(val user: UserHandle, val tile: Tile) in restoreForTheUserIfNeeded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/viewmodel/
DQSTileState.kt21 import android.service.quicksettings.Tile
75 UNAVAILABLE(Tile.STATE_UNAVAILABLE), in build()
78 ACTIVE(Tile.STATE_ACTIVE), in build()
82 INACTIVE(Tile.STATE_INACTIVE); in build()
87 Tile.STATE_ACTIVE -> ACTIVE in build()
88 Tile.STATE_INACTIVE -> INACTIVE in build()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDeviceControlsTile.kt24 import android.service.quicksettings.Tile
98 it.state = Tile.STATE_UNAVAILABLE // Start unavailable matching `hasControlsApps` in newTileState()
104 if (state.state == Tile.STATE_UNAVAILABLE) { in handleClick()
120 val showOverLockscreenWhenLocked = state.state == Tile.STATE_ACTIVE in handleClick()
140 Tile.STATE_INACTIVE in handleUpdateState()
142 Tile.STATE_ACTIVE in handleUpdateState()
147 state.state = Tile.STATE_INACTIVE in handleUpdateState()
152 state.state = Tile.STATE_UNAVAILABLE in handleUpdateState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DTileStateToProto.kt19 import android.service.quicksettings.Tile
41 Tile.STATE_UNAVAILABLE -> QsTileState.UNAVAILABLE in QSTile()
42 Tile.STATE_INACTIVE -> QsTileState.INACTIVE in QSTile()
43 Tile.STATE_ACTIVE -> QsTileState.ACTIVE in QSTile()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DCastTileTest.java34 import android.service.quicksettings.Tile;
145 assertEquals(Tile.STATE_UNAVAILABLE, mCastTile.getState().state); in testStateUnavailable_wifiDisabled()
159 assertEquals(Tile.STATE_UNAVAILABLE, mCastTile.getState().state); in testStateUnavailable_wifiNotConnected()
182 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testStateActive_wifiEnabledAndCasting()
189 assertEquals(Tile.STATE_INACTIVE, mCastTile.getState().state); in testStateInactive_wifiEnabledNotCasting()
202 assertEquals(Tile.STATE_UNAVAILABLE, mCastTile.getState().state); in stateUnavailable_noDefaultNetworks_newPipeline()
211 assertEquals(Tile.STATE_UNAVAILABLE, mCastTile.getState().state); in stateUnavailable_mobileConnected_newPipeline()
220 assertEquals(Tile.STATE_INACTIVE, mCastTile.getState().state); in stateInactive_wifiConnected_newPipeline()
229 assertEquals(Tile.STATE_INACTIVE, mCastTile.getState().state); in stateInactive_ethernetConnected_newPipeline()
245 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in stateActive_wifiConnectedAndCasting_newPipeline()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileColorPickerTest.java21 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/EasterEgg/src/com/android/egg/neko/
DNekoTile.java20 import android.service.quicksettings.Tile;
70 Tile tile = getQsTile(); in updateState()
78 tile.setState(foodState != 0 ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE); in updateState()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/data/repository/
DFakeCustomTileRepository.kt20 import android.service.quicksettings.Tile
49 override fun getTiles(user: UserHandle): Flow<Tile> = realDelegate.getTiles(user)
51 override fun getTile(user: UserHandle): Tile? = realDelegate.getTile(user)
59 newTile: Tile,
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/
DCustomTileInteractor.kt20 import android.service.quicksettings.Tile
55 MutableSharedFlow<Tile>(replay = 1, onBufferOverflow = BufferOverflow.DROP_OLDEST)
61 fun getTiles(user: UserHandle): Flow<Tile> = customTileRepository.getTiles(user) in getTiles()
70 fun getTile(user: UserHandle): Tile = in getTiles()
141 fun updateTile(newTile: Tile) { in updateTile()

12345