Home
last modified time | relevance | path

Searched refs:isAscending (Results 1 – 13 of 13) sorted by relevance

/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/
DPageTokenWrapperTest.java40 boolean isAscending = false; in of_createInstance()
43 PageTokenWrapper wrapper = PageTokenWrapper.of(isAscending, timeMillis, offset); in of_createInstance()
45 assertThat(wrapper.isAscending()).isEqualTo(isAscending); in of_createInstance()
54 boolean isAscending = true; in of_offsetTooLarge_setToMax()
56 PageTokenWrapper.of(isAscending, /* timeMillis= */ 0, (int) MAX_ALLOWED_OFFSET + 1); in of_offsetTooLarge_setToMax()
62 boolean isAscending = true; in of_invalidArgument_throws()
70 isAscending, /* timeMillis= */ -1, /* offset= */ 0)); in of_invalidArgument_throws()
78 isAscending, /* timeMillis= */ 0, /* offset= */ -1)); in of_invalidArgument_throws()
86 isAscending, MAX_ALLOWED_TIME_MILLIS + 1, /* offset= */ 0)); in of_invalidArgument_throws()
93 assertThat(wrapper.isAscending()).isTrue(); in ofAscending_timestampNotSet()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/
DPageTokenWrapper.java53 public boolean isAscending() { in isAscending() method in PageTokenWrapper
86 public static PageTokenWrapper of(boolean isAscending, long timeMillis, int offset) { in of() argument
91 return new PageTokenWrapper(isAscending, timeMillis, boundedOffset); in of()
98 public static PageTokenWrapper ofAscending(boolean isAscending) { in ofAscending() argument
99 return new PageTokenWrapper(isAscending); in ofAscending()
195 private PageTokenWrapper(boolean isAscending, long timeMillis, int offset) { in PageTokenWrapper() argument
196 this.mIsAscending = isAscending; in PageTokenWrapper()
203 private PageTokenWrapper(boolean isAscending) { in PageTokenWrapper() argument
204 this.mIsAscending = isAscending; in PageTokenWrapper()
DReadRecordsRequestUsingFilters.java65 mAscending = PageTokenWrapper.from(pageToken, ascending).isAscending(); in ReadRecordsRequestUsingFilters()
95 public boolean isAscending() { in isAscending() method in ReadRecordsRequestUsingFilters
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DRecordHelperTest.java137 boolean isAscending = false; in getNextInternalRecordsPageAndToken_zeroOffsetDesc_correctResults()
154 PageTokenWrapper.of(isAscending, expectedTimestamp, expectedOffset); in getNextInternalRecordsPageAndToken_zeroOffsetDesc_correctResults()
157 new OrderByClause().addOrderByClause(helper.getStartTimeColumnName(), isAscending); in getNextInternalRecordsPageAndToken_zeroOffsetDesc_correctResults()
165 cursor, pageSize, PageTokenWrapper.ofAscending(isAscending)); in getNextInternalRecordsPageAndToken_zeroOffsetDesc_correctResults()
193 boolean isAscending = true; in getNextInternalRecordsPageAndToken_sameStartTimeAsc_correctResults()
232 PageTokenWrapper.of(isAscending, expectedTimestamp, expectedOffset); in getNextInternalRecordsPageAndToken_sameStartTimeAsc_correctResults()
249 cursor, pageSize, PageTokenWrapper.ofAscending(isAscending)); in getNextInternalRecordsPageAndToken_sameStartTimeAsc_correctResults()
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortListFragment.java94 boolean isAscending = direction == SortDimension.SORT_DIRECTION_ASCENDING; in getSheetLabelId()
97 return isAscending ? R.string.sort_dimension_name_ascending : in getSheetLabelId()
100 return isAscending ? R.string.sort_dimension_date_ascending : in getSheetLabelId()
103 return isAscending ? R.string.sort_dimension_file_type_ascending : in getSheetLabelId()
106 return isAscending ? R.string.sort_dimension_size_ascending : in getSheetLabelId()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/utils/
DOrderByClause.java35 public OrderByClause addOrderByClause(String columnName, boolean isAscending) { in addOrderByClause() argument
39 mOrderList.add(new Pair<>(columnName, isAscending)); in addOrderByClause()
/packages/modules/HealthFitness/framework/java/android/health/connect/aidl/
DReadRecordsRequestParcel.java114 mAscending = request.isAscending(); in ReadRecordsRequestParcel()
149 public boolean isAscending() { in isAscending() method in ReadRecordsRequestParcel
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DRecordHelper.java530 PageTokenWrapper.of(prevPageToken.isAscending(), currentStartTime, offset); in getNextInternalRecordsPageAndToken()
693 PageTokenWrapper.from(request.getPageToken(), request.isAscending()).offset(); in getLimitSize()
727 PageTokenWrapper.from(request.getPageToken(), request.isAscending()); in getReadTableWhereClause()
730 if (pageToken.isAscending()) { in getReadTableWhereClause()
813 PageTokenWrapper.from(request.getPageToken(), request.isAscending()); in getOrderByClause()
815 .addOrderByClause(getStartTimeColumnName(), pageToken.isAscending()) in getOrderByClause()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/entries/api/
DLoadEntriesHelperUseCaseTest.kt269 assertThat(bodyWaterMassRequestCaptor.value.isAscending).isFalse() in <lambda>()
288 assertThat(bodyTempRequestCaptor.value.isAscending).isFalse() in <lambda>()
311 assertThat(stepsRequestCaptor.value.isAscending).isFalse() in <lambda>()
328 assertThat(menstruationRequestCaptor.value.isAscending).isFalse() in <lambda>()
345 assertThat(weightRequestCaptor.value.isAscending).isFalse() in <lambda>()
360 assertThat(stepsRequestCaptor.value.isAscending).isFalse() in <lambda>()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/request/
DReadTransactionRequest.java72 mPageToken = PageTokenWrapper.from(request.getPageToken(), request.isAscending()); in ReadTransactionRequest()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DStepsRecordTest.java270 assertThat(requestUsingFilters.isAscending()).isFalse(); in testReadStepsRecordUsingFilters_dataFilter_incorrect()
343 assertThat(requestUsingFilters.isAscending()).isTrue(); in testReadStepsRecordUsingFilters_withPageToken()
DHeartRateRecordTest.java195 assertThat(requestUsingFilters.isAscending()).isTrue(); in testReadHeartRateRecordUsingFilters_timeFilter()
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt244 method public boolean isAscending();