/packages/modules/Virtualization/pvmfw/src/ |
D | bootargs.rs | 25 arg: &'a str, field 31 self.arg in as_ref() 39 &self.arg[..n] in name() 41 self.arg in name() 47 Some(&self.arg[self.equal_sign?..]) in value() 53 arg: &'a str, field 59 let arg = bootargs.to_str().map_err(|e| format!("{e}"))?; in new() localVariable 60 if !arg.is_ascii() { in new() 64 Ok(Self { arg }) in new() 88 let arg = self.arg.trim_start(); in next() localVariable [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/sap/ |
D | SapRilReceiverHidlTest.java | 144 arg -> (arg instanceof Long) && ((Long) arg == cookie) in serviceDied() 158 public boolean matches(Object arg) { in callback_connectResponse() 159 if (!(arg instanceof SapMessage)) { in callback_connectResponse() 162 SapMessage sapMsg = (SapMessage) arg; in callback_connectResponse() 178 public boolean matches(Object arg) { in callback_disconnectResponse() 179 if (!(arg instanceof SapMessage)) { in callback_disconnectResponse() 182 SapMessage sapMsg = (SapMessage) arg; in callback_disconnectResponse() 198 public boolean matches(Object arg) { in callback_disconnectIndication() 199 if (!(arg instanceof SapMessage)) { in callback_disconnectIndication() 202 SapMessage sapMsg = (SapMessage) arg; in callback_disconnectIndication() [all …]
|
D | SapRilReceiverTest.java | 150 arg -> (arg instanceof Long) && ((Long) arg == 0) in binderDied() 164 public boolean matches(Object arg) { in callback_connectResponse() 165 if (!(arg instanceof SapMessage)) { in callback_connectResponse() 168 SapMessage sapMsg = (SapMessage) arg; in callback_connectResponse() 184 public boolean matches(Object arg) { in callback_disconnectResponse() 185 if (!(arg instanceof SapMessage)) { in callback_disconnectResponse() 188 SapMessage sapMsg = (SapMessage) arg; in callback_disconnectResponse() 204 public boolean matches(Object arg) { in callback_disconnectIndication() 205 if (!(arg instanceof SapMessage)) { in callback_disconnectIndication() 208 SapMessage sapMsg = (SapMessage) arg; in callback_disconnectIndication() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/ |
D | Bpf2Apf.java | 39 private static int parseImm(String line, String arg) { in parseImm() argument 40 if (!arg.startsWith("#0x")) { in parseImm() 43 final long val_long = Long.parseLong(arg.substring(3), 16); in parseImm() 63 String arg = line.substring(15, Math.min(32, line.length())).trim(); in convertLine() local 72 if (arg.equals("4*([14]&0xf)")) { in convertLine() 79 if (arg.equals("#pktlen")) { in convertLine() 86 if (arg.startsWith("#0x")) { in convertLine() 90 gen.addLoadImmediate(dest, parseImm(line, arg)); in convertLine() 93 if (arg.startsWith("M[")) { in convertLine() 97 int memory_slot = Integer.parseInt(arg.substring(2, arg.length() - 1)); in convertLine() [all …]
|
/packages/modules/Virtualization/virtualizationmanager/src/ |
D | crosvm.rs | 690 .arg("--extended-status") in run_vm() 693 .arg("--log-level") in run_vm() 694 .arg("info,disk=warn") in run_vm() 695 .arg("run") in run_vm() 696 .arg("--disable-sandbox") in run_vm() 697 .arg("--cid") in run_vm() 698 .arg(config.cid.to_string()); in run_vm() 701 command.arg("--balloon-page-reporting"); in run_vm() 703 command.arg("--no-balloon"); in run_vm() 709 command.arg("--protected-vm-with-firmware").arg(pvmfw_path) in run_vm() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/js/ |
D | JSScriptArgumentTest.java | 40 JSScriptArgument arg = stringArg("stringArg", "value"); in testStringArg() local 41 assertThat(arg.variableDeclaration()).isEqualTo("const stringArg = \"value\";"); in testStringArg() 46 JSScriptArgument arg = numericArg("numericArg", 1); in testIntArg() local 47 assertThat(arg.variableDeclaration()).isEqualTo("const numericArg = 1;"); in testIntArg() 52 JSScriptArgument arg = numericArg("numericArg", 1.001); in testFloatArg() local 53 assertThat(arg.variableDeclaration()).isEqualTo("const numericArg = 1.001;"); in testFloatArg() 59 JSScriptArgument arg = jsonArg("jsonArg", jsonValue); in testJsonArg() local 60 assertThat(arg.variableDeclaration()) in testJsonArg() 73 JSScriptArgument arg = in testArrayArg() local 77 assertThat(arg.variableDeclaration()) in testArrayArg() [all …]
|
/packages/modules/Bluetooth/system/gd/packet/parser/ |
D | main.cc | 155 std::string arg = argv[i]; in main() local 156 if (arg.find(arg_source_root) == 0) { in main() 157 source_root = std::filesystem::path(arg.substr(arg_source_root.size())); in main() 162 std::string arg = argv[i]; in main() local 163 if (arg.find(arg_out) == 0) { in main() 164 out_dir = cwd / std::filesystem::path(arg.substr(arg_out.size())); in main() 165 } else if (arg.find(arg_include) == 0) { in main() 166 include_dir = source_root / std::filesystem::path(arg.substr(arg_include.size())); in main() 167 } else if (arg.find(arg_namespace) == 0) { in main() 168 root_namespace = arg.substr(arg_namespace.size()); in main() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/ |
D | BluetoothMapbMessage.java | 567 String[] arg = line.split(":"); in parse() local 568 if (arg != null && arg.length == 2) { in parse() 569 if (arg[1].trim().equals("READ")) { in parse() 571 } else if (arg[1].trim().equals("UNREAD")) { in parse() 574 throw new IllegalArgumentException("Wrong value in 'STATUS': " + arg[1]); in parse() 581 String[] arg = line.split(":"); in parse() local 582 if (arg != null && arg.length == 2) { in parse() 583 String value = arg[1].trim(); in parse() 589 String[] arg = line.split(":"); in parse() local 590 if (arg != null && arg.length == 2) { in parse() [all …]
|
/packages/modules/adb/ |
D | socket_test.cpp | 113 static void CreateCloser(CloseWithPacketArg* arg) { in CreateCloser() argument 114 fdevent_run_on_looper([arg]() { in CreateCloser() 115 asocket* s = create_local_socket(std::move(arg->socket_fd)); in CreateCloser() 117 arg->bytes_written = 0; in CreateCloser() 127 arg->bytes_written += data.size(); in CreateCloser() 141 asocket* cause_close_s = create_local_socket(std::move(arg->cause_close_fd)); in CreateCloser() 159 CloseWithPacketArg arg; in TEST_F() local 160 arg.socket_fd.reset(socket_fd[1]); in TEST_F() 161 arg.cause_close_fd.reset(cause_close_fd[1]); in TEST_F() 164 CreateCloser(&arg); in TEST_F() [all …]
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | DictionaryMaker.java | 128 final String arg = args.get(0); in Arguments() local 130 if (arg.charAt(0) == '-') { in Arguments() 131 if (OPTION_VERSION_2.equals(arg)) { in Arguments() 133 } else if (OPTION_VERSION_4.equals(arg)) { in Arguments() 135 } else if (OPTION_HELP.equals(arg)) { in Arguments() 140 throw new IllegalArgumentException("Option " + arg + " is unknown or " in Arguments() 145 if (OPTION_INPUT_SOURCE.equals(arg)) { in Arguments() 154 } else if (OPTION_OUTPUT_BINARY.equals(arg)) { in Arguments() 156 } else if (OPTION_OUTPUT_COMBINED.equals(arg)) { in Arguments() 158 } else if (OPTION_CODE_POINT_TABLE.equals(arg)) { in Arguments() [all …]
|
/packages/modules/Bluetooth/system/gd/facade/ |
D | facade_main.cc | 125 std::string arg = argv[i]; in main() local 126 if (arg.find(arg_grpc_root_server_port) == 0) { in main() 127 auto port_number = arg.substr(arg_grpc_root_server_port.size()); in main() 130 if (arg.find(arg_grpc_server_port) == 0) { in main() 131 auto port_number = arg.substr(arg_grpc_server_port.size()); in main() 134 if (arg.find(arg_rootcanal_port) == 0) { in main() 135 auto port_number = arg.substr(arg_rootcanal_port.size()); in main() 138 if (arg.find(arg_btsnoop_path) == 0) { in main() 139 auto btsnoop_path = arg.substr(arg_btsnoop_path.size()); in main() 144 if (arg.find(arg_btsnooz_path) == 0) { in main() [all …]
|
/packages/modules/Bluetooth/system/tools/scripts/ |
D | dump_hearingaid_audio.py | 550 arg = argv_parser.parse_args() 552 if arg.folder is not None: 554 folder = arg.folder 556 if arg.connection_handle1 is not None and arg.connection_handle2 is not None \ 557 and arg.connection_handle1 == arg.connection_handle2: 562 if not (arg.no_start.lower() == "true" or arg.no_start.lower() == "false"): 566 if arg.connection_handle1 is not None: 567 fake_name = "ConnectionHandle" + str(arg.connection_handle1) 569 update_audio_data(PEER_ADDRESS, fake_name, CONNECTION_HANDLE, arg.connection_handle1) 570 if arg.no_start.lower() == "true": [all …]
|
/packages/modules/ImsMedia/tests/unit/src/com/android/telephony/imsmedia/ |
D | ImsMediaManagerTest.java | 82 for (Object arg : args) { in setUp() 83 if (arg instanceof ServiceConnection) { in setUp() 84 synchronized (arg) { in setUp() 86 ((ServiceConnection) arg).onServiceConnected(null, in setUp() 88 arg.notify(); in setUp() 90 } else if (arg instanceof Intent) { in setUp() 92 Intent intent = (Intent) arg; in setUp() 111 for (Object arg : args) { in setUp() 112 if (arg instanceof ServiceConnection) { in setUp() 113 synchronized (arg) { in setUp() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/dbus_projection/dbus_macros/src/ |
D | lib.rs | 602 dbus::arg::ArgType::Variant => {} in dbus_propmap() 641 map__.insert(String::from(#field_str), dbus::arg::Variant(Box::new(field_data__))); in dbus_propmap() 650 type DBusType = dbus::arg::PropMap; in dbus_propmap() 653 data__: dbus::arg::PropMap, in dbus_propmap() 665 … fn to_dbus(data__: #struct_ident) -> Result<dbus::arg::PropMap, Box<dyn std::error::Error>> { in dbus_propmap() 666 let mut map__: dbus::arg::PropMap = std::collections::HashMap::new(); in dbus_propmap() 920 use dbus::arg::RefArg; in generate_dbus_arg() 967 arg: &(dyn dbus::arg::RefArg + 'static), in generate_dbus_arg() 975 arg: &(dyn dbus::arg::RefArg + 'static), in generate_dbus_arg() 978 let any = arg.as_any(); in generate_dbus_arg() [all …]
|
/packages/modules/DnsResolver/tests/ |
D | resolv_stats_test_utils.h | 63 arg, result_listener); 67 const int eventSize = arg.dns_query_event_size(); 75 PrintTo(arg.dns_query_event(i), result_listener->stream()); 81 ::testing::Value(arg.dns_query_event(i), DnsQueryEventEq(other.dns_query_event(i))); 84 PrintTo(arg.dns_query_event(i), result_listener->stream()); 124 arg, result_listener); 135 arg, result_listener); 139 const int server_size = arg.server_size(); 145 if (!::testing::Value(arg.server(i), ServerEq(other.server(i)))) { 147 PrintTo(arg.server(i), result_listener->stream()); [all …]
|
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/display/ |
D | ThemePreferenceControllerTest.java | 91 ArgumentCaptor<String[]> arg = ArgumentCaptor.forClass(String[].class); in testUpdateState() local 92 verify(pref).setEntries(arg.capture()); in testUpdateState() 95 CharSequence[] entries = arg.getValue(); in testUpdateState() 98 verify(pref).setEntryValues(arg.capture()); in testUpdateState() 99 CharSequence[] entryValues = arg.getValue(); in testUpdateState() 130 ArgumentCaptor<String[]> arg = ArgumentCaptor.forClass(String[].class); in testUpdateState_withStaticOverlay() local 131 verify(pref).setEntries(arg.capture()); in testUpdateState_withStaticOverlay() 134 CharSequence[] entries = arg.getValue(); in testUpdateState_withStaticOverlay() 137 verify(pref).setEntryValues(arg.capture()); in testUpdateState_withStaticOverlay() 138 CharSequence[] entryValues = arg.getValue(); in testUpdateState_withStaticOverlay()
|
/packages/modules/Bluetooth/system/embdrv/lc3/tools/ |
D | elc3.c | 84 const char *arg = argv[iarg++]; in parse_args() local 86 if (arg[0] == '-') { in parse_args() 87 if (arg[2] != '\0') in parse_args() 88 error(EINVAL, "Option %s", arg); in parse_args() 90 char opt = arg[1]; in parse_args() 96 error(EINVAL, "Argument %s", arg); in parse_args() 106 error(EINVAL, "Option %s", arg); in parse_args() 112 p.fname_in = arg; in parse_args() 114 p.fname_out = arg; in parse_args() 116 error(EINVAL, "Argument %s", arg); in parse_args()
|
D | dlc3.c | 90 const char *arg = argv[iarg++]; in parse_args() local 92 if (arg[0] == '-') { in parse_args() 93 if (arg[2] != '\0') in parse_args() 94 error(EINVAL, "Option %s", arg); in parse_args() 96 char opt = arg[1]; in parse_args() 102 error(EINVAL, "Argument %s", arg); in parse_args() 111 error(EINVAL, "Option %s", arg); in parse_args() 117 p.fname_in = arg; in parse_args() 119 p.fname_out = arg; in parse_args() 121 error(EINVAL, "Argument %s", arg); in parse_args()
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | DynamicShortcutsTests.java | 160 final List<ShortcutInfo> arg = updateArgs.getValue(); in test_updatePinned_updatesExistingShortcutsWithMatchingKeys() local 161 assertThat(arg.size(), equalTo(3)); in test_updatePinned_updatesExistingShortcutsWithMatchingKeys() 162 assertThat(arg.get(0), in test_updatePinned_updatesExistingShortcutsWithMatchingKeys() 164 assertThat(arg.get(1), in test_updatePinned_updatesExistingShortcutsWithMatchingKeys() 166 assertThat(arg.get(2), in test_updatePinned_updatesExistingShortcutsWithMatchingKeys() 187 final List<ShortcutInfo> arg = updateArgs.getValue(); in test_refresh_setsDynamicShortcutsToStrequentContacts() local 188 assertThat(arg.size(), equalTo(3)); in test_refresh_setsDynamicShortcutsToStrequentContacts() 189 assertThat(arg.get(0), isShortcutForContact(1l, "starred_key", "starred name")); in test_refresh_setsDynamicShortcutsToStrequentContacts() 190 assertThat(arg.get(1), isShortcutForContact(2l, "freq_key", "freq name")); in test_refresh_setsDynamicShortcutsToStrequentContacts() 191 assertThat(arg.get(2), isShortcutForContact(3l, "starred_2", "Starred Two")); in test_refresh_setsDynamicShortcutsToStrequentContacts() [all …]
|
/packages/modules/Bluetooth/system/osi/test/ |
D | reactor_test.cc | 77 unregister_arg_t* arg = (unregister_arg_t*)context; in unregister_cb() local 78 reactor_unregister(arg->object); in unregister_cb() 79 reactor_stop(arg->reactor); in unregister_cb() 86 unregister_arg_t arg; in TEST_F() local 87 arg.reactor = reactor; in TEST_F() 88 arg.object = reactor_register(reactor, fd, &arg, unregister_cb, NULL); in TEST_F()
|
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/ |
D | _rootcanal.py | 36 args = [str(arg) for arg in args] 41 encoded_args = chr(args_size) + "".join(chr(len(arg)) + arg for arg in args) 65 for arg in args: 66 arg.encode() 72 for arg in args: 73 if len(arg) > 255:
|
/packages/modules/Virtualization/vmbase/src/ |
D | console.rs | 78 ($($arg:tt)*) => ({ 79 $crate::console::write_args(format_args!($($arg)*))}; 91 ($($arg:tt)*) => ($crate::console::emergency_write_args(format_args!($($arg)*))); 101 ($($arg:tt)*) => ({ 102 $crate::console::emergency_write_args(format_args!($($arg)*))};
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/ |
D | test.py | 279 for arg in sys.argv[1:]: 280 if arg in ('-h', '--help'): 283 elif arg in ('-n', '--no-cleanup'): 285 elif arg in ('-u', '--update-cts'): 287 elif arg in ('-v', '--verbose'): 289 elif arg in ('-z', '--zero-return'): 293 if os.path.isdir(arg): 294 files.append(arg) 296 print >> sys.stderr, 'Invalid test or option: %s' % arg
|
/packages/modules/Bluetooth/system/gd/rust/topshim/facade/src/ |
D | main.rs | 48 .arg( in clap_command() 54 .arg( in clap_command() 60 .arg( in clap_command() 66 .arg(Arg::new("rootcanal-port").long("rootcanal-port").value_parser(value_parser!(u16))) in clap_command() 67 .arg(Arg::new("btsnoop").long("btsnoop")) in clap_command() 68 .arg(Arg::new("btsnooz").long("btsnooz")) in clap_command() 69 .arg(Arg::new("btconfig").long("btconfig")) in clap_command() 70 .arg( in clap_command()
|
/packages/modules/Bluetooth/tools/pdl/src/ |
D | test_utils.rs | 89 .arg("--unified") in diff() 90 .arg("--color=always") in diff() 91 .arg("--label") in diff() 92 .arg(left_label) in diff() 93 .arg("--label") in diff() 94 .arg(right_label) in diff() 95 .arg(temp_left.path()) in diff() 96 .arg(temp_right.path()) in diff()
|