Home
last modified time | relevance | path

Searched refs:dimension (Results 1 – 25 of 35) sorted by relevance

12

/packages/apps/Gallery2/jni/filters/
Dkmeans.h26 inline void sum(T values[], int len, int dimension, int stride, N dst[]) { in sum() argument
29 for (x = 0; x < dimension; x++) { in sum()
33 for (y = 0; y < dimension; y++) { in sum()
40 inline void set(T val1[], N val2[], int dimension) { in set() argument
42 for (x = 0; x < dimension; x++) { in set()
48 inline void add(T val[], N dst[], int dimension) { in add() argument
50 for (x = 0; x < dimension; x++) { in add()
56 inline void divide(T dst[], N divisor, int dimension) { in divide() argument
61 for (x = 0; x < dimension; x++) { in divide()
71 inline N euclideanDist(T val1[], T val2[], int dimension) { in euclideanDist() argument
[all …]
Dkmeans.cc50 int dimension = 3; in JNIFUNCF() local
58 runKMeans<unsigned char, int>(k, finalCentroids, small_ds, len, dimension, in JNIFUNCF()
68 dimension, stride, iterations, finalCentroids); in JNIFUNCF()
73 applyCentroids<unsigned char, int>(k, nextCentroids, dst, len, dimension, stride); in JNIFUNCF()
Dtinyplanet.cc87 inline float wrap(float value, float dimension) { in wrap() argument
88 return value - (dimension * floor(value/dimension)); in wrap()
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortModel.java176 SortDimension dimension = mDimensions.get(dimensionId); in sortByUser() local
177 if (dimension == null) { in sortByUser()
181 sortByDimension(dimension, direction); in sortByUser()
184 mMetricRecorder.accept(dimension); in sortByUser()
270 final SortDimension dimension = getDimensionById(id); in addQuerySortArgs() local
271 switch (dimension.getSortDirection()) { in addQuerySortArgs()
284 "Unexpected sort direction: " + dimension.getSortDirection()); in addQuerySortArgs()
321 final SortDimension dimension = getDimensionById(id); in getDocumentSortQuery() local
323 switch (dimension.getSortDirection()) { in getDocumentSortQuery()
332 "Unexpected sort direction: " + dimension.getSortDirection()); in getDocumentSortQuery()
[all …]
DSortListFragment.java57 SortDimension dimension = mModel.getDimensionAt(i); in setupSortingList() local
58 if (dimension.getSortCapability() != SortDimension.SORT_CAPABILITY_NONE) { in setupSortingList()
59 switch (dimension.getId()) { in setupSortingList()
62 addBothDirectionDimension(dimension, true); in setupSortingList()
66 addBothDirectionDimension(dimension, false); in setupSortingList()
69 mSortingList.add(new SortItem(dimension)); in setupSortingList()
87 …public static @StringRes int getSheetLabelId(SortDimension dimension, @SortDirection int direction… in getSheetLabelId() argument
89 switch (dimension.getId()) { in getSheetLabelId()
103 return dimension.getLabelId(); in getSheetLabelId()
167 SortItem(SortDimension dimension) { in SortItem() argument
[all …]
DHeaderCell.java61 void onBind(SortDimension dimension) { in onBind() argument
62 setVisibility(dimension.getVisibility()); in onBind()
64 if (dimension.getVisibility() == View.VISIBLE) { in onBind()
66 label.setText(dimension.getLabelId()); in onBind()
67 switch (dimension.getDataType()) { in onBind()
76 "Unknown column data type: " + dimension.getDataType() + "."); in onBind()
79 if (mCurDirection != dimension.getSortDirection()) { in onBind()
81 switch (dimension.getSortDirection()) { in onBind()
95 "Unknown sort direction: " + dimension.getSortDirection() + "."); in onBind()
98 mCurDirection = dimension.getSortDirection(); in onBind()
DTableHeaderController.java83 SortDimension dimension = mModel.getDimensionById(id); in bindCell() local
85 cell.setTag(dimension); in bindCell()
87 cell.onBind(dimension); in bindCell()
88 if (dimension.getVisibility() == View.VISIBLE in bindCell()
89 && dimension.getSortCapability() != SortDimension.SORT_CAPABILITY_NONE) { in bindCell()
97 SortDimension dimension = (SortDimension) v.getTag(); in onCellClicked() local
99 mModel.sortByUser(dimension.getId(), dimension.getNextDirection()); in onCellClicked()
DSortingCursorWrapper.java41 Cursor cursor, SortDimension dimension, Lookup<String, String> fileTypeLookup) { in SortingCursorWrapper() argument
51 final @SortDimensionId int id = dimension.getId(); in SortingCursorWrapper()
94 binarySort(stringValues, isDirs, mPosition, ids, dimension.getSortDirection()); in SortingCursorWrapper()
98 binarySort(longValues, isDirs, mPosition, ids, dimension.getSortDirection()); in SortingCursorWrapper()
DSortDimension.java252 SortDimension dimension = new SortDimension( in build() local
254 dimension.mVisibility = mVisibility; in build()
255 return dimension; in build()
DSortController.java68 sortModel.setMetricRecorder((SortDimension dimension) -> { in create() argument
70 switch (dimension.getId()) { in create()
/packages/apps/Camera2/src/com/android/camera/data/
DSessionItem.java58 Size dimension = getSessionSize(uri); in create() local
59 if (dimension == null) { in create()
62 return Optional.of(new SessionItem(context, uri, dimension)); in create()
65 protected SessionItem(Context context, Uri uri, Size dimension) { in SessionItem() argument
76 .withDimensions(dimension) in SessionItem()
144 Size dimension = getSessionSize(mData.getUri()); in refresh() local
145 if (dimension == null) { in refresh()
151 .withDimensions(dimension) in refresh()
/packages/apps/Contacts/src/com/android/contacts/widget/
DFloatingActionButtonController.java153 public void resize(int dimension, boolean animate) { in resize() argument
155 AnimUtils.changeDimensions(mFloatingActionButtonContainer, dimension, dimension); in resize()
157 mFloatingActionButtonContainer.getLayoutParams().width = dimension; in resize()
158 mFloatingActionButtonContainer.getLayoutParams().height = dimension; in resize()
/packages/apps/Launcher3/
Dbuild.gradle48 dimension "app"
54 dimension "app"
60 dimension "recents"
66 dimension "recents"
72 dimension "recents"
/packages/apps/Dialer/java/com/android/incallui/autoresizetext/
DAutoResizeTextView.java225 float dimension = TypedValue.applyDimension(resizeStepUnit, sizeToTry, displayMetrics); in binarySearchSizes() local
226 if (suggestedSizeFitsInSpace(dimension, availableSpace)) { in binarySearchSizes()
237 private float convertToResizeStepUnits(float dimension) { in convertToResizeStepUnits() argument
241 return dimension * multiplier; in convertToResizeStepUnits()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DResourceUtils.java229 public static boolean isValidDimensionPixelSize(final int dimension) { in isValidDimensionPixelSize() argument
230 return dimension > 0; in isValidDimensionPixelSize()
234 public static boolean isValidDimensionPixelOffset(final int dimension) { in isValidDimensionPixelOffset() argument
235 return dimension >= 0; in isValidDimensionPixelOffset()
/packages/apps/Camera2/jni/
Dtinyplanet.cc88 inline float wrap(float value, float dimension) { in wrap() argument
89 return value - (dimension * floor(value/dimension)); in wrap()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
DBipPixel.java210 protected static boolean isDimensionInvalid(int dimension) { in isDimensionInvalid() argument
211 return dimension < 0 || dimension > PIXEL_MAX; in isDimensionInvalid()
/packages/apps/Messaging/tools/messagegen/
Dlistimages18 dimension=`identify -format "%w %h" $file`
20 echo "$file $dimension $size"
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/
DSortModelTest.java97 for (SortDimension dimension : DIMENSIONS) { in testDimensionSame_getDimensionById()
98 assertSame(dimension, mModel.getDimensionById(dimension.getId())); in testDimensionSame_getDimensionById()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DSortBot.java111 SortDimension dimension = mSortModel.getDimensionById(id); in sortByMenu() local
112 @StringRes int labelRes = SortListFragment.getSheetLabelId(dimension, direction); in sortByMenu()
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DPsipData.java658 public RegionalRating(int dimension, int rating) { in RegionalRating() argument
659 mDimension = dimension; in RegionalRating()
DSectionParser.java1359 int dimension = index.getDimension(); in getUsRating() local
1361 switch (dimension) { in getUsRating()
1376 subratings.add(RATING_REGION_TABLE_US_TV_SUBRATING[dimension - 1]); in getUsRating()
1387 subratings.add(RATING_REGION_TABLE_US_TV_SUBRATING[dimension - 1]); in getUsRating()
/packages/apps/Dialer/java/com/android/dialer/contactphoto/
DContactPhotoManagerImpl.java261 final int dimension = Math.min(height, width); in inflateBitmap() local
262 bitmap = ThumbnailUtils.extractThumbnail(bitmap, dimension, dimension); in inflateBitmap()
/packages/apps/WallpaperPicker2/
Dbuild.gradle35 dimension "default"
/packages/apps/Contacts/src/com/android/contacts/
DContactPhotoManager.java1047 final int dimension = Math.min(height, width); in inflateBitmap() local
1048 bitmap = ThumbnailUtils.extractThumbnail(bitmap, dimension, dimension); in inflateBitmap()

12