/aosp14/frameworks/base/core/tests/coretests/src/android/app/people/ |
H A D | PeopleSpaceTileTest.java | 83 tile = new PeopleSpaceTile in testId() 99 tile = new PeopleSpaceTile in testUserName() 163 tile = new PeopleSpaceTile in testLastInteractionTimestamp() 176 tile = new PeopleSpaceTile in testImportantConversation() 189 tile = new PeopleSpaceTile in testUserQuieted() 202 tile = new PeopleSpaceTile in testCanBypassDnd() 215 tile = new PeopleSpaceTile in testNotificationPolicyState() 228 tile = new PeopleSpaceTile in testPackageSuspended() 241 tile = new PeopleSpaceTile in testContactAffinity() 377 PeopleSpaceTile tile = in testNotificationDataUri() local [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
H A D | ActivityTileTest.java | 93 assertThat(tile.getIcon(null)).isNull(); in getIcon_noContextOrMetadata_returnNull() 149 assertThat(tile.getOrder()).isEqualTo(0); in getPriority_noMetadata_return0() 158 assertThat(tile.getOrder()).isEqualTo(0); in getPriority_badMetadata_return0() 167 assertThat(tile.getOrder()).isEqualTo(1); in getPriority_validMetadata_returnMetadataValue() 180 tile.mLastUpdateTime = staleTimeStamp; in getTitle_shouldEnsureMetadataNotStale() 195 tile.mComponentInfo = null; in getTitle_noActivity_returnNull() 210 tile.pendingIntentMap.put( in hasPendingIntent_notEmpty_returnsTrue() 220 assertThat(tile.hasGroupKey()).isFalse(); in hasGroupKey_empty_returnsFalse() 228 assertThat(tile.hasGroupKey()).isTrue(); in hasGroupKey_notEmpty_returnsTrue() 235 assertThat(tile.getGroupKey()).isNull(); in getGroupKey_empty_returnsNull() [all …]
|
H A D | ProviderTileTest.java | 141 assertThat(tile.getOrder()).isEqualTo(0); in getPriority_noMetadata_return0() 150 assertThat(tile.getOrder()).isEqualTo(0); in getPriority_badMetadata_return0() 159 assertThat(tile.getOrder()).isEqualTo(1); in getPriority_validMetadata_returnMetadataValue() 174 tile.mLastUpdateTime = staleTimeStamp; in getTitle_shouldEnsureMetadataNotStale() 191 tile.pendingIntentMap.put( in hasPendingIntent_notEmpty_returnsTrue() 201 assertThat(tile.hasGroupKey()).isFalse(); in hasGroupKey_empty_returnsFalse() 209 assertThat(tile.hasGroupKey()).isTrue(); in hasGroupKey_notEmpty_returnsTrue() 216 assertThat(tile.getGroupKey()).isNull(); in getGroupKey_empty_returnsNull() 239 tile.pendingIntentMap.put( in getType_withSwitchAndPendingIntent_returnsSwitchWithAction() 248 tile.pendingIntentMap.put( in getType_withPendingIntent_returnsExternalAction() [all …]
|
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
H A D | TiledImageRenderer.java | 310 || !range[level - fromLevel].contains(tile.mX, tile.mY)) { in layoutTiles() 394 tile.recycle(); in freeTextures() 522 return tile; in obtainTile() 546 if (tile != null) { in activateTile() 569 Tile tile = null; in uploadTiles() local 586 if (tile != null) { in uploadTiles() 601 if (tile != null) { in drawTile() 656 tile = parent; in drawTile() 752 Tile tile = mHead; in pop() local 756 return tile; in pop() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
H A D | CustomTileTest.kt | 147 tile.initialize() 244 tile.initialize() 257 tile.refreshState() 261 val tileState = tile.state 282 tile.initialize() 285 tile.updateTileState(t) 305 tile.initialize() 364 tile.initialize() 365 tile.postStale() 377 tile.initialize() [all …]
|
H A D | CustomTileStatePersisterTest.kt | 73 private lateinit var tile: Tile 86 tile = Tile() 92 tile.apply { 100 customTileStatePersister.persistState(KEY, tile) 104 assertThat(tile.isEqualTo(readTileFromString(stringCaptor.value))).isTrue() 109 tile.apply { 118 .thenReturn(writeToString(tile)) 134 assertThat(tile.label).isNull() 136 customTileStatePersister.persistState(KEY, tile) 145 assertThat(tile.label).isNull() [all …]
|
H A D | TileRequestDialogTest.kt | 101 val tile = content.getChildAt(1) as QSTileView regex 116 val tile = content.getChildAt(1) as QSTileView regex 117 assertThat((tile.icon.iconView as ImageView).drawable).isNotNull() 130 val tile = content.getChildAt(1) as QSTileView regex 145 val tile = content.getChildAt(1) as QSTileView regex 147 assertThat(tile.stateDescription).isEqualTo("") 161 val tile = content.getChildAt(1) as QSTileView regex 163 assertThat(tile.isClickable).isFalse() 164 assertThat(tile.isLongClickable).isFalse() 178 val tile = content.getChildAt(1) as QSTileView regex [all …]
|
/aosp14/frameworks/base/core/java/android/service/quicksettings/ |
H A D | IQSService.aidl | 27 Tile getTile(in IBinder tile); in getTile() argument 28 void updateQsTile(in Tile tile, in IBinder service); in updateQsTile() argument 29 void updateStatusIcon(in IBinder tile, in Icon icon, in updateStatusIcon() argument 31 void onShowDialog(in IBinder tile); in onShowDialog() argument 32 void onStartActivity(in IBinder tile); in onStartActivity() argument 33 void startActivity(in IBinder tile, in PendingIntent pendingIntent); in startActivity() argument 36 void startUnlockAndRun(in IBinder tile); in startUnlockAndRun() argument 37 void onDialogHidden(in IBinder tile); in onDialogHidden() argument 38 void onStartSuccessful(in IBinder tile); in onStartSuccessful() argument
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
H A D | BatterySaverTileTest.kt | 94 tile = BatterySaverTile( 107 tile.initialize() 113 tile.destroy() 124 tile.userSwitch(USER + 1) 133 tile.onPowerSaveChanged(true) 134 tile.handleClick(view) 136 tile.onPowerSaveChanged(false) 137 tile.handleClick(view) 146 tile.handleSetListening(true) 149 tile.handleSetListening(false) [all …]
|
H A D | AlarmTileTest.kt | 62 private lateinit var tile: AlarmTile 71 tile = AlarmTile( 85 tile.initialize() 88 tile.refreshState() 94 tile.destroy() 100 assertThat(tile.isAvailable).isTrue() 105 assertThat(tile.state.handlesLongClick).isFalse() 115 assertThat(tile.state.state).isEqualTo(Tile.STATE_INACTIVE) 129 tile.click(null /* view */) 142 assertThat(tile.state.state).isEqualTo(Tile.STATE_ACTIVE) [all …]
|
H A D | DndTileTest.kt | 104 private lateinit var tile: DndTile 123 tile = DndTile( 142 tile.destroy() 150 tile.refreshState() 160 tile.refreshState() 170 tile.refreshState() 175 tile.handleSetListening(true) 191 tile.handleClick(view) 205 tile.handleClick(view) 216 tile.handleUpdateState(state, /* arg= */ null) [all …]
|
H A D | DeviceControlsTileTest.kt | 129 tile = createTile() 134 tile.destroy() 169 assertThat(tile.isAvailable).isTrue() 177 tile.destroy() 178 tile = createTile() 180 assertThat(tile.isAvailable).isFalse() 320 tile.click(null /* view */) 345 tile.click(null /* view */) 376 tile.click(null /* view */) 389 assertThat(tile.tileLabel) [all …]
|
H A D | BluetoothTileTest.kt | 55 private lateinit var tile: FakeBluetoothTile 64 tile = 78 tile.initialize() 84 tile.destroy() 90 tile.refreshState() 101 tile.handleUpdateState(state, /* arg= */ null) 113 tile.handleUpdateState(state, /* arg= */ null) 125 tile.handleUpdateState(state, /* arg= */ null) 137 tile.handleUpdateState(state, /* arg= */ null) 194 tile.handleUpdateState(state, null) [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSTileHost.java | 172 mTiles.values().forEach(tile -> tile.destroy()); in destroy() 295 mTiles.entrySet().stream().filter(tile -> !tileSpecs.contains(tile.getKey())).forEach( in onTuningChanged() 296 tile -> { in onTuningChanged() 304 if (tile != null && (!(tile instanceof CustomTile) in onTuningChanged() 315 tile.destroy(); in onTuningChanged() 322 if (tile != null) { in onTuningChanged() 323 tile.destroy(); in onTuningChanged() 330 if (tile != null) { in onTuningChanged() 449 addTile(tile, /* end */ false); in addTile() 579 tile = tile.trim(); in loadTileSpecs() [all …]
|
H A D | QSPanelControllerBase.java | 231 for (QSTile tile : tiles) { in setTiles() 232 addTile(tile, collapsedView); in setTiles() 239 if (!r.tile.isListening()) { in refreshAllTiles() 243 r.tile.refreshState(); in refreshAllTiles() 250 new TileRecord(tile, mHost.createTileView(getContext(), tile, collapsedView)); in addTile() 282 QSTileView getTileView(QSTile tile) { in getTileView() argument 284 if (r.tile == tile) { in getTileView() 407 QSTile tile = mRecords.get(i).tile; in logTiles() local 408 mMetricsLogger.write(tile.populate(new LogMaker(tile.getMetricsCategory()) in logTiles() 483 this.tile = tile; in TileRecord() [all …]
|
H A D | TileLayout.java | 70 public int getOffsetTop(TileRecord tile) { in getOffsetTop() argument 103 public void addTile(TileRecord tile) { in addTile() argument 104 mRecords.add(tile); in addTile() 105 tile.tile.setListening(this, mListening); in addTile() 106 addTileView(tile); in addTile() 109 protected void addTileView(TileRecord tile) { in addTileView() argument 110 addView(tile.tileView); in addTileView() 114 public void removeTile(TileRecord tile) { in removeTile() argument 115 mRecords.remove(tile); in removeTile() 116 tile.tile.setListening(this, false); in removeTile() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/ |
H A D | TileQueryHelper.java | 130 if (tile == null) { in addCurrentAndStockTiles() 132 } else if (!tile.isAvailable()) { in addCurrentAndStockTiles() 133 tile.setTileSpec(spec); in addCurrentAndStockTiles() 134 tile.destroy(); in addCurrentAndStockTiles() 137 tile.setTileSpec(spec); in addCurrentAndStockTiles() 138 tilesToAdd.add(tile); in addCurrentAndStockTiles() 145 private TilePair(QSTile tile) { in TilePair() argument 146 mTile = tile; in TilePair() 159 for (QSTile tile: tilesToAdd) { in TileCollector() 202 tile.destroy(); in onStateChanged() [all …]
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A D | LinearGradient.java | 70 @Nullable float[] positions, @NonNull TileMode tile) { in LinearGradient() argument 71 this(x0, y0, x1, y1, convertColors(colors), positions, tile, in LinearGradient() 93 @Nullable float[] positions, @NonNull TileMode tile) { in LinearGradient() argument 94 this(x0, y0, x1, y1, colors.clone(), positions, tile, detectColorSpace(colors)); in LinearGradient() 102 @NonNull @ColorLong long[] colors, @Nullable float[] positions, @NonNull TileMode tile, in LinearGradient() argument 115 mTileMode = tile; in LinearGradient() 131 @NonNull TileMode tile) { in LinearGradient() argument 132 this(x0, y0, x1, y1, Color.pack(color0), Color.pack(color1), tile); in LinearGradient() 151 @NonNull TileMode tile) { in LinearGradient() argument 152 this(x0, y0, x1, y1, new long[] {color0, color1}, null, tile); in LinearGradient()
|
/aosp14/frameworks/base/packages/SystemUI/docs/ |
H A D | qs-tiles.md | 52 * **`label`**: usually the name of the tile. 66 … information on how to implement a tile in SystemUI, see [Implementing a SystemUI tile](#implement… 94 …tile (internal or visual) is not directly modified by a user action like clicking on the tile. Ins… 101 #### Life of a tile click 116 * The tile colors change to match the new state. 118 * The tile labels change to match the new state. 166 …e secure state of the device. This can be used by the tile to accept or reject actions on the tile. 186 ##### Active tile 290 ## Implementing a tile 294 ### Implementing a SystemUI tile [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/ |
H A D | PeopleSpaceWidgetManager.java | 291 if (tile == null) { in updateSingleConversationWidgets() 296 if (tile != null) { in updateSingleConversationWidgets() 332 if (tile == null) { in updateAppWidgetOptionsAndView() 360 PeopleSpaceTile tile; in getTileForExistingWidgetThrowing() local 364 if (tile != null) { in getTileForExistingWidgetThrowing() 366 return tile; in getTileForExistingWidgetThrowing() 593 if (tile == null) { in getAugmentedTileForExistingWidget() 823 if (tile == null) { in addNewWidget() 826 tile = augmentTileFromNotificationEntryManager(tile, Optional.of(appWidgetId)); in addNewWidget() 1039 PeopleSpaceTile tile; in getPreview() local [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
H A D | QSFactoryImpl.java | 72 QSTileImpl tile = createTileInternal(tileSpec); in createTile() local 73 if (tile != null) { in createTile() 74 tile.initialize(); in createTile() 75 tile.postStale(); // Tile was just created, must be stale. in createTile() 77 return tile; in createTile() 101 public QSTileView createTileView(Context context, QSTile tile, boolean collapsedView) { in createTileView() argument 102 QSIconView icon = tile.createTileView(context); in createTileView()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
H A D | TileRequestDialog.kt | 71 val tile = QSTileViewImpl(themedContext, QSIconViewImpl(themedContext), true) regex 80 tile.onStateChanged(state) 81 tile.post { 82 tile.stateDescription = "" 83 tile.isClickable = false 84 tile.isSelected = true 86 return tile
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/ |
H A D | PeopleSpaceWidgetManagerTest.java | 341 .stream().map(tile -> tile.getId()).collect(Collectors.toList()); in testGetRecentTilesReturnsSortedListWithOnlyRecentConversations() 368 .stream().map(tile -> tile.getId()).collect(Collectors.toList()); in testGetPriorityTilesReturnsSortedListWithOnlyImportantConversations() 1157 assertThat(tile).isNull(); in testGetPeopleTileFromPersistentStorageNoConversation() 1192 PeopleSpaceTile tile = in testAugmentTileFromNotifications() local 1212 PeopleSpaceTile tile = in testAugmentTileFromNotificationsDifferentShortcutId() local 1230 PeopleSpaceTile tile = in testAugmentTileFromNotificationEntryManager() local 1250 PeopleSpaceTile tile = in testAugmentTileFromNotificationEntryManager_notificationHidden() local 1278 assertThat(tile).isNull(); in testUpdateWidgetsFromBroadcastInBackgroundBootCompleteWithPackageUninstalled() 1292 assertThat(tile).isNull(); in testUpdateWidgetsFromBroadcastInBackgroundPackageRemovedWithPackageUninstalled() 1587 setStorageForTile(tile.getId(), tile.getPackageName(), widgetId, tile.getContactUri()); in addTileForWidget() [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
H A D | AdaptiveIconTest.java | 88 final Tile tile = spy(new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE)); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() local 91 .when(tile).getIcon(mContext); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() 95 icon.setBackgroundColor(mContext, tile); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() 101 final Tile tile = spy(new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE)); in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor() local 103 .when(tile).getIcon(mContext); in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor() 106 icon.setBackgroundColor(mContext, tile); in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor() 114 final Tile tile = spy(new ActivityTile(mActivityInfo, CategoryKey.CATEGORY_HOMEPAGE)); in onBindTile_externalTileWithBackgroundColorHint_shouldUpdateIcon() local 118 .when(tile).getIcon(mContext); in onBindTile_externalTileWithBackgroundColorHint_shouldUpdateIcon() 122 icon.setBackgroundColor(mContext, tile); in onBindTile_externalTileWithBackgroundColorHint_shouldUpdateIcon()
|