/frameworks/base/cmds/settings/src/com/android/commands/settings/ |
H A D | SettingsCmd.java | 169 final String table, final String key) { 183 Bundle b = provider.call(callGetCommand, key, arg); 188 System.err.println("Can't read key " + key + " in " + table + " for user " + userHandle); 194 final String table, final String key, final String value) { 208 provider.call(callPutCommand, key, arg); 210 System.err.println("Can't set key " + key + " in " + table + " for user " + userHandle); 215 System.err.println("usage: settings [--user NUM] get namespace key"); 216 System.err.println(" settings [--user NUM] put namespace key valu 168 getForUser(IContentProvider provider, int userHandle, final String table, final String key) argument 193 putForUser(IContentProvider provider, int userHandle, final String table, final String key, final String value) argument [all...] |
/frameworks/base/core/java/android/accounts/ |
H A D | AccountManager.java | 153 * Bundle key used for the {@link String} account name in results 159 * Bundle key used for the {@link String} account type in results 165 * Bundle key used for the auth token value in results 171 * Bundle key used for an {@link Intent} in results from methods that 178 * Bundle key used to supply the password directly in options to 317 * Gets the user data named by "key" associated with the account. 329 * @return The user data, null if the account or key doesn't exist 331 public String getUserData(final Account account, final String key) { argument 333 if (key == null) throw new IllegalArgumentException("key i 735 setUserData(final Account account, final String key, final String value) argument [all...] |
H A D | AccountManagerService.java | 131 private static final String EXTRAS_KEY = "key"; 135 private static final String META_KEY = "key"; 467 public String getUserData(Account account, String key) { argument 470 + ", key " + key 475 if (key == null) throw new IllegalArgumentException("key is null"); 480 return readUserDataInternal(accounts, account, key); 559 for (String key : extras.keySet()) { 560 final String value = extras.getString(key); 578 insertExtraLocked(SQLiteDatabase db, long accountId, String key, String value) argument 945 setUserData(Account account, String key, String value) argument 964 setUserdataInternal(UserAccounts accounts, Account account, String key, String value) argument 1635 getExtrasIdLocked(SQLiteDatabase db, long accountId, String key) argument 2454 writeUserDataIntoCacheLocked(UserAccounts accounts, final SQLiteDatabase db, Account account, String key, String value) argument 2468 writeAuthTokenIntoCacheLocked(UserAccounts accounts, final SQLiteDatabase db, Account account, String key, String value) argument 2496 readUserDataInternal(UserAccounts accounts, Account account, String key) argument [all...] |
H A D | IAccountManager.aidl | 31 String getUserData(in Account account, String key); 44 void setUserData(in Account account, String key, String value);
|
/frameworks/base/core/java/android/app/ |
H A D | Activity.java | 189 * <p>There are three key loops you may be interested in monitoring within your 500 * your data even more aggressively at key times during your 516 * more information about content providers. These are a key aspect of how 984 private static String savedDialogKeyFor(int key) { argument 985 return SAVED_DIALOG_KEY_PREFIX + key; 988 private static String savedDialogArgsKeyFor(int key) { argument 989 return SAVED_DIALOG_ARGS_KEY_PREFIX + key; 1227 final int key = mManagedDialogs.keyAt(i); 1228 ids[i] = key; 1230 dialogState.putBundle(savedDialogKeyFor(key), m [all...] |
H A D | ActivityThread.java | 1658 ResourcesKey key = new ResourcesKey(resDir, 1668 WeakReference<Resources> wr = mActiveResources.get(key); 1690 //Slog.i(TAG, "Resource: key=" + key + ", display metrics=" + metrics); 1694 if (!isDefaultDisplay || key.mOverrideConfiguration != null) { 1699 if (key.mOverrideConfiguration != null) { 1700 config.updateFrom(key.mOverrideConfiguration); 1713 WeakReference<Resources> wr = mActiveResources.get(key); 1723 mActiveResources.put(key, new WeakReference<Resources>(r)); 4545 final ProviderKey key 4972 getIntCoreSetting(String key, int defaultValue) argument [all...] |
H A D | AppGlobals.java | 53 * @param key The setting key. 57 public static int getIntCoreSetting(String key, int defaultValue) { argument 60 return currentActivityThread.getIntCoreSetting(key, defaultValue);
|
H A D | DownloadManager.java | 718 private void putIfNonNull(ContentValues contentValues, String key, Object value) { argument 720 contentValues.put(key, value.toString());
|
H A D | FragmentManager.java | 280 * @param key The name of the entry in the bundle. 283 public abstract void putFragment(Bundle bundle, String key, Fragment fragment); argument 290 * @param key The name of the entry in the bundle. 294 public abstract Fragment getFragment(Bundle bundle, String key); argument 557 public void putFragment(Bundle bundle, String key, Fragment fragment) { argument 562 bundle.putInt(key, fragment.mIndex); 566 public Fragment getFragment(Bundle bundle, String key) { argument 567 int index = bundle.getInt(key, -1); 572 throwException(new IllegalStateException("Fragement no longer exists for key " 573 + key [all...] |
H A D | Instrumentation.java | 62 * If included in the status or final bundle sent to an IInstrumentationWatcher, this key 68 * If included in the status or final bundle sent to an IInstrumentationWatcher, this key 71 * this key should also include the complete set of raw key/value pairs, so that the 829 * Sends the key events corresponding to the text to the app being 855 * Send a key event to the currently focused window/view and wait for it to 892 * Sends an up and down key event sync to the currently focused window. 894 * @param key The integer keycode for the event. 896 public void sendKeyDownUpSync(int key) { argument 897 sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, key)); 1272 addValue(String key, int value, Bundle results) argument [all...] |
H A D | SharedPreferencesImpl.java | 221 public String getString(String key, String defValue) { argument 224 String v = (String)mMap.get(key); 229 public Set<String> getStringSet(String key, Set<String> defValues) { argument 232 Set<String> v = (Set<String>) mMap.get(key); 237 public int getInt(String key, int defValue) { argument 240 Integer v = (Integer)mMap.get(key); 244 public long getLong(String key, long defValue) { argument 247 Long v = (Long)mMap.get(key); 251 public float getFloat(String key, float defValue) { argument 254 Float v = (Float)mMap.get(key); 258 getBoolean(String key, boolean defValue) argument 266 contains(String key) argument 307 putString(String key, String value) argument 313 putStringSet(String key, Set<String> values) argument 320 putInt(String key, int value) argument 326 putLong(String key, long value) argument 332 putFloat(String key, float value) argument 338 putBoolean(String key, boolean value) argument 345 remove(String key) argument [all...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | AbsoluteFileBackupHelper.java | 68 String key = data.getKey(); 69 if (isKeyInList(key, mFiles)) { 70 File f = new File(key);
|
H A D | BackupDataInput.java | 43 * String key = data.getKey(); 46 * if (key.equals(MY_BACKUP_KEY_ONE)) { 54 * } else if (key.equals(MY_BACKUP_KEY_TO_IGNORE) { 55 * // a key we recognize but wish to discard 68 String key; field in class:BackupDataInput.EntityHeader 117 * Report the key associated with the current entity in the restore stream 118 * @return the current entity's key string 123 return mHeader.key;
|
H A D | BackupDataInputStream.java | 29 * {@link BackupDataInput}. The entity's key string and total data size are available 40 String key; field in class:BackupDataInputStream 98 * Report the key string associated with this entity within the backup data set. 100 * @return The key string for this entity, equivalent to calling 104 return this.key;
|
H A D | BackupDataOutput.java | 29 * as a set of "entities," key/value pairs in which each binary data record "value" is 30 * named with a string "key." 34 * onBackup()} method first writes an "entity header" that supplies the key string for the record 40 * Entity key strings are considered to be unique within a given application's backup 41 * data set. If a backup agent writes a new entity under an existing key string, its value will 44 * existing record's key, but supplying a negative <code>dataSize</code> parameter. 79 * @param key A string key that uniquely identifies the data record within the application 81 * of -1 indicates that the record under this key should be deleted. 85 public int writeEntityHeader(String key, in argument 127 writeEntityHeader_native(int mBackupWriter, String key, int dataSize) argument [all...] |
H A D | BackupHelperDispatcher.java | 120 stream.key = rawKey.substring(pos+1);
|
H A D | FileBackupHelper.java | 96 String key = data.getKey(); 97 if (isKeyInList(key, mFiles)) { 98 File f = new File(mFilesDir, key);
|
H A D | FileBackupHelperBase.java | 109 boolean isKeyInList(String key, String[] list) { argument 111 if (s.equals(key)) {
|
H A D | SharedPreferencesBackupHelper.java | 122 String key = data.getKey(); 123 if (DEBUG) Log.d(TAG, "got entity '" + key + "' size=" + data.size()); 125 if (isKeyInList(key, mPrefGroups)) { 126 File f = context.getSharedPrefsFile(key).getAbsoluteFile();
|
H A D | WallpaperBackupHelper.java | 118 final String key = data.getKey(); 119 if (isKeyInList(key, mKeys)) { 120 if (key.equals(WALLPAPER_IMAGE_KEY)) { 155 } else if (key.equals(WALLPAPER_INFO_KEY)) {
|
/frameworks/base/core/java/android/content/ |
H A D | ContentProviderOperation.java | 273 * key refers to a column and the value is an index of the back reference whose 296 String key = entry.getKey(); 297 Integer backRefIndex = mValuesBackReferences.getAsInteger(key); 300 throw new IllegalArgumentException("values backref " + key + " is not an integer"); 302 values.put(key, backRefToValue(backRefs, numBackRefs, backRefIndex)); 309 * the key is an index into the selection argument array (see {@link Builder#withSelection}) 440 * Add a {@link ContentValues} of back references. The key is the name of the column 464 public Builder withValueBackReference(String key, int previousResult) { argument 472 mValuesBackReferences.put(key, previousResult); 517 * @param key th 522 withValue(String key, Object value) argument [all...] |
H A D | ContentResolver.java | 854 * @param values The initial values for the newly inserted row. The key is the column name for 915 * @param values The initial values for the newly inserted rows. The key is the column name for 977 * @param values The new field values. The key is the column name for the field. 1377 for (String key : extras.keySet()) { 1378 Object value = extras.get(key);
|
H A D | ContentValues.java | 92 * @param key the name of the value to put 95 public void put(String key, String value) { argument 96 mValues.put(key, value); 111 * @param key the name of the value to put 114 public void put(String key, Byte value) { argument 115 mValues.put(key, value); 121 * @param key the name of the value to put 124 public void put(String key, Short value) { argument 125 mValues.put(key, value); 131 * @param key th 134 put(String key, Integer value) argument 144 put(String key, Long value) argument 154 put(String key, Float value) argument 164 put(String key, Double value) argument 174 put(String key, Boolean value) argument 184 put(String key, byte[] value) argument 193 putNull(String key) argument 211 remove(String key) argument 228 containsKey(String key) argument 239 get(String key) argument 249 getAsString(String key) argument 260 getAsLong(String key) argument 285 getAsInteger(String key) argument 310 getAsShort(String key) argument 335 getAsByte(String key) argument 360 getAsDouble(String key) argument 385 getAsFloat(String key) argument 410 getAsBoolean(String key) argument 433 getAsByteArray(String key) argument 488 putStringArrayList(String key, ArrayList<String> value) argument 498 getStringArrayList(String key) argument [all...] |
H A D | DefaultDataHandler.java | 165 String key = atts.getValue(0); 167 if (key != null && key.length() > 0 && value != null && value.length() > 0) { 171 mValues.put(key, value);
|
H A D | Intent.java | 1202 * search key. 2041 * extra field, {@link #EXTRA_KEY_EVENT}, containing the key event that 2049 * extra field, {@link #EXTRA_KEY_EVENT}, containing the key event that 2643 * <p>NOTE: This should not be used as the primary key of an Intent, 2655 * <p>NOTE: This should not be used as the primary key of an Intent, 2667 * <p>NOTE: This should not be used as the primary key of an Intent, 2679 * <p>NOTE: This should not be used as the primary key of an Intent, 2691 * <p>NOTE: This should not be used as the primary key of an Intent, 2704 * <p>NOTE: This should not be used as the primary key of an Intent, 2716 * <p>NOTE: This should not be used as the primary key o [all...] |