Home
last modified time | relevance | path

Searched refs:Query (Results 1 – 25 of 73) sorted by relevance

123

/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/annotations/
DEnsureHasProfileOwner.kt27 import com.android.queryable.annotations.Query
66 val dpc: Query = Query(),
84 private fun ensureHasProfileOwner(dpc: Query): EnsureHasProfileOwner { in ensureHasProfileOwner()
93 private fun query(): Query { in query()
94 return HarrierRule::class.java.getAnnotation<Query>(Query::class.java) in query()
DEnsureHasWorkProfile.kt29 import com.android.queryable.annotations.Query;
74 val dpc: Query = Query(),
96 private fun ensureHasWorkProfile(dpc: Query): EnsureHasWorkProfile { in ensureHasWorkProfile()
105 private fun query(): Query { in query()
106 return HarrierRule::class.java.getAnnotation(Query::class.java)!! in query()
DMostRestrictiveCoexistenceTest.java24 import com.android.queryable.annotations.Query;
44 query = @Query(packageName = @StringQuery(
47 query = @Query(packageName = @StringQuery(
DEnsureHasDeviceOwner.java29 import com.android.queryable.annotations.Query;
105 Query dpc() default @Query(); in dpc() field
DMostImportantCoexistenceTest.java25 import com.android.queryable.annotations.Query;
46 query = @Query(packageName = @StringQuery(
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/
DQueryableBaseWithMatch.java21 import com.android.queryable.queries.Query;
28 …abstract class QueryableBaseWithMatch<E, F extends Query<E>> extends QueryableBase<F> implements Q…
DQueryableBase.java22 import com.android.queryable.queries.Query;
29 public abstract class QueryableBase<E extends Query<?>> implements Queryable, Parcelable {
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/queries/
DSetQueryHelper.java43 private final Set<Query<F>> mContainsByQuery;
45 private final Set<Query<F>> mDoesNotContainByQuery;
84 mContainsByQuery = (Set<Query<F>>) ParcelableUtils.readParcelableSet(in); in SetQueryHelper()
85 mDoesNotContainByQuery = (Set<Query<F>>) ParcelableUtils.readParcelableSet(in); in SetQueryHelper()
108 public E contains(Query<F>... objects) { in contains()
120 public E doesNotContain(Query<F>... objects) { in doesNotContain()
155 for (Query q : mContainsByQuery) { in isEmptyQuery()
161 for (Query q : mDoesNotContainByQuery) { in isEmptyQuery()
205 for (Query<F> containsAtLeast : mContainsByQuery) { in checkContainsAtLeast()
224 for (Query<F> doesNotContain : mDoesNotContainByQuery) { in checkDoesNotContain()
[all …]
DListQuery.java25 public interface ListQuery<E extends Queryable, F> extends Query<List<F>> {
37 E contains(Query<F>... objects); in contains()
51 E doesNotContain(Query<F>... objects); in doesNotContain()
DSetQuery.java27 public interface SetQuery<E extends Queryable, F> extends Query<Set<F>> {
43 E contains(Query<F>... objects); in contains()
57 E doesNotContain(Query<F>... objects); in doesNotContain()
DListQueryHelper.java41 private final List<Query<F>> mContainsByQuery = new ArrayList<>();
42 private final List<Query<F>> mDoesNotContainByQuery = new ArrayList<>();
90 public E contains(Query<F>... objects) { in contains()
102 public E doesNotContain(Query<F>... objects) { in doesNotContain()
143 for (Query q : mContainsByQuery) { in isEmptyQuery()
149 for (Query q : mDoesNotContainByQuery) { in isEmptyQuery()
189 for (Query<F> containsAtLeast : mContainsByQuery) { in checkContainsAtLeast()
208 for (Query<F> doesNotContain : mDoesNotContainByQuery) { in checkDoesNotContain()
217 private F findMatch(Query<F> query, List<F> values) { in findMatch()
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/annotations/
DEnsureTestAppInstalled.java23 import com.android.queryable.annotations.Query;
55 Query query() default @Query(); in query() field
DRequireRunOnWorkProfile.java27 import com.android.queryable.annotations.Query;
68 Query dpc() default @Query(); in dpc() field
DAdditionalQueryParameters.java22 import com.android.queryable.annotations.Query;
47 Query query(); in query()
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/
DHarrierRule.java19 import com.android.queryable.annotations.Query;
29 @Query
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/collections/
DQueryableSetQuery.java19 import com.android.queryable.queries.Query;
24 public interface QueryableSetQuery<E, F extends Query<E>, G extends QueryableSet<E, F, ?>> {
DQueryableSet.java19 import com.android.queryable.queries.Query;
26 public interface QueryableSet<E, F extends Query<E>, G extends QueryableSet<E, F, ?>> extends Set<E…
DAbstractQueryableSetQuery.java20 import com.android.queryable.queries.Query;
28 public abstract class AbstractQueryableSetQuery<E, F extends Query<E>, G extends QueryableSet<E, F,…
DQueryableHashSet.java19 import com.android.queryable.queries.Query;
29 public abstract class QueryableHashSet<E, F extends Query<E>, G extends QueryableSet<E, F, ?>> impl…
/cts/common/device-side/bedstead/metricsrecorder/src/main/java/com/android/bedstead/metricsrecorder/
DMetricQuery.java21 import com.android.queryable.queries.Query;
24 public interface MetricQuery<E extends Queryable> extends Query<EnterpriseMetricInfo> {
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/
DTestAppProviderTest.java31 import com.android.queryable.annotations.Query;
81 …public static Query query(StringQuery packageName, IntegerQuery minSdkVersion, IntegerQuery maxSdk… in query()
138 public Query build() { in build()
558 Query queryAnnotation = queryBuilder() in query_queryAnnotationSpecifiesPackageName_matches()
570 Query queryAnnotation = queryBuilder() in query_queryAnnotationSpecifiesTargetSdkVersion_matches()
582 Query queryAnnotation = queryBuilder() in query_queryAnnotationSpecifiesMaxSdkVersion_matches()
594 Query queryAnnotation = queryBuilder() in query_queryAnnotationSpecifiesMinSdkVersion_matches()
606 Query queryAnnotation = queryBuilder() in query_stringQueryAnnotationSpecifiesIsEqualTo_matches()
618 Query queryAnnotation = queryBuilder() in query_stringQueryAnnotationSpecifiesIsNotEqualTo_matches()
630 Query queryAnnotation = queryBuilder() in query_stringQueryAnnotationSpecifiesStartsWith_matches()
[all …]
/cts/tests/searchui/src/android/searchuiservice/cts/
DSearchUiManagerTest.java39 import android.app.search.Query;
139 Query query = new Query(QUERY_INPUT, QUERY_TIMESTAMP); in testQueryCtor()
184 ArgumentCaptor<Query> queryArg = ArgumentCaptor.forClass(Query.class); in testNotifyEvent()
199 Query query = SearchUiUtils.generateQuery(new Bundle()); in testQuery_realCallback()
211 Query query = SearchUiUtils.generateQuery(new Bundle()); in testQuery_mockCallback()
246 Query query = SearchUiUtils.generateQuery(extras); in testQuery_params()
251 ArgumentCaptor<Query> queryArg = ArgumentCaptor.forClass(Query.class); in testQuery_params()
258 Query expectedQuery = queryArg.getValue(); in testQuery_params()
DSearchUiUtils.java21 import android.app.search.Query;
105 static Query generateQuery(Bundle extras) { in generateQuery()
106 return new Query(QUERY_INPUT, QUERY_TIMESTAMP, extras); in generateQuery()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTestBase.java344 DownloadManager.Query query = new DownloadManager.Query(); in clearDownloads()
381 DownloadManager.Query query = new DownloadManager.Query(); in getTotalNumberDownloads()
394 DownloadManager.Query query = new DownloadManager.Query().setFilterById(downloadId); in assertDownloadQueryableById()
410 … DownloadManager.Query query = new DownloadManager.Query().setFilterByStatus(status); in assertDownloadQueryableByStatus()
430 cursor = mDownloadManager.query(new DownloadManager.Query().setFilterById(id)); in assertSuccessfulDownload()
454 DownloadManager.Query query = new DownloadManager.Query(); in assertRemoveDownload()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DPasswordTest.kt51 import com.android.queryable.annotations.Query in <lambda>()
272 query = Query(targetSdkVersion = IntegerQuery(isLessThan = R)) in <lambda>()
318 query = Query(targetSdkVersion = IntegerQuery(isLessThan = R)) in <lambda>()
364 query = Query(targetSdkVersion = IntegerQuery(isLessThan = R)) in <lambda>()
411 query = Query(targetSdkVersion = IntegerQuery(isLessThan = R)) in <lambda>()
458 query = Query(targetSdkVersion = IntegerQuery(isLessThan = R)) in <lambda>()
505 query = Query(targetSdkVersion = IntegerQuery(isLessThan = R)) in <lambda>()
552 query = Query(targetSdkVersion = IntegerQuery(isLessThan = R)) in <lambda>()
600 query = Query(targetSdkVersion = IntegerQuery(isGreaterThan = R)) in <lambda>()
635 query = Query(targetSdkVersion = IntegerQuery(isGreaterThan = R)) in <lambda>()
[all …]

123