Home
last modified time | relevance | path

Searched refs:selected (Results 1 – 25 of 93) sorted by relevance

1234

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropObject.java131 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/Gallery2/src/com/android/gallery3d/ui/
DSelectionManager.java49 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 …]
DActionModeHandler.java272 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/modules/IPsec/src/java/android/net/ipsec/ike/
DSaProposal.java254 static boolean isTransformSelectedFrom(Transform[] selected, Transform[] selectFrom) { in isTransformSelectedFrom() argument
257 if ((selected.length > 1) || (selected.length == 0) != (selectFrom.length == 0)) { in isTransformSelectedFrom()
261 if (selected.length == 0) return true; in isTransformSelectedFrom()
263 return Arrays.asList(selectFrom).contains(selected[0]); in isTransformSelectedFrom()
276 IntegrityTransform[] selected, IntegrityTransform[] selectFrom) { in isIntegrityTransformSelectedFrom() argument
277 if (selected.length == 0) { in isIntegrityTransformSelectedFrom()
278 selected = new IntegrityTransform[] {new IntegrityTransform(INTEGRITY_ALGORITHM_NONE)}; in isIntegrityTransformSelectedFrom()
284 return isTransformSelectedFrom(selected, selectFrom); in isIntegrityTransformSelectedFrom()
295 DhGroupTransform[] selected, DhGroupTransform[] selectFrom) { in isDhGroupTransformSelectedFrom() argument
296 if (selected.length == 0) { in isDhGroupTransformSelectedFrom()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DImportancePreferenceTest.java73 Drawable selected = mock(Drawable.class); in onBindViewHolder_nonConfigurable() local
74 preference.selectedBackground = selected; in onBindViewHolder_nonConfigurable()
84 assertThat(holder.itemView.findViewById(R.id.alert).getBackground()).isEqualTo(selected); in onBindViewHolder_nonConfigurable()
95 assertThat(holder.itemView.findViewById(R.id.silence).getBackground()).isEqualTo(selected); in onBindViewHolder_nonConfigurable()
105 Drawable selected = mock(Drawable.class); in onBindViewHolder_selectButtonAndText() local
106 preference.selectedBackground = selected; in onBindViewHolder_selectButtonAndText()
114 assertThat(holder.itemView.findViewById(R.id.alert).getBackground()).isEqualTo(selected); in onBindViewHolder_selectButtonAndText()
128 Drawable selected = mock(Drawable.class); in onClick_changesUICallsListener() local
129 preference.selectedBackground = selected; in onClick_changesUICallsListener()
141 assertThat(holder.itemView.findViewById(R.id.silence).getBackground()).isEqualTo(selected); in onClick_changesUICallsListener()
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
DCitySelectionActivity.java355 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 = (List<City>) 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 …]
DCitySelectionActivity.kt310 val selected = variableView.findViewById<View>(R.id.city_onoff) as CheckBox in getView() constant
311 variableView.tag = CityItemHolder(index, name, time, selected) in getView()
316 holder.selected.tag = city in getView()
317 holder.selected.isChecked = mUserSelectedCities.contains(city) in getView()
318 holder.selected.contentDescription = city.name in getView()
319 holder.selected.setOnCheckedChangeListener(this) in getView()
446 val selected = DataModel.dataModel.selectedCities as List<City> in refresh() constant
448 mUserSelectedCities.addAll(selected) in refresh()
449 mOriginalUserSelectionCount = selected.size in refresh()
546 val selected: CheckBox constant in com.android.deskclock.worldclock.CitySelectionActivity.CityAdapter.CityItemHolder
/packages/apps/TV/src/com/android/tv/menu/
DBaseCardView.java110 public void onBind(T item, boolean selected) { in onBind() argument
111 setFocusAnimatedValue(selected ? SCALE_FACTOR_1F : SCALE_FACTOR_0F); in onBind()
204 protected void onFocusAnimationStart(boolean selected) { in onFocusAnimationStart() argument
206 setTextViewFocusedAlpha(selected ? 1f : 0f); in onFocusAnimationStart()
211 protected void onFocusAnimationEnd(boolean selected) { in onFocusAnimationEnd() argument
252 final boolean selected = targetAnimatedValue == SCALE_FACTOR_1F; in startFocusAnimation()
260 onFocusAnimationStart(selected); in startFocusAnimation()
266 onFocusAnimationEnd(selected); in startFocusAnimation()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DMediaChooser.java72 protected void setSelected(final boolean selected) { in setSelected() argument
73 mSelected = selected; in setSelected()
74 if (selected) { in setSelected()
79 mTabButton.setSelected(selected); in setSelected()
80 mTabButton.setAlpha(selected ? 1 : 0.5f); in setSelected()
/packages/apps/Gallery2/src/com/android/photos/
DMultiChoiceManager.java274 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/DeskClock/src/com/android/deskclock/data/
DCityModel.kt98 val selected: List<City> = selectedCities.toMutableList() constant in com.android.deskclock.data.CityModel
101 Collections.sort(selected, NameComparator())
105 allCities.addAll(selected)
134 val selected: List<City> = selectedCities.toMutableList() constant in com.android.deskclock.data.CityModel
135 val selectedSet: Set<City> = Utils.newArraySet(selected)
DCityModel.java108 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/
DRadioButtonPreference.java87 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/tests/functional/com/android/documentsui/
DInternalStorageUiTest.java93 boolean selected = false; in deleteTestFiles()
98 selected = true; in deleteTestFiles()
103 selected = true; in deleteTestFiles()
105 if (selected) { in deleteTestFiles()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardBuilder.java601 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/DocumentsUI/src/com/android/documentsui/dirlist/
DGridPhotoHolder.java62 public void setSelected(boolean selected, boolean animate) { in setSelected() argument
66 float checkAlpha = selected ? 1f : 0f; in setSelected()
75 assert (!selected); in setSelected()
79 super.setSelected(selected, animate); in setSelected()
DDirectoryFragment.java802 private void openDocuments(final Selection selected) { in openDocuments() argument
806 List<DocumentInfo> docs = mModel.getDocuments(selected); in openDocuments()
814 private void showChooserForDoc(final Selection<String> selected) { in showChooserForDoc() argument
817 assert selected.size() == 1; in showChooserForDoc()
819 DocumentInfo.fromDirectoryCursor(mModel.getItem(selected.iterator().next())); in showChooserForDoc()
824 final Selection<String> selected, @Nullable DocumentStack destination, in transferDocuments() argument
844 srcs = UrisSupplier.create(selected, mModel::getItemUri, clipStorage); in transferDocuments()
901 List<DocumentInfo> docs = mModel.getDocuments(selected); in transferDocuments()
935 private void renameDocuments(Selection selected) { in renameDocuments() argument
940 assert selected.size() == 1; in renameDocuments()
[all …]
DModelBackedDocumentsAdapter.java119 final boolean selected = mEnv.isSelected(mModelIds.get(position)); in onBindViewHolder()
120 holder.setSelected(selected, true); in onBindViewHolder()
136 boolean selected = mEnv.isSelected(modelId); in onBindViewHolder()
138 assert(!selected); in onBindViewHolder()
DGridDocumentHolder.java75 public void setSelected(boolean selected, boolean animate) { in setSelected() argument
79 float checkAlpha = selected ? 1f : 0f; in setSelected()
89 assert(!selected); in setSelected()
93 super.setSelected(selected, animate); in setSelected()
DListDocumentHolder.java83 public void setSelected(boolean selected, boolean animate) { in setSelected() argument
87 float checkAlpha = selected ? 1f : 0f; in setSelected()
95 assert(!selected); in setSelected()
99 super.setSelected(selected, animate); in setSelected()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DSmsDefaultDialog.java184 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/Messaging/src/com/android/messaging/datamodel/media/
DSimSelectorAvatarRequest.java69 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/PermissionController/src/com/android/packageinstaller/role/ui/auto/
DAutoDefaultAppPreference.java49 CharSequence selected = getContext().getString(R.string.car_default_app_selected); in onBindViewHolder() local
51 selected = getContext().getString(R.string.car_default_app_selected_with_info, in onBindViewHolder()
54 summaryView.setText(selected); in onBindViewHolder()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DLocalPhotoSource.java110 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/filtershow/category/
DCategoryAdapter.java201 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()

1234