Searched refs:queryBuilder (Results 1 – 7 of 7) sorted by relevance
265 static QueryBuilder queryBuilder() { in queryBuilder() method in TestAppProviderTest558 Query queryAnnotation = queryBuilder() in query_queryAnnotationSpecifiesPackageName_matches()562 TestAppQueryBuilder queryBuilder = mTestAppProvider.query(queryAnnotation); in query_queryAnnotationSpecifiesPackageName_matches() local564 assertThat(queryBuilder.mPackageName.matches(STRING_VALUE)).isTrue(); in query_queryAnnotationSpecifiesPackageName_matches()565 assertThat(queryBuilder.mPackageName.matches(DIFFERENT_STRING_VALUE)).isFalse(); in query_queryAnnotationSpecifiesPackageName_matches()570 Query queryAnnotation = queryBuilder() in query_queryAnnotationSpecifiesTargetSdkVersion_matches()574 TestAppQueryBuilder queryBuilder = mTestAppProvider.query(queryAnnotation); in query_queryAnnotationSpecifiesTargetSdkVersion_matches() local576 assertThat(queryBuilder.mTargetSdkVersion.matches(INTEGER_VALUE)).isTrue(); in query_queryAnnotationSpecifiesTargetSdkVersion_matches()577 assertThat(queryBuilder.mTargetSdkVersion.matches(HIGHER_INTEGER_VALUE)).isFalse(); in query_queryAnnotationSpecifiesTargetSdkVersion_matches()582 Query queryAnnotation = queryBuilder() in query_queryAnnotationSpecifiesMaxSdkVersion_matches()[all …]
39 assertThrows(IllegalStateException.class, () -> TestAppQueryBuilder.queryBuilder().get()); in get_emptyQueryBuilder_throwsException()44 TestAppQueryBuilder b = TestAppQueryBuilder.queryBuilder(); in isEmptyQuery_isEmpty_returnsTrue()51 TestAppQueryBuilder b = TestAppQueryBuilder.queryBuilder(); in isEmptyQuery_hasPackageNameQuery_returnsFalse()59 TestAppQueryBuilder b = TestAppQueryBuilder.queryBuilder(); in isEmptyQuery_hasLabelQuery_returnsFalse()67 TestAppQueryBuilder b = TestAppQueryBuilder.queryBuilder(); in isEmptyQuery_hasMetadata_returnsFalse()75 TestAppQueryBuilder b = TestAppQueryBuilder.queryBuilder(); in isEmptyQuery_hasMinSdkVersion_returnsFalse()83 TestAppQueryBuilder b = TestAppQueryBuilder.queryBuilder(); in isEmptyQuery_hasMaxSdkVersion_returnsFalse()91 TestAppQueryBuilder b = TestAppQueryBuilder.queryBuilder(); in isEmptyQuery_hasTargetSdkVersion_returnsFalse()99 TestAppQueryBuilder b = TestAppQueryBuilder.queryBuilder(); in isEmptyQuery_hasActivities_returnsFalse()107 TestAppQueryBuilder b = TestAppQueryBuilder.queryBuilder(); in isEmptyQuery_hasServices_returnsFalse()[all …]
119 TestAppActivitiesQueryBuilder queryBuilder = sTestAppInstance.activities().query(); in queryBuilderIsEmpty_isEmpty_returnsTrue() local121 assertThat(queryBuilder.isEmptyQuery()).isTrue(); in queryBuilderIsEmpty_isEmpty_returnsTrue()126 TestAppActivitiesQueryBuilder queryBuilder = sTestAppInstance.activities().query(); in queryBuilderIsEmpty_hasActivityQuery_returnsFalse() local128 queryBuilder.whereActivity().activityClass().className().isNull(); in queryBuilderIsEmpty_hasActivityQuery_returnsFalse()130 assertThat(queryBuilder.isEmptyQuery()).isFalse(); in queryBuilderIsEmpty_hasActivityQuery_returnsFalse()
68 public static TestAppQueryBuilder queryBuilder() { in queryBuilder() method in TestAppQueryBuilder91 TestAppQueryBuilder queryBuilder = this; in applyAnnotation() local92 … queryBuilder = queryBuilder.whereTargetSdkVersion().matchesAnnotation(query.targetSdkVersion()); in applyAnnotation()93 queryBuilder = queryBuilder.whereMinSdkVersion().matchesAnnotation(query.minSdkVersion()); in applyAnnotation()94 queryBuilder = queryBuilder.whereMaxSdkVersion().matchesAnnotation(query.maxSdkVersion()); in applyAnnotation()95 queryBuilder = queryBuilder.wherePackageName().matchesAnnotation(query.packageName()); in applyAnnotation()96 queryBuilder = queryBuilder.whereIsDeviceAdmin().matchesAnnotation(query.isDeviceAdmin()); in applyAnnotation()97 queryBuilder = queryBuilder.whereIsHeadlessDOSingleUser().matchesAnnotation( in applyAnnotation()99 return queryBuilder; in applyAnnotation()
61 import static com.android.bedstead.testapp.TestAppQueryBuilder.queryBuilder;624 ensureTestAppInstalled(DELEGATE_KEY, queryBuilder()641 queryBuilder()849 queryBuilder()867 queryBuilder()
890 TestAppQueryBuilder queryBuilder = new TestAppProvider().query(query);892 return queryBuilder;
2489 UsageEventsQuery.Builder queryBuilder = new UsageEventsQuery.Builder(startTime, endTime); in testUsageEventsQueryParceling() local2490 queryBuilder.setEventTypes(rnd.nextInt(Event.MAX_EVENT_TYPE + 1), in testUsageEventsQueryParceling()2492 queryBuilder.setPackageNames(fakePackageName + "2", in testUsageEventsQueryParceling()2494 UsageEventsQuery query = queryBuilder.build(); in testUsageEventsQueryParceling()