/packages/services/Telephony/src/com/android/services/telephony/ |
D | Log.java | 43 public static void d(String prefix, String format, Object... args) { in d() argument 44 android.util.Log.d(TAG, (args == null || args.length == 0) ? format : in d() 45 String.format(prefix + ": " + format, args)); in d() 48 public static void d(Object objectPrefix, String format, Object... args) { in d() argument 49 android.util.Log.d(TAG, (args == null || args.length == 0) ? format : in d() 50 String.format(getPrefixFromObject(objectPrefix) + ": " + format, args)); in d() 53 public static void i(String prefix, String format, Object... args) { in i() argument 54 android.util.Log.i(TAG, (args == null || args.length == 0) ? format : in i() 55 String.format(prefix + ": " + format, args)); in i() 58 public static void i(Object objectPrefix, String format, Object... args) { in i() argument [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/model/setup/ |
D | test_command_handler.cc | 89 const vector<std::string>& args) { in HandleCommand() argument 95 active_commands_[name](args); in HandleCommand() 104 void TestCommandHandler::AddDevice(const vector<std::string>& args) { in AddDevice() argument 105 if (args.empty()) { in AddDevice() 110 std::shared_ptr<Device> new_dev = DeviceBoutique::Create(args); in AddDevice() 113 response_string_ = "TestCommandHandler 'add' " + args[0] + " failed!"; in AddDevice() 126 void TestCommandHandler::AddRemote(const vector<std::string>& args) { in AddRemote() argument 127 if (args.size() < 3) { in AddRemote() 134 size_t port = ParseIntParam(args[1]); in AddRemote() 136 if ("LOW_ENERGY" == args[2]) { in AddRemote() [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/scripts/ |
D | test_channel.py | 99 def send_command(self, name, args): argument 101 args_size = len(args) 102 self.lint_command(name, args, name_size, args_size) 104 encoded_args = chr(args_size) + ''.join(chr(len(arg)) + arg for arg in args) 125 def lint_command(self, name, args, name_size, args_size): argument 126 assert name_size == len(name) and args_size == len(args) 129 for arg in args: 136 for arg in args: 157 def do_add(self, args): argument 161 self._test_channel.send_command('add', args.split()) [all …]
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/serviceflow/ |
D | ServiceFlowFactory.java | 43 public static ServiceFlow createInstance(ServiceFlowType serviceFlowType, Object... args) { in createInstance() argument 46 new AppRequestFlow((String) args[0], (ComponentName) args[1], (Bundle) args[2], in createInstance() 47 (IExecuteCallback) args[3], (Context) args[4], (long) args[5], in createInstance() 48 (long) args[6]); in createInstance() 50 new RenderFlow((String) args[0], (IBinder) args[1], (int) args[2], in createInstance() 51 (int) args[3], (int) args[4], (IRequestSurfacePackageCallback) args[5], in createInstance() 52 (Context) args[6], (long) args[7], (long) args[8]); in createInstance() 54 new WebTriggerFlow((Bundle) args[0], (Context) args[1], in createInstance() 55 (IRegisterMeasurementEventCallback) args[2], (long) args[3], in createInstance() 56 (long) args[4]); in createInstance() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | LogUtils.kt | 27 fun v(message: String, vararg args: Any?) { in v() 28 DEFAULT_LOGGER.v(message, *args) in v() 32 fun d(message: String, vararg args: Any?) { in d() 33 DEFAULT_LOGGER.d(message, *args) in d() 37 fun i(message: String, vararg args: Any?) { in i() 38 DEFAULT_LOGGER.i(message, *args) in i() 42 fun w(message: String, vararg args: Any?) { in w() 43 DEFAULT_LOGGER.w(message, *args) in w() 46 fun e(message: String, vararg args: Any?) { in e() 47 DEFAULT_LOGGER.e(message, *args) in e() [all …]
|
/packages/modules/Virtualization/apex/ |
D | sign_virt_apex.py | 60 def Async(fn, *args, wait=None, **kwargs): argument 65 fn(*args, **kwargs) 113 args = parser.parse_args(argv) 115 args.key_overrides = {} 116 if args.key_override: 117 for pair in args.key_override: 119 args.key_overrides[name] = key 120 return args 123 def RunCommand(args, cmd, env=None, expected_return_values=None): argument 131 cmd[0] = args.avbtool [all …]
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | ContactsAsyncHelper.java | 90 WorkerArgs args = new WorkerArgs(); in startObtainPhotoAsync() local 91 args.token = token; in startObtainPhotoAsync() 92 args.cookie = cookie; in startObtainPhotoAsync() 93 args.context = context; in startObtainPhotoAsync() 94 args.displayPhotoUri = displayPhotoUri; in startObtainPhotoAsync() 95 args.listener = listener; in startObtainPhotoAsync() 102 if (args.listener != null) { in startObtainPhotoAsync() 106 + args.listener in startObtainPhotoAsync() 108 + args.displayPhotoUri in startObtainPhotoAsync() 110 args.listener.onImageLoadComplete( in startObtainPhotoAsync() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarShellCommand.java | 607 String[] args = new String[argsList.size()]; in onCommand() local 608 argsList.toArray(args); in onCommand() 610 return exec(args, pw); in onCommand() 1078 private void runUnsetAudioMirror(String[] args, IndentingPrintWriter writer) { in runUnsetAudioMirror() argument 1080 for (int i = 2; i < args.length; i++) { in runUnsetAudioMirror() 1081 String arg = args[i]; in runUnsetAudioMirror() 1091 String inputString = args[1]; in runUnsetAudioMirror() 1172 int exec(String[] args, IndentingPrintWriter writer) { in exec() argument 1173 String cmd = args[0]; in exec() 1198 String value = args.length < 2 ? "" : args[1]; in exec() [all …]
|
/packages/modules/Virtualization/vmbase/src/hyp/hypervisor/ |
D | kvm.rs | 108 let args = [0u64; 17]; in enroll() localVariable 109 match success_or_error_64(hvc64(VENDOR_HYP_KVM_MMIO_GUARD_ENROLL_FUNC_ID, args)[0]) { in enroll() 117 let mut args = [0u64; 17]; in map() localVariable 118 args[0] = page_4kb_of(addr).try_into().unwrap(); in map() 121 let res = hvc64(VENDOR_HYP_KVM_MMIO_GUARD_MAP_FUNC_ID, args)[0]; in map() 127 checked_hvc64_expect_zero(VENDOR_HYP_KVM_MMIO_GUARD_MAP_FUNC_ID, args) in map() 131 let mut args = [0u64; 17]; in unmap() localVariable 132 args[0] = page_4kb_of(addr).try_into().unwrap(); in unmap() 135 let res = hvc64(VENDOR_HYP_KVM_MMIO_GUARD_UNMAP_FUNC_ID, args)[0]; in unmap() 143 checked_hvc64_expect_zero(VENDOR_HYP_KVM_MMIO_GUARD_UNMAP_FUNC_ID, args) in unmap() [all …]
|
D | geniezone.rs | 102 let args = [0u64; 17]; in enroll() localVariable 103 match success_or_error_64(hvc64(VENDOR_HYP_GZVM_MMIO_GUARD_ENROLL_FUNC_ID, args)[0]) { in enroll() 113 let mut args = [0u64; 17]; in map() localVariable 114 args[0] = page_4kb_of(addr).try_into().unwrap(); in map() 116 checked_hvc64_expect_zero(VENDOR_HYP_GZVM_MMIO_GUARD_MAP_FUNC_ID, args) in map() 120 let mut args = [0u64; 17]; in unmap() localVariable 121 args[0] = page_4kb_of(addr).try_into().unwrap(); in unmap() 123 checked_hvc64_expect_zero(VENDOR_HYP_GZVM_MMIO_GUARD_UNMAP_FUNC_ID, args) in unmap() 127 let args = [0u64; 17]; in granule() localVariable 128 let granule = checked_hvc64(VENDOR_HYP_GZVM_MMIO_GUARD_INFO_FUNC_ID, args)?; in granule() [all …]
|
/packages/services/Car/tools/watchdog/parser/ |
D | perf_stats_parser.py | 110 args = init_arguments() variable 112 if args.read_proto: 113 if not os.path.isfile(args.read_proto): 114 print("Error: Proto binary '%s' does not exist" % args.read_proto) 116 if args.device_run: 119 args.read_proto 124 args.read_proto 129 if args.json: 135 if not os.path.isfile(args.file): 136 print("Error: File '%s' does not exist" % args.file) [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherProvider.java | 50 public void dump(FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument 53 appState.getModel().dumpState("", fd, writer, args); in dump() 65 SqlArguments args = new SqlArguments(uri, null, null); in getType() local 66 if (TextUtils.isEmpty(args.where)) { in getType() 67 return "vnd.android.cursor.dir/" + args.table; in getType() 69 return "vnd.android.cursor.item/" + args.table; in getType() 76 SqlArguments args = new SqlArguments(uri, selection, selectionArgs); in query() local 78 qb.setTables(args.table); in query() 82 result[0] = controller.query(args.table, projection, args.where, args.args, sortOrder); in query() 126 SqlArguments args = new SqlArguments(uri); in insert() [all …]
|
/packages/modules/Connectivity/staticlibs/native/tcutils/ |
D | logging.h | 29 va_list args; in ALOGE() local 30 va_start(args, fmt); in ALOGE() 31 __android_log_vprint(ANDROID_LOG_ERROR, LOG_TAG, fmt, args); in ALOGE() 32 va_end(args); in ALOGE() 36 va_list args; in ALOGW() local 37 va_start(args, fmt); in ALOGW() 38 __android_log_vprint(ANDROID_LOG_WARN, LOG_TAG, fmt, args); in ALOGW() 39 va_end(args); in ALOGW() 43 va_list args; in ALOGI() local 44 va_start(args, fmt); in ALOGI() [all …]
|
/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/localdrive/ |
D | LocalDrive.java | 96 public static void main(String[] args) { in main() argument 98 if (args.length == 0) { in main() 103 int remainingArgsLength = args.length; in main() 105 if (args[0].equals("-s")) { in main() 106 if (args.length == 1) { in main() 109 deviceSerial = args[1]; in main() 126 int idx = args.length - remainingArgsLength; in main() 128 switch (args[idx]) { in main() 130 cmdClear(args, idx, deviceSerial); in main() 133 cmdGetData(args, idx, deviceSerial); in main() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | BluetoothActionFragment.java | 62 public static void prepareArgs(Bundle args, String key, int iconResId, int titleResId, in prepareArgs() argument 64 args.putString(ARG_KEY, key); in prepareArgs() 65 args.putInt(ARG_ICON, iconResId); in prepareArgs() 66 args.putInt(ARG_TITLE, titleResId); in prepareArgs() 67 args.putInt(ARG_SUMMARY, summaryResId); in prepareArgs() 68 args.putIntArray(ARG_CHOICES, choices); in prepareArgs() 69 args.putString(ARG_NAME, name); in prepareArgs() 70 args.putInt(ARG_DEFAULT_CHOICE, defaultChoice); in prepareArgs() 95 Bundle args = getArguments(); in onCreateActions() local 96 final String existingName = args.getString(ARG_NAME); in onCreateActions() [all …]
|
/packages/modules/adb/ |
D | bugreport_test.cpp | 73 virtual Result Perform(const ArgumentTuple& args) { in Perform() argument 75 ::std::tr1::get<0>(args)->OnStdout(output_.c_str(), output_.size()); in Perform() 78 ::std::tr1::get<0>(args)->OnStderr(output_.c_str(), output_.size()); in Perform() 105 virtual Result Perform(const ArgumentTuple& args) { in Perform() argument 106 int status = ::std::tr1::get<0>(args)->Done(status_); in Perform() 153 const char* args[] = {"bugreport", "to", "principal"}; in TEST_F() local 154 ASSERT_EQ(1, br_.DoIt(3, args)); in TEST_F() 172 const char* args[] = {"bugreport"}; in TEST_F() local 173 ASSERT_EQ(0, br_.DoIt(1, args)); in TEST_F() 191 const char* args[] = {"bugreport"}; in TEST_F() local [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | ContactsAsyncHelper.java | 111 WorkerArgs args = (WorkerArgs) msg.obj; in handleMessage() local 119 args.context, args.displayPhotoUri); in handleMessage() 125 args.photo = Drawable.createFromStream(inputStream, in handleMessage() 126 args.displayPhotoUri.toString()); in handleMessage() 130 args.photoIcon = getPhotoIconWhenAppropriate(args.context, args.photo); in handleMessage() 133 " token: " + msg.what + " image URI: " + args.displayPhotoUri); in handleMessage() 135 args.photo = null; in handleMessage() 136 args.photoIcon = null; in handleMessage() 138 " token: " + msg.what + " image URI: " + args.displayPhotoUri + in handleMessage() 152 Log.d(this, "Notifying listener: " + args.listener.toString() + in handleMessage() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/sound/ |
D | RingtonePickerPreferenceControllerTest.java | 121 Bundle args = new Bundle(); in onStart_setArgs_validRingtoneTypeSet() local 122 args.putInt(RingtoneManager.EXTRA_RINGTONE_TYPE, RingtoneManager.TYPE_RINGTONE); in onStart_setArgs_validRingtoneTypeSet() 123 args.putBoolean(RingtoneManager.EXTRA_RINGTONE_SHOW_SILENT, false); in onStart_setArgs_validRingtoneTypeSet() 124 args.putInt(RingtoneManager.EXTRA_RINGTONE_AUDIO_ATTRIBUTES_FLAGS, in onStart_setArgs_validRingtoneTypeSet() 127 mPreferenceController.setArguments(args); in onStart_setArgs_validRingtoneTypeSet() 136 Bundle args = new Bundle(); in onStart_doesNotShowSilent_noExtraPreference() local 137 args.putInt(RingtoneManager.EXTRA_RINGTONE_TYPE, RingtoneManager.TYPE_RINGTONE); in onStart_doesNotShowSilent_noExtraPreference() 138 args.putBoolean(RingtoneManager.EXTRA_RINGTONE_SHOW_SILENT, false); in onStart_doesNotShowSilent_noExtraPreference() 139 args.putInt(RingtoneManager.EXTRA_RINGTONE_AUDIO_ATTRIBUTES_FLAGS, in onStart_doesNotShowSilent_noExtraPreference() 148 mPreferenceController.setArguments(args); in onStart_doesNotShowSilent_noExtraPreference() [all …]
|
/packages/modules/common/tools/ |
D | conv_classpaths_proto.py | 23 def encode(args): argument 25 if args.format == 'json': 26 json_format.Parse(args.input.read(), pb) 28 text_format.Parse(args.input.read(), pb) 29 args.output.write(pb.SerializeToString()) 30 args.input.close() 31 args.output.close() 34 def decode(args): argument 36 pb.ParseFromString(args.input.read()) 37 if args.format == 'json': [all …]
|
/packages/modules/Virtualization/compos/src/ |
D | compilation.rs | 43 fn validate_args(args: &OdrefreshArgs) -> Result<()> { in validate_args() 44 if args.compilationMode != CompilationMode::NORMAL_COMPILE { in validate_args() 53 if args.systemDirFd < 0 || args.outputDirFd < 0 || args.stagingDirFd < 0 { in validate_args() 56 if !matches!(&args.zygoteArch[..], "zygote64" | "zygote64_32") { in validate_args() 60 if args.targetDirName.contains(path::MAIN_SEPARATOR) { in validate_args() 61 bail!("Invalid target directory {}", args.targetDirName); in validate_args() 74 args: &OdrefreshArgs, in odrefresh() 81 validate_args(args)?; in odrefresh() 87 fd: args.systemDirFd, in odrefresh() 92 if args.systemExtDirFd >= 0 { in odrefresh() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | DatabaseUtilsTest.java | 62 private final Bundle args = new Bundle(); field in DatabaseUtilsTest 69 args.clear(); in setUp() 141 args.putStringArray(QUERY_ARG_GROUP_COLUMNS, new String[] { "foo", "bar" }); in testResolveQueryArgs_GroupBy() 142 args.putString(QUERY_ARG_SQL_GROUP_BY, "raw"); in testResolveQueryArgs_GroupBy() 144 resolveQueryArgs(args, honored::add, Function.identity()); in testResolveQueryArgs_GroupBy() 147 assertEquals("foo, bar", args.getString(QUERY_ARG_SQL_GROUP_BY)); in testResolveQueryArgs_GroupBy() 152 args.putString(QUERY_ARG_SQL_GROUP_BY, "raw"); in testResolveQueryArgs_GroupBy_Raw() 154 resolveQueryArgs(args, honored::add, Function.identity()); in testResolveQueryArgs_GroupBy_Raw() 156 assertEquals("raw", args.getString(QUERY_ARG_SQL_GROUP_BY)); in testResolveQueryArgs_GroupBy_Raw() 161 args.putStringArray(QUERY_ARG_SORT_COLUMNS, new String[] { "foo", "bar" }); in testResolveQueryArgs_SortOrder_Simple() [all …]
|
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/util/ |
D | Logcat.kt | 55 fun v(msg: String, vararg args: Any) { in v() 57 Log.v(tag, String.format(msg, *args)) in v() 66 fun v(tr: Throwable, msg: String, vararg args: Any) { in v() 68 Log.v(tag, String.format(msg, *args), tr) in v() 76 fun d(msg: String, vararg args: Any) { in d() 78 Log.d(tag, String.format(msg, *args)) in d() 87 fun d(tr: Throwable, msg: String, vararg args: Any) { in d() 89 Log.d(tag, String.format(msg, *args), tr) in d() 97 fun i(msg: String, vararg args: Any) { in i() 99 Log.i(tag, String.format(msg, *args)) in i() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/client/src/ |
D | command_handler.rs | 409 args: &Vec<String>, in get_arg() 415 args.get(index).ok_or(CommandError::InvalidArgs) in get_arg() 425 pub fn process_cmd_line(&mut self, command: &str, args: &Vec<String>) -> bool { in process_cmd_line() 432 match (cmd.function_pointer)(self, &args) { in process_cmd_line() 446 self.cmd_help(&args).ok(); in process_cmd_line() 466 fn cmd_help(&mut self, args: &Vec<String>) -> CommandResult { in cmd_help() 467 if let Some(command) = args.get(0) { in cmd_help() 517 fn cmd_adapter(&mut self, args: &Vec<String>) -> CommandResult { in cmd_adapter() 524 let command = get_arg(args, 0)?; in cmd_adapter() 596 "discoverable" => match &get_arg(args, 1)?[..] { in cmd_adapter() [all …]
|
/packages/modules/Bluetooth/floss/pandora/floss/ |
D | cras_utils.py | 32 def playback(blocking=True, stdin=None, *args, **kargs): argument 45 process = cmd_utils.popen(playback_cmd(*args, **kargs), stdin=stdin) 51 def capture(*args, **kargs): argument 58 cmd_utils.execute(capture_cmd(*args, **kargs)) 75 args = [_CRAS_TEST_CLIENT] 76 args += ['--playback_file', playback_file] 78 args += ['--pin_device', str(pin_device)] 80 args += ['--block_size', str(block_size)] 82 args += ['--duration', str(duration)] 83 args += ['--num_channels', str(channels)] [all …]
|
/packages/services/Telephony/src/com/android/phone/ |
D | SimPhonebookProvider.java | 307 private Cursor queryElementaryFilesItem(PhonebookArgs args, String[] projection) { in queryElementaryFilesItem() argument 315 SubscriptionInfo info = getActiveSubscriptionInfo(args.subscriptionId); in queryElementaryFilesItem() 317 addEfToCursor(result, info, args.efType); in queryElementaryFilesItem() 370 private Cursor querySimRecords(PhonebookArgs args, String[] projection) { in querySimRecords() argument 372 validateSubscriptionAndEf(args); in querySimRecords() 377 List<AdnRecord> records = loadRecordsForEf(args); in querySimRecords() 394 rowBuilders.valueAt(i).add(args.subscriptionId); in querySimRecords() 399 rowBuilders.valueAt(i).add(args.efType); in querySimRecords() 425 Rlog.w(TAG, "Column " + column + " is unsupported for " + args.uri); in querySimRecords() 432 private Cursor querySimRecordsItem(PhonebookArgs args, String[] projection) { in querySimRecordsItem() argument [all …]
|