/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 310 Tile tile = mActiveTiles.valueAt(i); in layoutTiles() local 311 int level = tile.mTileLevel; in layoutTiles() 313 || !range[level - fromLevel].contains(tile.mX, tile.mY)) { in layoutTiles() 317 recycleTile(tile); in layoutTiles() 342 Tile tile = mActiveTiles.valueAt(i); in invalidateTiles() local 343 recycleTile(tile); in invalidateTiles() 395 Tile tile = mRecycledQueue.pop(); in freeTextures() local 396 while (tile != null) { in freeTextures() 397 tile.recycle(); in freeTextures() 398 tile = mRecycledQueue.pop(); in freeTextures() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
D | TileTest.java | 73 final Tile tile = new Tile(mActivityInfo, "category"); in getIcon_noContextOrMetadata_returnNull() local 74 assertThat(tile.getIcon(null)).isNull(); in getIcon_noContextOrMetadata_returnNull() 75 assertThat(tile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_noContextOrMetadata_returnNull() 103 final Tile tile = new Tile(mActivityInfo, "category"); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() local 106 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() 109 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isTrue(); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() 114 final Tile tile = new Tile(mActivityInfo, "category"); in isIconTintable_noIcon_shouldReturnFalse() local 116 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_noIcon_shouldReturnFalse() 121 final Tile tile = new Tile(mActivityInfo, "category"); in isIconTintable_noTintableMetadata_shouldReturnFalse() local 124 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_noTintableMetadata_shouldReturnFalse() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSTileHost.java | 129 mTiles.values().forEach(tile -> tile.destroy()); in destroy() 226 mTiles.entrySet().stream().filter(tile -> !tileSpecs.contains(tile.getKey())).forEach( in onTuningChanged() 227 tile -> { in onTuningChanged() 228 if (DEBUG) Log.d(TAG, "Destroying tile: " + tile.getKey()); in onTuningChanged() 229 tile.getValue().destroy(); in onTuningChanged() 233 QSTile tile = mTiles.get(tileSpec); in onTuningChanged() local 234 if (tile != null && (!(tile instanceof CustomTile) in onTuningChanged() 235 || ((CustomTile) tile).getUser() == currentUser)) { in onTuningChanged() 236 if (tile.isAvailable()) { in onTuningChanged() 237 if (DEBUG) Log.d(TAG, "Adding " + tile); in onTuningChanged() [all …]
|
D | QSPanel.java | 200 record.tile.removeCallbacks(); in onDetachedFromWindow() 226 QSTile tile = getTile(subPanel); in openDetails() local 229 if (tile != null) { in openDetails() 230 showDetailAdapter(true, tile.getDetailAdapter(), new int[]{getWidth() / 2, 0}); in openDetails() 236 if (subPanel.equals(mRecords.get(i).tile.getTileSpec())) { in getTile() 237 return mRecords.get(i).tile; in getTile() 397 r.tile.refreshState(); in refreshAllTiles() 432 record.tile.removeCallback(record.callback); in setTiles() 435 for (QSTile tile : tiles) { in setTiles() 436 addTile(tile, collapsedView); in setTiles() [all …]
|
D | TileLayout.java | 45 public int getOffsetTop(TileRecord tile) { in getOffsetTop() argument 54 record.tile.setListening(this, mListening); in setListening() 58 public void addTile(TileRecord tile) { in addTile() argument 59 mRecords.add(tile); in addTile() 60 tile.tile.setListening(this, mListening); in addTile() 61 addTileView(tile); in addTile() 64 protected void addTileView(TileRecord tile) { in addTileView() argument 65 addView(tile.tileView); in addTileView() 69 public void removeTile(TileRecord tile) { in removeTile() argument 70 mRecords.remove(tile); in removeTile() [all …]
|
D | AutoAddTracker.java | 68 public boolean isAdded(String tile) { in isAdded() argument 69 return mAutoAdded.contains(tile); in isAdded() 72 public void setTileAdded(String tile) { in setTileAdded() argument 73 if (mAutoAdded.add(tile)) { in setTileAdded() 78 public void setTileRemoved(String tile) { in setTileRemoved() argument 79 if (mAutoAdded.remove(tile)) { in setTileRemoved()
|
D | PagedTileLayout.java | 177 public int getOffsetTop(TileRecord tile) { in getOffsetTop() argument 178 final ViewGroup parent = (ViewGroup) tile.tileView.getParent(); in getOffsetTop() 184 public void addTile(TileRecord tile) { in addTile() argument 185 mTiles.add(tile); in addTile() 191 public void removeTile(TileRecord tile) { in removeTile() argument 192 if (mTiles.remove(tile)) { in removeTile() 235 TileRecord tile = mTiles.get(i); in distributeTiles() local 238 Log.d(TAG, "Adding " + tile.tile.getClass().getSimpleName() + " to " in distributeTiles() 241 mPages.get(index).addTile(tile); in distributeTiles() 367 if (tileSpecs.contains(tr.tile.getTileSpec())) { in startTileReveal()
|
D | QSTileRevealController.java | 53 for (QSTile tile : tiles) { in updateRevealedTiles() 54 tileSpecs.add(tile.getTileSpec()); in updateRevealedTiles()
|
D | QuickQSPanel.java | 145 for (QSTile tile : tiles) { in setTiles() 146 quickTiles.add(tile); in setTiles() 221 protected void addTileView(TileRecord tile) { in addTileView() argument 222 addView(tile.tileView, getChildCount(), generateTileLayoutParams()); in addTileView()
|
/frameworks/base/core/java/android/service/quicksettings/ |
D | IQSService.aidl | 26 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/ |
D | LinearGradient.java | 69 @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/ |
D | TileQueryHelper.java | 109 final QSTile tile = host.createTile(spec); in addCurrentAndStockTiles() local 110 if (tile == null) { in addCurrentAndStockTiles() 112 } else if (!tile.isAvailable()) { in addCurrentAndStockTiles() 113 tile.destroy(); in addCurrentAndStockTiles() 116 tile.setListening(this, true); in addCurrentAndStockTiles() 117 tile.refreshState(); in addCurrentAndStockTiles() 118 tile.setListening(this, false); in addCurrentAndStockTiles() 119 tile.setTileSpec(spec); in addCurrentAndStockTiles() 120 tilesToAdd.add(tile); in addCurrentAndStockTiles() 124 for (QSTile tile : tilesToAdd) { in addCurrentAndStockTiles() [all …]
|
D | QSCustomizer.java | 262 for (String tile : defTiles.split(",")) { in reset() 263 tiles.add(tile); in reset() 270 for (QSTile tile : mHost.getTiles()) { in setTileSpecs() 271 specs.add(tile.getTileSpec()); in setTileSpecs()
|
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
D | DashboardCategory.java | 53 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()
|
D | TileUtils.java | 234 for (Tile tile : tiles) { in getCategories() 235 final String categoryKey = tile.getCategory(); in getCategories() 246 category.addTile(tile); in getCategories() 292 Tile tile = addedCache.get(key); in getTilesForAction() local 293 if (tile == null) { in getTilesForAction() 294 tile = new Tile(activityInfo, categoryKey); in getTilesForAction() 295 addedCache.put(key, tile); in getTilesForAction() 297 tile.setMetaData(metaData); in getTilesForAction() 300 if (!tile.userHandle.contains(user)) { in getTilesForAction() 301 tile.userHandle.add(user); in getTilesForAction() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | TileServices.java | 83 public TileServiceManager getTileWrapper(CustomTile tile) { in getTileWrapper() argument 84 ComponentName component = tile.getComponent(); in getTileWrapper() 85 TileServiceManager service = onCreateTileService(component, tile.getQsTile()); in getTileWrapper() 87 mServices.put(tile, service); in getTileWrapper() 88 mTiles.put(component, tile); in getTileWrapper() 89 mTokenMap.put(service.getToken(), tile); in getTileWrapper() local 96 protected TileServiceManager onCreateTileService(ComponentName component, Tile tile) { in onCreateTileService() argument 97 return new TileServiceManager(this, mHandler, component, tile); in onCreateTileService() 100 public void freeService(CustomTile tile, TileServiceManager service) { in freeService() argument 104 mServices.remove(tile); in freeService() [all …]
|
D | CustomTile.java | 156 public void onTileChanged(ComponentName tile) { in onTileChanged() argument 183 public void updateState(Tile tile) { in updateState() argument 184 mTile.setIcon(tile.getIcon()); in updateState() 185 mTile.setLabel(tile.getLabel()); in updateState() 186 mTile.setSubtitle(tile.getSubtitle()); in updateState() 187 mTile.setContentDescription(tile.getContentDescription()); in updateState() 188 mTile.setState(tile.getState()); in updateState()
|
D | TileLifecycleManager.java | 90 public TileLifecycleManager(Handler handler, Context context, IQSService service, Tile tile, in TileLifecycleManager() argument 92 this(handler, context, service, tile, intent, user, new PackageManagerAdapter(context)); in TileLifecycleManager() 96 TileLifecycleManager(Handler handler, Context context, IQSService service, Tile tile, in TileLifecycleManager() argument 428 void onTileChanged(ComponentName tile); in onTileChanged() argument
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | AdaptiveIconTest.java | 87 final Tile tile = spy(new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE)); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() local 90 .when(tile).getIcon(mContext); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() 94 icon.setBackgroundColor(mContext, tile); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() 100 final Tile tile = spy(new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE)); in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor() local 102 .when(tile).getIcon(mContext); in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor() 105 icon.setBackgroundColor(mContext, tile); in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor() 113 final Tile tile = spy(new Tile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE)); in onBindTile_externalTileWithBackgroundColorHint_shouldUpdateIcon() local 117 .when(tile).getIcon(mContext); in onBindTile_externalTileWithBackgroundColorHint_shouldUpdateIcon() 121 icon.setBackgroundColor(mContext, tile); in onBindTile_externalTileWithBackgroundColorHint_shouldUpdateIcon()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | TileLayoutTest.java | 62 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/ |
D | AdaptiveIcon.java | 61 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/ |
D | QSFactoryImpl.java | 127 QSTileImpl tile = createTileInternal(tileSpec); in createTile() local 128 if (tile != null) { in createTile() 129 tile.handleStale(); // Tile was just created, must be stale. in createTile() 131 return tile; in createTile() 192 public QSTileView createTileView(QSTile tile, boolean collapsedView) { in createTileView() argument 194 QSIconView icon = tile.createTileView(context); in createTileView()
|
/frameworks/base/core/java/com/android/internal/statusbar/ |
D | IStatusBar.aidl | 141 void addQsTile(in ComponentName tile); in addQsTile() argument 142 void remQsTile(in ComponentName tile); in remQsTile() argument 143 void clickQsTile(in ComponentName tile); in clickQsTile() argument
|
D | IStatusBarService.aidl | 90 void addTile(in ComponentName tile); in addTile() argument 91 void remTile(in ComponentName tile); in remTile() argument 92 void clickTile(in ComponentName tile); in clickTile() argument
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | LinearGradient_Delegate.java | 87 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()
|