/system/tools/aidl/ |
D | aidl_language_l.ll | 44 return yy::parser::token::C_STR; } 67 parcelable { return yy::parser::token::PARCELABLE; } 68 import { return yy::parser::token::IMPORT; } 69 package { return yy::parser::token::PACKAGE; } 70 int { return yy::parser::token::INT; } 71 String { return yy::parser::token::STRING; } 72 in { return yy::parser::token::IN; } 73 out { return yy::parser::token::OUT; } 74 inout { return yy::parser::token::INOUT; } 75 cpp_header { return yy::parser::token::CPP_HEADER; } [all …]
|
D | aidl_language_y.yy | 8 int yylex(yy::parser::semantic_type *, yy::parser::location_type *, void *); 17 %pure-parser 318 void yy::parser::error(const yy::parser::location_type& l,
|
/system/media/audio_utils/spdif/ |
D | DTSFrameScanner.cpp | 80 BitFieldParser parser(&mHeaderBuffer[mSyncLength]); in parseHeader() local 84 (void) /* uint32_t ftype = */ parser.readBits(1); in parseHeader() 85 (void) /* uint32_t deficit = */ parser.readBits(5); // "short" in parseHeader() 86 uint32_t cpf = parser.readBits(1); in parseHeader() 87 uint32_t nblks = parser.readBits(7); in parseHeader() 88 uint32_t fsize = parser.readBits(14); in parseHeader() 89 (void) /* uint32_t amode = */ parser.readBits(6); in parseHeader() 90 uint32_t sfreq = parser.readBits(4); in parseHeader() 92 ALOG_ASSERT((mSyncLength + ((parser.getBitCursor() + 7) >> 3)) in parseHeader()
|
/system/core/mkbootimg/ |
D | mkbootimg | 85 def __call__(self, parser, namespace, values, option_string=None): argument 130 parser = ArgumentParser() 131 parser.add_argument('--kernel', help='path to the kernel', type=FileType('rb'), 133 parser.add_argument('--ramdisk', help='path to the ramdisk', type=FileType('rb')) 134 parser.add_argument('--second', help='path to the 2nd bootloader', type=FileType('rb')) 135 parser.add_argument('--cmdline', help='extra arguments to be passed on the ' 137 parser.add_argument('--base', help='base address', type=parse_int, default=0x10000000) 138 parser.add_argument('--kernel_offset', help='kernel offset', type=parse_int, default=0x00008000) 139 … parser.add_argument('--ramdisk_offset', help='ramdisk offset', type=parse_int, default=0x01000000) 140 parser.add_argument('--second_offset', help='2nd bootloader offset', type=parse_int, [all …]
|
/system/update_engine/scripts/ |
D | paycheck.py | 38 parser = optparse.OptionParser( 53 check_opts = optparse.OptionGroup(parser, 'Checking payload integrity') 85 parser.add_option_group(check_opts) 87 trace_opts = optparse.OptionGroup(parser, 'Applying payload') 94 parser.add_option_group(trace_opts) 96 trace_opts = optparse.OptionGroup(parser, 'Block tracing') 103 parser.add_option_group(trace_opts) 106 opts, args = parser.parse_args(argv) 110 parser.error('invalid argument to --type: %s' % opts.assert_type) 117 parser.error('invalid argument to --disabled_tests: %s' % test) [all …]
|
D | update_device.py | 240 parser = argparse.ArgumentParser(description='Android A/B OTA helper.') 241 parser.add_argument('otafile', metavar='ZIP', type=str, 243 parser.add_argument('--file', action='store_true', 245 parser.add_argument('--no-push', action='store_true', 247 parser.add_argument('-s', type=str, default='', metavar='DEVICE', 249 parser.add_argument('--no-verbose', action='store_true', 251 args = parser.parse_args()
|
/system/sepolicy/tests/ |
D | treble_sepolicy_tests.py | 222 def take_action(self, action, dest, opt, value, values, parser): argument 226 Option.take_action(self, action, dest, opt, value, values, parser) 233 parser = OptionParser(option_class=MultipleOption, usage=usage) variable 234 parser.add_option("-f", "--file_contexts", dest="file_contexts", 236 parser.add_option("-p", "--policy", dest="policy", metavar="FILE") 237 parser.add_option("-l", "--library-path", dest="libpath", metavar="FILE") 238 parser.add_option("-t", "--test", dest="test", action="extend", 241 (options, args) = parser.parse_args() 244 sys.exit("Must specify path to host libraries\n" + parser.usage) 247 + parser.usage) [all …]
|
/system/extras/simpleperf/scripts/ |
D | report_sample.py | 61 parser = argparse.ArgumentParser(description='Report samples in perf.data.') variable 62 parser.add_argument('--symfs', 64 parser.add_argument('--kallsyms', help='Set the path to find kernel symbols.') 65 parser.add_argument('record_file', nargs='?', default='perf.data', 67 args = parser.parse_args()
|
D | update.py | 140 parser = argparse.ArgumentParser() 142 parser.add_argument( 145 parser.add_argument('--build', required=True, help='Build number to pull.') 146 parser.add_argument( 149 parser.add_argument( 153 return parser.parse_args()
|
/system/sepolicy/tools/ |
D | insertkeys.py | 223 parser = OptionParser(usage=usage, version=version) variable 225 parser.add_option("-v", "--verbose", 229 parser.add_option("-o", "--output", default="stdout", dest="output_file", 232 parser.add_option("-c", "--cwd", default=os.getcwd(), dest="root", 236 parser.add_option("-t", "--target-build-variant", default="eng", dest="target_build_variant", 239 parser.add_option("-d", "--key-directory", default="", dest="key_directory", 242 (options, args) = parser.parse_args() 245 parser.error("Must specify a config file (keys.conf) AND mac_permissions.xml file(s)!") 264 parser = make_parser() variable 265 parser.setContentHandler(ReplaceTags(key_map, output_file)) [all …]
|
D | post_process_mac_perms | 92 parser = argparse.ArgumentParser(description=__doc__) 94 parser.add_argument('-s', '--seinfo', dest='seinfo', required=True, 96 parser.add_argument('-d', '--dir', dest='dir', required=True, 98 parser.add_argument('-f', '--file', dest='policy', required=True, 101 parser.set_defaults(func=add_leftover_certs) 102 args = parser.parse_args()
|
/system/ca-certificates/google/ |
D | extract_from_pem.py | 61 parser = argparse.ArgumentParser(description='PEM Certificate Importer') 62 parser.add_argument('--pem_file', nargs='?', default='roots.pem') 63 parser.add_argument('--output_dir', nargs='?', default='files') 64 parser.add_argument('--timestamp_file', nargs='?', default='TIMESTAMP') 65 args = parser.parse_args()
|
/system/extras/systrace_analysis/ |
D | analyze_trace.py | 25 parser = argparse.ArgumentParser() 26 parser.add_argument('systrace_file', metavar='SYSTRACE_FILE', help='systrace file to analyze') 27 parser.add_argument('-e', metavar='EVENT_LOG', help='android event log file') 28 args = parser.parse_args()
|
/system/tools/hidl/c2hal/test/ |
D | build_all.py | 42 parser = argparse.ArgumentParser() 43 parser.add_argument("path", help="location of headers to parse", type=str) 44 parser.add_argument("-g", help="enable opengl specific parsing", action="store_true") 46 return parser.parse_args()
|
/system/extras/memcpy-perf/ |
D | graph_memcpy.py | 7 parser = argparse.ArgumentParser(description="Graph memcpy perf") variable 8 parser.add_argument("--files", nargs='+', type=str, help="files to graph", default=None) 9 args = parser.parse_args()
|
/system/tpm/trunks/generator/ |
D | generator_test.py | 192 parser = generator.StructureParser(in_file) 193 types, constants, structs, defines, typemap = parser.Parse() 205 parser = generator.StructureParser(in_file) 206 types, constants, structs, defines, typemap = parser.Parse() 234 parser = generator.CommandParser(in_file) 235 commands = parser.Parse() 242 parser = generator.CommandParser(in_file) 243 commands = parser.Parse()
|
/system/core/init/ |
D | perfboot.py | 395 parser = argparse.ArgumentParser( 398 parser.add_argument('--iterations', type=int, default=5, 400 parser.add_argument('--interval', type=int, 404 parser.add_argument('-o', '--output', help='File name of output data.') 405 parser.add_argument('-v', '--verbose', action='store_true', 407 parser.add_argument('-s', '--serial', default=os.getenv('ANDROID_SERIAL'), 409 parser.add_argument('-t', '--tags', help='Specify the filename from which ' 414 parser.add_argument('--end-tag', help='An event tag on which the script ' 416 parser.add_argument('--apk-dir', help='Specify the directory which contains ' 418 return parser.parse_args()
|
D | init.cpp | 1085 Parser& parser = Parser::GetInstance(); in main() local 1086 parser.AddSectionParser("service",std::make_unique<ServiceParser>()); in main() 1087 parser.AddSectionParser("on", std::make_unique<ActionParser>()); in main() 1088 parser.AddSectionParser("import", std::make_unique<ImportParser>()); in main() 1091 parser.ParseConfig("/init.rc"); in main() 1092 parser.set_is_system_etc_init_loaded( in main() 1093 parser.ParseConfig("/system/etc/init")); in main() 1094 parser.set_is_vendor_etc_init_loaded( in main() 1095 parser.ParseConfig("/vendor/etc/init")); in main() 1096 parser.set_is_odm_etc_init_loaded(parser.ParseConfig("/odm/etc/init")); in main() [all …]
|
D | Android.mk | 45 parser/tokenizer.cpp \ 54 parser/tokenizer_test.cpp \ 70 parser.cpp \
|
D | builtins.cpp | 375 Parser& parser = Parser::GetInstance(); in import_late() local 378 if (!parser.is_system_etc_init_loaded()) { in import_late() 379 parser.ParseConfig("/system/etc/init"); in import_late() 380 parser.set_is_system_etc_init_loaded(true); in import_late() 382 if (!parser.is_vendor_etc_init_loaded()) { in import_late() 383 parser.ParseConfig("/vendor/etc/init"); in import_late() 384 parser.set_is_vendor_etc_init_loaded(true); in import_late() 386 if (!parser.is_odm_etc_init_loaded()) { in import_late() 387 parser.ParseConfig("/odm/etc/init"); in import_late() 388 parser.set_is_odm_etc_init_loaded(true); in import_late() [all …]
|
/system/tools/aidl/tests/ |
D | integration-test.py | 174 parser = argparse.ArgumentParser(description=__doc__) 175 parser.add_argument( 178 parser.add_argument('--verbose', '-v', action='store_true', default=False) 179 args = parser.parse_args()
|
/system/extras/perfprofd/ |
D | perf_data_converter.cc | 60 quipper::PerfParser parser; in RawPerfDataToAndroidPerfProfile() local 61 if (!parser.ReadFile(perf_file) || !parser.ParseRawEvents()) { in RawPerfDataToAndroidPerfProfile() 77 for (const auto &event : parser.parsed_events()) { in RawPerfDataToAndroidPerfProfile() 141 parser.GetFilenamesToBuildIDs(&name_buildid_map); in RawPerfDataToAndroidPerfProfile()
|
/system/extras/verity/ |
D | build_verity_metadata.py | 86 parser = argparse.ArgumentParser() variable 87 subparsers = parser.add_subparsers() 104 args = parser.parse_args()
|
/system/extras/pagecache/ |
D | pagecache.py | 352 parser = optparse.OptionParser(usage=usage, description=desc) 353 parser.add_option('-d', dest='inode_dump_file', metavar='FILE', 357 parser.add_option('-i', dest='inode_data_file', metavar='FILE', 360 parser.add_option('-s', '--serial', dest='device_serial', type='string', 362 parser.add_option('-f', dest='trace_file', metavar='FILE', 364 parser.add_option('-a', dest='app_name', type='string', 367 options, categories = parser.parse_args(argv[1:]) 369 parser.error('options -d and -i can\'t be used at the same time')
|
/system/tpm/attestation/common/ |
D | proto_print.py | 397 parser = argparse.ArgumentParser(description='print proto code generator') 398 parser.add_argument('input_file') 399 parser.add_argument('--subdir', default='') 400 args = parser.parse_args()
|