Home
last modified time | relevance | path

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

12

/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageRenderer.java310 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/support/v7/recyclerview/src/android/support/v7/util/
DAsyncListUtil.java228 public void addTile(int generation, TileList.Tile<T> tile) {
231 log("recycling an older generation tile @%d", tile.mStartPosition);
233 mBackgroundProxy.recycleTile(tile);
236 TileList.Tile<T> duplicate = mTileList.addOrReplace(tile);
243 generation, tile.mStartPosition, mTileList.size());
245 int endPosition = tile.mStartPosition + tile.mItemCount;
249 if (tile.mStartPosition <= position && position < endPosition) {
263 TileList.Tile<T> tile = mTileList.removeAtPos(position);
264 if (tile == null) {
269 log("recycling tile @%d, total tiles: %d", tile.mStartPosition, mTileList.size());
[all …]
DTileList.java78 Tile<T> tile = mTiles.get(startPosition); in removeAtPos() local
79 if (mLastAccessedTile == tile) { in removeAtPos()
83 return tile; in removeAtPos()
DThreadUtil.java25 void addTile(int generation, TileList.Tile<T> tile); in addTile() argument
39 void recycleTile(TileList.Tile<T> tile); in recycleTile() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQuickQSPanel.java87 State copy = r.tile.newTileState(); in drawTile()
98 protected QSTileBaseView createTileView(QSTile<?> tile, boolean collapsedView) { in createTileView() argument
99 return new QSTileBaseView(mContext, tile.createTileView(mContext), collapsedView); in createTileView()
116 protected void onTileClick(QSTile<?> tile) { in onTileClick() argument
117 tile.secondaryClick(); in onTileClick()
132 for (QSTile<?> tile : tiles) { in setTiles()
133 quickTiles.add(tile); in setTiles()
170 record.tile.setListening(this, mListening); in setListening()
175 public void addTile(TileRecord tile) { in addTile() argument
180 addView(tile.tileView, getChildCount(), generateLayoutParams()); in addTile()
[all …]
DQSPanel.java128 record.tile.removeCallbacks(); in onDetachedFromWindow()
147 QSTile<?> tile = getTile(subPanel); in openDetails() local
148 showDetailAdapter(true, tile.getDetailAdapter(), new int[] {getWidth() / 2, 0}); in openDetails()
153 if (subPanel.equals(mRecords.get(i).tile.getTileSpec())) { in getTile()
154 return mRecords.get(i).tile; in getTile()
198 r.tile.clearState(); in updateResources()
260 r.tile.refreshState(); in refreshAllTiles()
292 record.tile.removeCallback(record.callback); in setTiles()
295 for (QSTile<?> tile : tiles) { in setTiles()
296 addTile(tile, collapsedView); in setTiles()
[all …]
DTileLayout.java41 public int getOffsetTop(TileRecord tile) { in getOffsetTop() argument
50 record.tile.setListening(this, mListening); in setListening()
54 public void addTile(TileRecord tile) { in addTile() argument
55 mRecords.add(tile); in addTile()
56 tile.tile.setListening(this, mListening); in addTile()
57 addView(tile.tileView); in addTile()
61 public void removeTile(TileRecord tile) { in removeTile() argument
62 mRecords.remove(tile); in removeTile()
63 tile.tile.setListening(this, false); in removeTile()
64 removeView(tile.tileView); in removeTile()
[all …]
DPagedTileLayout.java154 public int getOffsetTop(TileRecord tile) { in getOffsetTop() argument
155 final ViewGroup parent = (ViewGroup) tile.tileView.getParent(); in getOffsetTop()
161 public void addTile(TileRecord tile) { in addTile() argument
162 mTiles.add(tile); in addTile()
167 public void removeTile(TileRecord tile) { in removeTile() argument
168 if (mTiles.remove(tile)) { in removeTile()
191 TileRecord tile = mTiles.get(i); in distributeTiles() local
195 + tile.tile.getClass().getSimpleName()); in distributeTiles()
200 if (DEBUG) Log.d(TAG, "Adding " + tile.tile.getClass().getSimpleName() + " to " in distributeTiles()
202 mPages.get(index).addTile(tile); in distributeTiles()
/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/packages/SettingsLib/src/com/android/settingslib/drawer/
DTileUtils.java138 for (Tile tile : tiles) { in getCategories()
139 DashboardCategory category = categoryMap.get(tile.category); in getCategories()
141 category = createCategory(context, tile.category); in getCategories()
143 Log.w(LOG_TAG, "Couldn't find category " + tile.category); in getCategories()
148 category.addTile(tile); in getCategories()
218 Tile tile = addedCache.get(key); in getTilesForIntent() local
219 if (tile == null) { in getTilesForIntent()
220 tile = new Tile(); in getTilesForIntent()
221 tile.intent = new Intent().setClassName( in getTilesForIntent()
223 tile.category = categoryKey; in getTilesForIntent()
[all …]
DDashboardCategory.java53 public void addTile(Tile tile) { in addTile() argument
54 tiles.add(tile); in addTile()
57 public void addTile(int n, Tile tile) { in addTile() argument
58 tiles.add(n, tile); in addTile()
61 public void removeTile(Tile tile) { in removeTile() argument
62 tiles.remove(tile); in removeTile()
92 Tile tile = tiles.get(n); in writeToParcel() local
93 tile.writeToParcel(dest, flags); in writeToParcel()
105 Tile tile = Tile.CREATOR.createFromParcel(in); in readFromParcel() local
106 tiles.add(tile); in readFromParcel()
DSettingsDrawerAdapter.java45 Item tile = new Item(); in updateCategories() local
46 tile.label = mActivity.getString(R.string.home); in updateCategories()
47 tile.icon = Icon.createWithResource(mActivity, R.drawable.home); in updateCategories()
48 mItems.add(tile); in updateCategories()
56 tile = new Item(); in updateCategories()
58 tile.label = dashboardTile.title; in updateCategories()
59 tile.icon = dashboardTile.icon; in updateCategories()
60 tile.tile = dashboardTile; in updateCategories()
61 mItems.add(tile); in updateCategories()
68 return mItems.get(position) != null ? mItems.get(position).tile : null; in getTile()
[all …]
DSettingsDrawerActivity.java251 public boolean openTile(Tile tile) { in openTile() argument
253 if (tile == null) { in openTile()
259 int numUserHandles = tile.userHandle.size(); in openTile()
261 ProfileSelectDialog.show(getFragmentManager(), tile); in openTile() local
265 tile.intent.putExtra(EXTRA_SHOW_MENU, true); in openTile()
266 tile.intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); in openTile()
267 startActivityAsUser(tile.intent, tile.userHandle.get(0)); in openTile()
270 tile.intent.putExtra(EXTRA_SHOW_MENU, true); in openTile()
271 tile.intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); in openTile()
272 startActivity(tile.intent); in openTile()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DQSTileHost.java324 for (Map.Entry<String, QSTile<?>> tile : mTiles.entrySet()) { in onTuningChanged()
325 if (!tileSpecs.contains(tile.getKey())) { in onTuningChanged()
326 if (DEBUG) Log.d(TAG, "Destroying tile: " + tile.getKey()); in onTuningChanged()
327 tile.getValue().destroy(); in onTuningChanged()
332 QSTile<?> tile = mTiles.get(tileSpec); in onTuningChanged() local
333 if (tile != null && (!(tile instanceof CustomTile) in onTuningChanged()
334 || ((CustomTile) tile).getUser() == currentUser)) { in onTuningChanged()
335 if (DEBUG) Log.d(TAG, "Adding " + tile); in onTuningChanged()
336 tile.removeCallbacks(); in onTuningChanged()
337 if (!(tile instanceof CustomTile) && mCurrentUser != currentUser) { in onTuningChanged()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DTileQueryHelper.java66 final QSTile<?> tile = host.createTile(spec); in addSystemTiles() local
67 if (tile == null || !tile.isAvailable()) { in addSystemTiles()
70 tile.setListening(this, true); in addSystemTiles()
71 tile.clearState(); in addSystemTiles()
72 tile.refreshState(); in addSystemTiles()
73 tile.setListening(this, false); in addSystemTiles()
77 final QSTile.State state = tile.newTileState(); in addSystemTiles()
78 tile.getState().copyTo(state); in addSystemTiles()
80 state.label = tile.getTileLabel(); in addSystemTiles()
183 for (QSTile<?> tile : tiles) { in getState()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServices.java82 public TileServiceManager getTileWrapper(CustomTile tile) { in getTileWrapper() argument
83 ComponentName component = tile.getComponent(); in getTileWrapper()
84 TileServiceManager service = onCreateTileService(component, tile.getQsTile()); in getTileWrapper()
86 mServices.put(tile, service); in getTileWrapper()
87 mTiles.put(component, tile); in getTileWrapper()
88 mTokenMap.put(service.getToken(), tile); in getTileWrapper() local
93 protected TileServiceManager onCreateTileService(ComponentName component, Tile tile) { in onCreateTileService() argument
94 return new TileServiceManager(this, mHandler, component, tile); in onCreateTileService()
97 public void freeService(CustomTile tile, TileServiceManager service) { in freeService() argument
101 mServices.remove(tile); in freeService()
[all …]
DCustomTile.java138 public void onTileChanged(ComponentName tile) { in onTileChanged() argument
159 public void updateState(Tile tile) { in updateState() argument
160 mTile.setIcon(tile.getIcon()); in updateState()
161 mTile.setLabel(tile.getLabel()); in updateState()
162 mTile.setContentDescription(tile.getContentDescription()); in updateState()
163 mTile.setState(tile.getState()); in updateState()
/frameworks/base/graphics/java/android/graphics/
DLinearGradient.java53 TileMode tile) { in LinearGradient() argument
67 mTileMode = tile; in LinearGradient()
68 init(nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt)); in LinearGradient()
81 TileMode tile) { in LinearGradient() argument
89 mTileMode = tile; in LinearGradient()
90 init(nativeCreate2(x0, y0, x1, y1, color0, color1, tile.nativeInt)); in LinearGradient()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoTile.java68 Tile tile = getQsTile(); in updateState() local
71 tile.setIcon(food.getIcon(this)); in updateState()
72 tile.setLabel(food.getName(this)); in updateState()
73 tile.setState(foodState != 0 ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE); in updateState()
74 tile.updateTile(); in updateState()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DThreadUtilTest.java115 TileList.Tile<Integer> tile = new TileList.Tile<Integer>(Integer.class, 10); in addTile() local
116 mMainThreadProxy.addTile(3, tile); in addTile()
118 assertThat(data, is(new Object[]{3, tile})); in addTile()
158 TileList.Tile<Integer> tile = new TileList.Tile<Integer>(Integer.class, 10); in recycleTile() local
159 mBackgroundProxy.recycleTile(tile); in recycleTile()
161 assertThat(data, is(new Object[]{tile})); in recycleTile()
/frameworks/base/core/java/com/android/internal/statusbar/
DIStatusBar.aidl112 void addQsTile(in ComponentName tile); in addQsTile() argument
113 void remQsTile(in ComponentName tile); in remQsTile() argument
114 void clickQsTile(in ComponentName tile); in clickQsTile() argument
DIStatusBarService.aidl66 void addTile(in ComponentName tile); in addTile() argument
67 void remTile(in ComponentName tile); in remTile() argument
68 void clickTile(in ComponentName tile); in clickTile() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DCommandQueue.java131 void addQsTile(ComponentName tile); in addQsTile() argument
132 void remQsTile(ComponentName tile); in remQsTile() argument
133 void clickTile(ComponentName tile); in clickTile() argument
375 public void addQsTile(ComponentName tile) { in addQsTile() argument
377 mHandler.obtainMessage(MSG_ADD_QS_TILE, tile).sendToTarget(); in addQsTile()
382 public void remQsTile(ComponentName tile) { in remQsTile() argument
384 mHandler.obtainMessage(MSG_REMOVE_QS_TILE, tile).sendToTarget(); in remQsTile()
389 public void clickQsTile(ComponentName tile) { in clickQsTile() argument
391 mHandler.obtainMessage(MSG_CLICK_QS_TILE, tile).sendToTarget(); in clickQsTile()
/frameworks/base/proto/src/
Dmetrics_constants.proto549 // OPEN: QS Airplane mode tile shown
550 // ACTION: QS Airplane mode tile tapped
556 // OPEN: QS Bluetooth tile shown
557 // ACTION: QS Bluetooth tile tapped
563 // OPEN: QS Cast tile shown
564 // ACTION: QS Cast tile tapped
569 // OPEN: QS Cellular tile shown
570 // ACTION: QS Cellular tile tapped
575 // OPEN: QS Color inversion tile shown
576 // ACTION: QS Color inversion tile tapped
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DLinearGradient_Delegate.java92 int colors[], float positions[], TileMode tile) { in LinearGradient_Delegate() argument
94 mJavaPaint = new LinearGradientPaint(x0, y0, x1, y1, mColors, mPositions, tile); in LinearGradient_Delegate()
112 float positions[], TileMode tile) { in LinearGradientPaint() argument
113 super(colors, positions, tile); in LinearGradientPaint()

12