Searched refs:json (Results 1 - 25 of 27) sorted by relevance

12

/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
H A DBackupSharedPreference.java19 import org.json.JSONException;
20 import org.json.JSONObject;
H A DSimpleBackupSharedPreference.java21 import org.json.JSONArray;
22 import org.json.JSONException;
23 import org.json.JSONObject;
58 final JSONObject json = new JSONObject();
59 json.put(KEY, mKey);
66 json.put(VALUE, array);
68 json.put(VALUE, mValue);
70 return json;
73 public static BackupSharedPreference fromJson(final JSONObject json) throws JSONException { argument
74 Object value = json
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
H A DListParams.java25 import org.json.JSONException;
26 import org.json.JSONObject;
91 JSONObject json = new JSONObject();
93 json.put(LIMIT_KEY, mLimit);
94 json.put(USE_NETWORK_KEY, mUseNetwork);
98 return json.toString();
112 JSONObject json = null;
114 json = new JSONObject(serializedParams);
115 final int limit = json.getInt(LIMIT_KEY);
116 final boolean useNetwork = json
[all...]
H A DReplyFromAccount.java28 import org.json.JSONException;
29 import org.json.JSONObject;
65 JSONObject json = new JSONObject();
67 json.put(BASE_ACCOUNT_URI, baseAccountUri);
68 json.put(ADDRESS_STRING, address);
69 json.put(NAME_STRING, name);
70 json.put(REPLY_TO, replyTo);
71 json.put(IS_DEFAULT, isDefault);
72 json.put(IS_CUSTOM_FROM, isCustomFrom);
76 return json;
79 deserialize(Account account, JSONObject json) argument
[all...]
H A DSettings.java37 import org.json.JSONException;
38 import org.json.JSONObject;
187 private Settings(JSONObject json) { argument
188 signature = json.optString(SettingsColumns.SIGNATURE, sDefault.signature);
189 mAutoAdvance = json.optInt(SettingsColumns.AUTO_ADVANCE, sDefault.getAutoAdvanceSetting());
190 messageTextSize = json.optInt(SettingsColumns.MESSAGE_TEXT_SIZE, sDefault.messageTextSize);
191 snapHeaders = json.optInt(SettingsColumns.SNAP_HEADERS, sDefault.snapHeaders);
192 replyBehavior = json.optInt(SettingsColumns.REPLY_BEHAVIOR, sDefault.replyBehavior);
193 convListIcon = json.optInt(SettingsColumns.CONV_LIST_ICON, sDefault.convListIcon);
194 convListAttachmentPreviews = json
312 newInstance(JSONObject json) argument
[all...]
H A DAccount.java39 import org.json.JSONArray;
40 import org.json.JSONException;
41 import org.json.JSONObject;
231 JSONObject json = new JSONObject();
233 json.put(AccountColumns.NAME, name);
234 json.put(AccountColumns.TYPE, type);
235 json.put(AccountColumns.ACCOUNT_MANAGER_NAME, accountManagerName);
236 json.put(AccountColumns.PROVIDER_VERSION, providerVersion);
237 json.put(AccountColumns.URI, uri);
238 json
[all...]
H A DMailAppProvider.java45 import org.json.JSONArray;
46 import org.json.JSONException;
47 import org.json.JSONObject;
H A DAttachment.java45 import org.json.JSONArray;
46 import org.json.JSONException;
47 import org.json.JSONObject;
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSuggestionExtras.java18 import org.json.JSONException;
H A DJsonBackedSuggestionExtras.java18 import org.json.JSONException;
19 import org.json.JSONObject;
36 public JsonBackedSuggestionExtras(String json) throws JSONException { argument
37 mExtras = new JSONObject(json);
H A DAbstractSuggestionExtras.java18 import org.json.JSONException;
/packages/experimental/procstatlog/
H A Dprocstatreport.py19 import json namespace
201 "id_js": json.write("total_cpu"),
203 "filename_js": json.write(files_url + "/total_cpu.csv"),
204 "options_js": json.write({
243 "id_js": json.write("cpu_speed"),
245 "filename_js": json.write(files_url + "/cpu_speed.csv"),
246 "options_js": json.write({
275 "id_js": json.write("context_switches"),
277 "filename_js": json.write(files_url + "/context_switches.csv"),
278 "options_js": json
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DInstallShortcutReceiver.java36 import org.json.*;
82 JSONStringer json = new JSONStringer()
89 json = json.key(ICON_KEY).value(
94 json = json.key(ICON_RESOURCE_NAME_KEY).value(info.iconResource.resourceName);
95 json = json.key(ICON_RESOURCE_PACKAGE_NAME_KEY)
98 json = json
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DInstallShortcutReceiver.java38 import org.json.*;
84 JSONStringer json = new JSONStringer()
91 json = json.key(ICON_KEY).value(
96 json = json.key(ICON_RESOURCE_NAME_KEY).value(info.iconResource.resourceName);
97 json = json.key(ICON_RESOURCE_PACKAGE_NAME_KEY)
100 json = json
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
H A DUserPresetsManager.java85 String json; field in class:UserPresetsManager.SaveOperation
92 op.json = preset.getJsonString(ImagePreset.JASON_SAVED);
133 mUserPresets.insertStack(op.name, op.json.getBytes());
H A DFilterStackSource.java147 String json = new String(b);
150 preset.readJsonFromString(json);
/packages/apps/Contacts/src/com/android/contacts/model/
H A DContactLoader.java58 import org.json.JSONArray;
59 import org.json.JSONException;
60 import org.json.JSONObject;
357 final JSONObject json = new JSONObject(jsonString);
362 final String displayName = json.getString(Contacts.DISPLAY_NAME);
363 final String altDisplayName = json.optString(
365 final int displayNameSource = json.getInt(Contacts.DISPLAY_NAME_SOURCE);
366 final String photoUri = json.optString(Contacts.PHOTO_URI, null);
388 final String accountName = json.optString(RawContacts.ACCOUNT_NAME, null);
391 final String accountType = json
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
H A DAttachmentComposeView.java31 import org.json.JSONException;
/packages/apps/Browser/src/com/android/browser/search/
H A DOpenSearchSearchEngine.java25 import org.json.JSONArray;
26 import org.json.JSONException;
/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DContactInfoHelper.java36 import org.json.JSONException;
37 import org.json.JSONObject;
/packages/apps/Email/src/com/android/email/
H A DPreferences.java27 import org.json.JSONArray;
28 import org.json.JSONException;
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
H A DGoogleSuggestClient.java41 import org.json.JSONArray;
42 import org.json.JSONException;
119 /* Goto http://www.google.com/complete/search?json=true&q=foo
120 * to see what the data format looks like. It's basically a json
/packages/apps/Browser/src/com/android/browser/view/
H A DBookmarkExpandableView.java40 import org.json.JSONException;
41 import org.json.JSONObject;
/packages/apps/Browser/src/com/android/browser/
H A DBrowserBookmarksPage.java56 import org.json.JSONException;
57 import org.json.JSONObject;
/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/
H A DComposeActivityTest.java43 import org.json.JSONArray;
44 import org.json.JSONException;

Completed in 1551 milliseconds

12