/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/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/Settings/tests/robotests/src/com/android/settings/notification/app/ |
D | ImportancePreferenceTest.java | 71 Drawable selected = mock(Drawable.class); in onBindViewHolder_nonConfigurable() local 72 preference.selectedBackground = selected; in onBindViewHolder_nonConfigurable() 82 assertThat(holder.itemView.findViewById(R.id.alert).getBackground()).isEqualTo(selected); in onBindViewHolder_nonConfigurable() 93 assertThat(holder.itemView.findViewById(R.id.silence).getBackground()).isEqualTo(selected); in onBindViewHolder_nonConfigurable() 103 Drawable selected = mock(Drawable.class); in onBindViewHolder_selectButtonAndText() local 104 preference.selectedBackground = selected; in onBindViewHolder_selectButtonAndText() 112 assertThat(holder.itemView.findViewById(R.id.alert).getBackground()).isEqualTo(selected); in onBindViewHolder_selectButtonAndText() 126 Drawable selected = mock(Drawable.class); in onClick_changesUICallsListener() local 127 preference.selectedBackground = selected; in onClick_changesUICallsListener() 139 assertThat(holder.itemView.findViewById(R.id.silence).getBackground()).isEqualTo(selected); in onClick_changesUICallsListener()
|
/packages/apps/Settings/src/com/android/settings/notification/app/ |
D | BubblePreference.java | 144 final int selected = (int) v.getTag(); in onClick() local 145 callChangeListener(selected); in onClick() 147 mBubbleAllButton.setSelected(mContext, selected == BUBBLE_PREFERENCE_ALL); in onClick() 148 mBubbleSelectedButton.setSelected(mContext, selected == BUBBLE_PREFERENCE_SELECTED); in onClick() 149 mBubbleNoneButton.setSelected(mContext, selected == BUBBLE_PREFERENCE_NONE); in onClick() 165 void setSelected(Context context, boolean selected) { in setSelected() argument 166 mView.setBackground(mContext.getDrawable(selected in setSelected() 169 mView.setSelected(selected); in setSelected() 171 ColorStateList stateList = selected in setSelected()
|
D | ConversationPriorityPreference.java | 164 void setSelected(View view, boolean selected) { in setSelected() argument 172 icon.setImageTintList(selected ? colorAccent : colorNormal); in setSelected() 173 label.setTextColor(selected ? colorAccent : colorNormal); in setSelected() 174 summary.setVisibility(selected ? VISIBLE : GONE); in setSelected() 176 view.setBackground(mContext.getDrawable(selected in setSelected() 183 view.setSelected(selected); in setSelected()
|
/packages/modules/IPsec/src/java/android/net/ipsec/ike/ |
D | SaProposal.java | 348 static boolean isTransformSelectedFrom(Transform[] selected, Transform[] selectFrom) { in isTransformSelectedFrom() argument 351 if ((selected.length > 1) || (selected.length == 0) != (selectFrom.length == 0)) { in isTransformSelectedFrom() 355 if (selected.length == 0) return true; in isTransformSelectedFrom() 357 return Arrays.asList(selectFrom).contains(selected[0]); in isTransformSelectedFrom() 370 IntegrityTransform[] selected, IntegrityTransform[] selectFrom) { in isIntegrityTransformSelectedFrom() argument 371 if (selected.length == 0) { in isIntegrityTransformSelectedFrom() 372 selected = new IntegrityTransform[] {new IntegrityTransform(INTEGRITY_ALGORITHM_NONE)}; in isIntegrityTransformSelectedFrom() 378 return isTransformSelectedFrom(selected, selectFrom); in isIntegrityTransformSelectedFrom() 389 DhGroupTransform[] selected, DhGroupTransform[] selectFrom) { in isDhGroupTransformSelectedFrom() argument 390 if (selected.length == 0) { in isDhGroupTransformSelectedFrom() [all …]
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | BaseCardView.java | 110 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/DeskClock/src/com/android/deskclock/worldclock/ |
D | CitySelectionActivity.kt | 309 val selected = variableView.findViewById<View>(R.id.city_onoff) as CheckBox in getView() constant 310 variableView.tag = CityItemHolder(index, name, time, selected) in getView() 315 holder.selected.tag = city in getView() 316 holder.selected.isChecked = mUserSelectedCities.contains(city) in getView() 317 holder.selected.contentDescription = city.name in getView() 318 holder.selected.setOnCheckedChangeListener(this) in getView() 445 val selected = DataModel.dataModel.selectedCities as List<City> in refresh() constant 447 mUserSelectedCities.addAll(selected) in refresh() 448 mOriginalUserSelectionCount = selected.size in refresh() 545 val selected: CheckBox constant in com.android.deskclock.worldclock.CitySelectionActivity.CityAdapter.CityItemHolder
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | MediaChooser.java | 72 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()
|
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/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/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/DeskClock/src/com/android/deskclock/data/ |
D | CityModel.kt | 98 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)
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | InternalStorageUiTest.java | 85 boolean selected = false; in deleteTestFiles() 90 selected = true; in deleteTestFiles() 95 selected = true; in deleteTestFiles() 97 if (selected) { in deleteTestFiles()
|
/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/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/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DirectoryFragment.java | 991 private void openDocuments(final Selection selected) { in openDocuments() argument 994 if (selected.isEmpty()) { in openDocuments() 999 List<DocumentInfo> docs = mModel.getDocuments(selected); in openDocuments() 1007 private void showChooserForDoc(final Selection<String> selected) { in showChooserForDoc() argument 1010 if (selected.isEmpty()) { in showChooserForDoc() 1014 assert selected.size() == 1; in showChooserForDoc() 1016 DocumentInfo.fromDirectoryCursor(mModel.getItem(selected.iterator().next())); in showChooserForDoc() 1021 final Selection<String> selected, @Nullable DocumentStack destination, in transferDocuments() argument 1023 if (selected.isEmpty()) { in transferDocuments() 1045 srcs = UrisSupplier.create(selected, mModel::getItemUri, clipStorage); in transferDocuments() [all …]
|
D | GridPhotoHolder.java | 66 public void setSelected(boolean selected, boolean animate) { in setSelected() argument 70 float checkAlpha = selected ? 1f : 0f; in setSelected() 79 assert (!selected); in setSelected() 83 super.setSelected(selected, animate); in setSelected()
|
D | ModelBackedDocumentsAdapter.java | 119 final boolean selected = mEnv.isSelected(mModelIds.get(position)); in onBindViewHolder() 120 holder.setSelected(selected, true); in onBindViewHolder() 137 boolean selected = mEnv.isSelected(modelId); in onBindViewHolder() 139 assert(!selected); in onBindViewHolder()
|
D | GridDocumentHolder.java | 77 public void setSelected(boolean selected, boolean animate) { in setSelected() argument 81 float checkAlpha = selected ? 1f : 0f; in setSelected() 91 assert(!selected); in setSelected() 94 super.setSelected(selected, animate); in setSelected()
|
D | GridDirectoryHolder.java | 58 public void setSelected(boolean selected, boolean animate) { in setSelected() argument 59 super.setSelected(selected, animate); in setSelected() 60 float checkAlpha = selected ? 1f : 0f; in setSelected()
|
/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/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | PieItem.java | 41 private boolean selected; field in PieItem 105 selected = s; in setSelected() 109 return selected; in isSelected()
|