Home
last modified time | relevance | path

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

12

/frameworks/base/tools/aapt2/java/
DJavaClassGenerator_test.cpp47 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST() local
51 EXPECT_FALSE(generator.Generate("android", &out)); in TEST()
72 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST() local
76 EXPECT_TRUE(generator.Generate("android", &out)); in TEST()
97 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST() local
101 ASSERT_TRUE(generator.Generate("android", "com.android.internal", &out)); in TEST()
135 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST() local
139 EXPECT_TRUE(generator.Generate("app", &out)); in TEST()
172 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST() local
176 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/layoutlib/bridge/src/android/view/shadow/
DHighQualityShadowPainter.java116 AmbientShadowBitmapGenerator generator = new AmbientShadowBitmapGenerator(config); in paintAmbientShadow() local
117 generator.populateShadow(); in paintAmbientShadow()
119 if (!generator.isValid()) { in paintAmbientShadow()
124 canvas, generator.getBitmap(), (int) generator.getTranslateX(), in paintAmbientShadow()
125 (int) generator.getTranslateY(), width, height, in paintAmbientShadow()
167 SpotShadowBitmapGenerator generator = new SpotShadowBitmapGenerator(config); in paintSpotShadow() local
168 generator.populateShadow(); in paintSpotShadow()
170 if (!generator.validate()) { in paintSpotShadow()
174 drawScaled(canvas, generator.getBitmap(), (int) generator.getTranslateX(), in paintSpotShadow()
175 (int) generator.getTranslateY(), width, height, shadowCasterOutline, radius); in paintSpotShadow()
/frameworks/ml/nn/runtime/test/fuzzing/
DRandomGraphGeneratorUtils.h275 static std::mt19937 generator; member
280 return dis(RandomNumberGenerator::generator); in getBernoulli()
292 return dis(RandomNumberGenerator::generator); in getUniform()
300 const float value = dis(RandomNumberGenerator::generator); in getUniformNonZero()
309 return dis(RandomNumberGenerator::generator); in getUniform()
315 const T value = dis(RandomNumberGenerator::generator); in getUniformNonZero()
323 size_t i = dis(RandomNumberGenerator::generator); in getRandomChoice()
329 std::shuffle(vec->begin(), vec->end(), RandomNumberGenerator::generator); in randomShuffle()
DRandomGraphGeneratorUtils.cpp33 std::mt19937 RandomNumberGenerator::generator; member in android::nn::fuzzing_test::RandomNumberGenerator
/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/
DAndroid.bp111 // Build rsg-generator ====================
114 name: "rsg-generator",
134 tools: ["rsg-generator"],
139 cmd: "cat $(location rs.spec) $(location rsg.spec) | $(location rsg-generator) $(in) $(out)",
150 tools: ["rsg-generator"],
155 cmd: "cat $(location rs.spec) $(location rsg.spec) | $(location rsg-generator) $(in) $(out)",
Dsupport.bp14 tools: ["rsg-generator"],
19 …cmd: "cat $(location rs.spec) $(location rs_compat.spec) | $(location rsg-generator) $(in) $(out)",
30 tools: ["rsg-generator"],
35 …cmd: "cat $(location rs.spec) $(location rs_compat.spec) | $(location rsg-generator) $(in) $(out)",
/frameworks/rs/script_api/
DAndroid.bp1 // Build API doc generator ====================
4 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/native/services/bufferhub/
DBufferHubIdGenerator.cpp27 static BufferHubIdGenerator generator; in getInstance() local
29 return generator; in getInstance()
/frameworks/native/vulkan/
DREADME.md13 … in `api/vulkan.api`. Code generation must be done manually because the generator tools aren't par…
15 To run the generator:
27 - `$ apic template ../api/vulkan.api code-generator.tmpl`
/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.cpp374 BufferGenerator* generator = static_cast<BufferGenerator*>(bufferGenerator); in setBuffer() local
375 generator->mGraphicBuffer = buffer; in setBuffer()
376 generator->mFence = fence; in setBuffer()
377 generator->mPending = false; in setBuffer()
378 generator->mConditionVariable.notify_all(); in setBuffer()
/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/base/tools/aapt2/compile/
DPseudolocaleGenerator_test.cpp199 PseudolocaleGenerator generator; in TEST() local
200 ASSERT_TRUE(generator.Consume(context.get(), table.get())); in TEST()
250 PseudolocaleGenerator generator; in TEST() local
251 ASSERT_TRUE(generator.Consume(context.get(), table.get())); in TEST()
283 PseudolocaleGenerator generator; in TEST() local
284 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
166 and the generator.
174 - CreateInfo class, which configured the generator. Not used yet, but could in theory help us track
175 what the generator changed.
203 replace. To do so, the generator renames Paint to _original_Paint. Later the bridge provides its own
228 In this case we have a strategy that tells the generator that anything returning, for example, the
/frameworks/ml/nn/runtime/test/android_fuzzing/
DConverter.cpp69 std::default_random_engine generator{randomSeed}; in convert() local
70 return TestBuffer::createRandom(size % kMaxSize, &generator); in convert()
/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.cpp531 std::default_random_engine generator; in ChooseRelocationOffsetDelta() local
532 generator.seed(GetSeed()); in ChooseRelocationOffsetDelta()
534 int32_t r = distribution(generator); in ChooseRelocationOffsetDelta()
/frameworks/av/services/audiopolicy/engineconfigurable/tools/
DbuildStrategiesStructureFile.py45 product strategies structure file generator.\n\
/frameworks/ml/nn/tools/test_generator/
DREADME.md35 There are currently 10 operand types supported by the test generator.
74 …arameters can now be directly passed to Operation constructor, and test generator will deduce the …
113 You can add variations to the example so that the test generator can automatically create multiple …
229 By default, the test generator will apply the following variations automatically.
252 The test generator provides several helper functions or shorthands to add commonly used group of va…

12