Home
last modified time | relevance | path

Searched refs:gen (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/tests/net/java/android/net/apf/
DApfTest.java134 private void assertVerdict(int expected, ApfGenerator gen, byte[] packet, int filterAge) in assertVerdict() argument
136 assertReturnCodesEqual(expected, apfSimulate(gen.generate(), packet, filterAge)); in assertVerdict()
139 private void assertPass(ApfGenerator gen, byte[] packet, int filterAge) in assertPass() argument
141 assertVerdict(PASS, gen, packet, filterAge); in assertPass()
144 private void assertDrop(ApfGenerator gen, byte[] packet, int filterAge) in assertDrop() argument
146 assertVerdict(DROP, gen, packet, filterAge); in assertDrop()
149 private void assertPass(ApfGenerator gen) in assertPass() argument
151 assertVerdict(PASS, gen, new byte[MIN_PKT_SIZE], 0); in assertPass()
154 private void assertDrop(ApfGenerator gen) in assertDrop() argument
156 assertVerdict(DROP, gen, new byte[MIN_PKT_SIZE], 0); in assertDrop()
[all …]
DBpf2Apf.java55 private static void convertLine(String line, ApfGenerator gen) in convertLine() argument
61 gen.defineLabel(Integer.toString(label)); in convertLine()
76 gen.addLoadFromMemory(dest, gen.IPV4_HEADER_SIZE_MEMORY_SLOT); in convertLine()
83 gen.addLoadFromMemory(dest, gen.PACKET_SIZE_MEMORY_SLOT); in convertLine()
90 gen.addLoadImmediate(dest, parseImm(line, arg)); in convertLine()
98 if (memory_slot < 0 || memory_slot >= gen.MEMORY_SLOTS || in convertLine()
101 (memory_slot >= gen.FIRST_PREFILLED_MEMORY_SLOT && in convertLine()
102 memory_slot <= gen.LAST_PREFILLED_MEMORY_SLOT)) { in convertLine()
105 gen.addLoadFromMemory(dest, memory_slot); in convertLine()
113 gen.addLoad32Indexed(dest, offset); in convertLine()
[all …]
/frameworks/base/services/net/java/android/net/apf/
DApfFilter.java625 long generateFilterLocked(ApfGenerator gen) throws IllegalInstructionException { in generateFilterLocked() argument
628 gen.addLoadFromMemory(Register.R0, gen.PACKET_SIZE_MEMORY_SLOT); in generateFilterLocked()
629 gen.addJumpIfR0NotEquals(mPacket.capacity(), nextFilterLabel); in generateFilterLocked()
632 gen.addLoadFromMemory(Register.R0, gen.FILTER_AGE_MEMORY_SLOT); in generateFilterLocked()
633 gen.addJumpIfR0GreaterThan(filterLifetime, nextFilterLabel); in generateFilterLocked()
642 gen.addLoadImmediate(Register.R0, nonLifetime.first); in generateFilterLocked()
643 gen.addJumpIfBytesNotEqual(Register.R0, in generateFilterLocked()
663 case 4: gen.addLoad32(Register.R0, offset); break; in generateFilterLocked()
664 case 2: gen.addLoad16(Register.R0, offset); break; in generateFilterLocked()
667 gen.addJumpIfR0LessThan(filterLifetime, nextFilterLabel); in generateFilterLocked()
[all …]
/frameworks/base/cmds/incident/
DAndroid.mk37 gen := $(gen_src_dir)/incident_sections.cpp
38 $(gen): $(HOST_OUT_EXECUTABLES)/incident-section-gen
39 $(gen): PRIVATE_CUSTOM_TOOL = \
40 $(HOST_OUT_EXECUTABLES)/incident-section-gen > $@
41 $(gen): $(HOST_OUT_EXECUTABLES)/incident-section-gen
43 LOCAL_GENERATED_SOURCES += $(gen)
46 gen:=
/frameworks/native/opengl/tools/glgen2/registry/
Dreg.py688 self.gen = OutputGenerator()
699 def setGenerator(self, gen): argument
701 self.gen = gen
717 self.gen.logMsg('warn', '*** Attempt to redefine',
838 self.gen.logMsg('diag', '*** tagging type:', typename, '-> required =', required)
847 self.gen.logMsg('diag', '*** Generating dependent type',
852 self.gen.logMsg('warn', '*** type:', typename , 'IS NOT DEFINED')
858 …self.gen.logMsg('diag', '*** markRequired (features = <too long to print>, required =', required, …
866 self.gen.logMsg('diag', '*** tagging enum:', name, '-> required =', required)
871 self.gen.logMsg('warn', '*** enum:', name , 'IS NOT DEFINED')
[all …]
/frameworks/base/packages/CtsShim/build/
DAndroid.mk56 gen := $(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),,true)/AndroidManifest.xml
57 $(gen): PRIVATE_CUSTOM_TOOL = sed -e "s/__HASH__/`sha512sum $(PRIVATE_INPUT_APK) | cut -d' ' -f1`/"…
58 $(gen): PRIVATE_INPUT_APK := $(my_shim_priv_upgrade_apk)
59 $(gen): $(LOCAL_PATH)/shim_priv/AndroidManifest.xml $(my_shim_priv_upgrade_apk)
64 LOCAL_FULL_MANIFEST_FILE := $(gen)
/frameworks/hardware/interfaces/schedulerservice/1.0/
DAndroid.bp1 // This file is autogenerated by hidl-gen. Do not edit manually.
12 tools: ["hidl-gen"],
13 …cmd: "$(location hidl-gen) -o $(genDir) -Lc++-sources -randroid.frameworks:frameworks/hardware/int…
24 tools: ["hidl-gen"],
25 …cmd: "$(location hidl-gen) -o $(genDir) -Lc++-headers -randroid.frameworks:frameworks/hardware/int…
DAndroid.mk13 HIDL := $(HOST_OUT_EXECUTABLES)/hidl-gen$(HOST_EXECUTABLE_SUFFIX)
48 HIDL := $(HOST_OUT_EXECUTABLES)/hidl-gen$(HOST_EXECUTABLE_SUFFIX)
/frameworks/hardware/interfaces/vr/composer/1.0/
DAndroid.bp1 // This file is autogenerated by hidl-gen. Do not edit manually.
12 tools: ["hidl-gen"],
13 …cmd: "$(location hidl-gen) -o $(genDir) -Lc++-sources -randroid.frameworks:frameworks/hardware/int…
24 tools: ["hidl-gen"],
25 …cmd: "$(location hidl-gen) -o $(genDir) -Lc++-headers -randroid.frameworks:frameworks/hardware/int…
/frameworks/hardware/interfaces/displayservice/1.0/
DAndroid.bp1 // This file is autogenerated by hidl-gen. Do not edit manually.
15 tools: ["hidl-gen"],
16 …cmd: "$(location hidl-gen) -o $(genDir) -Lc++-sources -randroid.frameworks:frameworks/hardware/int…
30 tools: ["hidl-gen"],
31 …cmd: "$(location hidl-gen) -o $(genDir) -Lc++-headers -randroid.frameworks:frameworks/hardware/int…
/frameworks/hardware/interfaces/sensorservice/1.0/
DAndroid.bp1 // This file is autogenerated by hidl-gen. Do not edit manually.
16 tools: ["hidl-gen"],
17 …cmd: "$(location hidl-gen) -o $(genDir) -Lc++-sources -randroid.frameworks:frameworks/hardware/int…
32 tools: ["hidl-gen"],
33 …cmd: "$(location hidl-gen) -o $(genDir) -Lc++-headers -randroid.frameworks:frameworks/hardware/int…
/frameworks/base/tests/AmSlam/src/test/amslam/subreceivers/
Dgen.py42 def gen(i): function
49 gen(i)
/frameworks/data-binding/compilerCommon/
Dbuild.gradle23 srcDir 'src/main/xml-gen'
24 srcDir 'src/main/grammar-gen'
49 …args "XMLLexer.g4", "-visitor", "-lib", projectDir.absolutePath, "-o", "src/main/xml-gen/android/d…
56 …args "XMLParser.g4", "-visitor", "-lib", projectDir.absolutePath, "-o", "src/main/xml-gen/android/…
63 …args "BindingExpression.g4", "-visitor", "-o", "src/main/grammar-gen/android/databinding/parser", …
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dnumeric.h110 std::mt19937 gen(rd());
112 return distro(gen);
120 std::mt19937 gen(rd());
122 return distro(gen);
/frameworks/compile/mclinker/tools/mcld/
DAndroid.bp21 name: "mcld-gen-options",
30 generated_headers: ["mcld-gen-options"],
/frameworks/native/libs/vr/libpdx_uds/
Dclient_channel_tests.cpp134 std::mt19937 gen{rd()}; in TEST_F() local
154 [&dist, &gen]() { return dist(gen); }); in TEST_F()
/frameworks/base/test-runner/
DAndroid.mk87 LOCAL_MODULE := android-test-runner-api-stubs-gen
135 $(call doc-timestamp-for,android-test-runner-api-stubs-gen) \
185 LOCAL_MODULE := android-test-mock-api-stubs-gen
229 $(call doc-timestamp-for,android-test-mock-api-stubs-gen) \
/frameworks/opt/colorpicker/
D.gitignore2 gen/
/frameworks/opt/timezonepicker/
D.gitignore2 gen/
/frameworks/opt/calendar/
D.gitignore2 gen/
/frameworks/opt/datetimepicker/
D.gitignore2 gen/
/frameworks/base/tests/HwAccelerationTest/
D.gitignore2 gen
/frameworks/opt/photoviewer/
D.gitignore5 gen/
/frameworks/ex/photoviewer/
D.gitignore5 gen/
/frameworks/base/tools/incident_section_gen/
DAndroid.mk23 LOCAL_MODULE := incident-section-gen

12