Home
last modified time | relevance | path

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

1234567

/packages/apps/Calendar/src/com/android/calendar/
DContactsAsyncHelper.java87 WorkerArgs args = (WorkerArgs) msg.obj; in handleMessage() local
95 args.context.getContentResolver(), args.uri); in handleMessage()
101 args.result = Drawable.createFromStream(inputStream, args.uri.toString()); in handleMessage()
104 " token: " + msg.what + " image URI: " + args.uri); in handleMessage()
106 args.result = null; in handleMessage()
108 " token: " + msg.what + " image URI: " + args.uri + in handleMessage()
154 WorkerArgs args = new WorkerArgs(); in updateImageViewWithContactPhotoAsync() local
155 args.context = context; in updateImageViewWithContactPhotoAsync()
156 args.view = imageView; in updateImageViewWithContactPhotoAsync()
157 args.uri = contact; in updateImageViewWithContactPhotoAsync()
[all …]
DAsyncQueryServiceHelper.java159 static public void queueOperation(Context context, OperationInfo args) { in queueOperation() argument
161 args.calculateScheduledTime(); in queueOperation()
164 sWorkQueue.add(args); in queueOperation()
244 OperationInfo args; in onHandleIntent() local
268 args = sWorkQueue.poll(); in onHandleIntent()
269 if (args != null) { in onHandleIntent()
277 Log.d(TAG, "onHandleIntent: " + args); in onHandleIntent()
280 ContentResolver resolver = args.resolver; in onHandleIntent()
283 switch (args.op) { in onHandleIntent()
287 cursor = resolver.query(args.uri, args.projection, args.selection, in onHandleIntent()
[all …]
/packages/apps/Phone/src/com/android/phone/
DContactsAsyncHelper.java72 WorkerArgs args = (WorkerArgs) msg.obj;
75 if (args.listener != null) {
77 Log.d(LOG_TAG, "Notifying listener: " + args.listener.toString() +
78 " image: " + args.uri + " completed");
80 args.listener.onImageLoadComplete(msg.what, args.photo, args.photoIcon,
81 args.cookie);
210 WorkerArgs args = (WorkerArgs) msg.obj; in handleMessage() local
217 args.context.getContentResolver(), args.uri, true); in handleMessage()
223 args.photo = Drawable.createFromStream(inputStream, args.uri.toString()); in handleMessage()
227 args.photoIcon = getPhotoIconWhenAppropriate(args.context, args.photo); in handleMessage()
[all …]
DBluetoothHandsfree.java2015 public AtCommandResult handleSetCommand(Object[] args) { in initializeHeadsetAtParser()
2032 public AtCommandResult handleBasicCommand(String args) { in initializeHandsfreeAtParser()
2041 public AtCommandResult handleBasicCommand(String args) { in initializeHandsfreeAtParser()
2042 if (args.length() > 0) { in initializeHandsfreeAtParser()
2043 if (args.charAt(0) == '>') { in initializeHandsfreeAtParser()
2046 if (args.startsWith(">9999")) { // for PTS test in initializeHandsfreeAtParser()
2054 if (args.charAt(args.length() - 1) == ';') { in initializeHandsfreeAtParser()
2055 args = args.substring(0, args.length() - 1); in initializeHandsfreeAtParser()
2058 args = PhoneNumberUtils.convertPreDial(args); in initializeHandsfreeAtParser()
2061 Uri.fromParts(Constants.SCHEME_TEL, args, null)); in initializeHandsfreeAtParser()
[all …]
DCallLogAsync.java130 public AsyncTask addCall(AddCallArgs args) { in addCall() argument
132 return new AddCallTask().execute(args); in addCall()
145 public AsyncTask getLastOutgoingCall(GetLastOutgoingCallArgs args) { in getLastOutgoingCall() argument
147 return new GetLastOutgoingCallTask(args.callback).execute(args); in getLastOutgoingCall()
212 for (GetLastOutgoingCallArgs args : list) { in doInBackground()
214 number = Calls.getLastOutgoingCall(args.context); in doInBackground()
DBluetoothAtPhonebook.java137 public AtCommandResult handleSetCommand(Object[] args) { in register()
138 if (args.length < 1) { in register()
141 String characterSet = (String)args[0]; in register()
175 public AtCommandResult handleSetCommand(Object[] args) { in register()
177 if (args.length < 1 || !(args[0] instanceof String)) { in register()
180 String pb = ((String)args[0]).trim(); in register()
199 public AtCommandResult handleSetCommand(Object[] args) { in register()
211 if (args.length < 1 || !(args[0] instanceof Integer)) { in register()
214 index1 = (Integer)args[0]; in register()
217 if (args.length == 1) { in register()
[all …]
/packages/apps/Email/src/com/android/mail/utils/
DLogUtils.java185 public static int v(String tag, String format, Object... args) { in v() argument
187 return Log.v(tag, String.format(format, args)); in v()
203 public static int v(String tag, Throwable tr, String format, Object... args) { in v() argument
205 return Log.v(tag, String.format(format, args), tr); in v()
220 public static int d(String tag, String format, Object... args) { in d() argument
222 return Log.d(tag, String.format(format, args)); in d()
238 public static int d(String tag, Throwable tr, String format, Object... args) { in d() argument
240 return Log.d(tag, String.format(format, args), tr); in d()
255 public static int i(String tag, String format, Object... args) { in i() argument
257 return Log.i(tag, String.format(format, args)); in i()
[all …]
/packages/inputmethods/LatinIME/tools/makedict/src/com/android/inputmethod/latin/makedict/
DDictionaryMaker.java121 final LinkedList<String> args = new LinkedList<String>(Arrays.asList(argsArray)); in Arguments() local
122 if (args.isEmpty()) { in Arguments()
133 while (!args.isEmpty()) { in Arguments()
134 final String arg = args.get(0); in Arguments()
135 args.remove(0); in Arguments()
143 if (args.isEmpty()) { in Arguments()
147 String filename = args.get(0); in Arguments()
148 args.remove(0); in Arguments()
195 public static void main(String[] args) in main() argument
198 final Arguments parsedArgs = new Arguments(args); in main()
[all …]
/packages/apps/Mms/src/com/android/mms/
DLogTag.java70 private static String logFormat(String format, Object... args) { in logFormat() argument
71 for (int i = 0; i < args.length; i++) { in logFormat()
72 if (args[i] instanceof String[]) { in logFormat()
73 args[i] = prettyArray((String[])args[i]); in logFormat()
76 String s = String.format(format, args); in logFormat()
81 public static void debug(String format, Object... args) { in debug() argument
82 Log.d(TAG, logFormat(format, args)); in debug()
85 public static void warn(String format, Object... args) { in warn() argument
86 Log.w(TAG, logFormat(format, args)); in warn()
89 public static void error(String format, Object... args) { in error() argument
[all …]
/packages/apps/Stk/src/com/android/stk/
DStkCmdReceiver.java44 Bundle args = new Bundle(); in handleCommandMessage() local
45 args.putInt(StkAppService.OPCODE, StkAppService.OP_CMD); in handleCommandMessage()
46 args.putParcelable(StkAppService.CMD_MSG, intent in handleCommandMessage()
49 .putExtras(args)); in handleCommandMessage()
53 Bundle args = new Bundle(); in handleSessionEnd() local
54 args.putInt(StkAppService.OPCODE, StkAppService.OP_END_SESSION); in handleSessionEnd()
56 .putExtras(args)); in handleSessionEnd()
DStkLauncherActivity.java33 Bundle args = new Bundle(); in onCreate() local
34 args.putInt(StkAppService.OPCODE, StkAppService.OP_LAUNCH_APP); in onCreate()
35 startService(new Intent(this, StkAppService.class).putExtras(args)); in onCreate()
DStkAppService.java180 Bundle args = intent.getExtras(); in onStart() local
182 if (args == null) { in onStart()
187 msg.arg1 = args.getInt(OPCODE); in onStart()
190 msg.obj = args.getParcelable(CMD_MSG); in onStart()
193 msg.obj = args; in onStart()
487 private void handleCmdResponse(Bundle args) { in handleCmdResponse() argument
494 boolean helpRequired = args.getBoolean(HELP, false); in handleCmdResponse()
496 switch(args.getInt(RES_ID)) { in handleCmdResponse()
499 int menuSelection = args.getInt(MENU_SELECTION); in handleCmdResponse()
515 String input = args.getString(INPUT); in handleCmdResponse()
[all …]
/packages/apps/Settings/src/com/android/settings/net/
DSummaryForAllUidLoader.java36 final Bundle args = new Bundle(); in buildArgs() local
37 args.putParcelable(KEY_TEMPLATE, template); in buildArgs()
38 args.putLong(KEY_START, start); in buildArgs()
39 args.putLong(KEY_END, end); in buildArgs()
40 return args; in buildArgs()
43 public SummaryForAllUidLoader(Context context, INetworkStatsSession session, Bundle args) { in SummaryForAllUidLoader() argument
46 mArgs = args; in SummaryForAllUidLoader()
DChartDataLoader.java52 final Bundle args = new Bundle(); in buildArgs() local
53 args.putParcelable(KEY_TEMPLATE, template); in buildArgs()
54 args.putParcelable(KEY_APP, app); in buildArgs()
55 args.putInt(KEY_FIELDS, fields); in buildArgs()
56 return args; in buildArgs()
59 public ChartDataLoader(Context context, INetworkStatsSession session, Bundle args) { in ChartDataLoader() argument
62 mArgs = args; in ChartDataLoader()
/packages/apps/Email/src/com/android/email/activity/
DAttachmentInfoDialog.java79 Bundle args = new Bundle(); in newInstance() local
80 args.putString(BUNDLE_TITLE, title); in newInstance()
81 args.putString(BUNDLE_BODY_TEXT, bodyText); in newInstance()
82 args.putString(BUNDLE_ACTION_TEXT, actionText); in newInstance()
83 args.putParcelable(BUNDLE_ACTION_INTENT, actionIntent); in newInstance()
84 dialog.setArguments(args); in newInstance()
90 Bundle args = getArguments(); in onCreateDialog() local
92 String title = args.getString(BUNDLE_TITLE); in onCreateDialog()
93 String infoText = args.getString(BUNDLE_BODY_TEXT); in onCreateDialog()
94 String actionText = args.getString(BUNDLE_ACTION_TEXT); in onCreateDialog()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DSelectAccountDialogFragment.java60 final Bundle args = new Bundle(); in show() local
61 args.putInt(KEY_TITLE_RES_ID, titleResourceId); in show()
62 args.putSerializable(KEY_LIST_FILTER, accountListFilter); in show()
63 args.putBundle(KEY_EXTRA_ARGS, (extraArgs == null) ? Bundle.EMPTY : extraArgs); in show()
66 instance.setArguments(args); in show()
74 final Bundle args = getArguments(); in onCreateDialog() local
76 final AccountListFilter filter = (AccountListFilter) args.getSerializable(KEY_LIST_FILTER); in onCreateDialog()
90 builder.setTitle(args.getInt(KEY_TITLE_RES_ID)); in onCreateDialog()
/packages/inputmethods/LatinIME/tools/maketext/src/com/android/inputmethod/latin/maketext/
DLabelText.java39 final LinkedList<String> args = new LinkedList<String>(Arrays.asList(argsArray)); in Options() local
43 while (!args.isEmpty()) { in Options()
44 arg = args.removeFirst(); in Options()
46 java = args.removeFirst(); in Options()
59 public static void main(final String[] args) { in main() argument
60 final Options options = new Options(args); in main()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaScannerReceiver.java61 Bundle args = new Bundle(); in scan() local
62 args.putString("volume", volume); in scan()
64 new Intent(context, MediaScannerService.class).putExtras(args)); in scan()
68 Bundle args = new Bundle(); in scanFile() local
69 args.putString("filepath", path); in scanFile()
71 new Intent(context, MediaScannerService.class).putExtras(args)); in scanFile()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DTestLoaderManager.java184 public <D> Loader<D> initLoader(final int id, Bundle args, final LoaderCallbacks<D> callback) { in initLoader() argument
185 return mDelegate.initLoader(id, args, new LoaderManager.LoaderCallbacks<D>() { in initLoader()
187 public Loader<D> onCreateLoader(int id, Bundle args) { in initLoader()
188 return callback.onCreateLoader(id, args); in initLoader()
207 public <D> Loader<D> restartLoader(int id, Bundle args, LoaderCallbacks<D> callback) {
208 return mDelegate.restartLoader(id, args, callback);
222 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) {
223 mDelegate.dump(prefix, fd, writer, args);
DGroupDeletionDialogFragment.java40 Bundle args = new Bundle(); in show() local
41 args.putLong(ARG_GROUP_ID, groupId); in show()
42 args.putString(ARG_LABEL, label); in show()
43 args.putBoolean(ARG_SHOULD_END_ACTIVITY, endActivity); in show()
44 dialog.setArguments(args); in show()
DGroupCreationDialogFragment.java48 Bundle args = new Bundle(); in show() local
49 args.putString(ARG_ACCOUNT_TYPE, accountType); in show()
50 args.putString(ARG_ACCOUNT_NAME, accountName); in show()
51 args.putString(ARG_DATA_SET, dataSet); in show()
52 dialog.setArguments(args); in show()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageDetail.java160 final Bundle args = getArguments(); in createDetails() local
161 mTitle = args.getString(EXTRA_TITLE); in createDetails()
162 final int percentage = args.getInt(EXTRA_PERCENT, 1); in createDetails()
163 final int gaugeValue = args.getInt(EXTRA_GAUGE, 1); in createDetails()
164 mUsageSince = args.getInt(EXTRA_USAGE_SINCE, USAGE_SINCE_UNPLUGGED); in createDetails()
165 mUid = args.getInt(EXTRA_UID, 0); in createDetails()
166 mDrainType = (DrainType) args.getSerializable(EXTRA_DRAIN_TYPE); in createDetails()
167 mNoCoverage = args.getDouble(EXTRA_NO_COVERAGE, 0); in createDetails()
168 String iconPackage = args.getString(EXTRA_ICON_PACKAGE); in createDetails()
169 int iconId = args.getInt(EXTRA_ICON_ID, 0); in createDetails()
[all …]
/packages/apps/Browser/src/com/android/browser/
DComboViewActivity.java52 Bundle args = extras.getBundle(EXTRA_COMBO_ARGS); in onCreate() local
73 BrowserBookmarksPage.class, args); in onCreate() local
75 BrowserHistoryPage.class, args); in onCreate() local
77 BrowserSnapshotPage.class, args); in onCreate() local
173 private final Bundle args; field in ComboViewActivity.TabsAdapter.TabInfo
177 args = _args; in TabInfo()
190 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { in addTab() argument
191 TabInfo info = new TabInfo(clss, args); in addTab()
207 return Fragment.instantiate(mContext, info.clss.getName(), info.args); in getItem()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionaryAddWordActivity.java54 final Bundle args = intent.getExtras(); in onCreate() local
55 args.putInt(UserDictionaryAddWordContents.EXTRA_MODE, mode); in onCreate()
59 args.putAll(savedInstanceState); in onCreate()
62 mContents = new UserDictionaryAddWordContents(getWindow().getDecorView(), args); in onCreate()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherProvider.java100 SqlArguments args = new SqlArguments(uri, null, null); in getType() local
101 if (TextUtils.isEmpty(args.where)) { in getType()
102 return "vnd.android.cursor.dir/" + args.table; in getType()
104 return "vnd.android.cursor.item/" + args.table; in getType()
112 SqlArguments args = new SqlArguments(uri, selection, selectionArgs); in query() local
114 qb.setTables(args.table); in query()
117 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder); in query()
133 SqlArguments args = new SqlArguments(uri, null, null); in deleteId() local
134 db.delete(args.table, args.where, args.args); in deleteId()
139 SqlArguments args = new SqlArguments(uri); in insert() local
[all …]

1234567