Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 861) sorted by relevance

12345678910>>...35

/packages/services/Telephony/src/com/android/services/telephony/
DLog.java43 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/apps/DeskClock/src/com/android/deskclock/
DLogUtils.kt27 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/services/Car/service/src/com/android/car/
DCarShellCommand.java417 String[] args = new String[argsList.size()]; in onCommand() local
418 argsList.toArray(args); in onCommand()
420 return exec(args, pw); in onCommand()
693 int exec(String[] args, IndentingPrintWriter writer) { in exec() argument
694 String cmd = args[0]; in exec()
719 String value = args.length < 2 ? "" : args[1]; in exec()
724 String value = args.length < 2 ? "" : args[1]; in exec()
731 int argNum = args.length; in exec()
735 String delayTime = args[argNum - 2].equals("-t") ? args[argNum - 1] : "0"; in exec()
738 zone = args[2]; in exec()
[all …]
/packages/apps/Dialer/java/com/android/incallui/
DContactsAsyncHelper.java90 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/modules/adb/
Dbugreport_test.cpp73 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/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/localdrive/
DLocalDrive.java96 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/Car/Settings/tests/unit/src/com/android/car/settings/sound/
DRingtonePickerPreferenceControllerTest.java120 Bundle args = new Bundle(); in onCreate_setArgs_validRingtoneTypeSet() local
121 args.putInt(RingtoneManager.EXTRA_RINGTONE_TYPE, RingtoneManager.TYPE_RINGTONE); in onCreate_setArgs_validRingtoneTypeSet()
122 args.putBoolean(RingtoneManager.EXTRA_RINGTONE_SHOW_SILENT, false); in onCreate_setArgs_validRingtoneTypeSet()
123 args.putInt(RingtoneManager.EXTRA_RINGTONE_AUDIO_ATTRIBUTES_FLAGS, in onCreate_setArgs_validRingtoneTypeSet()
126 mPreferenceController.setArguments(args); in onCreate_setArgs_validRingtoneTypeSet()
134 Bundle args = new Bundle(); in onCreate_doesNotShowSilent_noExtraPreference() local
135 args.putInt(RingtoneManager.EXTRA_RINGTONE_TYPE, RingtoneManager.TYPE_RINGTONE); in onCreate_doesNotShowSilent_noExtraPreference()
136 args.putBoolean(RingtoneManager.EXTRA_RINGTONE_SHOW_SILENT, false); in onCreate_doesNotShowSilent_noExtraPreference()
137 args.putInt(RingtoneManager.EXTRA_RINGTONE_AUDIO_ATTRIBUTES_FLAGS, in onCreate_doesNotShowSilent_noExtraPreference()
146 mPreferenceController.setArguments(args); in onCreate_doesNotShowSilent_noExtraPreference()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DDatabaseUtilsTest.java61 private final Bundle args = new Bundle(); field in DatabaseUtilsTest
68 args.clear(); in setUp()
131 args.putStringArray(QUERY_ARG_GROUP_COLUMNS, new String[] { "foo", "bar" }); in testResolveQueryArgs_GroupBy()
132 args.putString(QUERY_ARG_SQL_GROUP_BY, "raw"); in testResolveQueryArgs_GroupBy()
134 resolveQueryArgs(args, honored::add, Function.identity()); in testResolveQueryArgs_GroupBy()
137 assertEquals("foo, bar", args.getString(QUERY_ARG_SQL_GROUP_BY)); in testResolveQueryArgs_GroupBy()
142 args.putString(QUERY_ARG_SQL_GROUP_BY, "raw"); in testResolveQueryArgs_GroupBy_Raw()
144 resolveQueryArgs(args, honored::add, Function.identity()); in testResolveQueryArgs_GroupBy_Raw()
146 assertEquals("raw", args.getString(QUERY_ARG_SQL_GROUP_BY)); in testResolveQueryArgs_GroupBy_Raw()
151 args.putStringArray(QUERY_ARG_SORT_COLUMNS, new String[] { "foo", "bar" }); in testResolveQueryArgs_SortOrder_Simple()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothRouteManager.java149 SomeArgs args = (SomeArgs) msg.obj; in processMessage() local
153 addDevice((String) args.arg2); in processMessage()
156 removeDevice((String) args.arg2); in processMessage()
159 String actualAddress = connectBtAudio((String) args.arg2); in processMessage()
166 " any HFP device.", (String) args.arg2); in processMessage()
173 Log.i(LOG_TAG, "Retrying HFP connection to %s", (String) args.arg2); in processMessage()
174 String retryAddress = connectBtAudio((String) args.arg2, args.argi1); in processMessage()
187 String address = (String) args.arg2; in processMessage()
194 (String) args.arg2); in processMessage()
198 BlockingQueue<IState> sink = (BlockingQueue<IState>) args.arg3; in processMessage()
[all …]
/packages/services/Telephony/src/com/android/phone/
DSimPhonebookProvider.java300 private Cursor queryElementaryFilesItem(PhonebookArgs args, String[] projection) { in queryElementaryFilesItem() argument
309 result, getActiveSubscriptionInfo(args.subscriptionId), args.efType); in queryElementaryFilesItem()
355 private Cursor querySimRecords(PhonebookArgs args, String[] projection) { in querySimRecords() argument
356 validateSubscriptionAndEf(args); in querySimRecords()
361 List<AdnRecord> records = loadRecordsForEf(args); in querySimRecords()
378 row.second.add(args.subscriptionId); in querySimRecords()
383 row.second.add(args.efType); in querySimRecords()
402 Rlog.w(TAG, "Column " + column + " is unsupported for " + args.uri); in querySimRecords()
409 private Cursor querySimRecordsItem(PhonebookArgs args, String[] projection) { in querySimRecordsItem() argument
413 validateSubscriptionAndEf(args); in querySimRecordsItem()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothActionFragment.java61 public static void prepareArgs(Bundle args, String key, int iconResId, int titleResId, in prepareArgs() argument
63 args.putString(ARG_KEY, key); in prepareArgs()
64 args.putInt(ARG_ICON, iconResId); in prepareArgs()
65 args.putInt(ARG_TITLE, titleResId); in prepareArgs()
66 args.putInt(ARG_SUMMARY, summaryResId); in prepareArgs()
67 args.putIntArray(ARG_CHOICES, choices); in prepareArgs()
68 args.putString(ARG_NAME, name); in prepareArgs()
69 args.putInt(ARG_DEFAULT_CHOICE, defaultChoice); in prepareArgs()
94 Bundle args = getArguments(); in onCreateActions() local
95 final String existingName = args.getString(ARG_NAME); in onCreateActions()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioModeStateMachine.java244 MessageArgs args = (MessageArgs) msg.obj; in processMessage() local
259 transitionTo(args.foregroundCallIsVoip in processMessage()
271 " Args are: \n" + args.toString()); in processMessage()
277 + args.toString()); in processMessage()
305 MessageArgs args = (MessageArgs) msg.obj; in processMessage() local
317 BaseState destState = calculateProperStateFromArgs(args); in processMessage()
324 transitionTo(args.foregroundCallIsVoip in processMessage()
333 " Args are: \n" + args.toString()); in processMessage()
342 + args.toString()); in processMessage()
402 MessageArgs args = (MessageArgs) msg.obj; in processMessage() local
[all …]
DContactsAsyncHelper.java111 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 …]
DAsyncRingtonePlayer.java86 SomeArgs args = SomeArgs.obtain(); in play() local
87 args.arg1 = factory; in play()
88 args.arg2 = incomingCall; in play()
89 args.arg3 = volumeShaperConfig; in play()
90 args.arg4 = isVibrationEnabled; in play()
91 args.arg5 = Log.createSubsession(); in play()
92 postMessage(EVENT_PLAY, true /* shouldCreateHandler */, args); in play()
109 private void postMessage(int messageCode, boolean shouldCreateHandler, SomeArgs args) { in postMessage() argument
118 mHandler.obtainMessage(messageCode, args).sendToTarget(); in postMessage()
150 private void handlePlay(SomeArgs args) {
[all …]
/packages/apps/Car/libs/car-ui-lib/tests/tools/
Dquick_rro.py43 def get_package_name(args): argument
50 hash = sha1(args.package.encode('UTF-8'))
51 if args.target_name:
52 hash.update(args.target_name.encode('UTF-8'))
54 if args.resources is not None:
55 args.resources.sort()
56 hash.update(''.join(args.resources).encode('UTF-8'))
58 for root, dirs, files in os.walk(args.dir):
157 def build(args, package_name): argument
160 android_jar_path = find_android_jar(args.I)
[all …]
/packages/modules/StatsD/statsd/src/
DStatsService.cpp211 status_t StatsService::dump(int fd, const char** args, uint32_t numArgs) { in dump() argument
218 if (lastArg >= 0 && string(args[lastArg]) == "--proto") { // last argument in dump()
222 if (numArgs > 0 && string(args[0]) == "--metadata") { // first argument in dump()
225 if (lastArg >= 0 && string(args[lastArg]) == "-v") { in dump()
487 status_t StatsService::cmd_trigger_broadcast(int out, Vector<String8>& args) { in cmd_trigger_broadcast() argument
491 const int argCount = args.size(); in cmd_trigger_broadcast()
495 name.assign(args[1].c_str(), args[1].size()); in cmd_trigger_broadcast()
498 good = getUidFromArgs(args, 1, uid); in cmd_trigger_broadcast()
503 name.assign(args[2].c_str(), args[2].size()); in cmd_trigger_broadcast()
512 VLOG("Could not find receiver for %s, %s", args[1].c_str(), args[2].c_str()); in cmd_trigger_broadcast()
[all …]
/packages/apps/Car/libs/car-assist-lib/src/com/android/car/assist/
DCarVoiceInteractionSession.java189 public final void onShow(Bundle args, int showFlags) { in onShow() argument
190 super.onShow(args, showFlags); in onShow()
191 addNotificationAccessExceptionIfNeeded(args); in onShow()
192 if (args != null) { in onShow()
193 String action = getRequestedVoiceAction(args); in onShow()
195 onShow(action, args, showFlags); in onShow()
199 onShow(VOICE_ACTION_NO_ACTION, args, showFlags); in onShow()
217 protected abstract void onShow(String action, Bundle args, int flags); in onShow() argument
224 private void addNotificationAccessExceptionIfNeeded(Bundle args) { in addNotificationAccessExceptionIfNeeded() argument
225 if (needsNotificationAccess(args)) { in addNotificationAccessExceptionIfNeeded()
[all …]
/packages/modules/common/tools/
Dconv_classpaths_proto.py23 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/apps/Dialer/java/com/android/voicemail/impl/mail/utils/
DLogUtils.java156 public static void v(String tag, String format, Object... args) { in v() argument
158 VvmLog.v(tag, String.format(format, args)); in v()
172 public static void v(String tag, Throwable tr, String format, Object... args) { in v() argument
174 VvmLog.v(tag, String.format(format, args), tr); in v()
187 public static void d(String tag, String format, Object... args) { in d() argument
189 VvmLog.d(tag, String.format(format, args)); in d()
203 public static void d(String tag, Throwable tr, String format, Object... args) { in d() argument
205 VvmLog.d(tag, String.format(format, args), tr); in d()
218 public static void i(String tag, String format, Object... args) { in i() argument
220 VvmLog.i(tag, String.format(format, args)); in i()
[all …]
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DDictionaryMaker.java115 final LinkedList<String> args = new LinkedList<>(Arrays.asList(argsArray)); in Arguments() local
116 if (args.isEmpty()) { in Arguments()
127 while (!args.isEmpty()) { in Arguments()
128 final String arg = args.get(0); in Arguments()
129 args.remove(0); in Arguments()
139 if (args.isEmpty()) { in Arguments()
143 String argValue = args.get(0); in Arguments()
144 args.remove(0); in Arguments()
198 public static void main(String[] args) in main() argument
200 final Arguments parsedArgs = new Arguments(args); in main()
[all …]
/packages/services/Car/cpp/watchdog/server/tests/
DWatchdogPerfServiceTest.cpp306 Vector<String16> args; in TEST() local
307 args.push_back(String16(kStartCustomCollectionFlag)); in TEST()
308 args.push_back(String16(kIntervalFlag)); in TEST()
309 args.push_back(String16(std::to_string(kTestCustomCollectionInterval.count()).c_str())); in TEST()
310 args.push_back(String16(kMaxDurationFlag)); in TEST()
311 args.push_back(String16(std::to_string(kTestCustomCollectionDuration.count()).c_str())); in TEST()
313 ASSERT_RESULT_OK(service->onCustomCollection(-1, args)); in TEST()
357 args.clear(); in TEST()
358 args.push_back(String16(kEndCustomCollectionFlag)); in TEST()
359 ASSERT_RESULT_OK(service->onCustomCollection(customDump.fd, args)); in TEST()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DSimpleDialog.java52 Bundle args = getArguments(); in onCreateDialog() local
53 if (args.containsKey(TITLE)) { in onCreateDialog()
54 builder.setTitle(args.getInt(TITLE)); in onCreateDialog()
57 if (args.containsKey(MESSAGE)) { in onCreateDialog()
58 builder.setMessage(args.getInt(MESSAGE)); in onCreateDialog()
61 if (args.containsKey(NEGATIVE_BUTTON_MESSAGE)) { in onCreateDialog()
62 builder.setNegativeButton(args.getInt(NEGATIVE_BUTTON_MESSAGE), in onCreateDialog()
71 if (args.containsKey(POSITIVE_BUTTON_MESSAGE)) { in onCreateDialog()
72 builder.setPositiveButton(args.getInt(POSITIVE_BUTTON_MESSAGE), in onCreateDialog()
156 Bundle args = new Bundle(); in build() local
[all …]
/packages/apps/Car/libs/car-assist-client-lib/src/com/android/car/assist/client/
DBundleBuilder.java43 Bundle args = new Bundle(); in buildAssistantReadBundle() local
44 args.putString(KEY_ACTION, VOICE_ACTION_READ_NOTIFICATION); in buildAssistantReadBundle()
45 args.putParcelable(KEY_NOTIFICATION, notification); in buildAssistantReadBundle()
46 return args; in buildAssistantReadBundle()
57 Bundle args = new Bundle(); in buildAssistantReplyBundle() local
58 args.putString(KEY_ACTION, VOICE_ACTION_REPLY_NOTIFICATION); in buildAssistantReplyBundle()
59 args.putParcelable(KEY_NOTIFICATION, notification); in buildAssistantReplyBundle()
60 return args; in buildAssistantReplyBundle()
72 Bundle args = new Bundle(); in buildAssistantHandleExceptionBundle() local
73 args.putString(KEY_ACTION, VOICE_ACTION_HANDLE_EXCEPTION); in buildAssistantHandleExceptionBundle()
[all …]
/packages/modules/Gki/
Dota_from_raw_image.py47 args = parser.parse_args()
49 return args
52 def _PrepareEnvironment(args): argument
54 if not args.tools:
56 for path in args.tools:
65 def CreateOtaFromRawImages(args): argument
66 _PrepareEnvironment(args)
72 for pair_str in args.input:
93 if args.key:
94 OPTIONS.package_key = args.key
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/log/
DL.java33 public static void v(String tag, @NonNull String msg, Object... args) { in v() argument
35 Log.v(tag, String.format(msg, args)); in v()
44 public static void d(String tag, @NonNull String msg, Object... args) { in d() argument
46 Log.d(tag, String.format(msg, args)); in d()
55 public static void i(String tag, @NonNull String msg, Object... args) { in i() argument
57 Log.i(tag, String.format(msg, args)); in i()
66 public static void w(String tag, @NonNull String msg, Object... args) { in w() argument
68 Log.w(tag, String.format(msg, args)); in w()
77 public static void e(String tag, @NonNull String msg, Object... args) { in e() argument
78 Log.e(tag, String.format(msg, args)); in e()
[all …]

12345678910>>...35