/packages/apps/UnifiedEmail/src/com/android/mail/preferences/ |
H A D | BackupSharedPreference.java | 19 import org.json.JSONException; 20 import org.json.JSONObject;
|
H A D | SimpleBackupSharedPreference.java | 21 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 D | ListParams.java | 25 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 D | ReplyFromAccount.java | 28 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 D | Settings.java | 37 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 D | Account.java | 39 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 D | MailAppProvider.java | 45 import org.json.JSONArray; 46 import org.json.JSONException; 47 import org.json.JSONObject;
|
H A D | Attachment.java | 45 import org.json.JSONArray; 46 import org.json.JSONException; 47 import org.json.JSONObject;
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | SuggestionExtras.java | 18 import org.json.JSONException;
|
H A D | JsonBackedSuggestionExtras.java | 18 import org.json.JSONException; 19 import org.json.JSONObject; 36 public JsonBackedSuggestionExtras(String json) throws JSONException { argument 37 mExtras = new JSONObject(json);
|
H A D | AbstractSuggestionExtras.java | 18 import org.json.JSONException;
|
/packages/experimental/procstatlog/ |
H A D | procstatreport.py | 19 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 D | InstallShortcutReceiver.java | 36 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 D | InstallShortcutReceiver.java | 38 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 D | UserPresetsManager.java | 85 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 D | FilterStackSource.java | 147 String json = new String(b); 150 preset.readJsonFromString(json);
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
H A D | ContactLoader.java | 58 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 D | AttachmentComposeView.java | 31 import org.json.JSONException;
|
/packages/apps/Browser/src/com/android/browser/search/ |
H A D | OpenSearchSearchEngine.java | 25 import org.json.JSONArray; 26 import org.json.JSONException;
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
H A D | ContactInfoHelper.java | 36 import org.json.JSONException; 37 import org.json.JSONObject;
|
/packages/apps/Email/src/com/android/email/ |
H A D | Preferences.java | 27 import org.json.JSONArray; 28 import org.json.JSONException;
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
H A D | GoogleSuggestClient.java | 41 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 D | BookmarkExpandableView.java | 40 import org.json.JSONException; 41 import org.json.JSONObject;
|
/packages/apps/Browser/src/com/android/browser/ |
H A D | BrowserBookmarksPage.java | 56 import org.json.JSONException; 57 import org.json.JSONObject;
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/ |
H A D | ComposeActivityTest.java | 43 import org.json.JSONArray; 44 import org.json.JSONException;
|