/frameworks/base/core/java/android/service/quicksettings/ |
H A D | IQSService.aidl | 26 Tile getTile(in IBinder tile); 27 void updateQsTile(in Tile tile, in IBinder service); 28 void updateStatusIcon(in IBinder tile, in Icon icon, 30 void onShowDialog(in IBinder tile); 31 void onStartActivity(in IBinder tile); 34 void startUnlockAndRun(in IBinder tile); 36 void onDialogHidden(in IBinder tile); 37 void onStartSuccessful(in IBinder tile);
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/drawer/ |
H A D | ProfileSelectDialogTest.java | 61 final Tile tile = new Tile(); 62 tile.intent = new Intent(); 63 tile.userHandle.add(NORMAL_USER); 65 ProfileSelectDialog.updateUserHandlesIfNeeded(mContext, tile); 67 assertEquals(tile.userHandle.size(), 1); 68 assertEquals(tile.userHandle.get(0).getIdentifier(), NORMAL_USER.getIdentifier()); 74 final Tile tile = new Tile(); 75 tile.intent = new Intent(); 76 tile.userHandle.add(REMOVED_USER); 77 tile [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/ |
H A D | DashboardCategory.java | 62 for (Tile tile : in.mTiles) { 63 mTiles.add(tile); 80 for (Tile tile : mTiles) { 81 result.add(tile); 86 public synchronized void addTile(Tile tile) { argument 87 mTiles.add(tile); 90 public synchronized void addTile(int n, Tile tile) { argument 91 mTiles.add(n, tile); 94 public synchronized void removeTile(Tile tile) { argument 95 mTiles.remove(tile); [all...] |
H A D | TileUtils.java | 55 * settings tile using the following parameters. 249 for (Tile tile : tiles) { 250 DashboardCategory category = categoryMap.get(tile.category); 252 category = createCategory(context, tile.category, categoryDefinedInManifest); 254 Log.w(LOG_TAG, "Couldn't find category " + tile.category); 259 category.addTile(tile); 364 Tile tile = addedCache.get(key); 365 if (tile == null) { 366 tile = new Tile(); 367 tile 389 updateTileData(Context context, Tile tile, ActivityInfo activityInfo, ApplicationInfo applicationInfo, PackageManager pm, Map<String, IContentProvider> providerMap, boolean forceTintExternalIcon) argument 489 updateSummaryAndTitle( Context context, Map<String, IContentProvider> providerMap, Tile tile) argument [all...] |
H A D | ProfileSelectDialog.java | 41 public static void show(FragmentManager manager, Tile tile) { argument 44 args.putParcelable(ARG_SELECTED_TILE, tile); 75 public static void updateUserHandlesIfNeeded(Context context, Tile tile) { argument 76 List<UserHandle> userHandles = tile.userHandle; 77 if (tile.userHandle == null || tile.userHandle.size() <= 1) {
|
H A D | CategoryManager.java | 44 // Tile cache (key: <packageName, activityName>, value: tile) 106 Tile tile = category.getTile(j); 107 if (tileBlacklist.contains(tile.intent.getComponent())) { 146 // Build a package name -> tile map first. 163 for (Tile tile : tiles) { 164 if (CategoryKey.KEY_COMPAT_MAP.containsKey(tile.category)) { 173 for (Tile tile : tiles) { 174 final String newCategoryKey = CategoryKey.KEY_COMPAT_MAP.get(tile.category); 175 tile.category = newCategoryKey; 176 // move tile t [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
H A D | TiledImageRenderer.java | 46 * This is the tile state in the CPU side. 131 * If the source does not care about the tile size, it should use 146 * The tile returned by this method can be specified this way: Assuming 253 // 1. Decide the tile level we want to use for display. 254 // 2. Decide the tile levels we want to keep as texture (in addition to 264 // The tile levels we want to keep as texture is in the range 272 // We want to keep one more tile level as texture in addition to what 296 // If rotation is transient, don't update the tile. 306 // Recycle unused tiles: if the level of the active tile is outside the 310 Tile tile 481 queueForDecode(Tile tile) argument 492 decodeTile(Tile tile) argument 531 recycleTile(Tile tile) argument 632 drawTile( Tile tile, GLCanvas canvas, RectF source, RectF target) argument 762 push(Tile tile) argument 773 contains(Tile tile) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSTileHost.java | 54 /** Platform implementation of the quick settings tile host **/ 94 mTiles.values().forEach(tile -> tile.destroy()); 181 mTiles.entrySet().stream().filter(tile -> !tileSpecs.contains(tile.getKey())).forEach( 182 tile -> { 183 if (DEBUG) Log.d(TAG, "Destroying tile: " + tile.getKey()); 184 tile.getValue().destroy(); 188 QSTile tile 248 addTile(ComponentName tile) argument 254 removeTile(ComponentName tile) argument 293 createTileView(QSTile tile, boolean collapsedView) argument [all...] |
H A D | TileLayout.java | 43 public int getOffsetTop(TileRecord tile) { argument 52 record.tile.setListening(this, mListening); 56 public void addTile(TileRecord tile) { argument 57 mRecords.add(tile); 58 tile.tile.setListening(this, mListening); 59 addView(tile.tileView); 63 public void removeTile(TileRecord tile) { argument 64 mRecords.remove(tile); 65 tile [all...] |
H A D | QSPanel.java | 57 /** View that represents the quick settings tile panel (when expanded/pulled down). **/ 173 record.tile.removeCallbacks(); 198 QSTile tile = getTile(subPanel); 199 showDetailAdapter(true, tile.getDetailAdapter(), new int[]{getWidth() / 2, 0}); 204 if (subPanel.equals(mRecords.get(i).tile.getTileSpec())) { 205 return mRecords.get(i).tile; 262 // save space in the main QS tile area. Otherwise, we'll use the default one under the 289 r.tile.clearState(); 369 r.tile.refreshState(); 404 record.tile 416 createTileView(QSTile tile, boolean collapsedView) argument 424 addTile(final QSTile tile, boolean collapsedView) argument 586 clickTile(ComponentName tile) argument 601 getTileView(QSTile tile) argument 651 public QSTile tile; field in class:QSPanel.TileRecord 658 addTile(TileRecord tile) argument 660 removeTile(TileRecord tile) argument 662 getOffsetTop(TileRecord tile) argument [all...] |
H A D | QuickQSPanel.java | 135 for (QSTile tile : tiles) { 136 quickTiles.add(tile); 183 /** Size of the QS tile (width & height). */ 221 * width is non-zero, we want the inter-tile spacers to be fixed. 237 record.tile.setListening(this, mListening); 242 public void addTile(TileRecord tile) { argument 253 addView(tile.tileView, getChildCount(), generateTileLayoutParams()); 254 mRecords.add(tile); 255 tile.tile 265 removeTile(TileRecord tile) argument 288 getOffsetTop(TileRecord tile) argument [all...] |
H A D | AutoAddTracker.java | 65 public boolean isAdded(String tile) { argument 66 return mAutoAdded.contains(tile); 69 public void setTileAdded(String tile) { argument 70 if (mAutoAdded.add(tile)) {
|
H A D | PagedTileLayout.java | 155 public int getOffsetTop(TileRecord tile) { argument 156 final ViewGroup parent = (ViewGroup) tile.tileView.getParent(); 162 public void addTile(TileRecord tile) { argument 163 mTiles.add(tile); 168 public void removeTile(TileRecord tile) { argument 169 if (mTiles.remove(tile)) { 216 TileRecord tile = mTiles.get(i); 220 + tile.tile.getClass().getSimpleName()); 225 if (DEBUG) Log.d(TAG, "Adding " + tile [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/ |
H A D | TileQueryHelper.java | 71 // Enqueue jobs to fetch every system tile and then ever package tile. 90 final QSTile tile = host.createTile(spec); 91 if (tile == null) { 93 } else if (!tile.isAvailable()) { 94 tile.destroy(); 97 tile.setListening(this, true); 98 tile.clearState(); 99 tile.refreshState(); 100 tile [all...] |
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
H A D | ThreadUtil.java | 25 void addTile(int generation, TileList.Tile<T> tile); argument 39 void recycleTile(TileList.Tile<T> tile); argument
|
H A D | AsyncListUtil.java | 232 public void addTile(int generation, TileList.Tile<T> tile) { 235 log("recycling an older generation tile @%d", tile.mStartPosition); 237 mBackgroundProxy.recycleTile(tile); 240 TileList.Tile<T> duplicate = mTileList.addOrReplace(tile); 242 Log.e(TAG, "duplicate tile @" + duplicate.mStartPosition); 246 log("gen #%d, added tile @%d, total tiles: %d", 247 generation, tile.mStartPosition, mTileList.size()); 249 int endPosition = tile.mStartPosition + tile [all...] |
H A D | TileList.java | 78 Tile<T> tile = mTiles.get(startPosition); 79 if (mLastAccessedTile == tile) { 83 return tile;
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
H A D | NekoTile.java | 68 Tile tile = getQsTile(); 74 tile.setIcon(food.getIcon(this)); 75 tile.setLabel(food.getName(this)); 76 tile.setState(foodState != 0 ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE); 77 tile.updateTile();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
H A D | TileServices.java | 82 public TileServiceManager getTileWrapper(CustomTile tile) { argument 83 ComponentName component = tile.getComponent(); 84 TileServiceManager service = onCreateTileService(component, tile.getQsTile()); 86 mServices.put(tile, service); 87 mTiles.put(component, tile); 88 mTokenMap.put(service.getToken(), tile); 93 protected TileServiceManager onCreateTileService(ComponentName component, Tile tile) { argument 94 return new TileServiceManager(this, mHandler, component, tile); 97 public void freeService(CustomTile tile, TileServiceManager service) { argument 101 mServices.remove(tile); 143 verifyCaller(CustomTile tile) argument 176 updateQsTile(Tile tile, IBinder token) argument [all...] |
/frameworks/base/core/java/com/android/internal/statusbar/ |
H A D | IStatusBar.aidl | 130 void addQsTile(in ComponentName tile); 131 void remQsTile(in ComponentName tile); 132 void clickQsTile(in ComponentName tile);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
H A D | QSFactoryImpl.java | 57 QSTileImpl tile = createTileInternal(tileSpec); 58 if (tile != null) { 59 tile.handleStale(); // Tile was just created, must be stale. 61 return tile; 115 Log.w(TAG, "Bad tile spec: " + tileSpec); 120 public QSTileView createTileView(QSTile tile, boolean collapsedView) { argument 122 QSIconView icon = tile.createTileView(context);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | LinearGradient.java | 56 * @param tile The Shader tiling mode 59 @Nullable float positions[], @NonNull TileMode tile) { 73 mTileMode = tile; 85 * @param tile The Shader tiling mode 89 @NonNull TileMode tile) { 99 mTileMode = tile; 58 LinearGradient(float x0, float y0, float x1, float y1, @NonNull @ColorInt int colors[], @Nullable float positions[], @NonNull TileMode tile) argument 87 LinearGradient(float x0, float y0, float x1, float y1, @ColorInt int color0, @ColorInt int color1, @NonNull TileMode tile) argument
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/ |
H A D | QSFactory.java | 34 QSTileView createTileView(QSTile tile, boolean collapsedView); argument
|
H A D | QSTileView.java | 38 * Returns a {@link QSIconView} containing only the icon for this tile. Use 39 * {@link #getIconWithBackground()} to retrieve the entire tile (background & peripherals 45 * Returns a {@link View} containing the icon for this tile along with the accompanying 49 public abstract void init(QSTile tile); argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
H A D | TileLayoutTest.java | 54 // Layout needs to leave space for the tile margins. Three times the margin size is 62 tileRecord.tile = mock(QSTile.class); 71 verify(tileRecord.tile, times(1)).setListening(mTileLayout, false); 79 verify(tileRecord.tile, times(1)).setListening(mTileLayout, true); 87 verify(tileRecord.tile, times(1)).setListening(any(), anyBoolean()); 95 verify(tileRecord.tile, times(1)).setListening(mTileLayout, true); 104 verify(tileRecord.tile, times(1)).setListening(mTileLayout, false); 115 verify(tileRecord1.tile, times(1)).setListening(mTileLayout, false); 116 verify(tileRecord2.tile, times(1)).setListening(mTileLayout, false);
|