Home
last modified time | relevance | path

Searched refs:itemId (Results 1 – 25 of 82) sorted by relevance

1234

/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/domain/menu/
DMenuUtils.kt77 @StringRes itemId: Int, in modifySwitch()
79 ): Menu = modifyMenu(context, oldMenu = this, itemId) { in modifySwitch()
100 itemId: Int, in modifyDropDown()
102 ): Menu = modifyMenu(context, oldMenu = this, itemId) { in modifyDropDown()
128 @StringRes itemId: Int, in modifyMenu()
131 val newRoot = modifyNode(oldMenu.rootNode, itemId, block) in modifyMenu()
152 @StringRes itemId: Int, in modifyNode()
155 val newSubmenu: List<MenuItem> = if (root.subMenu.any { it.displayTextRes == itemId }) { in modifyNode()
156 root.subMenu.map { if (it.displayTextRes == itemId) block(it) else it } in modifyNode()
160 modifyNode(it, itemId, block) in modifyNode()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditorCrop.java117 private void changeCropAspect(int itemId) { in changeCropAspect() argument
118 AspectInfo info = sAspects.get(itemId); in changeCropAspect()
120 throw new IllegalArgumentException("Invalid resource ID: " + itemId); in changeCropAspect()
122 if (itemId == R.id.crop_menu_original) { in changeCropAspect()
124 } else if (itemId == R.id.crop_menu_none) { in changeCropAspect()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/audio_util/
DMediaPlayerList.java350 String itemId = wrapper.getRootId(); in getPlayerRoot() local
353 itemId, in getPlayerRoot()
534 String itemId = mediaId.substring(2); in playFolderItem() local
535 if (TextUtils.isEmpty(itemId)) { in playFolderItem()
536 itemId = wrapper.getRootId(); in playFolderItem()
537 if (TextUtils.isEmpty(itemId)) { in playFolderItem()
546 wrapper.playItem(itemId); in playFolderItem()
590 String itemId = mediaId; in getFolderItems() local
592 itemId = wrapper.getRootId(); in getFolderItems()
596 itemId, in getFolderItems()
[all …]
/packages/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/
DEditTextVariations.java206 final int itemId = item.getItemId(); in onOptionsItemSelected() local
207 if (itemId == MENU_CHANGE_THEME) { in onOptionsItemSelected()
218 } else if (itemId == MENU_NAVIGATE_ON || itemId == MENU_NAVIGATE_OFF) { in onOptionsItemSelected()
219 saveNavigateMode(itemId == MENU_NAVIGATE_ON); in onOptionsItemSelected()
221 } else if (itemId == MENU_SOFTINPUT_VISIBLE || itemId == MENU_SOFTINPUT_HIDDEN) { in onOptionsItemSelected()
222 saveSoftInputMode(itemId == MENU_SOFTINPUT_VISIBLE); in onOptionsItemSelected()
224 } else if (itemId == MENU_DIRECT_REPLY) { in onOptionsItemSelected()
234 } else if (itemId == MENU_TOGGLE_IME_FOCUSABLE_OVERLAY) { in onOptionsItemSelected()
/packages/apps/DeskClock/src/com/android/deskclock/
DItemAdapter.kt148 if (newItemHolder.itemId == oldItemHolder.itemId && in setItems()
223 return if (hasStableIds()) items!![position].itemId else NO_ID in getItemCount()
228 if (holder.itemId == id) { in findItemById()
278 val itemId: Long constant in com.android.deskclock.ItemAdapter.ItemHolder
/packages/apps/Dialer/java/com/android/dialer/app/list/
DOldSpeedDialFragment.java248 final long itemId = contactTileAdapter.getItemId(position); in saveOffsets() local
249 itemIdTopMap.put(itemId, child.getTop()); in saveOffsets()
250 itemIdLeftMap.put(itemId, child.getLeft()); in saveOffsets()
287 final long itemId = contactTileAdapter.getItemId(position); in animateGridView()
289 if (containsId(idsInPlace, itemId)) { in animateGridView()
293 Integer startTop = itemIdTopMap.get(itemId); in animateGridView()
294 Integer startLeft = itemIdLeftMap.get(itemId); in animateGridView()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSettingsFragment.java80 final int itemId = item.getItemId(); in onOptionsItemSelected() local
81 if (itemId == MENU_HELP_AND_FEEDBACK) { in onOptionsItemSelected()
85 if (itemId == MENU_ABOUT) { in onOptionsItemSelected()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DModelWriter.java120 private void checkItemInfoLocked(int itemId, ItemInfo item, StackTraceElement[] stackTrace) { in checkItemInfoLocked() argument
121 ItemInfo modelItem = mBgDataModel.itemsIdMap.get(itemId); in checkItemInfoLocked()
434 final int itemId = item.id; in runImpl() local
436 TABLE_NAME, mValues.get(i), itemIdMatch(itemId), null); in runImpl()
437 updateItemArrays(item, itemId); in runImpl()
454 protected void updateItemArrays(ItemInfo item, int itemId) { in updateItemArrays() argument
457 checkItemInfoLocked(itemId, item, mStackTrace); in updateItemArrays()
474 ItemInfo modelItem = mBgDataModel.itemsIdMap.get(itemId); in updateItemArrays()
/packages/apps/DeskClock/src/com/android/deskclock/actionbarmenu/
DOptionsMenuManager.kt74 val itemId: Int = item.getItemId() in onOptionsItemSelected() constant
76 if (controller?.id == itemId && controller.onOptionsItemSelected(item)) { in onOptionsItemSelected()
/packages/apps/EmergencyInfo/src/com/android/emergency/edit/
DEditInfoActivity.java95 int itemId = item.getItemId(); in onOptionsItemSelected() local
96 if (itemId == android.R.id.home) { in onOptionsItemSelected()
101 } else if (itemId == R.id.action_clear_all) { in onOptionsItemSelected()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/plugins/plugintoggle/
DPluginToggleReducer.kt28 @StringRes override val itemId: Int, constant in com.android.car.customization.tool.features.plugins.plugintoggle.ToggleCarUiLibPluginAction
44 return menu.modifySwitch(context, action.itemId, action.newValue) in clone()
/packages/apps/Dialer/java/com/android/incallui/
DManageConferenceActivity.java61 final int itemId = item.getItemId(); in onOptionsItemSelected() local
62 if (itemId == android.R.id.home) { in onOptionsItemSelected()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/alldata/
DAllDataFragment.kt70 when (menuItem.itemId) { in <lambda>()
84 when (menuItem.itemId) { in <lambda>()
103 when (menuItem.itemId) { in <lambda>()
114 when (menuItem.itemId) { in <lambda>()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/rro/systemui/cutouts/
DDisplayCutoutsReducer.kt29 @StringRes val itemId: Int, in <lambda>() constant in com.android.car.customization.tool.features.rro.systemui.cutouts.SelectDisplayCutoutPresetAction
58 return menu.modifyDropDown(context, action.itemId, action) in <lambda>()
DDisplayCutoutsItem.kt56 itemId = textRes, in <lambda>()
72 itemId = textRes, in <lambda>()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/oemtokens/oemtokenstoggle/
DOemTokensToggleReducer.kt30 @StringRes override val itemId: Int, constant in com.android.car.customization.tool.features.oemtokens.oemtokenstoggle.ToggleOemTokensAction
47 return menu.modifySwitch(context, action.itemId, action.newValue) in clone()
/packages/apps/TV/src/com/android/tv/menu/
DChannelsRowItem.java66 private ChannelsRowItem(long itemId, int layoutId) { in ChannelsRowItem() argument
67 mItemId = itemId; in ChannelsRowItem()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/rro/systemui/systembarpresets/
DSystemBarPresetsReducer.kt29 @StringRes val itemId: Int, in <lambda>() constant in com.android.car.customization.tool.features.rro.systemui.systembarpresets.SelectSystemBarPresetAction
59 return menu.modifyDropDown(context, action.itemId, action) in <lambda>()
DSystemBarPresetsItem.kt51 itemId = textRes, in <lambda>()
67 itemId = textRes, in <lambda>()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/rro/systemui/themepresets/
DThemePresetsReducer.kt30 @StringRes val itemId: Int, in <lambda>() constant in com.android.car.customization.tool.features.rro.systemui.themepresets.SelectThemePresetAction
53 return menu.modifyDropDown(context, action.itemId, action) in <lambda>()
DThemePresetsItem.kt71 itemId = textRes, in rroThemePresetsDropDownItem()
87 itemId = textRes, in rroThemePresetsDropDownItem()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DDeletionHelperActivity.java152 int itemId = item.getItemId(); in onOptionsItemSelected() local
153 if (itemId == R.id.no_threshold) { in onOptionsItemSelected()
155 } else if (itemId == R.id.default_threshold) { in onOptionsItemSelected()
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DCarNotificationViewAdapterTest.java832 long itemId = mCarNotificationViewAdapter.getItemId(2); in getItemId_shouldReturnHashCode() local
834 assertThat(itemId).isEqualTo(notificationGroup.getGroupKey().hashCode()); in getItemId_shouldReturnHashCode()
851 long itemId = mCarNotificationViewAdapter.getItemId(2); in getItemId_showRecentAndOldHeaders_shouldReturnHashCode() local
853 assertThat(itemId).isEqualTo((notificationGroup.getGroupKey() + notificationGroup.isSeen()) in getItemId_showRecentAndOldHeaders_shouldReturnHashCode()
869 long itemId = mCarNotificationViewAdapter.getItemId(2); in getItemId_showRecentAndOldHeaders_shouldReturnSingleNotificationHashCode() local
871 assertThat(itemId).isEqualTo((notificationGroup.getSingleNotification().getKey() in getItemId_showRecentAndOldHeaders_shouldReturnSingleNotificationHashCode()
886 long itemId = mCarNotificationViewAdapter.getItemId(2); in getItemId_shouldReturnSingleNotificationHashCode() local
888 assertThat(itemId).isEqualTo(notificationGroup.getSingleNotification().getKey().hashCode()); in getItemId_shouldReturnSingleNotificationHashCode()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDocsSelectionHelperTest.java162 public boolean select(String itemId) { in select() argument
167 public boolean deselect(String itemId) { in deselect() argument
/packages/apps/EmergencyInfo/src/com/android/emergency/view/
DViewInfoActivity.java169 int itemId = item.getItemId(); in onOptionsItemSelected() local
170 if (itemId == android.R.id.home) { in onOptionsItemSelected()
173 } else if (itemId == R.id.action_edit) { in onOptionsItemSelected()

1234