Home
last modified time | relevance | path

Searched refs:fakeData (Results 1 – 25 of 60) sorted by relevance

123

/aosp_15_r20/external/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/
H A DSupplementalDataTest.java50 SupplementalData fakeData = fakeSupplementalData(parentLocales("en_001", "en_AU", "en_GB")); in testGetParent_explicit() local
52 assertThat(fakeData.getExplicitParentLocaleOf("en_GB")).hasValue("en_001"); in testGetParent_explicit()
53 assertThat(fakeData.getExplicitParentLocaleOf("en_AU")).hasValue("en_001"); in testGetParent_explicit()
54 assertThat(fakeData.getExplicitParentLocaleOf("en_US")).isEmpty(); in testGetParent_explicit()
55 assertThat(fakeData.getExplicitParentLocaleOf("en")).isEmpty(); in testGetParent_explicit()
57 assertThat(fakeData.getParent("en_GB")).isEqualTo("en_001"); in testGetParent_explicit()
58 assertThat(fakeData.getParent("en_AU")).isEqualTo("en_001"); in testGetParent_explicit()
59 assertThat(fakeData.getParent("en_001")).isEqualTo("en"); in testGetParent_explicit()
60 assertThat(fakeData.getParent("en_US")).isEqualTo("en"); in testGetParent_explicit()
61 assertThat(fakeData.getParent("en")).isEqualTo("root"); in testGetParent_explicit()
[all …]
/aosp_15_r20/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/res/raw/
H A Ddefault_field_types11 "fakeData": {
29 "fakeData": {
46 "fakeData": {
65 "fakeData": {
83 "fakeData": {
108 "fakeData": {
126 "fakeData": {
148 "fakeData": {
167 "fakeData": {
185 "fakeData": {
[all …]
/aosp_15_r20/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/res/raw/
Ddefault_field_types11 "fakeData": {
29 "fakeData": {
46 "fakeData": {
65 "fakeData": {
83 "fakeData": {
108 "fakeData": {
126 "fakeData": {
148 "fakeData": {
167 "fakeData": {
185 "fakeData": {
[all …]
/aosp_15_r20/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/main/java/com/google/android/exoplayer2/testutil/
H A DFakeDataSource.java74 @Nullable private FakeData fakeData; field in FakeDataSource
107 FakeData fakeData = fakeDataSet.getData(dataSpec.uri.toString()); in open() local
108 if (fakeData == null) { in open()
111 this.fakeData = fakeData; in open()
114 for (Segment segment : fakeData.getSegments()) { in open()
130 for (Segment segment : fakeData.getSegments()) { in open()
146 return fakeData.isSimulatingUnknownLength() ? C.LENGTH_UNSET : bytesRemaining; in open()
157 FakeData fakeData = Util.castNonNull(this.fakeData); in read() local
158 if (currentSegmentIndex == fakeData.getSegments().size() || bytesRemaining == 0) { in read()
161 Segment current = fakeData.getSegments().get(currentSegmentIndex); in read()
[all …]
/aosp_15_r20/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/testutils/src/main/java/com/google/android/exoplayer2/testutil/
H A DFakeDataSource.java74 @Nullable private FakeData fakeData; field in FakeDataSource
107 FakeData fakeData = fakeDataSet.getData(dataSpec.uri.toString()); in open() local
108 if (fakeData == null) { in open()
111 this.fakeData = fakeData; in open()
114 for (Segment segment : fakeData.getSegments()) { in open()
130 for (Segment segment : fakeData.getSegments()) { in open()
146 return fakeData.isSimulatingUnknownLength() ? C.LENGTH_UNSET : bytesRemaining; in open()
157 FakeData fakeData = Util.castNonNull(this.fakeData); in read() local
158 if (currentSegmentIndex == fakeData.getSegments().size() || bytesRemaining == 0) { in read()
161 Segment current = fakeData.getSegments().get(currentSegmentIndex); in read()
[all …]
/aosp_15_r20/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
H A DAutofillHints.java51 FakeData fakeData = fieldTypeWithHeuristics.fieldType.getFakeData(); in generateFakeField() local
56 if (fakeData.strictExampleSet != null && fakeData.strictExampleSet.strings != null && in generateFakeField()
57 fakeData.strictExampleSet.strings.size() > 0 && in generateFakeField()
58 !fakeData.strictExampleSet.strings.get(0).isEmpty()) { in generateFakeField()
59 List<String> choices = fakeData.strictExampleSet.strings; in generateFakeField()
61 } else if (fakeData.textTemplate != null) { in generateFakeField()
62 text = fakeData.textTemplate.replace("seed", "" + seed) in generateFakeField()
64 } else if (fakeData.dateTemplate != null) { in generateFakeField()
65 if (fakeData.dateTemplate.contains("curr_time")) { in generateFakeField()
/aosp_15_r20/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
DAutofillHints.java51 FakeData fakeData = fieldTypeWithHeuristics.fieldType.getFakeData(); in generateFakeField() local
56 if (fakeData.strictExampleSet != null && fakeData.strictExampleSet.strings != null && in generateFakeField()
57 fakeData.strictExampleSet.strings.size() > 0 && in generateFakeField()
58 !fakeData.strictExampleSet.strings.get(0).isEmpty()) { in generateFakeField()
59 List<String> choices = fakeData.strictExampleSet.strings; in generateFakeField()
61 } else if (fakeData.textTemplate != null) { in generateFakeField()
62 text = fakeData.textTemplate.replace("seed", "" + seed) in generateFakeField()
64 } else if (fakeData.dateTemplate != null) { in generateFakeField()
65 if (fakeData.dateTemplate.contains("curr_time")) { in generateFakeField()
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/data/measurement/migration/
DMeasurementDbMigratorV14Test.java119 Map<String, List<ContentValues>> fakeData = in performMigration_enrollmentIdNotFound_removesSource() local
121 populateDb(db, fakeData); in performMigration_enrollmentIdNotFound_removesSource()
170 Map<String, List<ContentValues>> fakeData = in performMigration_whenReportingUrlNotFoundOrEmpty_removesSource() local
172 populateDb(db, fakeData); in performMigration_whenReportingUrlNotFoundOrEmpty_removesSource()
209 Map<String, List<ContentValues>> fakeData = in performMigration_whenEnrollmentIdNotFound_removesTrigger() local
211 populateDb(db, fakeData); in performMigration_whenEnrollmentIdNotFound_removesTrigger()
261 Map<String, List<ContentValues>> fakeData = in performMigration_whenReportingUrlNotFoundOrEmpty_removesTrigger() local
263 populateDb(db, fakeData); in performMigration_whenReportingUrlNotFoundOrEmpty_removesTrigger()
313 Map<String, List<ContentValues>> fakeData = in performMigration_whenEnrollmentIdNotFound_removesEventReport() local
315 populateDb(db, fakeData); in performMigration_whenEnrollmentIdNotFound_removesEventReport()
[all …]
DMigrationTestHelper.java62 public static void populateDb(SQLiteDatabase db, Map<String, List<ContentValues>> fakeData) { in populateDb() argument
63 fakeData.forEach( in populateDb()
73 SQLiteDatabase newDb, Map<String, List<ContentValues>> fakeData) { in verifyDataInDb() argument
74 verifyDataInDb(newDb, fakeData, ImmutableMap.of(), ImmutableMap.of()); in verifyDataInDb()
86 Map<String, List<ContentValues>> fakeData, in verifyDataInDb() argument
89 fakeData.forEach( in verifyDataInDb()
DMeasurementDbMigratorV20Test.java59 Map<String, List<ContentValues>> fakeData = createFakeDataSourceAndTriggerV19(source1Id); in performMigration_v19ToV20WithData_maintainsDataIntegrity() local
60 populateDb(db, fakeData); in performMigration_v19ToV20WithData_maintainsDataIntegrity()
61 fakeData = createFakeDataV19(); in performMigration_v19ToV20WithData_maintainsDataIntegrity()
62 populateDb(db, fakeData); in performMigration_v19ToV20WithData_maintainsDataIntegrity()
66 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v19ToV20WithData_maintainsDataIntegrity()
DMeasurementDbMigratorV12Test.java58 Map<String, List<ContentValues>> fakeData = createFakeDataSourceAndTriggerV11(source1Id); in performMigration_v11ToV12WithData_maintainsDataIntegrity() local
59 populateDb(db, fakeData); in performMigration_v11ToV12WithData_maintainsDataIntegrity()
60 fakeData = createFakeDataV11(source1Id); in performMigration_v11ToV12WithData_maintainsDataIntegrity()
61 populateDb(db, fakeData); in performMigration_v11ToV12WithData_maintainsDataIntegrity()
67 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v11ToV12WithData_maintainsDataIntegrity()
DMeasurementDbMigratorV10Test.java55 Map<String, List<ContentValues>> fakeData = createFakeDataSourceAndTriggerV9(source1Id); in performMigration_v9ToV10WithData_maintainsDataIntegrity() local
56 populateDb(db, fakeData); in performMigration_v9ToV10WithData_maintainsDataIntegrity()
57 fakeData = createFakeDataV9(source1Id); in performMigration_v9ToV10WithData_maintainsDataIntegrity()
58 populateDb(db, fakeData); in performMigration_v9ToV10WithData_maintainsDataIntegrity()
64 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v9ToV10WithData_maintainsDataIntegrity()
DMeasurementDbMigratorV29Test.java65 Map<String, List<ContentValues>> fakeData = fakeDataPair.first; in performMigration_v28ToV29WithData_maintainsDataIntegrity() local
67 populateDb(db, fakeData); in performMigration_v28ToV29WithData_maintainsDataIntegrity()
72 fakeData.computeIfPresent(MeasurementTables.AttributionContract.TABLE, in performMigration_v28ToV29WithData_maintainsDataIntegrity()
80 MigrationTestHelper.verifyDataInDb(db, fakeData, new HashMap<>(), columnsToBeSkipped); in performMigration_v28ToV29WithData_maintainsDataIntegrity()
DMeasurementDbMigratorV36Test.java51 Map<String, List<ContentValues>> fakeData = createFakeDataSourceV35(); in performMigration_v35ToV36WithData_maintainsDataIntegrity() local
52 populateDb(db, fakeData); in performMigration_v35ToV36WithData_maintainsDataIntegrity()
56 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v35ToV36WithData_maintainsDataIntegrity()
DMeasurementDbMigratorV38Test.java51 Map<String, List<ContentValues>> fakeData = createFakeDataSourceV36(); in performMigration_v37ToV38WithData_maintainsDataIntegrity() local
52 populateDb(db, fakeData); in performMigration_v37ToV38WithData_maintainsDataIntegrity()
56 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v37ToV38WithData_maintainsDataIntegrity()
DMeasurementDbMigratorV39Test.java52 Map<String, List<ContentValues>> fakeData = createFakeDataSourceV38(); in performMigration_v38ToV39WithData_maintainsDataIntegrity() local
53 populateDb(db, fakeData); in performMigration_v38ToV39WithData_maintainsDataIntegrity()
57 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v38ToV39WithData_maintainsDataIntegrity()
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/shared/migration/
DSharedDbMigratorV3Test.java63 Map<String, List<ContentValues>> fakeData = createFakeDataV2(); in performMigration_v2ToV3_addLastFetchTimeColumn() local
64 MigrationTestHelper.populateDb(db, fakeData); in performMigration_v2ToV3_addLastFetchTimeColumn()
79 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v2ToV3_addLastFetchTimeColumn()
102 Map<String, List<ContentValues>> fakeData = createFakeDataV2(); in performMigration_v3ToV3() local
103 MigrationTestHelper.populateDb(db, fakeData); in performMigration_v3ToV3()
118 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v3ToV3()
DMigrationTestHelper.java55 public static void populateDb(SQLiteDatabase db, Map<String, List<ContentValues>> fakeData) { in populateDb() argument
56 fakeData.forEach( in populateDb()
64 SQLiteDatabase newDb, Map<String, List<ContentValues>> fakeData) { in verifyDataInDb() argument
65 verifyDataInDb(newDb, fakeData, ImmutableMap.of(), ImmutableMap.of()); in verifyDataInDb()
76 Map<String, List<ContentValues>> fakeData, in verifyDataInDb() argument
79 fakeData.forEach( in verifyDataInDb()
DSharedDbMigratorV4Test.java72 Map<String, List<ContentValues>> fakeData = createFakeDataV3(); in performMigration_v3ToV4_addEnrolledSiteEnrolledAPIsColumns() local
73 MigrationTestHelper.populateDb(db, fakeData); in performMigration_v3ToV4_addEnrolledSiteEnrolledAPIsColumns()
136 Map<String, List<ContentValues>> fakeData = createFakeDataV4(); in performMigration_v4ToV4() local
137 MigrationTestHelper.populateDb(db, fakeData); in performMigration_v4ToV4()
158 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v4ToV4()
DSharedDbMigratorV2Test.java63 Map<String, List<ContentValues>> fakeData = createFakeDataV1(); in performMigration_v1ToV2_createEncryptionKeyTable() local
64 MigrationTestHelper.populateDb(db, fakeData); in performMigration_v1ToV2_createEncryptionKeyTable()
73 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v1ToV2_createEncryptionKeyTable()
/aosp_15_r20/packages/services/Car/cpp/computepipe/tests/fuzz/
DSemanticManagerFuzzer.cpp44 char* fakeData = reinterpret_cast<char*>(malloc(sizeof(char) * size)); in LLVMFuzzerTestOneInput() local
45 memcpy(fakeData, data, size * sizeof(char)); in LLVMFuzzerTestOneInput()
58 manager->queuePacket(fakeData, size, 0); in LLVMFuzzerTestOneInput()
61 EXPECT_EQ(std::memcmp(currentPacket->getData(), fakeData, size), 0); in LLVMFuzzerTestOneInput()
65 free(fakeData); in LLVMFuzzerTestOneInput()
/aosp_15_r20/packages/services/Car/cpp/computepipe/tests/runner/stream_manager/
DSemanticManagerTest.cpp73 std::string fakeData("FakeData"); in TEST_F() local
74 uint32_t size = fakeData.size(); in TEST_F()
76 EXPECT_EQ(manager->queuePacket(fakeData.c_str(), kMaxSemanticDataSize + 1, 0), in TEST_F()
81 manager->queuePacket(fakeData.c_str(), size, 0); in TEST_F()
82 EXPECT_STREQ(mCurrentPacket->getData(), fakeData.c_str()); in TEST_F()
/aosp_15_r20/external/angle/src/tests/gl_tests/
H A DDepthStencilFormatsTest.cpp441 GLuint fakeData[10] = {0}; in TEST_P() local
443 GL_DEPTH_ATTACHMENT, GL_DEPTH_COMPONENT, GL_UNSIGNED_SHORT, fakeData, 16, 0}; in TEST_P()
453 GLuint fakeData[10] = {0}; in TEST_P() local
455 GL_DEPTH_ATTACHMENT, GL_DEPTH_COMPONENT, GL_UNSIGNED_INT, fakeData, 16, 0}; in TEST_P()
465 GLuint fakeData[10] = {0}; in TEST_P() local
466 ReadbackTestParam type = {GL_DEPTH_ATTACHMENT, GL_DEPTH_COMPONENT, GL_FLOAT, fakeData, 32, 0}; in TEST_P()
473 GLuint fakeData[10] = {0}; in TEST_P() local
475 GL_DEPTH_STENCIL_ATTACHMENT, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8_OES, fakeData, 24, 8}; in TEST_P()
583 GLuint fakeData[10] = {0}; in TEST_P() local
586 {GL_DEPTH_ATTACHMENT, GL_DEPTH_COMPONENT, GL_UNSIGNED_SHORT, fakeData, 16, 0}, in TEST_P()
[all …]
/aosp_15_r20/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/datasource/src/test/java/com/google/android/exoplayer2/upstream/cache/
H A DCacheDataSourceTest.java363 FakeData fakeData = upstream.getDataSet().newDefaultData().appendReadData(1024 * 1024 - 1); in switchToCacheSourceWithReadOnlyCacheDataSource() local
366 fakeData in switchToCacheSourceWithReadOnlyCacheDataSource()
403 FakeData fakeData = upstream.getDataSet().newDefaultData().appendReadData(1024 * 1024 - 1); in switchToCacheSourceWithNonBlockingCacheDataSource() local
406 fakeData in switchToCacheSourceWithNonBlockingCacheDataSource()
620 FakeData fakeData = in createCacheDataSource() local
627 fakeData.appendReadError(new IOException("Shouldn't read from upstream")); in createCacheDataSource()
/aosp_15_r20/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/datasource/src/test/java/com/google/android/exoplayer2/upstream/cache/
H A DCacheDataSourceTest.java363 FakeData fakeData = upstream.getDataSet().newDefaultData().appendReadData(1024 * 1024 - 1); in switchToCacheSourceWithReadOnlyCacheDataSource() local
366 fakeData in switchToCacheSourceWithReadOnlyCacheDataSource()
403 FakeData fakeData = upstream.getDataSet().newDefaultData().appendReadData(1024 * 1024 - 1); in switchToCacheSourceWithNonBlockingCacheDataSource() local
406 fakeData in switchToCacheSourceWithNonBlockingCacheDataSource()
620 FakeData fakeData = in createCacheDataSource() local
627 fakeData.appendReadError(new IOException("Shouldn't read from upstream")); in createCacheDataSource()

123