/packages/providers/TvProvider/tests/src/com/android/providers/tv/util/ |
D | SqliteTokenFinderTest.java | 56 expected.add(Pair.create(SqliteTokenFinder.TYPE_REGULAR, token)); in checkTokensRegular() 102 checkTokens("''", Pair.create(SqliteTokenFinder.TYPE_IN_SINGLE_QUOTES, "")); in testSingleQuotes() 107 Pair.create(SqliteTokenFinder.TYPE_IN_SINGLE_QUOTES, "\'")); in testSingleQuotes() 110 Pair.create(SqliteTokenFinder.TYPE_REGULAR, "a"), in testSingleQuotes() 111 Pair.create(SqliteTokenFinder.TYPE_IN_SINGLE_QUOTES, "\'"), in testSingleQuotes() 112 Pair.create(SqliteTokenFinder.TYPE_REGULAR, "b")); in testSingleQuotes() 115 Pair.create(SqliteTokenFinder.TYPE_REGULAR, "a"), in testSingleQuotes() 116 Pair.create(SqliteTokenFinder.TYPE_IN_SINGLE_QUOTES, " \' "), in testSingleQuotes() 117 Pair.create(SqliteTokenFinder.TYPE_REGULAR, "b")); in testSingleQuotes() 118 checkTokens("'abc'", Pair.create(SqliteTokenFinder.TYPE_IN_SINGLE_QUOTES, "abc")); in testSingleQuotes() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/topics/ |
D | TopicsDaoTest.java | 105 Topic topic1 = Topic.create(/* topic */ 1, TAXONOMY_VERSION, MODEL_VERSION); in testPersistAndGetAppClassificationTopics() 106 Topic topic2 = Topic.create(/* topic */ 2, TAXONOMY_VERSION, MODEL_VERSION); in testPersistAndGetAppClassificationTopics() 150 Topic topic1 = Topic.create(/* topic */ 1, TAXONOMY_VERSION, MODEL_VERSION); in testGetTopTopicsAndPersistTopics() 151 Topic topic2 = Topic.create(/* topic */ 2, TAXONOMY_VERSION, MODEL_VERSION); in testGetTopTopicsAndPersistTopics() 152 Topic topic3 = Topic.create(/* topic */ 3, TAXONOMY_VERSION, MODEL_VERSION); in testGetTopTopicsAndPersistTopics() 153 Topic topic4 = Topic.create(/* topic */ 4, TAXONOMY_VERSION, MODEL_VERSION); in testGetTopTopicsAndPersistTopics() 154 Topic topic5 = Topic.create(/* topic */ 5, TAXONOMY_VERSION, MODEL_VERSION); in testGetTopTopicsAndPersistTopics() 155 Topic topic6 = Topic.create(/* topic */ 6, TAXONOMY_VERSION, MODEL_VERSION); in testGetTopTopicsAndPersistTopics() 171 Topic topic1 = Topic.create(/* topic */ 1, TAXONOMY_VERSION, MODEL_VERSION); in testGetTopTopicsAndPersistTopics_notFoundEpochId() 172 Topic topic2 = Topic.create(/* topic */ 2, TAXONOMY_VERSION, MODEL_VERSION); in testGetTopTopicsAndPersistTopics_notFoundEpochId() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/ |
D | CacheManagerTest.java | 184 Topic topic1 = Topic.create(/* topic */ 1, /* taxonomyVersion */ 1L, /* modelVersion */ 1L); in testGetTopics() 185 Topic topic2 = Topic.create(/* topic */ 2, /* taxonomyVersion */ 1L, /* modelVersion */ 1L); in testGetTopics() 186 Topic topic3 = Topic.create(/* topic */ 3, /* taxonomyVersion */ 1L, /* modelVersion */ 1L); in testGetTopics() 187 Topic topic4 = Topic.create(/* topic */ 4, /* taxonomyVersion */ 1L, /* modelVersion */ 1L); in testGetTopics() 188 Topic topic5 = Topic.create(/* topic */ 5, /* taxonomyVersion */ 1L, /* modelVersion */ 1L); in testGetTopics() 192 returnedAppSdkTopicsMap1.put(Pair.create("app1", ""), topic1); in testGetTopics() 193 returnedAppSdkTopicsMap1.put(Pair.create("app1", "sdk1"), topic1); in testGetTopics() 194 returnedAppSdkTopicsMap1.put(Pair.create("app1", "sdk2"), topic1); in testGetTopics() 196 returnedAppSdkTopicsMap1.put(Pair.create("app2", "sdk1"), topic2); in testGetTopics() 197 returnedAppSdkTopicsMap1.put(Pair.create("app2", "sdk3"), topic2); in testGetTopics() [all …]
|
D | AppUpdateManagerTest.java | 130 Topic topic1 = Topic.create(topicId1, TAXONOMY_VERSION, MODEL_VERSION); in testReconcileUninstalledApps() 174 returnedAppSdkTopics.put(Pair.create(app1, EMPTY_SDK), topic1); in testReconcileUninstalledApps() 175 returnedAppSdkTopics.put(Pair.create(app1, sdk1), topic1); in testReconcileUninstalledApps() 176 returnedAppSdkTopics.put(Pair.create(app2, EMPTY_SDK), topic1); in testReconcileUninstalledApps() 177 returnedAppSdkTopics.put(Pair.create(app2, sdk1), topic1); in testReconcileUninstalledApps() 181 expectedReturnedTopics.put(Pair.create(app1, EMPTY_SDK), topic1); in testReconcileUninstalledApps() 182 expectedReturnedTopics.put(Pair.create(app1, sdk1), topic1); in testReconcileUninstalledApps() 183 expectedReturnedTopics.put(Pair.create(app2, EMPTY_SDK), topic1); in testReconcileUninstalledApps() 184 expectedReturnedTopics.put(Pair.create(app2, sdk1), topic1); in testReconcileUninstalledApps() 219 expectedReturnedTopicsAfterWiping.put(Pair.create(app1, EMPTY_SDK), topic1); in testReconcileUninstalledApps() [all …]
|
D | EpochManagerTest.java | 173 Topic topic1 = Topic.create(/* topic */ 1, TAXONOMY_VERSION, MODEL_VERSION); in testComputeCallersCanLearnMap() 174 Topic topic2 = Topic.create(/* topic */ 2, TAXONOMY_VERSION, MODEL_VERSION); in testComputeCallersCanLearnMap() 175 Topic topic3 = Topic.create(/* topic */ 3, TAXONOMY_VERSION, MODEL_VERSION); in testComputeCallersCanLearnMap() 176 Topic topic4 = Topic.create(/* topic */ 4, TAXONOMY_VERSION, MODEL_VERSION); in testComputeCallersCanLearnMap() 177 Topic topic5 = Topic.create(/* topic */ 5, TAXONOMY_VERSION, MODEL_VERSION); in testComputeCallersCanLearnMap() 178 Topic topic6 = Topic.create(/* topic */ 6, TAXONOMY_VERSION, MODEL_VERSION); in testComputeCallersCanLearnMap() 251 Topic topic1 = Topic.create(/* topic */ 1, TAXONOMY_VERSION, MODEL_VERSION); in testSelectRandomTopic() 252 Topic topic2 = Topic.create(/* topic */ 2, TAXONOMY_VERSION, MODEL_VERSION); in testSelectRandomTopic() 253 Topic topic3 = Topic.create(/* topic */ 3, TAXONOMY_VERSION, MODEL_VERSION); in testSelectRandomTopic() 254 Topic topic4 = Topic.create(/* topic */ 4, TAXONOMY_VERSION, MODEL_VERSION); in testSelectRandomTopic() [all …]
|
D | TopicsWorkerTest.java | 155 final Pair<String, String> appSdkKey = Pair.create("app", "sdk"); in testGetTopics() 156 Topic topic1 = Topic.create(/* topic */ 1, /* taxonomyVersion */ 1L, /* modelVersion */ 4L); in testGetTopics() 157 Topic topic2 = Topic.create(/* topic */ 2, /* taxonomyVersion */ 2L, /* modelVersion */ 5L); in testGetTopics() 158 Topic topic3 = Topic.create(/* topic */ 3, /* taxonomyVersion */ 3L, /* modelVersion */ 6L); in testGetTopics() 203 final Pair<String, String> appSdkKey = Pair.create("app", "sdk"); in testGetTopics_enableEncryption_disablePlaintextTopics() 204 Topic topic1 = Topic.create(/* topic */ 1, /* taxonomyVersion */ 1L, /* modelVersion */ 4L); in testGetTopics_enableEncryption_disablePlaintextTopics() 206 EncryptedTopic.create( in testGetTopics_enableEncryption_disablePlaintextTopics() 210 Topic topic2 = Topic.create(/* topic */ 2, /* taxonomyVersion */ 2L, /* modelVersion */ 5L); in testGetTopics_enableEncryption_disablePlaintextTopics() 212 EncryptedTopic.create( in testGetTopics_enableEncryption_disablePlaintextTopics() 216 Topic topic3 = Topic.create(/* topic */ 3, /* taxonomyVersion */ 3L, /* modelVersion */ 6L); in testGetTopics_enableEncryption_disablePlaintextTopics() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/ |
D | BluetoothMapAccountItemTest.java | 43 BluetoothMapAccountItem.create( in create_withAllParameters() 66 BluetoothMapAccountItem.create( in create_withoutIdAndUciData() 87 BluetoothMapAccountItem.create( in getUciFull() 98 BluetoothMapAccountItem.create( in getUciFull() 109 BluetoothMapAccountItem.create( in getUciFull() 127 BluetoothMapAccountItem.create( in compareIfTwoObjectsAreEqual_returnFalse_whenTypesAreDifferent() 138 BluetoothMapAccountItem.create( in compareIfTwoObjectsAreEqual_returnFalse_whenTypesAreDifferent() 153 BluetoothMapAccountItem.create( in compareIfTwoObjectsAreEqual_returnTrue_evenWhenUcisAreDifferent() 164 BluetoothMapAccountItem.create( in compareIfTwoObjectsAreEqual_returnTrue_evenWhenUcisAreDifferent() 179 BluetoothMapAccountItem.create( in equals_withSameInstance() [all …]
|
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/data/ |
D | DaoBuildingBlocksTest.java | 52 ReportKey.create(0, 0, 0, 0), ReportKey.create(1, 1, 1, 1) 56 EventVector.create(0), EventVector.create(1) 88 mDaoBuildingBlocks.insertOrReplaceGlobalValue(GlobalValueEntity.create(key, value)); in insertOrReplaceGlobalValue() 97 SystemProfileEntity.create(systemProfileHash, systemProfile)); in insertSystemProfileAndReport() 98 mDaoBuildingBlocks.insertLastSentDayIndex(ReportEntity.create(reportKey, lastSentDayIndex)); in insertSystemProfileAndReport() 108 AggregateStoreEntity.create( in insertAggregateValue() 115 StringHashEntity.create(reportKey, dayIndex, listIndex, stringHashHint)); in insertStringHash() 123 mDaoBuildingBlocks.insertLastSentDayIndex(ReportEntity.create(reportKey, dayIndex)); in insertLastSentDayIndex() 127 mDaoBuildingBlocks.updateLastSentDayIndex(ReportEntity.create(reportKey, dayIndex)); in updateLastSentDayIndex() 276 mDaoBuildingBlocks.insertLastSentDayIndex(ReportEntity.create(sReportKey[0], sDayIndex[0])); in testInsertAggregateValue_systemProfileDoesNotExist() [all …]
|
D | DataServiceTest.java | 62 private static final ReportKey REPORT_1 = ReportKey.create(1, 2, 3, 4); 64 ReportKey.create( 73 private static final EventVector EVENT_VECTOR_1 = EventVector.create(1, 5); 74 private static final EventVector EVENT_VECTOR_2 = EventVector.create(2, 6); 75 private static final EventVector EVENT_VECTOR_3 = EventVector.create(3, 7); 76 private static final EventVector EVENT_VECTOR_4 = EventVector.create(4, 8); 138 return EventRecordAndSystemProfile.create( in createEventRecord() 513 StringHashEntity.create(REPORT_1, DAY_INDEX_1, /* listIndex= */ 0, "A")); in aggregateString_multipleCalls_aggregatedTogether() 577 StringHashEntity.create(REPORT_1, DAY_INDEX_1, /* listIndex= */ 0, "A"), in aggregateString_multipleCalls_aggregatedTogether() 578 StringHashEntity.create(REPORT_1, DAY_INDEX_1, /* listIndex= */ 1, "B")); in aggregateString_multipleCalls_aggregatedTogether() [all …]
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/ |
D | DenylistTest.java | 42 Denylist denylist = Denylist.create( in testDenyAllApis() 62 Denylist denylist = Denylist.create( in testDenyNoApis() 71 Denylist denylist = Denylist.create( in testDenySomeApis() 88 Denylist denylist = Denylist.create("pkg=foo&apis=localSetSchema"); in testDenyByPackage() 103 Denylist denylist = Denylist.create("pkg=foo&db=bar&apis=localSetSchema"); in testDenyByPackageDatabase() 113 Denylist denylist = Denylist.create("db=bar&apis=localSetSchema"); in testDenyByDatabase() 128 Denylist denylist = Denylist.create("pkg=foo &db=bar &apis=localSetSchema"); in testWhitespaceSensitive() 134 denylist = Denylist.create("pkg=foo&db= &apis=localSetSchema"); in testWhitespaceSensitive() 144 Denylist denylist = Denylist.create("pkg=foo&DB=bar&apis=localSetSchema"); in testKeysAreCaseSensitive() 151 Denylist denylist = Denylist.create("pkg=foo&db=BAR&apis=localSetSchema"); in testValuesAreCaseSensitive() [all …]
|
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/observations/ |
D | StringHistogramEncoderTest.java | 56 return EventRecordAndSystemProfile.create( in createEvent() 69 StringListEntry.create(/* listIndex= */ 1, HASH_CODE_2), in stringsHashesOrderedAndCompacted() 70 StringListEntry.create(/* listIndex= */ 2, HASH_CODE_3), in stringsHashesOrderedAndCompacted() 71 StringListEntry.create(/* listIndex= */ 0, HASH_CODE_1), in stringsHashesOrderedAndCompacted() 72 StringListEntry.create(/* listIndex= */ 5, HASH_CODE_4)), in stringsHashesOrderedAndCompacted() 96 StringListEntry.create(/* listIndex= */ 0, HASH_CODE_1), in multipleEventsDisjointStrings() 97 StringListEntry.create(/* listIndex= */ 1, HASH_CODE_2), in multipleEventsDisjointStrings() 98 StringListEntry.create(/* listIndex= */ 2, HASH_CODE_3), in multipleEventsDisjointStrings() 99 StringListEntry.create(/* listIndex= */ 3, HASH_CODE_4)), in multipleEventsDisjointStrings() 104 EventVector.create(1, 5), in multipleEventsDisjointStrings() [all …]
|
D | PrivateIndexCalculationsTest.java | 253 assertThat(PrivateIndexCalculations.eventVectorToIndex(EventVector.create(5), metric)) in testEventVectorToIndex_oneEventCode_correctIndex() 255 assertThat(PrivateIndexCalculations.eventVectorToIndex(EventVector.create(6), metric)) in testEventVectorToIndex_oneEventCode_correctIndex() 265 assertThat(PrivateIndexCalculations.eventVectorToIndex(EventVector.create(5), metric)) in testEventVectorToIndex_oneEventCodeWithMax_correctIndex() 267 assertThat(PrivateIndexCalculations.eventVectorToIndex(EventVector.create(6), metric)) in testEventVectorToIndex_oneEventCodeWithMax_correctIndex() 284 assertThat(PrivateIndexCalculations.eventVectorToIndex(EventVector.create(5, 5), metric)) in testEventVectorToIndex_twoEventCodes_correctIndex() 286 assertThat(PrivateIndexCalculations.eventVectorToIndex(EventVector.create(6, 5), metric)) in testEventVectorToIndex_twoEventCodes_correctIndex() 288 assertThat(PrivateIndexCalculations.eventVectorToIndex(EventVector.create(5, 6), metric)) in testEventVectorToIndex_twoEventCodes_correctIndex() 290 assertThat(PrivateIndexCalculations.eventVectorToIndex(EventVector.create(6, 6), metric)) in testEventVectorToIndex_twoEventCodes_correctIndex() 304 assertThat(PrivateIndexCalculations.eventVectorToIndex(EventVector.create(9, 5), metric)) in testEventVectorToIndex_twoEventCodesOneWithMax_correctIndex() 306 assertThat(PrivateIndexCalculations.eventVectorToIndex(EventVector.create(9, 6), metric)) in testEventVectorToIndex_twoEventCodesOneWithMax_correctIndex() [all …]
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | BpfNetMapsConstants.java | 88 Pair.create(HAPPY_BOX_MATCH, "HAPPY_BOX_MATCH"), 89 Pair.create(PENALTY_BOX_USER_MATCH, "PENALTY_BOX_USER_MATCH"), 90 Pair.create(DOZABLE_MATCH, "DOZABLE_MATCH"), 91 Pair.create(STANDBY_MATCH, "STANDBY_MATCH"), 92 Pair.create(POWERSAVE_MATCH, "POWERSAVE_MATCH"), 93 Pair.create(RESTRICTED_MATCH, "RESTRICTED_MATCH"), 94 Pair.create(LOW_POWER_STANDBY_MATCH, "LOW_POWER_STANDBY_MATCH"), 95 Pair.create(IIF_MATCH, "IIF_MATCH"), 96 Pair.create(LOCKDOWN_VPN_MATCH, "LOCKDOWN_VPN_MATCH"), 97 Pair.create(OEM_DENY_1_MATCH, "OEM_DENY_1_MATCH"), [all …]
|
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/ |
D | ClientPlaylistTest.java | 132 final TestContentObserverHelper obs = TestContentObserverHelper.create( in testAdd() 148 Pair.create(mRed, 1), in testAdd() 149 Pair.create(mGreen, 2)), queryMembers(membersUri)); in testAdd() 158 Pair.create(mBlue, 1), in testAdd() 159 Pair.create(mRed, 2), in testAdd() 160 Pair.create(mGreen, 3)), queryMembers(membersUri)); in testAdd() 173 TestContentObserverHelper obs = TestContentObserverHelper.create( in testMove() 183 Pair.create(mGreen, 1), in testMove() 184 Pair.create(mBlue, 2), in testMove() 185 Pair.create(mRed, 3)), queryMembers(membersUri)); in testMove() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/ |
D | OtaControllerTest.java | 120 Pair.create(UserHandle.USER_SYSTEM, MigrateSystemAppsSnapshotTask.class), in testDeviceOwnerSystemUser() 121 Pair.create(UserHandle.USER_SYSTEM, DeleteNonRequiredAppsTask.class), in testDeviceOwnerSystemUser() 122 Pair.create(UserHandle.USER_SYSTEM, DisallowAddUserTask.class), in testDeviceOwnerSystemUser() 123 Pair.create(UserHandle.USER_SYSTEM, UpdateInteractAcrossProfilesAppOpTask.class)); in testDeviceOwnerSystemUser() 143 Pair.create(UserHandle.USER_SYSTEM, MigrateSystemAppsSnapshotTask.class), in testManagedProfileWithoutMissingSystemIme() 144 Pair.create(MANAGED_PROFILE_USER_ID, InstallExistingPackageTask.class), in testManagedProfileWithoutMissingSystemIme() 145 Pair.create(MANAGED_PROFILE_USER_ID, DeleteNonRequiredAppsTask.class), in testManagedProfileWithoutMissingSystemIme() 146 Pair.create(UserHandle.USER_SYSTEM, UpdateInteractAcrossProfilesAppOpTask.class)); in testManagedProfileWithoutMissingSystemIme() 180 Pair.create(UserHandle.USER_SYSTEM, MigrateSystemAppsSnapshotTask.class), in testManagedProfileWithMissingSystemIme() 181 Pair.create(MANAGED_PROFILE_USER_ID, InstallExistingPackageTask.class), in testManagedProfileWithMissingSystemIme() [all …]
|
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/impl/ |
D | CobaltLoggerImplTest.java | 77 private static final ReportKey ONE_REPORT = ReportKey.create(1, 1, 1, 1); 79 ReportKey.create(ONE_REPORT.customerId(), ONE_REPORT.projectId(), 2, 2); 81 ReportKey.create( 87 ReportKey.create(ONE_REPORT.customerId(), ONE_REPORT.projectId(), 4, 4); 89 ReportKey.create(ONE_REPORT.customerId(), ONE_REPORT.projectId(), 5, 5); 91 ReportKey.create(ONE_REPORT.customerId(), ONE_REPORT.projectId(), 5, 6); 157 Project.create( 213 .setEventVector(EventVector.create(1, 2)) in logOccurrence_oneLog_storedInDb() 245 .setEventVector(EventVector.create(1, 2)) in logOccurrence_multipleLogCalls_aggregatedInDb() 253 .setEventVector(EventVector.create(1, 3)) in logOccurrence_multipleLogCalls_aggregatedInDb() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingDialogHandlerTest.java | 219 Pair.create( in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog() 222 Pair.create( in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog() 225 Pair.create( in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog() 227 Pair.create( in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog() 231 Pair.create( in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog() 271 Pair.create( in handleUserTriggeredLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog() 274 Pair.create( in handleUserTriggeredLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog() 277 Pair.create( in handleUserTriggeredLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog() 279 Pair.create( in handleUserTriggeredLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog() 283 Pair.create( in handleUserTriggeredLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog() [all …]
|
/packages/apps/TV/common/src/com/android/tv/common/dev/ |
D | DeveloperPreferences.java | 28 DeveloperPreference.create("tv_allow_analytics_in_eng", false); 36 DeveloperPreference.create("tv_allow_strict_mode", true); 44 DeveloperPreference.create("tv_log_keyevent", false); 52 DeveloperPreference.create("tv_use_debug_keys", false); 60 DeveloperPreference.create("tv_use_tracker", true); 68 DeveloperPreference.create("tv.tuner.buffersize_mbytes", 2 * 1024);
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | DatabaseUtilsTest.java | 251 recoverAbusiveGroupBy(Pair.create("foo=bar GROUP BY foo", null)); in testRecoverAbusiveGroupBy_Conflicting() 254 recoverAbusiveGroupBy(Pair.create("foo=bar", "foo")); in testRecoverAbusiveGroupBy_Conflicting() 258 recoverAbusiveGroupBy(Pair.create("foo=bar GROUP BY foo", "foo")); in testRecoverAbusiveGroupBy_Conflicting() 266 final Pair<String, String> input = Pair.create( in testRecoverAbusiveGroupBy_Buckets() 269 final Pair<String, String> expected = Pair.create( in testRecoverAbusiveGroupBy_Buckets() 277 final Pair<String, String> input = Pair.create( in testRecoverAbusiveGroupBy_BucketsByPath() 280 final Pair<String, String> expected = Pair.create( in testRecoverAbusiveGroupBy_BucketsByPath() 288 final Pair<String, String> input = Pair.create( in testRecoverAbusiveGroupBy_113651872() 291 final Pair<String, String> expected = Pair.create( in testRecoverAbusiveGroupBy_113651872() 299 final Pair<String, String> input = Pair.create( in testRecoverAbusiveGroupBy_113652519() [all …]
|
/packages/services/Car/libs/car-evs-helper-lib/src/com/android/car/internal/evs/ |
D | CarEvsGLSurfaceView.java | 91 public static CarEvsGLSurfaceView create(Context context, in create() method in CarEvsGLSurfaceView 93 return create(context, callbacks, DEFAULT_IN_PLANE_ROTATION_ANGLE, DEFAULT_1X1_POSITION); in create() 105 public static CarEvsGLSurfaceView create(Context context, ArrayList<BufferCallback> callbacks, in create() method in CarEvsGLSurfaceView 107 return create(context, callbacks, angleInDegree, DEFAULT_1X1_POSITION); in create() 120 public static CarEvsGLSurfaceView create(Context context, ArrayList<BufferCallback> callbacks, in create() method in CarEvsGLSurfaceView 122 return create(context, callbacks, DEFAULT_IN_PLANE_ROTATION_ANGLE, positions); in create() 136 public static CarEvsGLSurfaceView create(Context context, ArrayList<BufferCallback> callbacks, in create() method in CarEvsGLSurfaceView
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/ |
D | ObliviousHttpGatewayTest.java | 56 ObliviousHttpClient client = ObliviousHttpClient.create(testVector.keyConfig); in decrypt_canDecryptPayloadsEncryptedByOhttpClient() 68 OhttpGatewayPrivateKey.create(keyBytes), request.serialize()); in decrypt_canDecryptPayloadsEncryptedByOhttpClient() 82 ObliviousHttpClient client = ObliviousHttpClient.create(testVector.keyConfig); in decrypt_canDecryptPayloadsEncryptedByOhttpClient_withServerAuctionMediaTypeChange() 94 OhttpGatewayPrivateKey.create(keyBytes), request.serialize()); in decrypt_canDecryptPayloadsEncryptedByOhttpClient_withServerAuctionMediaTypeChange() 107 ObliviousHttpClient client = ObliviousHttpClient.create(testVector.keyConfig); in encrypt_canBeDecryptedByOhttpClient() 119 OhttpGatewayPrivateKey.create(keyBytes), in encrypt_canBeDecryptedByOhttpClient() 139 ObliviousHttpClient client = ObliviousHttpClient.create(testVector.keyConfig); in encrypt_canBeDecryptedByOhttpClient_withServerAuctionMediaTypeChange() 151 OhttpGatewayPrivateKey.create(keyBytes), in encrypt_canBeDecryptedByOhttpClient_withServerAuctionMediaTypeChange() 168 ObliviousHttpClient client = ObliviousHttpClient.create(testVector.keyConfig); in encrypt_missingInfo_throwsError() 180 OhttpGatewayPrivateKey.create(null), in encrypt_missingInfo_throwsError() [all …]
|
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/domain/ |
D | ProjectTest.java | 51 Project project = Project.create(protoRegistry); in create_populatesIdsAndMetrics_withEmptyMetrics() 52 assertThat(project).isEqualTo(Project.create(CUSTOMER_ID, PROJECT_ID, List.of())); in create_populatesIdsAndMetrics_withEmptyMetrics() 68 Project project = Project.create(protoRegistry); in create_populatesIdsAndMetrics_withNonEmptyMetrics() 69 assertThat(project).isEqualTo(Project.create(CUSTOMER_ID, PROJECT_ID, List.of(metric))); in create_populatesIdsAndMetrics_withNonEmptyMetrics() 77 Project.create(null); in create_nullProto_throwsNullPointerException() 86 Project.create(CUSTOMER_ID, PROJECT_ID, null); in create_nullMetrics_throwsNullPointerException() 108 Project.create(protoRegistry); in create_moreThanOneCustomer_throwsIllegalArgumentException() 128 Project.create(protoRegistry); in create_moreThanOneProject_throwsIllegalArgumentException()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | ToggleScreenMagnificationPreferenceFragmentTest.java | 169 mFragController.create(R.id.main_content, /* bundle= */ null).start().resume(); in onResume_defaultStateForMagnificationMode_preferenceShouldReturnFullScreen() 185 mFragController.create(R.id.main_content, /* bundle= */ null).start().resume(); in onResume_setMagnificationModeToAll_preferenceShouldReturnAll() 200 mFragController.create(R.id.main_content, /* bundle= */ null).start().resume(); in onResume_defaultStateForFollowingTyping_switchPreferenceShouldReturnTrue() 212 mFragController.create(R.id.main_content, /* bundle= */ null).start().resume(); in onResume_disableFollowingTyping_switchPreferenceShouldReturnFalse() 223 mFragController.create(R.id.main_content, /* bundle= */ null).start().resume(); in onResume_defaultStateForOneFingerPan_switchPreferenceShouldReturnFalse() 236 mFragController.create(R.id.main_content, /* bundle= */ null).start().resume(); in onResume_enableOneFingerPan_switchPreferenceShouldReturnTrue() 249 mFragController.create(R.id.main_content, /* bundle= */ null).start().resume(); in onResume_disableOneFingerPan_switchPreferenceShouldReturnFalse() 261 mFragController.create(R.id.main_content, /* bundle= */ null).start().resume(); in onResume_defaultStateForAlwaysOn_switchPreferenceShouldReturnTrue() 274 mFragController.create(R.id.main_content, /* bundle= */ null).start().resume(); in onResume_enableAlwaysOn_switchPreferenceShouldReturnTrue() 287 mFragController.create(R.id.main_content, /* bundle= */ null).start().resume(); in onResume_disableAlwaysOn_switchPreferenceShouldReturnFalse() [all …]
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
D | PhotoDatabase.java | 137 StringBuilder create = new StringBuilder(SQL_CREATE_TABLE); in createTable() local 138 create.append(table).append('('); in createTable() 142 create.append(','); in createTable() 146 create.append(val).append(' '); in createTable() 149 create.append(')'); in createTable() 152 db.execSQL(create.toString()); in createTable() 166 ArrayList<String[]> create = new ArrayList<String[]>(createTable.length); in tableCreationStrings() local 168 create.add(line); in tableCreationStrings() 170 return create; in tableCreationStrings()
|
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/http/ |
D | FederatedComputeHttpRequestTest.java | 44 FederatedComputeHttpRequest.create( in testCreateRequestInvalidUri_fails() 53 FederatedComputeHttpRequest.create( in testCreateWithInvalidRequestBody_fails() 64 FederatedComputeHttpRequest.create( in testCreateWithContentLengthHeader_fails() 72 FederatedComputeHttpRequest.create( in createGetRequest_valid() 88 FederatedComputeHttpRequest.create( in createGetRequestWithHeader_valid() 100 FederatedComputeHttpRequest.create( in createPostRequestWithoutBody_valid() 114 FederatedComputeHttpRequest.create( in createPostRequestWithBody_valid() 129 FederatedComputeHttpRequest.create( in createPostRequestWithBodyHeader_valid() 144 FederatedComputeHttpRequest.create( in createGetRequestWithAcceptCompression_valid()
|