Home
last modified time | relevance | path

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

12345678

/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.java73 WorkerArgs args = (WorkerArgs) msg.obj;
76 if (args.listener != null) {
78 Log.d(LOG_TAG, "Notifying listener: " + args.listener.toString() +
79 " image: " + args.uri + " completed");
81 args.listener.onImageLoadComplete(msg.what, args.photo, args.photoIcon,
82 args.cookie);
211 WorkerArgs args = (WorkerArgs) msg.obj; in handleMessage() local
219 args.context.getContentResolver(), args.uri, true); in handleMessage()
225 args.photo = Drawable.createFromStream(inputStream, in handleMessage()
226 args.uri.toString()); in handleMessage()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/widget/swipeablelistview/
DLogUtils.java113 public static int v(String tag, String format, Object... args) { in v() argument
115 return Log.v(tag, String.format(format, args)); in v()
131 public static int v(String tag, Throwable tr, String format, Object... args) { in v() argument
133 return Log.v(tag, String.format(format, args), tr); in v()
148 public static int d(String tag, String format, Object... args) { in d() argument
150 return Log.d(tag, String.format(format, args)); in d()
166 public static int d(String tag, Throwable tr, String format, Object... args) { in d() argument
168 return Log.d(tag, String.format(format, args), tr); in d()
183 public static int i(String tag, String format, Object... args) { in i() argument
185 return Log.i(tag, String.format(format, args)); in i()
[all …]
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DDictionaryMaker.java140 final LinkedList<String> args = new LinkedList<String>(Arrays.asList(argsArray)); in Arguments() local
141 if (args.isEmpty()) { in Arguments()
154 while (!args.isEmpty()) { in Arguments()
155 final String arg = args.get(0); in Arguments()
156 args.remove(0); in Arguments()
168 if (args.isEmpty()) { in Arguments()
172 String filename = args.get(0); in Arguments()
173 args.remove(0); in Arguments()
229 public static void main(String[] args) in main() argument
232 final Arguments parsedArgs = new Arguments(args); in main()
[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/apps/Launcher2/src/com/android/launcher2/
DLauncherProvider.java102 SqlArguments args = new SqlArguments(uri, null, null); in getType() local
103 if (TextUtils.isEmpty(args.where)) { in getType()
104 return "vnd.android.cursor.dir/" + args.table; in getType()
106 return "vnd.android.cursor.item/" + args.table; in getType()
114 SqlArguments args = new SqlArguments(uri, selection, selectionArgs); in query() local
116 qb.setTables(args.table); in query()
119 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder); in query()
135 SqlArguments args = new SqlArguments(uri, null, null); in deleteId() local
136 db.delete(args.table, args.where, args.args); in deleteId()
141 SqlArguments args = new SqlArguments(uri); in insert() local
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageDetail.java169 final Bundle args = getArguments(); in createDetails() local
170 mTitle = args.getString(EXTRA_TITLE); in createDetails()
171 final int percentage = args.getInt(EXTRA_PERCENT, 1); in createDetails()
172 final int gaugeValue = args.getInt(EXTRA_GAUGE, 1); in createDetails()
173 mUsageSince = args.getInt(EXTRA_USAGE_SINCE, USAGE_SINCE_UNPLUGGED); in createDetails()
174 mUid = args.getInt(EXTRA_UID, 0); in createDetails()
175 mDrainType = (DrainType) args.getSerializable(EXTRA_DRAIN_TYPE); in createDetails()
176 mNoCoverage = args.getDouble(EXTRA_NO_COVERAGE, 0); in createDetails()
177 String iconPackage = args.getString(EXTRA_ICON_PACKAGE); in createDetails()
178 int iconId = args.getInt(EXTRA_ICON_ID, 0); in createDetails()
[all …]
DPowerUsageSummary.java192 Bundle args = new Bundle(); in onPreferenceTreeClick() local
193 args.putByteArray(BatteryHistoryDetail.EXTRA_STATS, histData); in onPreferenceTreeClick()
195 pa.startPreferencePanel(BatteryHistoryDetail.class.getName(), args, in onPreferenceTreeClick() local
204 Bundle args = new Bundle(); in onPreferenceTreeClick() local
205 args.putString(PowerUsageDetail.EXTRA_TITLE, sipper.name); in onPreferenceTreeClick()
206 args.putInt(PowerUsageDetail.EXTRA_PERCENT, (int) in onPreferenceTreeClick()
208 args.putInt(PowerUsageDetail.EXTRA_GAUGE, (int) in onPreferenceTreeClick()
210 args.putLong(PowerUsageDetail.EXTRA_USAGE_DURATION, mStatsPeriod); in onPreferenceTreeClick()
211 args.putString(PowerUsageDetail.EXTRA_ICON_PACKAGE, sipper.defaultPackageName); in onPreferenceTreeClick()
212 args.putInt(PowerUsageDetail.EXTRA_ICON_ID, sipper.iconId); in onPreferenceTreeClick()
[all …]
/packages/apps/Stk/src/com/android/stk/
DStkAppService.java177 Bundle args = intent.getExtras(); in onStart() local
179 if (args == null) { in onStart()
184 msg.arg1 = args.getInt(OPCODE); in onStart()
187 msg.obj = args.getParcelable(CMD_MSG); in onStart()
190 msg.obj = args; in onStart()
485 private void handleCmdResponse(Bundle args) { in handleCmdResponse() argument
501 boolean helpRequired = args.getBoolean(HELP, false); in handleCmdResponse()
503 switch(args.getInt(RES_ID)) { in handleCmdResponse()
506 int menuSelection = args.getInt(MENU_SELECTION); in handleCmdResponse()
522 String input = args.getString(INPUT); in handleCmdResponse()
[all …]
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()
/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/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/Browser/src/com/android/browser/provider/
DBrowserProvider2.java951 String[] args; in query() local
965 args = new String[] { Long.toString(FIXED_ID_ROOT) }; in query()
967 args = DatabaseUtils.appendSelectionArgs(args, selectionArgs); in query()
983 args = new String[] {accountType, accountName, in query()
986 args = DatabaseUtils.appendSelectionArgs(args, selectionArgs); in query()
1000 args = DatabaseUtils.appendSelectionArgs(args, new String[] { in query()
1004 args = DatabaseUtils.appendSelectionArgs(args, selectionArgs); in query()
1008 Cursor cursor = db.rawQuery(query, args); in query()
1089 String[] args = createCombinedQuery(uri, projection, qb); in query() local
1091 selectionArgs = args; in query()
[all …]
/packages/apps/Mms/src/com/android/mms/transaction/
DTransactionService.java289 TransactionBundle args = new TransactionBundle( in onNewIntent() local
295 launchTransaction(serviceId, args, false); in onNewIntent()
314 TransactionBundle args = new TransactionBundle(intent.getExtras()); in onNewIntent() local
315 launchTransaction(serviceId, args, noNetwork); in onNewIntent()
646 TransactionBundle args = (TransactionBundle) msg.obj; in handleMessage() local
651 args.getMmscUrl() + " proxy port: " + args.getProxyAddress()); in handleMessage()
656 String mmsc = args.getMmscUrl(); in handleMessage()
659 mmsc, args.getProxyAddress(), args.getProxyPort()); in handleMessage()
665 int transactionType = args.getTransactionType(); in handleMessage()
675 String uri = args.getUri(); in handleMessage()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DLabelDialogFragment.java51 Bundle args = new Bundle(); in newInstance() local
52 args.putString(KEY_LABEL, label); in newInstance()
53 args.putParcelable(KEY_ALARM, alarm); in newInstance()
54 frag.setArguments(args); in newInstance()
60 Bundle args = new Bundle(); in newInstance() local
61 args.putString(KEY_LABEL, label); in newInstance()
62 args.putParcelable(KEY_TIMER, timer); in newInstance()
63 args.putString(KEY_TAG, tag); in newInstance()
64 frag.setArguments(args); in newInstance()
/packages/apps/Settings/src/com/android/settings/accounts/
DManageAccountsSettings.java87 Bundle args = getArguments(); in onCreate() local
88 if (args != null && args.containsKey(KEY_ACCOUNT_TYPE)) { in onCreate()
89 mAccountType = args.getString(KEY_ACCOUNT_TYPE); in onCreate()
123 Bundle args = getArguments(); in onActivityCreated() local
124 if (args != null && args.containsKey(KEY_ACCOUNT_LABEL)) { in onActivityCreated()
125 getActivity().setTitle(args.getString(KEY_ACCOUNT_LABEL)); in onActivityCreated()
150 Bundle args = new Bundle(); in startAccountSettings() local
151 args.putParcelable(AccountSyncSettings.ACCOUNT_KEY, acctPref.getAccount()); in startAccountSettings()
153 AccountSyncSettings.class.getCanonicalName(), args, in startAccountSettings() local
/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
78 BrowserHistoryPage.class, args); in onCreate() local
80 BrowserSnapshotPage.class, args); in onCreate() local
177 private final Bundle args; field in ComboViewActivity.TabsAdapter.TabInfo
181 args = _args; in TabInfo()
194 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { in addTab() argument
195 TabInfo info = new TabInfo(clss, args); in addTab()
211 return Fragment.instantiate(mContext, info.clss.getName(), info.args); in getItem()
DSuggestionsAdapter.java439 String[] args = null; in runQuery() local
442 args = new String[1]; in runQuery()
443 args[0] = like; in runQuery()
446 args = new String[5]; in runQuery()
447 args[0] = "http://" + like; in runQuery()
448 args[1] = "http://www." + like; in runQuery()
449 args[2] = "https://" + like; in runQuery()
450 args[3] = "https://www." + like; in runQuery()
452 args[4] = like; in runQuery()
460 selection, (constraint != null) ? args : null, null); in runQuery()
/packages/apps/ContactsCommon/src/com/android/contacts/common/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/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);
DContactDeletionInteraction.java173 Bundle args = new Bundle(); in setContactUri() local
174 args.putParcelable(ARG_CONTACT_URI, mContactUri); in setContactUri()
175 getLoaderManager().restartLoader(R.id.dialog_delete_contact_loader_id, args, this); in setContactUri()
192 Bundle args = new Bundle(); in onStart() local
193 args.putParcelable(ARG_CONTACT_URI, mContactUri); in onStart()
194 getLoaderManager().initLoader(R.id.dialog_delete_contact_loader_id, args, this); in onStart()
208 public Loader<Cursor> onCreateLoader(int id, Bundle args) { in onCreateLoader() argument
209 Uri contactUri = args.getParcelable(ARG_CONTACT_URI); in onCreateLoader()
/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/PhoneCommon/src/com/android/phone/common/
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()

12345678