Home
last modified time | relevance | path

Searched refs:generator (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayIdGeneratorTest.cpp30 DisplayIdGenerator<Id> generator; in testGenerateId() local
33 std::generate_n(std::back_inserter(ids), 10, [&] { return generator.generateId(); }); in testGenerateId()
55 DisplayIdGenerator<GpuVirtualDisplayId> generator(kMaxIdsCount); in TEST() local
57 const auto id = generator.generateId(); in TEST()
61 EXPECT_TRUE(generator.generateId()); in TEST()
64 EXPECT_FALSE(generator.generateId()); in TEST()
66 generator.releaseId(*id); in TEST()
67 EXPECT_TRUE(generator.generateId()); in TEST()
72 DisplayIdGenerator<GpuVirtualDisplayId> generator(kMaxIdsCount); in TEST() local
75 EXPECT_TRUE(generator.generateId()); in TEST()
[all …]
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator_test.cpp46 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST() local
50 EXPECT_FALSE(generator.Generate("android", &out)); in TEST()
70 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST() local
74 EXPECT_TRUE(generator.Generate("android", &out)); in TEST()
94 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST() local
98 ASSERT_TRUE(generator.Generate("android", "com.android.internal", &out)); in TEST()
130 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST() local
134 EXPECT_TRUE(generator.Generate("app", &out)); in TEST()
166 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST() local
170 ASSERT_TRUE(generator.Generate("android", &out)); in TEST()
[all …]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DFilter.java564 GenerateFinalPort generator = (GenerateFinalPort)annotation; in addAndSetFinalPorts() local
565 String name = generator.name().isEmpty() ? field.getName() : generator.name(); in addAndSetFinalPorts()
566 boolean hasDefault = generator.hasDefault(); in addAndSetFinalPorts()
571 } else if (!generator.hasDefault()) { in addAndSetFinalPorts()
584 GenerateFieldPort generator = (GenerateFieldPort)annotation; in addAnnotatedPorts() local
585 addFieldGenerator(generator, field); in addAnnotatedPorts()
587 GenerateProgramPort generator = (GenerateProgramPort)annotation; in addAnnotatedPorts() local
588 addProgramGenerator(generator, field); in addAnnotatedPorts()
591 for (GenerateProgramPort generator : generators.value()) { in addAnnotatedPorts()
592 addProgramGenerator(generator, field); in addAnnotatedPorts()
[all …]
/frameworks/base/tools/aapt2/optimize/
DMultiApkGenerator_test.cpp115 MultiApkGeneratorWrapper generator{&apk, ctx.get()}; in TEST_F() local
117 generator.FilterTable(ctx.get(), artifact, *apk.GetResourceTable(), &chain); in TEST_F()
142 MultiApkGeneratorWrapper generator{&apk, ctx.get()};; in TEST_F() local
144 generator.FilterTable(ctx.get(), artifact, *apk.GetResourceTable(), &chain); in TEST_F()
167 MultiApkGeneratorWrapper generator{&apk, ctx.get()}; in TEST_F() local
169 generator.FilterTable(ctx.get(), artifact, *apk.GetResourceTable(), &chain); in TEST_F()
/frameworks/rs/script_api/
DAndroid.bp1 // Build API doc generator ====================
8 name: "rs-api-doc-generator",
Dgenerate.sh48 $ANDROID_HOST_OUT/bin/rs-api-doc-generator rs_core.spec rs_value_types.spec rs_object_types.spec rs…
/frameworks/rs/
DAndroid.bp116 // Build rsg-generator ====================
119 name: "rsg-generator",
139 tools: ["rsg-generator"],
144 cmd: "cat $(location rs.spec) $(location rsg.spec) | $(location rsg-generator) $(in) $(out)",
155 tools: ["rsg-generator"],
160 cmd: "cat $(location rs.spec) $(location rsg.spec) | $(location rsg-generator) $(in) $(out)",
Dsupport.bp17 tools: ["rsg-generator"],
22 …cmd: "cat $(location rs.spec) $(location rs_compat.spec) | $(location rsg-generator) $(in) $(out)",
33 tools: ["rsg-generator"],
38 …cmd: "cat $(location rs.spec) $(location rs_compat.spec) | $(location rsg-generator) $(in) $(out)",
/frameworks/base/services/core/java/com/android/server/locksettings/
DRebootEscrowKeyStoreManager.java108 KeyGenerator generator = KeyGenerator.getInstance( in generateKeyStoreEncryptionKeyIfNeeded() local
118 generator.init(parameterSpecBuilder.build()); in generateKeyStoreEncryptionKeyIfNeeded()
119 return generator.generateKey(); in generateKeyStoreEncryptionKeyIfNeeded()
DManagedProfilePasswordCache.java93 KeyGenerator generator; in storePassword() local
96 generator = KeyGenerator.getInstance(KeyProperties.KEY_ALGORITHM_AES, in storePassword()
98 generator.init(new KeyGenParameterSpec.Builder( in storePassword()
108 key = generator.generateKey(); in storePassword()
/frameworks/base/core/java/android/text/format/
DDateTimeFormat.java51 DateTimePatternGenerator generator = DateTimePatternGenerator.getInstance( in format() local
53 formatter = new SimpleDateFormat(generator.getBestPattern(skeleton), icuLocale); in format()
/frameworks/native/services/surfaceflinger/tests/
DBufferGenerator.cpp384 BufferGenerator* generator = static_cast<BufferGenerator*>(bufferGenerator); in setBuffer() local
385 generator->mGraphicBuffer = buffer; in setBuffer()
386 generator->mFence = fence; in setBuffer()
387 generator->mPending = false; in setBuffer()
388 generator->mConditionVariable.notify_all(); in setBuffer()
/frameworks/base/core/tests/coretests/src/android/util/
DEventLogTest.java58 private Event createEvent(Runnable generator, int expectedTag) throws Exception { in createEvent() argument
61 generator.run(); in createEvent()
/frameworks/native/libs/math/tests/
Dmat_test.cpp562 std::default_random_engine generator(82828); in TYPED_TEST() local
564 auto rand_gen = std::bind(distribution, generator); in TYPED_TEST()
581 std::default_random_engine generator(112233); in TYPED_TEST() local
583 auto rand_gen = std::bind(distribution, generator); in TYPED_TEST()
602 std::default_random_engine generator(112233); in TYPED_TEST() local
604 auto rand_gen = std::bind(distribution, generator); in TYPED_TEST()
641 std::default_random_engine generator(112233); in TYPED_TEST() local
643 auto rand_gen = std::bind(distribution, generator); in TYPED_TEST()
670 std::default_random_engine generator(992626); in TYPED_TEST() local
672 auto rand_gen = std::bind(distribution, generator); in TYPED_TEST()
Dquat_test.cpp277 std::default_random_engine generator(171717); in TEST_F() local
279 auto rand_gen = std::bind(distribution, generator); in TEST_F()
/frameworks/native/vulkan/
DREADME.md17 …nually because the generator is not part of the platform toolchain (yet?). Files named `foo_gen.*`…
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator_test.cpp199 PseudolocaleGenerator generator; in TEST() local
200 ASSERT_TRUE(generator.Consume(context.get(), table.get())); in TEST()
251 PseudolocaleGenerator generator; in TEST() local
252 ASSERT_TRUE(generator.Consume(context.get(), table.get())); in TEST()
288 PseudolocaleGenerator generator; in TEST() local
289 ASSERT_TRUE(generator.Consume(context.get(), table.get())); in TEST()
/frameworks/base/tools/processors/view_inspector/src/java/android/processor/view/inspector/
DPlatformInspectableProcessor.java74 final InspectionCompanionGenerator generator = in process() local
79 generator.generate(model); in process()
/frameworks/layoutlib/create/
DREADME.txt83 generator.
89 The generator is constructed from a CreateInfo struct that acts as a config file and lists:
101 The core method of the generator is transform(): it takes an input ASM ClassReader and modifies it
159 and the generator.
167 - CreateInfo class, which configured the generator. Not used yet, but could in theory help us track
168 what the generator changed.
196 replace. To do so, the generator renames Paint to _original_Paint. Later the bridge provides its own
221 In this case we have a strategy that tells the generator that anything returning, for example, the
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DSecurityEventTest.java171 private SecurityEvent createEvent(Runnable generator, int expectedTag) throws Exception { in createEvent() argument
174 generator.run(); in createEvent()
/frameworks/base/core/tests/coretests/src/android/widget/
DSimpleCursorAdapterTest.java73 Random generator = new Random(); in createTestList() local
80 Integer r = generator.nextInt(); in createTestList()
/frameworks/wilhelm/tools/hashgen/
DREADME.txt6 * GNU gperf perfect hash generator
/frameworks/native/cmds/installd/
Dotapreopt.cpp539 std::default_random_engine generator; in ChooseRelocationOffsetDelta() local
540 generator.seed(GetSeed()); in ChooseRelocationOffsetDelta()
542 int32_t r = distribution(generator); in ChooseRelocationOffsetDelta()
/frameworks/av/services/audiopolicy/engineconfigurable/tools/
DbuildStrategiesStructureFile.py45 product strategies structure file generator.\n\
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DSecureBox.java114 ECPoint generator =
125 EC_PARAM_SPEC = new ECParameterSpec(curveSpec, generator, generatorOrder, /* cofactor */ 1);

12