Home
last modified time | relevance | path

Searched refs:tile (Results 1 – 25 of 52) sorted by relevance

123

/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageRenderer.java307 Tile tile = mActiveTiles.valueAt(i); in layoutTiles() local
308 int level = tile.mTileLevel; in layoutTiles()
310 || !range[level - fromLevel].contains(tile.mX, tile.mY)) { in layoutTiles()
314 recycleTile(tile); in layoutTiles()
339 Tile tile = mActiveTiles.valueAt(i); in invalidateTiles() local
340 recycleTile(tile); in invalidateTiles()
392 Tile tile = mRecycledQueue.pop(); in freeTextures() local
393 while (tile != null) { in freeTextures()
394 tile.recycle(); in freeTextures()
395 tile = mRecycledQueue.pop(); in freeTextures()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/
DActivityTileTest.java87 final Tile tile = new ActivityTile(mActivityInfo, "category"); in getIcon_noContextOrMetadata_returnNull() local
88 assertThat(tile.getIcon(null)).isNull(); in getIcon_noContextOrMetadata_returnNull()
89 assertThat(tile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_noContextOrMetadata_returnNull()
117 final Tile tile = new ActivityTile(mActivityInfo, "category"); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() local
120 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata()
123 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isTrue(); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata()
128 final Tile tile = new ActivityTile(mActivityInfo, "category"); in isIconTintable_noIcon_shouldReturnFalse() local
130 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_noIcon_shouldReturnFalse()
135 final Tile tile = new ActivityTile(mActivityInfo, "category"); in isIconTintable_noTintableMetadata_shouldReturnFalse() local
138 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_noTintableMetadata_shouldReturnFalse()
[all …]
DProviderTileTest.java95 final Tile tile = new ProviderTile(mProviderInfo, "category", null); in getIcon_noContextOrMetadata_shouldThrowNullPointerException() local
108 final Tile tile = new ProviderTile(mProviderInfo, "category", mMetaData); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() local
111 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata()
114 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isTrue(); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata()
119 final Tile tile = new ProviderTile(mProviderInfo, "category", mMetaData); in isIconTintable_noIcon_shouldReturnFalse() local
121 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_noIcon_shouldReturnFalse()
126 final Tile tile = new ProviderTile(mProviderInfo, "category", mMetaData); in isIconTintable_noTintableMetadata_shouldReturnFalse() local
129 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_noTintableMetadata_shouldReturnFalse()
134 final Tile tile = new ProviderTile(mProviderInfo, "category", mMetaData); in getPriority_noMetadata_return0() local
136 assertThat(tile.getOrder()).isEqualTo(0); in getPriority_noMetadata_return0()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DDoubleLineTileLayout.kt53 override fun addTile(tile: QSPanel.TileRecord) { in addTile()
54 mRecords.add(tile) in addTile()
55 tile.tile.setListening(this, _listening) in addTile()
56 addTileView(tile) in addTile()
59 protected fun addTileView(tile: QSPanel.TileRecord) { in addTileView()
60 addView(tile.tileView) in addTileView()
63 override fun removeTile(tile: QSPanel.TileRecord) { in removeTile()
64 mRecords.remove(tile) in removeTile()
65 tile.tile.setListening(this, false) in removeTile()
66 removeView(tile.tileView) in removeTile()
[all …]
DQSTileHost.java155 mTiles.values().forEach(tile -> tile.destroy()); in destroy()
263 mTiles.entrySet().stream().filter(tile -> !tileSpecs.contains(tile.getKey())).forEach( in onTuningChanged()
264 tile -> { in onTuningChanged()
265 Log.d(TAG, "Destroying tile: " + tile.getKey()); in onTuningChanged()
266 mQSLogger.logTileDestroyed(tile.getKey(), "Tile removed"); in onTuningChanged()
267 tile.getValue().destroy(); in onTuningChanged()
271 QSTile tile = mTiles.get(tileSpec); in onTuningChanged() local
272 if (tile != null && (!(tile instanceof CustomTile) in onTuningChanged()
273 || ((CustomTile) tile).getUser() == currentUser)) { in onTuningChanged()
274 if (tile.isAvailable()) { in onTuningChanged()
[all …]
DTileLayout.java58 public int getOffsetTop(TileRecord tile) { in getOffsetTop() argument
67 record.tile.setListening(this, mListening); in setListening()
87 public void addTile(TileRecord tile) { in addTile() argument
88 mRecords.add(tile); in addTile()
89 tile.tile.setListening(this, mListening); in addTile()
90 addTileView(tile); in addTile()
93 protected void addTileView(TileRecord tile) { in addTileView() argument
94 addView(tile.tileView); in addTileView()
98 public void removeTile(TileRecord tile) { in removeTile() argument
99 mRecords.remove(tile); in removeTile()
[all …]
DQSPanel.java359 record.tile.removeCallbacks(); in onDetachedFromWindow()
390 QSTile tile = getTile(subPanel); in openDetails() local
393 if (tile != null) { in openDetails()
394 showDetailAdapter(true, tile.getDetailAdapter(), new int[]{getWidth() / 2, 0}); in openDetails()
400 if (subPanel.equals(mRecords.get(i).tile.getTileSpec())) { in getTile()
401 return mRecords.get(i).tile; in getTile()
562 record.tile.removeCallback(record.callback); in switchTileLayout()
735 .map(tileRecord -> tileRecord.tile.getTileSpec()) in getTilesSpecs()
765 r.tile.refreshState(); in refreshAllTiles()
802 record.tile.removeCallback(record.callback); in setTiles()
[all …]
DAutoAddTracker.java89 public boolean isAdded(String tile) { in isAdded() argument
90 return mAutoAdded.contains(tile); in isAdded()
93 public void setTileAdded(String tile) { in setTileAdded() argument
94 if (mAutoAdded.add(tile)) { in setTileAdded()
99 public void setTileRemoved(String tile) { in setTileRemoved() argument
100 if (mAutoAdded.remove(tile)) { in setTileRemoved()
DPagedTileLayout.java139 QSTile t = page.mRecords.get(i).tile; in logVisibleTiles()
221 public int getOffsetTop(TileRecord tile) { in getOffsetTop() argument
222 final ViewGroup parent = (ViewGroup) tile.tileView.getParent(); in getOffsetTop()
228 public void addTile(TileRecord tile) { in addTile() argument
229 mTiles.add(tile); in addTile()
235 public void removeTile(TileRecord tile) { in removeTile() argument
236 if (mTiles.remove(tile)) { in removeTile()
283 TileRecord tile = mTiles.get(i); in distributeTiles() local
286 Log.d(TAG, "Adding " + tile.tile.getClass().getSimpleName() + " to " in distributeTiles()
289 mPages.get(index).addTile(tile); in distributeTiles()
[all …]
DQuickQSPanel.java193 for (QSTile tile : tiles) { in setTiles()
194 quickTiles.add(tile); in setTiles()
306 protected void addTileView(TileRecord tile) { in addTileView() argument
307 addView(tile.tileView, getChildCount(), generateTileLayoutParams()); in addTileView()
412 QSTile tile = mRecords.get(i).tile; in setListening() local
414 tile.getMetricsSpec(), tile.getInstanceId()); in setListening()
/frameworks/base/core/java/android/service/quicksettings/
DIQSService.aidl26 Tile getTile(in IBinder tile); in getTile() argument
27 void updateQsTile(in Tile tile, in IBinder service); in updateQsTile() argument
28 void updateStatusIcon(in IBinder tile, in Icon icon, in updateStatusIcon() argument
30 void onShowDialog(in IBinder tile); in onShowDialog() argument
31 void onStartActivity(in IBinder tile); in onStartActivity() argument
34 void startUnlockAndRun(in IBinder tile); in startUnlockAndRun() argument
36 void onDialogHidden(in IBinder tile); in onDialogHidden() argument
37 void onStartSuccessful(in IBinder tile); in onStartSuccessful() argument
/frameworks/base/graphics/java/android/graphics/
DLinearGradient.java69 @Nullable float[] positions, @NonNull TileMode tile) { in LinearGradient() argument
70 this(x0, y0, x1, y1, convertColors(colors), positions, tile, in LinearGradient()
92 @Nullable float[] positions, @NonNull TileMode tile) { in LinearGradient() argument
93 this(x0, y0, x1, y1, colors.clone(), positions, tile, detectColorSpace(colors)); in LinearGradient()
101 @NonNull @ColorLong long[] colors, @Nullable float[] positions, @NonNull TileMode tile, in LinearGradient() argument
114 mTileMode = tile; in LinearGradient()
130 @NonNull TileMode tile) { in LinearGradient() argument
131 this(x0, y0, x1, y1, Color.pack(color0), Color.pack(color1), tile); in LinearGradient()
150 @NonNull TileMode tile) { in LinearGradient() argument
151 this(x0, y0, x1, y1, new long[] {color0, color1}, null, tile); in LinearGradient()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DTileQueryHelper.java117 final QSTile tile = host.createTile(spec); in addCurrentAndStockTiles() local
118 if (tile == null) { in addCurrentAndStockTiles()
120 } else if (!tile.isAvailable()) { in addCurrentAndStockTiles()
121 tile.setTileSpec(spec); in addCurrentAndStockTiles()
122 tile.destroy(); in addCurrentAndStockTiles()
125 tile.setListening(this, true); in addCurrentAndStockTiles()
126 tile.refreshState(); in addCurrentAndStockTiles()
127 tile.setListening(this, false); in addCurrentAndStockTiles()
128 tile.setTileSpec(spec); in addCurrentAndStockTiles()
129 tilesToAdd.add(tile); in addCurrentAndStockTiles()
[all …]
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/
DDashboardCategory.java53 Tile tile = Tile.CREATOR.createFromParcel(in); in DashboardCategory() local
54 mTiles.add(tile); in DashboardCategory()
66 for (Tile tile : mTiles) { in getTiles()
67 result.add(tile); in getTiles()
75 public synchronized void addTile(Tile tile) { in addTile() argument
76 mTiles.add(tile); in addTile()
148 Tile tile = mTiles.get(n); in writeToParcel() local
149 tile.writeToParcel(dest, flags); in writeToParcel()
DTileUtils.java260 for (Tile tile : tiles) { in getCategories()
261 final String categoryKey = tile.getCategory(); in getCategories()
272 category.addTile(tile); in getCategories()
359 Tile tile = addedCache.get(key); in loadTile() local
360 if (tile == null) { in loadTile()
361 tile = isProvider in loadTile()
364 addedCache.put(key, tile); in loadTile()
366 tile.setMetaData(metaData); in loadTile()
369 if (!tile.userHandle.contains(user)) { in loadTile()
370 tile.userHandle.add(user); in loadTile()
[all …]
/frameworks/base/packages/SystemUI/docs/
Dqs-tiles.md7 …y Quick Settings tiles. It provides descriptions about the lifecycle of a tile, how to create new …
19 QS Tiles usually depend on one or more Controllers that bind the tile with the necessary service. C…
37 …ui/qs/tiles`](/packages/SystemUI/src/com/android/systemui/qs/tiles): Each tile from SystemUI is de…
38 …* track the state of the device and notify the tile when a change has occurred (for example, bluet…
48 Each tile has an associated `State` object that is used to communicate information to the correspon…
52 * **`label`**: usually the name of the tile.
55 …oolean Tiles. This will make screen readers read the current state of the tile as well as the new …
64 …h tile defined in SystemUI extends `QSTileImpl`. This abstract class implements some common functi…
66 … information on how to implement a tile in SystemUI, see [Implementing a SystemUI tile](#implement…
86 …oup` is a container for the icon used in each tile. It has methods to apply the current `State` of…
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServices.java90 public TileServiceManager getTileWrapper(CustomTile tile) { in getTileWrapper() argument
91 ComponentName component = tile.getComponent(); in getTileWrapper()
92 TileServiceManager service = onCreateTileService(component, tile.getQsTile(), in getTileWrapper()
95 mServices.put(tile, service); in getTileWrapper()
96 mTiles.put(component, tile); in getTileWrapper()
97 mTokenMap.put(service.getToken(), tile); in getTileWrapper() local
104 protected TileServiceManager onCreateTileService(ComponentName component, Tile tile, in onCreateTileService() argument
106 return new TileServiceManager(this, mHandler, component, tile, in onCreateTileService()
110 public void freeService(CustomTile tile, TileServiceManager service) { in freeService() argument
114 mServices.remove(tile); in freeService()
[all …]
DCustomTile.java166 public void onTileChanged(ComponentName tile) { in onTileChanged() argument
193 public void updateState(Tile tile) { in updateState() argument
194 mTile.setIcon(tile.getIcon()); in updateState()
195 mTile.setLabel(tile.getLabel()); in updateState()
196 mTile.setSubtitle(tile.getSubtitle()); in updateState()
197 mTile.setContentDescription(tile.getContentDescription()); in updateState()
198 mTile.setStateDescription(tile.getStateDescription()); in updateState()
199 mTile.setState(tile.getState()); in updateState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DBatterySaverTileTest.kt52 private lateinit var tile: BatterySaverTile variable in com.android.systemui.qs.tiles.BatterySaverTileTest
62 tile = BatterySaverTile(qsHost, batteryController) in setUp()
67 assertEquals(USER, tile.mSetting.currentUser) in testSettingWithCorrectUser()
72 tile.userSwitch(USER + 1) in testSettingChangesUser()
76 assertEquals(USER + 1, tile.mSetting.currentUser) in testSettingChangesUser()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoTile.java70 Tile tile = getQsTile(); in updateState() local
76 tile.setIcon(food.getIcon(this)); in updateState()
77 tile.setLabel(food.getName(this)); in updateState()
78 tile.setState(foodState != 0 ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE); in updateState()
79 tile.updateTile(); in updateState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DTileLayoutTest.java62 tileRecord.tile = mock(QSTile.class); in createTileRecord()
71 verify(tileRecord.tile, times(1)).setListening(mTileLayout, false); in testAddTile_CallsSetListeningOnTile()
79 verify(tileRecord.tile, times(1)).setListening(mTileLayout, true); in testSetListening_CallsSetListeningOnTile()
87 verify(tileRecord.tile, times(1)).setListening(any(), anyBoolean()); in testSetListening_SameValueIsNoOp()
95 verify(tileRecord.tile, times(1)).setListening(mTileLayout, true); in testSetListening_ChangesValueForAddingFutureTiles()
104 verify(tileRecord.tile, times(1)).setListening(mTileLayout, false); in testRemoveTile_CallsSetListeningFalseOnTile()
115 verify(tileRecord1.tile, times(1)).setListening(mTileLayout, false); in testRemoveAllViews_CallsSetListeningFalseOnAllTiles()
116 verify(tileRecord2.tile, times(1)).setListening(mTileLayout, false); in testRemoveAllViews_CallsSetListeningFalseOnAllTiles()
/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
DAdaptiveIcon.java61 public void setBackgroundColor(Context context, Tile tile) { in setBackgroundColor() argument
62 final Bundle metaData = tile.getMetaData(); in setBackgroundColor()
74 .getResourcesForApplication(tile.getPackageName()) in setBackgroundColor()
85 Log.e(TAG, "Failed to set background color for " + tile.getPackageName()); in setBackgroundColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSFactoryImpl.java130 QSTileImpl tile = createTileInternal(tileSpec); in createTile() local
131 if (tile != null) { in createTile()
132 tile.handleStale(); // Tile was just created, must be stale. in createTile()
134 return tile; in createTile()
199 public QSTileView createTileView(QSTile tile, boolean collapsedView) { in createTileView() argument
201 QSIconView icon = tile.createTileView(context); in createTileView()
/frameworks/base/core/java/com/android/internal/statusbar/
DIStatusBar.aidl124 void addQsTile(in ComponentName tile); in addQsTile() argument
125 void remQsTile(in ComponentName tile); in remQsTile() argument
126 void clickQsTile(in ComponentName tile); in clickQsTile() argument
/frameworks/layoutlib/bridge/src/android/graphics/
DLinearGradient_Delegate.java87 float y1, long[] colors, float[] positions, TileMode tile) { in LinearGradient_Delegate() argument
89 mJavaPaint = new LinearGradientPaint(x0, y0, x1, y1, mColors, mPositions, tile); in LinearGradient_Delegate()
107 float[] positions, TileMode tile) { in LinearGradientPaint() argument
108 super(colors, positions, tile); in LinearGradientPaint()

123