/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/ |
D | SlicePreferencesUtil.java | 71 static Preference getPreference(SliceItem item, ContextThemeWrapper contextThemeWrapper, in getPreference() argument 74 if (item == null) { in getPreference() 77 Data data = extract(item); in getPreference() 78 if (item.getSubType() != null) { in getPreference() 79 String subType = item.getSubType(); in getPreference() 95 ((SlicePreference) preference).setActionId(getActionId(item)); in getPreference() 105 int buttonStyle = SlicePreferencesUtil.getButtonStyle(item); in getPreference() 117 if (getRadioGroup(item) != null) { in getPreference() 119 getRadioGroup(item).toString()); in getPreference() 123 int min = SlicePreferencesUtil.getSeekbarMin(item); in getPreference() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | ModelWriter.java | 99 ItemInfo item, int container, int screenId, int cellX, int cellY) { in updateItemInfoProps() argument 102 item.container = container; in updateItemInfoProps() 103 item.cellX = modelPos.cellX; in updateItemInfoProps() 104 item.cellY = modelPos.cellY; in updateItemInfoProps() 108 item.screenId = mHasVerticalHotseat in updateItemInfoProps() 111 item.screenId = modelPos.screenId; in updateItemInfoProps() 119 public void addOrMoveItemInDatabase(ItemInfo item, in addOrMoveItemInDatabase() argument 121 if (item.id == ItemInfo.NO_ID) { in addOrMoveItemInDatabase() 123 addItemToDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase() 126 moveItemInDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase() [all …]
|
D | AddWorkspaceItemsTask.java | 93 ItemInfo item = entry.first; in execute() local 94 if (item.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION) { in execute() 96 if (shortcutExists(dataModel, item.getIntent(), item.user)) { in execute() 102 Objects.requireNonNull(item.getIntent()))) { in execute() 107 if (item.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION) { in execute() 108 if (item instanceof WorkspaceItemFactory) { in execute() 109 item = ((WorkspaceItemFactory) item).makeWorkspaceItem(app.getContext()); in execute() 112 if (item != null) { in execute() 113 filteredItems.add(item); in execute() 121 for (ItemInfo item : filteredItems) { in execute() [all …]
|
D | LoaderCursor.java | 483 protected boolean checkItemPlacement(ItemInfo item) { in checkItemPlacement() argument 484 int containerIndex = item.screenId; in checkItemPlacement() 485 if (item.container == Favorites.CONTAINER_HOTSEAT) { in checkItemPlacement() 489 if (item.screenId >= mIDP.numDatabaseHotseatIcons) { in checkItemPlacement() 490 Log.e(TAG, "Error loading shortcut " + item in checkItemPlacement() 491 + " into hotseat position " + item.screenId in checkItemPlacement() 498 if (hotseatOccupancy.cells[(int) item.screenId][0]) { in checkItemPlacement() 499 Log.e(TAG, "Error loading shortcut into hotseat " + item in checkItemPlacement() 500 + " into position (" + item.screenId + ":" + item.cellX + "," in checkItemPlacement() 501 + item.cellY + ") already occupied"); in checkItemPlacement() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpItemTest.java | 96 AvrcpItem item = builder.build(); in buildAvrcpItem() local 98 Assert.assertEquals(mDevice, item.getDevice()); in buildAvrcpItem() 99 Assert.assertEquals(true, item.isPlayable()); in buildAvrcpItem() 100 Assert.assertEquals(false, item.isBrowsable()); in buildAvrcpItem() 101 Assert.assertEquals(0, item.getUid()); in buildAvrcpItem() 102 Assert.assertEquals(UUID, item.getUuid()); in buildAvrcpItem() 103 Assert.assertEquals(null, item.getDisplayableName()); in buildAvrcpItem() 104 Assert.assertEquals(title, item.getTitle()); in buildAvrcpItem() 105 Assert.assertEquals(artist, item.getArtistName()); in buildAvrcpItem() 106 Assert.assertEquals(album, item.getAlbumName()); in buildAvrcpItem() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/model/ |
D | ItemTest.java | 68 final Item item = new Item(cursor, UserId.CURRENT_USER); in testConstructor() local 70 assertThat(item.getId()).isEqualTo(id); in testConstructor() 71 assertThat(item.getDateTaken()).isEqualTo(dateTaken); in testConstructor() 72 assertThat(item.getGenerationModified()).isEqualTo(generationModified); in testConstructor() 73 assertThat(item.getMimeType()).isEqualTo(mimeType); in testConstructor() 74 assertThat(item.getDuration()).isEqualTo(duration); in testConstructor() 75 assertThat(item.getContentUri()).isEqualTo( in testConstructor() 78 assertThat(item.isImage()).isTrue(); in testConstructor() 79 assertThat(item.isVideo()).isFalse(); in testConstructor() 80 assertThat(item.isGifOrAnimatedWebp()).isFalse(); in testConstructor() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | SortedArrayAdapter.java | 63 for (T item : itemsCopy) { in setInitialItems() 64 add(item, true); in setInitialItems() 77 public final void add(Object item) { in add() argument 78 add((T) item, false); in add() 92 public final void add(T item, boolean insertToEnd) { in add() argument 93 long newItemId = getId(item); in add() 98 i = findInsertPosition(item); in add() 100 i = findInsertPositionBinary(item); in add() 102 super.add(i, item); in add() 114 public int addExtraItem(T item) { in addExtraItem() argument [all …]
|
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/fastpair/testing/ |
D | FakeDiscoveryItems.java | 48 Cache.StoredDiscoveryItem.Builder item = Cache.StoredDiscoveryItem.newBuilder(); in newFastPairDeviceStoredItem() local 49 item.setState(Cache.StoredDiscoveryItem.State.STATE_ENABLED); in newFastPairDeviceStoredItem() 50 item.setId(FAST_PAIR_ID); in newFastPairDeviceStoredItem() 51 item.setDescription(DEFAULT_DESCRIPITON); in newFastPairDeviceStoredItem() 52 item.setTriggerId(triggerId); in newFastPairDeviceStoredItem() 53 item.setMacAddress(DEFAULT_MAC_ADDRESS); in newFastPairDeviceStoredItem() 54 item.setFirstObservationTimestampMillis(DEFAULT_TIMESTAMP); in newFastPairDeviceStoredItem() 55 item.setLastObservationTimestampMillis(DEFAULT_TIMESTAMP); in newFastPairDeviceStoredItem() 56 item.setActionUrl(ACTION_URL); in newFastPairDeviceStoredItem() 57 item.setAppName(APP_NAME); in newFastPairDeviceStoredItem() [all …]
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/ |
D | TestWorkspaceBuilder.java | 140 LauncherAppWidgetInfo item = createWidgetInfo(info, getApplicationContext(), true); in createWidgetInCell() 141 item.cellX = widgetRect.getCellX(); in createWidgetInCell() 142 item.cellY = widgetRect.getCellY(); in createWidgetInCell() 143 item.spanX = widgetRect.getSpanX(); in createWidgetInCell() 144 item.spanY = widgetRect.getSpanY(); in createWidgetInCell() 145 item.screenId = screenId; in createWidgetInCell() 146 return item; in createWidgetInCell() 167 WorkspaceItemInfo item = new WorkspaceItemInfo(getApp()); in getDefaultWorkspaceItem() local 168 item.screenId = screenId; in getDefaultWorkspaceItem() 169 item.minSpanY = item.minSpanX = item.spanX = item.spanY = 1; in getDefaultWorkspaceItem() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/ |
D | sdp.rs | 32 fn from(item: bindings::bluetooth_sdp_types) -> Self { in from() 33 BtSdpType::from_u32(item).unwrap_or(BtSdpType::Raw) in from() 70 fn from(item: bindings::_bluetooth_sdp_hdr_overlay) -> Self { in from() 71 let user1_len = item.user1_ptr_len; in from() 73 std::slice::from_raw_parts(item.user1_ptr, item.user1_ptr_len as usize).to_vec() in from() 75 let user2_len = item.user2_ptr_len; in from() 77 std::slice::from_raw_parts(item.user2_ptr, item.user2_ptr_len as usize).to_vec() in from() 81 *((&item as *const bindings::_bluetooth_sdp_hdr_overlay) in from() 124 fn from(item: bindings::_bluetooth_sdp_mas_record) -> Self { in from() 126 hdr: BtSdpHeaderOverlay::from(item.hdr), in from() [all …]
|
/packages/modules/Bluetooth/system/packet/avrcp/ |
D | get_folder_items.cc | 64 for (const auto& item : items_) { in size() local 65 len += item.size(); in size() 89 for (const auto& item : items_) { in Serialize() local 90 PushMediaListItem(pkt, item); in Serialize() 96 bool GetFolderItemsResponseBuilder::AddMediaPlayer(MediaPlayerItem item) { in AddMediaPlayer() argument 99 if (size() + item.size() > mtu_) return false; in AddMediaPlayer() 101 items_.push_back(MediaListItem(item)); in AddMediaPlayer() 105 bool GetFolderItemsResponseBuilder::AddSong(MediaElementItem item) { in AddSong() argument 108 if (size() + item.size() > mtu_) return false; in AddSong() 110 items_.push_back(MediaListItem(item)); in AddSong() [all …]
|
/packages/services/Telephony/testapps/ImsTestService/src/com/android/phone/testapps/imstestapp/ |
D | TestImsConfigImpl.java | 28 public int item; field in TestImsConfigImpl.ConfigItem 32 public ConfigItem(int item, int value) { in ConfigItem() argument 33 this.item = item; in ConfigItem() 37 public ConfigItem(int item, String value) { in ConfigItem() argument 38 this.item = item; in ConfigItem() 71 public int setConfig(int item, int value) { in setConfig() argument 72 replaceConfig(new ConfigItem(item, value)); in setConfig() 77 public int setConfig(int item, String value) { in setConfig() argument 78 replaceConfig(new ConfigItem(item, value)); in setConfig() 83 public int getConfigInt(int item) { in getConfigInt() argument [all …]
|
/packages/modules/Connectivity/nearby/halfsheet/src/com/android/nearby/halfsheet/utils/ |
D | FastPairUtils.java | 71 public static Cache.StoredDiscoveryItem convertFrom(Cache.ScanFastPairStoreItem item) { in convertFrom() argument 72 return convertFrom(item, /* isSubsequentPair= */ false); in convertFrom() 83 Cache.ScanFastPairStoreItem item, boolean isSubsequentPair) { in convertFrom() argument 85 .setId(item.getModelId()) in convertFrom() 86 .setFirstObservationTimestampMillis(item.getFirstObservationTimestampMillis()) in convertFrom() 87 .setLastObservationTimestampMillis(item.getLastObservationTimestampMillis()) in convertFrom() 88 .setActionUrl(item.getActionUrl()) in convertFrom() 92 ? item.getFastPairStrings().getTapToPairWithoutAccount() in convertFrom() 93 : item.getDeviceName()) in convertFrom() 94 .setMacAddress(item.getAddress()) in convertFrom() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/ |
D | PieRenderer.java | 188 public void addItem(PieItem item) { in addItem() argument 190 mItems.add(item); in addItem() 193 public void removeItem(PieItem item) { in removeItem() argument 194 mItems.remove(item); in removeItem() 230 for (PieItem item : mItems) { in show() 231 item.setSelected(false); in show() 290 for (PieItem item : items) { in layoutItems() 291 if (item.getCenter() >= 0) { in layoutItems() 292 sweep = item.getSweep(); in layoutItems() 298 for (PieItem item : items) { in layoutItems() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | PieRenderer.java | 190 public void addItem(PieItem item) { in addItem() argument 192 items.add(item); in addItem() 195 public void removeItem(PieItem item) { in removeItem() argument 196 items.remove(item); in removeItem() 233 for (PieItem item : items) { in show() 234 item.setSelected(false); in show() 291 for (PieItem item : items) { in layoutItems() 292 if (item.getCenter() >= 0) { in layoutItems() 293 sweep = item.getSweep(); in layoutItems() 298 for (PieItem item : items) { in layoutItems() [all …]
|
/packages/modules/OnDevicePersonalization/framework/java/com/android/ondevicepersonalization/internal/util/ |
D | Parcelling.java | 47 void parcel(T item, Parcel dest, int parcelFlags); in parcel() argument 106 public void parcel(@Nullable String item, Parcel dest, int parcelFlags) { in parcel() argument 107 dest.writeString(item); in parcel() 119 public void parcel(String[] item, Parcel dest, int parcelFlags) { in parcel() argument 120 dest.writeStringArray(item); in parcel() 139 public void parcel(List<String> item, Parcel dest, int parcelFlags) { in parcel() argument 140 dest.writeStringList(item); in parcel() 158 public void parcel(Map<String, String> item, Parcel dest, int parcelFlags) { in parcel() argument 159 dest.writeMap(item); in parcel() 175 public void parcel(Set<String> item, Parcel dest, int parcelFlags) { in parcel() argument [all …]
|
/packages/services/Car/car-lib/src/com/android/car/internal/util/ |
D | Parcelling.java | 48 void parcel(T item, Parcel dest, int parcelFlags); in parcel() argument 107 public void parcel(@Nullable String item, Parcel dest, int parcelFlags) { in parcel() argument 108 dest.writeString(item); in parcel() 120 public void parcel(String[] item, Parcel dest, int parcelFlags) { in parcel() argument 121 dest.writeStringArray(item); in parcel() 140 public void parcel(List<String> item, Parcel dest, int parcelFlags) { in parcel() argument 141 dest.writeStringList(item); in parcel() 159 public void parcel(Map<String, String> item, Parcel dest, int parcelFlags) { in parcel() argument 160 dest.writeMap(item); in parcel() 176 public void parcel(Set<String> item, Parcel dest, int parcelFlags) { in parcel() argument [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | PhotoDataAdapter.java | 159 public void onPhotoChanged(int index, Path item); in onPhotoChanged() argument 230 MediaItem item = getItemInternal(index); in getVersion() local 231 if (item == null) return MediaObject.INVALID_DATA_VERSION; in getVersion() 232 return item.getDataVersion(); in getVersion() 236 MediaItem item = getItemInternal(index); in getPath() local 237 if (item == null) return null; in getPath() 238 return item.getPath(); in getPath() 400 MediaItem item = mData[index % DATA_CACHE_SIZE]; in updateCurrentIndex() local 401 mItemPath = item == null ? null : item.getPath(); in updateCurrentIndex() 418 MediaItem item = getItem(index); in uploadScreenNail() [all …]
|
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/ |
D | QnsProvisioningListener.java | 217 private void loadIntegerItem(int item) { in loadIntegerItem() argument 219 int value = mProvisioningManager.getProvisioningIntValue(item); in loadIntegerItem() 220 log("loadIntegerItem item:" + item + " value:" + value); in loadIntegerItem() 221 mProvisioningInfo.setIntegerItem(item, value); in loadIntegerItem() 227 private void loadStringItem(int item) { in loadStringItem() argument 229 String value = mProvisioningManager.getProvisioningStringValue(item); in loadStringItem() 230 log("loadStringItem item:" + item + " value:" + value); in loadStringItem() 231 mProvisioningInfo.setStringItem(item, value); in loadStringItem() 277 boolean hasItem(int item) { in hasItem() argument 278 return mIntegerItems.get(item) != null || mStringItems.get(item) != null; in hasItem() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/ |
D | AppFilterItemTest.java | 39 final AppFilterItem item = AppFilterRegistry.getInstance().get(FILTER_APPS_USAGE_ACCESS); in equals_sameContent_true() local 47 assertThat(item.equals(item)).isTrue(); in equals_sameContent_true() 50 assertThat(item).isEqualTo(item2); in equals_sameContent_true() 56 final AppFilterItem item = AppFilterRegistry.getInstance().get(FILTER_APPS_USAGE_ACCESS); in compare_sameContent_return0() local 62 assertThat(item.compareTo(item)).isEqualTo(0); in compare_sameContent_return0() 63 assertThat(item.compareTo(item2)).isEqualTo(0); in compare_sameContent_return0() 64 assertThat(item2.compareTo(item)).isEqualTo(0); in compare_sameContent_return0() 69 final AppFilterItem item = AppFilterRegistry.getInstance().get(FILTER_APPS_USAGE_ACCESS); in compare_toNull_return1() local 70 assertThat(item.compareTo(null)).isEqualTo(1); in compare_toNull_return1() 75 final AppFilterItem item = AppFilterRegistry.getInstance().get(FILTER_APPS_USAGE_ACCESS); in compare_differentFilter_returnFilterDiff() local [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/ |
D | ImageLoader.java | 88 public void loadPhotoThumbnail(@NonNull Item item, @NonNull ImageView imageView) { in loadPhotoThumbnail() argument 92 loadWithGlide(getBitmapRequestBuilder(item.getContentUri()), THUMBNAIL_OPTION, in loadPhotoThumbnail() 93 getGlideSignature(item, /* prefix */ ""), imageView); in loadPhotoThumbnail() 102 public void loadImagePreview(@NonNull Item item, @NonNull ImageView imageView) { in loadImagePreview() argument 103 if (item.isGif()) { in loadImagePreview() 104 loadWithGlide(getGifRequestBuilder(item.getContentUri()), /* requestOptions */ null, in loadImagePreview() 105 getGlideSignature(item, /* prefix */ ""), imageView); in loadImagePreview() 109 if (item.isAnimatedWebp()) { in loadImagePreview() 110 loadAnimatedWebpPreview(item, imageView); in loadImagePreview() 115 loadWithGlide(getBitmapRequestBuilder(item.getContentUri()), /* requestOptions */ null, in loadImagePreview() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherPrefs.kt | 62 private fun chooseSharedPreferences(item: Item): SharedPreferences = in <lambda>() 63 if (isBootAwareStartupDataEnabled && item.isBootAware && isStartupDataMigrated) in <lambda>() 65 else item.encryptedPrefs in <lambda>() 68 fun <T> get(item: ContextualItem<T>): T = in <lambda>() 69 getInner(item, item.defaultValueFromContext(encryptedContext)) in <lambda>() 72 fun <T> get(item: ConstantItem<T>): T = getInner(item, item.defaultValue) in <lambda>() 80 private fun <T> getInner(item: Item, default: T): T { in <lambda>() 81 val sp = chooseSharedPreferences(item) in <lambda>() 83 return when (item.type) { in <lambda>() 84 String::class.java -> sp.getString(item.sharedPrefKey, default as? String) in <lambda>() [all …]
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/ |
D | WidgetUtils.java | 48 LauncherAppWidgetInfo item = new LauncherAppWidgetInfo( in createWidgetInfo() local 50 item.spanX = info.minSpanX; in createWidgetInfo() 51 item.spanY = info.minSpanY; in createWidgetInfo() 52 item.minSpanX = info.minSpanX; in createWidgetInfo() 53 item.minSpanY = info.minSpanY; in createWidgetInfo() 54 item.user = info.getProfile(); in createWidgetInfo() 55 item.cellX = 0; in createWidgetInfo() 56 item.cellY = 1; in createWidgetInfo() 57 item.container = LauncherSettings.Favorites.CONTAINER_DESKTOP; in createWidgetInfo() 63 pendingInfo.spanX = item.spanX; in createWidgetInfo() [all …]
|
/packages/modules/Media/apex/framework/jni/ |
D | android_media_MediaParserJNI.cpp | 74 mediametrics_handle_t item(mediametrics_create(kMediaMetricsKey)); in JNI_FUNCTION() local 75 mediametrics_setCString(item, kAttributeLogSessionId, in JNI_FUNCTION() 77 mediametrics_setCString(item, kAttributeParserName, in JNI_FUNCTION() 79 mediametrics_setInt32(item, kAttributeCreatedByName, createdByName ? 1 : 0); in JNI_FUNCTION() 80 mediametrics_setCString(item, kAttributeParserPool, in JNI_FUNCTION() 82 mediametrics_setCString(item, kAttributeLastException, in JNI_FUNCTION() 84 mediametrics_setInt64(item, kAttributeResourceByteCount, resourceByteCount); in JNI_FUNCTION() 85 mediametrics_setInt64(item, kAttributeDurationMillis, durationMillis); in JNI_FUNCTION() 86 mediametrics_setCString(item, kAttributeTrackMimeTypes, in JNI_FUNCTION() 88 mediametrics_setCString(item, kAttributeTrackCodecs, in JNI_FUNCTION() [all …]
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/ |
D | BindWidgetTest.java | 121 item -> item.appWidgetId = -33); in testUnboundWidget_removed() 137 item -> item.restoreStatus = FLAG_ID_NOT_VALID); in testPendingWidget_autoRestored() 146 item -> item.restoreStatus = FLAG_ID_NOT_VALID); in testPendingWidget_withConfigScreen() 212 LauncherAppWidgetInfo item = getInvalidWidgetInfo(); in testPendingWidget_notRestored_activeInstall() local 216 params.setAppPackageName(item.providerName.getPackageName()); in testPendingWidget_notRestored_activeInstall() 220 addPendingItemToScreen(item, FLAG_ID_NOT_VALID | FLAG_PROVIDER_NOT_READY); in testPendingWidget_notRestored_activeInstall() 246 private void addPendingItemToScreen(LauncherAppWidgetInfo item, int restoreStatus) { in addPendingItemToScreen() argument 247 item.restoreStatus = restoreStatus; in addPendingItemToScreen() 248 item.screenId = FIRST_SCREEN_ID; in addPendingItemToScreen() 250 .addItem(() -> item) in addPendingItemToScreen() [all …]
|