Home
last modified time | relevance | path

Searched refs:mTile (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileImplTest.java97 private TileImpl mTile; field in QSTileImplTest
126 mTile = new TileImpl(mHost, mTestableLooper.getLooper(), mainHandler, mFalsingManager, in setup()
128 mTile.initialize(); in setup()
131 mTile.setTileSpec(SPEC); in setup()
136 mTile.click(null /* view */); in testClick_Metrics()
147 mTile.click(null /* view */); in testClick_log()
154 mTile.click(null); in testHandleClick_log()
155 mTile.click(null); in testHandleClick_log()
157 mTile.click(null); in testHandleClick_log()
172 mTile.click(null /* view */); in testClick_Metrics_Status_Bar_Status()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DScreenRecordTileTest.java88 private ScreenRecordTile mTile; field in ScreenRecordTileTest
98 mTile = new ScreenRecordTile( in setUp()
114 mTile.initialize(); in setUp()
120 mTile.destroy(); in tearDown()
131 mTile.refreshState(); in testNotActive()
134 assertEquals(Tile.STATE_INACTIVE, mTile.getState().state); in testNotActive()
135 assertTrue(mTile.getState().secondaryLabel.toString().equals( in testNotActive()
138 mTile.handleClick(null /* view */); in testNotActive()
158 mTile.refreshState(); in testIsStarting()
161 assertEquals(Tile.STATE_ACTIVE, mTile.getState().state); in testIsStarting()
[all …]
DInternetTileTest.java68 private InternetTile mTile; field in InternetTileTest
77 mTile = new InternetTile( in setUp()
91 mTile.initialize(); in setUp()
97 mTile.destroy(); in tearDown()
103 mTile.mSignalCallback.setConnectivityStatus( in setConnectivityStatus_defaultNetworkNotExists_updateTile()
108 assertThat(String.valueOf(mTile.getState().secondaryLabel)) in setConnectivityStatus_defaultNetworkNotExists_updateTile()
110 assertThat(mTile.getLastTileState()).isEqualTo(1); in setConnectivityStatus_defaultNetworkNotExists_updateTile()
115 mTile.mSignalCallback.setConnectivityStatus( in setConnectivityStatus_defaultNetworkExists_notUpdateTile()
120 assertThat(String.valueOf(mTile.getState().secondaryLabel)) in setConnectivityStatus_defaultNetworkExists_notUpdateTile()
122 assertThat(String.valueOf(mTile.getState().secondaryLabel)) in setConnectivityStatus_defaultNetworkExists_notUpdateTile()
[all …]
DReduceBrightColorsTileTest.java74 private ReduceBrightColorsTile mTile; field in ReduceBrightColorsTileTest
84 mTile = new ReduceBrightColorsTile( in setUp()
97 mTile.initialize(); in setUp()
103 mTile.destroy(); in tearDown()
110 mTile.refreshState(); in testNotActive()
113 assertEquals(Tile.STATE_INACTIVE, mTile.getState().state); in testNotActive()
114 assertEquals(mTile.getState().label.toString(), in testNotActive()
121 mTile.refreshState(); in testActive()
124 assertEquals(Tile.STATE_ACTIVE, mTile.getState().state); in testActive()
125 assertEquals(mTile.getState().label.toString(), in testActive()
[all …]
DQuickAccessWalletTileTest.java132 private QuickAccessWalletTile mTile; field in QuickAccessWalletTileTest
153 mTile = new QuickAccessWalletTile( in setUp()
167 mTile.initialize(); in setUp()
173 mTile.destroy(); in tearDown()
179 assertFalse(mTile.newTileState().handlesLongClick); in testNewTile()
186 mTile.handleSetListening(true); in testWalletServiceUnavailable_recreateWalletClient()
195 mTile.handleSetListening(true); in testWalletFeatureUnavailable_recreateWalletClient()
207 assertTrue(mTile.isAvailable()); in testIsAvailable_qawFeatureAvailable()
214 mTile.handleClick(/* view= */ null); in testHandleClick_startQuickAccessUiIntent_noCard()
227 mTile.handleClick(null /* view */); in testHandleClick_startQuickAccessUiIntent_hasCard()
[all …]
DDreamTileTest.java89 private DreamTile mTile; field in DreamTileTest
110 mTile = spy(constructTileForTest(true, false)); in setUp()
113 mTile.initialize(); in setUp()
118 mTile.destroy(); in tearDown()
127 mTile.refreshState(); in testNotAvailable()
129 assertEquals(Tile.STATE_UNAVAILABLE, mTile.getState().state); in testNotAvailable()
136 assertEquals(Tile.STATE_UNAVAILABLE, mTile.getState().state); in testNotAvailable()
137 assertEquals(mExpectedTileLabel, mTile.getState().contentDescription); in testNotAvailable()
149 mTile.refreshState(); in testInactiveWhenDreaming()
151 assertEquals(Tile.STATE_INACTIVE, mTile.getState().state); in testInactiveWhenDreaming()
[all …]
DOneHandedModeTileTest.java70 private OneHandedModeTile mTile; field in OneHandedModeTileTest
79 mTile = spy(new OneHandedModeTile( in setUp()
92 mTile.initialize(); in setUp()
97 mTile.destroy(); in tearDown()
103 when(mTile.isSupportOneHandedMode()).thenReturn(false); in testIsAvailable_unsupportOneHandedProperty_shouldReturnsFalse()
105 assertThat(mTile.isAvailable()).isFalse(); in testIsAvailable_unsupportOneHandedProperty_shouldReturnsFalse()
110 when(mTile.isSupportOneHandedMode()).thenReturn(true); in testIsAvailable_supportOneHandedProperty_shouldReturnsTrue()
112 assertThat(mTile.isAvailable()).isTrue(); in testIsAvailable_supportOneHandedProperty_shouldReturnsTrue()
117 assertThat(mTile.getTileLabel()).isEqualTo(mOneHandedTitle); in testGetTileLabel_shouldReturnOneHandedModeTitle()
DQRCodeScannerTileTest.java72 private QRCodeScannerTile mTile; field in QRCodeScannerTileTest
80 mTile = new QRCodeScannerTile( in setUp()
91 mTile.initialize(); in setUp()
97 mTile.destroy(); in tearDown()
103 assertFalse(mTile.newTileState().handlesLongClick); in testNewTile()
110 mTile.handleUpdateState(state, null); in testTileDetails()
121 mTile.handleUpdateState(state, null); in testQRCodeTileUnavailable()
131 mTile.handleUpdateState(state, null); in testQRCodeTileAvailable()
DHotspotTileTest.java71 private HotspotTile mTile; field in HotspotTileTest
81 mTile = new HotspotTile( in setUp()
94 mTile.initialize(); in setUp()
100 mTile.destroy(); in tearDown()
111 mTile.handleUpdateState(mState, null); in handleUpdateState_wifiTetheringIsAllowed_stateIsNotUnavailable()
126 mTile.handleUpdateState(mState, null); in handleUpdateState_wifiTetheringIsDisallowed_stateIsUnavailable()
140 mTile.handleUpdateState(state, /* arg= */ null); in testIcon_whenDisabled_isOffState()
152 mTile.handleUpdateState(state, /* arg= */ null); in testIcon_whenTransient_isSearchState()
164 mTile.handleUpdateState(state, /* arg= */ null); in testIcon_whenEnabled_isOnState()
DColorInversionTileTest.java81 private ColorInversionTile mTile; field in ColorInversionTileTest
93 mTile = new ColorInversionTile( in setUp()
106 mTile.initialize(); in setUp()
112 mTile.destroy(); in tearDown()
120 mTile.longClick(/* view= */ null); in longClick_expectedAction()
133 mTile.handleUpdateState(state, COLOR_INVERSION_DISABLED); in testIcon_whenColorInversionDisabled_isOffState()
143 mTile.handleUpdateState(state, COLOR_INVERSION_ENABLED); in testIcon_whenColorInversionEnabled_isOnState()
DColorCorrectionTileTest.java76 private ColorCorrectionTile mTile; field in ColorCorrectionTileTest
88 mTile = new ColorCorrectionTile( in setUp()
101 mTile.initialize(); in setUp()
107 mTile.destroy(); in tearDown()
115 mTile.longClick(/* view= */ null); in longClick_expectedAction()
DAirplaneModeTileTest.kt72 private lateinit var mTile: AirplaneModeTile variable in com.android.systemui.qs.tiles.AirplaneModeTileTest
84 mTile = AirplaneModeTile(mHost, in setUp()
100 mTile.destroy() in tearDown()
108 mTile.handleUpdateState(state, 0) in testIcon_whenDisabled_showsOffState()
118 mTile.handleUpdateState(state, 1) in testIcon_whenEnabled_showsOnState()
DNightDisplayTileTest.kt72 private lateinit var mTile: NightDisplayTile variable in com.android.systemui.qs.tiles.NightDisplayTileTest
87 mTile = in setUp()
105 mTile.destroy() in tearDown()
114 mTile.handleUpdateState(state, /* arg= */ null) in testIcon_whenDisabled_showsOffState()
125 mTile.handleUpdateState(state, /* arg= */ null) in testIcon_whenEnabled_showsOnState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DCustomTile.java86 private final Tile mTile; field in CustomTile
132 mTile = new Tile(); in CustomTile()
184 boolean updateIcon = mTile.getIcon() == null in updateDefaultTileAndIcon()
185 || iconEquals(mTile.getIcon(), mDefaultIcon); in updateDefaultTileAndIcon()
189 mTile.setIcon(mDefaultIcon); in updateDefaultTileAndIcon()
192 boolean updateLabel = mTile.getLabel() == null in updateDefaultTileAndIcon()
193 || TextUtils.equals(mTile.getLabel(), mDefaultLabel); in updateDefaultTileAndIcon()
196 mTile.setLabel(mDefaultLabel); in updateDefaultTileAndIcon()
267 return mTile; in getQsTile()
290 mTile.setIcon(tile.getIcon()); in applyTileState()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/
DActivityTileTest.java47 private Tile mTile; field in ActivityTileTest
58 mTile = new ActivityTile(mActivityInfo, "category"); in setUp()
64 assertThat(mTile.isPrimaryProfileOnly()).isTrue(); in isPrimaryProfileOnly_profilePrimary_shouldReturnTrue()
70 assertThat(mTile.isPrimaryProfileOnly()).isFalse(); in isPrimaryProfileOnly_profileAll_shouldReturnFalse()
75 assertThat(mTile.isPrimaryProfileOnly()).isFalse(); in isPrimaryProfileOnly_noExplicitValue_shouldReturnFalse()
81 assertThat(mTile.isPrimaryProfileOnly()).isFalse(); in isPrimaryProfileOnly_nullMetadata_shouldReturnFalse()
96 assertThat(mTile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_providedByUri_returnNull()
103 assertThat(mTile.getIcon(RuntimeEnvironment.application).getResId()) in getIcon_hasIconMetadata_returnIcon()
111 assertThat(mTile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_transparentColorInMetadata_returnNull()
DProviderTileTest.java57 private Tile mTile; field in ProviderTileTest
71 mTile = new ProviderTile(mProviderInfo, "category", mMetaData); in setUp()
77 assertThat(mTile.isPrimaryProfileOnly()).isTrue(); in isPrimaryProfileOnly_profilePrimary_shouldReturnTrue()
83 assertThat(mTile.isPrimaryProfileOnly()).isFalse(); in isPrimaryProfileOnly_profileAll_shouldReturnFalse()
88 assertThat(mTile.isPrimaryProfileOnly()).isFalse(); in isPrimaryProfileOnly_noExplicitValue_shouldReturnFalse()
102 assertThat(mTile.getIcon(RuntimeEnvironment.application).getResId()) in getIcon_hasIconMetadata_returnIcon()
/frameworks/base/core/tests/coretests/src/android/service/quicksettings/
DTileServiceTest.java52 private Tile mTile; field in TileServiceTest
62 mTile = new Tile(); in setUp()
96 when(mIQSService.getTile(mTileToken)).thenReturn(mTile); in testBindSuccessful()
103 mTile.updateTile(); in testBindSuccessful()
104 verify(mIQSService).updateQsTile(mTile, mTileToken); in testBindSuccessful()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DPeopleTileViewHelper.java176 private PeopleSpaceTile mTile; field in PeopleTileViewHelper
191 mTile = tile; in PeopleTileViewHelper()
260 if (mTile == null || mTile.isPackageSuspended() || mTile.isUserQuieted()) { in getViewForTile()
261 if (DEBUG) Log.d(TAG, "Create suppressed view: " + mTile); in getViewForTile()
265 if (isDndBlockingTileData(mTile)) { in getViewForTile()
270 if (Objects.equals(mTile.getNotificationCategory(), CATEGORY_MISSED_CALL)) { in getViewForTile()
275 if (mTile.getNotificationKey() != null) { in getViewForTile()
282 mTile.getStatuses() == null ? Arrays.asList() : mTile.getStatuses().stream().filter( in getViewForTile()
335 if (mTile != null && mTile.isUserQuieted()) { in createSuppressedView()
488 if (isDndBlockingTileData(mTile) && mLayoutSize != LAYOUT_SMALL) { in getMaxAvatarSize()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DTileQueryHelper.java146 mTile = tile; in TilePair()
149 QSTile mTile; field in TileQueryHelper.TilePair
176 pair.mTile.addCallback(this); in startListening()
177 pair.mTile.setListening(this, true); in startListening()
179 pair.mTile.refreshState(); in startListening()
188 if (!pair.mReady && pair.mTile.isTileReady()) { in onStateChanged()
189 pair.mTile.removeCallback(this); in onStateChanged()
190 pair.mTile.setListening(this, false); in onStateChanged()
198 QSTile tile = pair.mTile; in onStateChanged()
/frameworks/base/core/java/android/service/quicksettings/
DTileService.java169 private Tile mTile; field in TileService
361 return mTile; in getQsTile()
369 mTile = mService.getTile(mTileToken); in onBind()
379 if (mTile != null) { in onBind()
380 mTile.setService(mService, mTileToken); in onBind()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt50215 Landroid/service/quicksettings/TileService;->mTile:Landroid/service/quicksettings/Tile;