/system/dmesgd/ |
D | dmesg_parser_test.cpp | 29 dmesg_parser::DmesgParser parser; member in DmesgParserTest 34 for (auto line : lines) parser.ProcessLine(line); in ReadLines() 38 if (!parser.ReportReady()) return false; in CheckReport() 39 parsed_report = parser.FlushReport(); in CheckReport() 65 ASSERT_TRUE(parser.ReportReady()); in TEST_F() 66 ASSERT_EQ("KASAN", parser.ReportType()); in TEST_F() 67 ASSERT_EQ("BUG: KASAN: invalid-access in crash_write+0x134/0x140", parser.ReportTitle()); in TEST_F() 104 ASSERT_TRUE(parser.ReportReady()); in TEST_F() 105 ASSERT_EQ("KASAN", parser.ReportType()); in TEST_F() 106 ASSERT_EQ("BUG: KASAN: invalid-access in crash_write+0x134/0x140", parser.ReportTitle()); in TEST_F() [all …]
|
/system/sepolicy/build/ |
D | build_sepolicy.py | 98 parser = subparsers.add_parser('build_cil', help='build CIL files') 99 parser.add_argument('-i', '--input_policy_conf', required=True, 101 parser.add_argument('-m', '--reqd_mask', required=True, 103 parser.add_argument('-b', '--base_policy', required=True, 105 parser.add_argument('-t', '--treble_sepolicy_vers', required=True, 107 parser.add_argument('-p', '--policy_vers', required=True, 111 parser.add_argument('-c', '--checkpolicy_env', 113 parser.add_argument('-f', '--filter_out_files', nargs='+', 115 parser.add_argument('-d', '--dependent_cils', nargs='+', 118 parser.add_argument('-o', '--output_cil', help='the output cil file') [all …]
|
/system/tools/aidl/ |
D | aidl_language_l.ll | 22 #include "parser.h" 26 #define YYSTYPE yy::parser::semantic_type 30 #define YYLTYPE yy::parser::location_type 70 return yy::parser::token::C_STR; } 102 "<<" { return(yy::parser::token::LSHIFT); } 103 ">>" { return(yy::parser::token::RSHIFT); } 104 "&&" { return(yy::parser::token::LOGICAL_AND); } 105 "||" { return(yy::parser::token::LOGICAL_OR); } 108 "<=" { return(yy::parser::token::LEQ); } 109 ">=" { return(yy::parser::token::GEQ); } [all …]
|
/system/extras/ext4_utils/ |
D | mkuserimg_mke2fs.py | 68 parser = argparse.ArgumentParser( 72 parser.add_argument("src_dir", help="The source directory for user image.") 73 parser.add_argument("output_file", help="The path of the output image file.") 74 parser.add_argument("ext_variant", choices=["ext2", "ext4"], 76 parser.add_argument("mount_point", help="The mount point for user image.") 77 parser.add_argument("fs_size", help="Size of the file system.") 78 parser.add_argument("file_contexts", nargs='?', 81 parser.add_argument("--android_sparse", "-s", action="store_true", 83 parser.add_argument("--journal_size", "-j", 85 parser.add_argument("--timestamp", "-T", [all …]
|
/system/tools/mkbootimg/gki/ |
D | generate_gki_certificate.py | 52 parser = ArgumentParser(add_help=True) 55 parser.add_argument('image', help='path to the image') 56 parser.add_argument('-o', '--output', required=True, 58 parser.add_argument('--name', required=True, 61 parser.add_argument('--algorithm', required=True, 63 parser.add_argument('--key', required=True, 67 parser.add_argument('--avbtool', default='avbtool', 69 parser.add_argument('--salt', help='salt to use when computing image hash') 70 parser.add_argument('--additional_avb_args', default=[], action='append', 73 args = parser.parse_args()
|
/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/sepolicy/tests/ |
D | searchpolicy.py | 20 parser = argparse.ArgumentParser( variable 23 parser.add_argument("policy", help="Path to the SELinux policy to search.", nargs="?") 24 parser.add_argument("--libpath", dest="libpath", help="Path to the libsepolwrap.so", nargs="?") 25 tertypes = parser.add_argument_group("TE Rule Types") 29 expr = parser.add_argument_group("Expressions") 39 args = parser.parse_args() 42 parser.error("Must specify \"--allow\"") 45 parser.error("Must include path to policy") 47 parser.error("Must include path to libsepolwrap library") 50 parser.error("Must something to filter on, e.g. --source, --target, etc.")
|
D | sepolicy_tests.py | 131 def take_action(self, action, dest, opt, value, values, parser): argument 135 Option.take_action(self, action, dest, opt, value, values, parser) 159 parser = OptionParser(option_class=MultipleOption, usage=usage) 160 parser.add_option("-f", "--file_contexts", dest="file_contexts", 162 parser.add_option("-p", "--policy", dest="policy", metavar="FILE") 163 parser.add_option("-t", "--test", dest="test", action="extend", 166 (options, args) = parser.parse_args() 169 sys.exit("Must specify monolithic policy file\n" + parser.usage) 172 + parser.usage) 175 sys.exit("Error: Must specify file_contexts file(s)\n" + parser.usage) [all …]
|
D | check_prop_prefix.py | 35 parser = argparse.ArgumentParser( 38 parser.add_argument("--property-contexts", help="Path to property_contexts file.") 39 parser.add_argument("--allowed-property-prefix", action="extend", nargs="*", 41 parser.add_argument("--allowed-context-prefix", action="extend", nargs="*", 43 parser.add_argument('--strict', action='store_true', 46 return parser.parse_args()
|
D | combine_maps.py | 59 parser = argparse.ArgumentParser() variable 60 parser.add_argument("-t", "--top-map", dest="top_map", 62 parser.add_argument("-b", "--bottom-map", dest="bottom_map", 64 parser.add_argument("-o", "--output-file", dest="output_file", 66 args = parser.parse_args()
|
/system/extras/simpleperf/scripts/ |
D | stackcollapse.py | 105 parser = BaseArgumentParser(description=__doc__) 106 parser.add_argument('--symfs', 108 parser.add_argument('--kallsyms', help='Set the path to find kernel symbols.') 109 parser.add_argument('-i', '--record_file', nargs='?', default='perf.data', 111 parser.add_argument('--pid', action='store_true', help='Include PID with process names') 112 parser.add_argument('--tid', action='store_true', help='Include TID and PID with process names') 113 parser.add_argument('--kernel', action='store_true', 115 parser.add_argument('--jit', action='store_true', help='Annotate JIT functions with a _[j]') 116 parser.add_argument('--addrs', action='store_true', 118 sample_filter_group = parser.add_argument_group('Sample filter options') [all …]
|
D | report_sample.py | 83 parser = BaseArgumentParser(description='Report samples in perf.data.') 84 parser.add_argument('--symfs', 86 parser.add_argument('--kallsyms', help='Set the path to find kernel symbols.') 87 parser.add_argument('-i', '--record_file', nargs='?', default='perf.data', 89 parser.add_argument('--show_tracing_data', action='store_true', help='print tracing data.') 90 parser.add_argument('--header', action='store_true', 92 parser.add_argument('-o', '--output_file', default='', help=""" 94 parser.add_report_lib_options() 95 args = parser.parse_args()
|
/system/apex/tools/ |
D | apexer_with_trim_preprocessing.py | 23 parser = argparse.ArgumentParser( 25 parser.add_argument( 28 parser.add_argument( 31 parser.add_argument( 34 parser.add_argument( 37 parser.add_argument( 41 parser.add_argument( 45 parser.add_argument( 49 return parser.parse_args(argv)
|
D | apexer_with_DCLA_preprocessing.py | 21 parser = argparse.ArgumentParser( 23 parser.add_argument( 26 parser.add_argument( 29 parser.add_argument( 33 parser.add_argument( 37 parser.add_argument( 41 return parser.parse_args(argv)
|
/system/core/init/ |
D | ueventd_parser.cpp | 243 auto parser = parser_map.Find(args); in ParseLineSection() local 245 if (!parser.ok()) return Error() << parser.error(); in ParseLineSection() 247 return std::invoke(*parser, this, std::move(args)); in ParseLineSection() 257 Parser parser; in ParseConfig() local 260 parser.AddSectionParser("import", std::make_unique<ImportParser>(&parser)); in ParseConfig() 261 parser.AddSectionParser("subsystem", in ParseConfig() 265 parser.AddSingleLineParser( in ParseConfig() 268 parser.AddSingleLineParser("/dev/", std::bind(ParsePermissionsLine, _1, nullptr, in ParseConfig() 270 parser.AddSingleLineParser("firmware_directories", in ParseConfig() 273 parser.AddSingleLineParser("external_firmware_handler", in ParseConfig() [all …]
|
/system/extras/perf2cfg/ |
D | perf2cfg.py | 38 parser = argparse.ArgumentParser( 48 required = parser.add_argument_group('required arguments') 57 parser.add_argument('-h', 62 parser.add_argument('--output-file', help='A path to the output CFG file.') 63 parser.add_argument( 70 parser.add_argument( 77 args = parser.parse_args()
|
/system/core/fastboot/testdata/ |
D | fastboot_gen_rand.py | 24 parser = argparse.ArgumentParser(description=__doc__) variable 25 parser.add_argument('--seed', help='Seed to random generator') 26 parser.add_argument('--length', type=int, required=True, help='Length of output') 27 args = parser.parse_args()
|
/system/core/fs_mgr/libsnapshot/scripts/ |
D | dump_snapshot_proto.py | 20 parser = argparse.ArgumentParser() 21 parser.add_argument('type', type = str, help = 'Type (snapshot or update)') 22 parser.add_argument('file', type = str, help = 'Input file') 23 args = parser.parse_args()
|
/system/tools/mkbootimg/ |
D | mkbootimg.py | 439 parser = ArgumentParser(add_help=False) 440 parser.add_argument('--ramdisk_type', type=parse_vendor_ramdisk_type, 442 parser.add_argument('--ramdisk_name', 446 parser.add_argument(f'--board_id{i}', type=parse_int, default=0) 447 parser.add_argument(PARSER_ARGUMENT_VENDOR_RAMDISK_FRAGMENT, required=True) 461 ramdisk_args, extra_args = parser.parse_known_args(vendor_ramdisk_args) 496 parser = ArgumentParser(formatter_class=RawDescriptionHelpFormatter, 498 parser.add_argument('--kernel', type=FileType('rb'), 500 parser.add_argument('--ramdisk', type=FileType('rb'), 502 parser.add_argument('--second', type=FileType('rb'), [all …]
|
/system/update_engine/scripts/ |
D | blockdiff.py | 87 parser = argparse.ArgumentParser( 91 parser.add_argument('-b', '--block-size', metavar='NUM', type=int, 93 parser.add_argument('-m', '--max-length', metavar='NUM', type=int, default=-1, 95 parser.add_argument('file1', metavar='FILE1') 96 parser.add_argument('file2', metavar='FILE2') 98 args = parser.parse_args(argv[1:])
|
D | paycheck.py | 77 parser = argparse.ArgumentParser( 92 check_args = parser.add_argument_group('Checking payload integrity') 122 apply_args = parser.add_argument_group('Applying payload') 140 parser.add_argument('payload', metavar='PAYLOAD', help='the payload file') 141 parser.add_argument('--part_names', metavar='NAME', nargs='+', 145 args = parser.parse_args(argv) 161 parser.error('partitions in --%s do not match --part_names' % arg) 170 parser.error('%s payload does not accept source partition arguments' 176 parser.error('%s payload requires source partitions arguments' 183 parser.error('--extract-bsdiff can only be used when applying payloads') [all …]
|
D | update_device.py | 449 parser = argparse.ArgumentParser(description='Android A/B OTA helper.') 450 parser.add_argument('otafile', metavar='PAYLOAD', type=str, 453 parser.add_argument('--file', action='store_true', 455 parser.add_argument('--no-push', action='store_true', 457 parser.add_argument('-s', type=str, default='', metavar='DEVICE', 459 parser.add_argument('--no-verbose', action='store_true', 461 parser.add_argument('--public-key', type=str, default='', 463 parser.add_argument('--extra-headers', type=str, default='', 465 parser.add_argument('--secondary', action='store_true', 467 parser.add_argument('--no-slot-switch', action='store_true', [all …]
|
D | ota_stress_test.py | 97 parser = argparse.ArgumentParser( 99 parser.add_argument('otafile', metavar='PAYLOAD', type=Path, 102 parser.add_argument('-n', "--iterations", type=int, default=10, 106 parser.add_argument('-r', "--resumes", type=int, default=5, metavar='RESUMES', 109 parser.add_argument('-t', "--timeout", type=int, default=60*60, 113 args = parser.parse_args()
|
/system/core/storaged/tools/ |
D | ranker.py | 50 parser = argparse.ArgumentParser() 51 parser.add_argument("-i", "--input", dest="input", required="true", 53 parser.add_argument("-o", "--output", dest="output", default="stdout", 55 parser.add_argument("-u", "--uidcnt", dest="uidcnt", type=int, default=10, 58 parser.add_argument("-c", "--combine", dest="combine", default=False, 61 parser.add_argument("-n", "--native", dest="native", default=False, 64 parser.add_argument("-t", "--task", dest="task", default=False, 67 return parser.parse_args()
|
/system/libufdt/utils/src/ |
D | mkdtboimg.py | 598 parser = argparse.ArgumentParser(add_help=False) 599 parser.add_argument('dt_file', nargs='?', 602 parser.add_argument('--id', type=str, dest='id', action='store', 604 parser.add_argument('--rev', type=str, dest='rev', 606 parser.add_argument('--flags', type=str, dest='flags', 609 parser.add_argument('--custom0', type=str, dest='custom0', 612 parser.add_argument('--custom1', type=str, dest='custom1', 615 parser.add_argument('--custom2', type=str, dest='custom2', 618 parser.add_argument('--custom3', type=str, dest='custom3', 621 return parser.parse_args(arglist) [all …]
|