/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropObject.java | 131 public static boolean checkCorner(int selected) { in checkCorner() argument 132 return selected == TOP_LEFT || selected == TOP_RIGHT || selected == BOTTOM_RIGHT in checkCorner() 133 || selected == BOTTOM_LEFT; in checkCorner() 136 public static boolean checkEdge(int selected) { in checkEdge() argument 137 return selected == MOVE_LEFT || selected == MOVE_TOP || selected == MOVE_RIGHT in checkEdge() 138 || selected == MOVE_BOTTOM; in checkEdge() 141 public static boolean checkBlock(int selected) { in checkBlock() argument 142 return selected == MOVE_BLOCK; in checkBlock() 145 public static boolean checkValid(int selected) { in checkValid() argument 146 return selected == MOVE_NONE || checkBlock(selected) || checkEdge(selected) in checkValid() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/selection/ |
D | SelectionManager.java | 214 public boolean setItemsSelected(Iterable<String> ids, boolean selected) { in setItemsSelected() argument 215 final boolean changed = setItemsSelectedQuietly(ids, selected); in setItemsSelected() 220 private boolean setItemsSelectedQuietly(Iterable<String> ids, boolean selected) { in setItemsSelectedQuietly() argument 224 selected in setItemsSelectedQuietly() 228 notifyItemStateChanged(id, selected); in setItemsSelectedQuietly() 459 void notifyItemStateChanged(String id, boolean selected) { in notifyItemStateChanged() argument 463 mItemCallbacks.get(i).onItemStateChanged(id, selected); in notifyItemStateChanged() 488 void updateForRange(int begin, int end, boolean selected, @RangeType int type) { in updateForRange() argument 491 updateForRegularRange(begin, end, selected); in updateForRange() 494 updateForProvisionalRange(begin, end, selected); in updateForRange() [all …]
|
D | Range.java | 135 private void updateRange(int begin, int end, boolean selected, @RangeType int type) { in updateRange() argument 136 mUpdater.updateForRange(begin, end, selected, type); in updateRange() 150 void updateForRange(int begin, int end, boolean selected, @RangeType int type); in updateForRange() argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SelectionManager.java | 49 public void onSelectionChange(Path path, boolean selected); in onSelectionChange() argument 183 ArrayList<Path> selected = new ArrayList<Path>(); in getSelected() local 192 if (!expandMediaSet(selected, set, maxSelection)) { in getSelected() 196 selected.add(id); in getSelected() 197 if (selected.size() > maxSelection) { in getSelected() 206 if (!expandMediaSet(selected, mDataManager.getMediaSet(id), in getSelected() 211 selected.add(id); in getSelected() 212 if (selected.size() > maxSelection) { in getSelected() 228 selected.add(id); in getSelected() 229 if (selected.size() > maxSelection) { in getSelected() [all …]
|
D | ActionModeHandler.java | 272 ArrayList<MediaObject> selected = new ArrayList<MediaObject>(); in getSelectedMediaObjects() local 278 selected.add(manager.getMediaObject(path)); in getSelectedMediaObjects() 281 return selected; in getSelectedMediaObjects() 287 private int computeMenuOptions(ArrayList<MediaObject> selected) { in computeMenuOptions() argument 290 for (MediaObject mediaObject: selected) { in computeMenuOptions() 296 switch (selected.size()) { in computeMenuOptions() 389 public void updateSupportedOperation(Path path, boolean selected) { in updateSupportedOperation() argument 410 ArrayList<MediaObject> selected = getSelectedMediaObjects(jc); in updateSupportedOperation() 411 if (selected == null) { in updateSupportedOperation() 423 final int operation = computeMenuOptions(selected); in updateSupportedOperation() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
D | SelectCalendarsSimpleAdapter.java | 93 boolean selected; field in SelectCalendarsSimpleAdapter.CalendarRow 203 mData[p].selected = c.getInt(mVisibleColumn) != 0; in initData() 222 boolean selected = mData[position].selected; in getView() 274 if (selected) { in getView() 285 syncCheckBox.setChecked(selected); in getView() 294 if (selected) { in getView() 312 view.findViewById(R.id.color).setEnabled(selected && hasMoreColors(position)); in getView() 313 view.setBackgroundDrawable(getBackground(position, selected)); in getView() 323 visibleCheckBox.setChecked(selected); in getView() 339 protected Drawable getBackground(int position, boolean selected) { in getBackground() argument [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
D | CitySelectionActivity.java | 355 final CheckBox selected = (CheckBox) view.findViewById(R.id.city_onoff); in getView() local 356 view.setTag(new CityItemHolder(index, name, time, selected)); in getView() 361 holder.selected.setTag(city); in getView() 362 holder.selected.setChecked(mUserSelectedCities.contains(city)); in getView() 363 holder.selected.setContentDescription(city.getName()); in getView() 364 holder.selected.setOnCheckedChangeListener(this); in getView() 500 final List<City> selected = DataModel.getDataModel().getSelectedCities(); in refresh() local 502 mUserSelectedCities.addAll(selected); in refresh() 503 mOriginalUserSelectionCount = selected.size(); in refresh() 605 private final CheckBox selected; field in CitySelectionActivity.CityAdapter.CityItemHolder [all …]
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | BaseCardView.java | 111 public void onBind(T item, boolean selected) { in onBind() argument 112 setFocusAnimatedValue(selected ? SCALE_FACTOR_1F : SCALE_FACTOR_0F); in onBind() 206 protected void onFocusAnimationStart(boolean selected) { in onFocusAnimationStart() argument 208 setTextViewFocusedAlpha(selected ? 1f : 0f); in onFocusAnimationStart() 215 protected void onFocusAnimationEnd(boolean selected) { in onFocusAnimationEnd() argument 252 final boolean selected = targetAnimatedValue == SCALE_FACTOR_1F; in startFocusAnimation() 259 onFocusAnimationStart(selected); in startFocusAnimation() 265 onFocusAnimationEnd(selected); in startFocusAnimation()
|
/packages/apps/Gallery2/src/com/android/photos/ |
D | MultiChoiceManager.java | 274 SparseBooleanArray selected = mDelegate.getSelectedItemPositions(); in getPathsForSelectedItems() local 275 for (int i = 0; i < selected.size(); i++) { in getPathsForSelectedItems() 276 if (selected.valueAt(i)) { in getPathsForSelectedItems() 287 SparseBooleanArray selected = mDelegate.getSelectedItemPositions(); in getSelectedItem() local 288 for (int i = 0; i < selected.size(); i++) { in getSelectedItem() 289 if (selected.valueAt(i)) { in getSelectedItem() 290 return mDelegate.getItemAtPosition(selected.keyAt(i)); in getSelectedItem()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | MediaChooser.java | 71 protected void setSelected(final boolean selected) { in setSelected() argument 72 mSelected = selected; in setSelected() 73 if (selected) { in setSelected() 78 mTabButton.setSelected(selected); in setSelected() 79 mTabButton.setAlpha(selected ? 1 : 0.5f); in setSelected()
|
D | AudioMediaChooser.java | 109 protected void setSelected(final boolean selected) { in setSelected() argument 110 super.setSelected(selected); in setSelected() 111 if (selected && !OsUtil.hasRecordAudioPermission()) { in setSelected()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyboardBuilder.java | 601 boolean selected = false; in parseSwitchInternal() 607 selected |= parseCase(parser, row, selected ? true : skip); in parseSwitchInternal() 609 selected |= parseDefault(parser, row, selected ? true : skip); in parseSwitchInternal() 626 final boolean selected = parseCaseCondition(parser); in parseCase() 629 parseKeyboardContent(parser, selected ? skip : true); in parseCase() 632 parseRowContent(parser, row, selected ? skip : true); in parseCase() 634 return selected; in parseCase() 681 final boolean selected = keyboardLayoutSetMatched && keyboardLayoutSetElementMatched in parseCaseCondition() 725 selected ? "" : " skipped"); in parseCaseCondition() 728 return selected; in parseCaseCondition()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | CityModel.java | 108 final List<City> selected = new ArrayList<>(getSelectedCities()); in getAllCities() local 111 Collections.sort(selected, new City.NameComparator()); in getAllCities() 115 allCities.addAll(selected); in getAllCities() 142 final List<City> selected = new ArrayList<>(getSelectedCities()); in getUnselectedCities() local 143 final Set<City> selectedSet = Utils.newArraySet(selected); in getUnselectedCities()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | RadioButtonPreference.java | 87 public void setSelected(final boolean selected) { in setSelected() argument 88 if (selected == mIsSelected) { in setSelected() 91 mIsSelected = selected; in setSelected() 93 mRadioButton.setChecked(selected); in setSelected()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DirectoryFragment.java | 737 private void openDocuments(final Selection selected) { in openDocuments() argument 741 List<DocumentInfo> docs = mModel.getDocuments(selected); in openDocuments() 749 private void showChooserForDoc(final Selection selected) { in showChooserForDoc() argument 752 assert(selected.size() == 1); in showChooserForDoc() 754 DocumentInfo.fromDirectoryCursor(mModel.getItem(selected.iterator().next())); in showChooserForDoc() 758 private void transferDocuments(final Selection selected, @Nullable DocumentStack destination, in transferDocuments() argument 778 srcs = UrisSupplier.create(selected, mModel::getItemUri, clipStorage); in transferDocuments() 835 List<DocumentInfo> docs = mModel.getDocuments(selected); in transferDocuments() 869 private void renameDocuments(Selection selected) { in renameDocuments() argument 874 assert(selected.size() == 1); in renameDocuments() [all …]
|
D | ModelBackedDocumentsAdapter.java | 113 final boolean selected = mEnv.isSelected(mModelIds.get(position)); in onBindViewHolder() 114 holder.setSelected(selected, true); in onBindViewHolder() 130 boolean selected = mEnv.isSelected(modelId); in onBindViewHolder() 132 assert(!selected); in onBindViewHolder()
|
D | GridDocumentHolder.java | 74 public void setSelected(boolean selected, boolean animate) { in setSelected() argument 78 float checkAlpha = selected ? 1f : 0f; in setSelected() 88 assert(!selected); in setSelected() 92 super.setSelected(selected, animate); in setSelected()
|
D | ListDocumentHolder.java | 79 public void setSelected(boolean selected, boolean animate) { in setSelected() argument 83 float checkAlpha = selected ? 1f : 0f; in setSelected() 91 assert(!selected); in setSelected() 95 super.setSelected(selected, animate); in setSelected()
|
D | GridDirectoryHolder.java | 51 public void setSelected(boolean selected, boolean animate) { in setSelected() argument 52 super.setSelected(selected, animate); in setSelected() 53 float checkAlpha = selected ? 1f : 0f; in setSelected()
|
/packages/apps/Settings/src/com/android/settings/ |
D | SmsDefaultDialog.java | 184 int selected = getSelectedIndex(); in AppListAdapter() local 186 if (selected > 0) { in AppListAdapter() 187 Item item = mItems.remove(selected); in AppListAdapter() 189 selected = 0; in AppListAdapter() 191 mSelectedIndex = selected; in AppListAdapter()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | FolderSelectorAdapter.java | 96 Set<String> selected, int layout) { in FolderSelectorAdapter() argument 99 createFolderRows(folders, selected); in FolderSelectorAdapter() 110 protected void createFolderRows(Cursor folders, Set<String> selected) { in createFolderRows() argument 124 final boolean isSelected = selected != null in createFolderRows() 125 && selected.contains( in createFolderRows()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | SimSelectorAvatarRequest.java | 69 final int height, final int subColor, final boolean selected, final boolean incoming) { in renderSimAvatarInternal() argument 74 final int backgroundColor = selected ? subColor : Color.WHITE; in renderSimAvatarInternal() 75 final int textColor = selected ? subColor : Color.WHITE; in renderSimAvatarInternal() 76 final int simColor = selected ? Color.WHITE : subColor; in renderSimAvatarInternal()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
D | CategoryAdapter.java | 201 int selected = 0; // if nothing found, select "none" (first element) in reflectImagePreset() local 222 selected = i; in reflectImagePreset() 227 if (mSelectedPosition != selected) { in reflectImagePreset() 228 mSelectedPosition = selected; in reflectImagePreset()
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
D | LocalPhotoSource.java | 110 HashSet<Integer> selected = new HashSet<Integer>(count); in getExponentialIndice() local 111 while (selected.size() < count) { in getExponentialIndice() 113 if (row < total) selected.add(row); in getExponentialIndice() 117 for (int value : selected) { in getExponentialIndice()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ |
D | IngestService.java | 185 protected void importSelectedItems(SparseBooleanArray selected, Adapter adapter) { in importSelectedItems() argument 187 for (int i = 0; i < selected.size(); i++) { in importSelectedItems() 188 if (selected.valueAt(i)) { in importSelectedItems() 189 Object item = adapter.getItem(selected.keyAt(i)); in importSelectedItems()
|