/frameworks/rs/java/tests/GenImages/src/com/android/rs/genimage/ |
H A D | GenImage.java | 149 public String setup(int key) { argument 153 tmp = key % 2; 154 key /= 2; 163 tmp = key % 2; 164 key /= 2; 173 tmp = key % 3; 174 key /= 3; 190 tmp = key % 3; 191 key /= 3; 207 if (key > 231 int key = 0; field in class:Triangle [all...] |
/frameworks/opt/net/ims/src/java/com/android/ims/ |
H A D | ImsUt.java | 589 Integer key = Integer.valueOf(id); 592 sendSuccessReport(mPendingCmds.get(key)); 593 mPendingCmds.remove(key); 599 Integer key = Integer.valueOf(id); 602 sendFailureReport(mPendingCmds.get(key), error); 603 mPendingCmds.remove(key); 612 Integer key = Integer.valueOf(id); 615 sendSuccessReport(mPendingCmds.get(key), ssInfo); 616 mPendingCmds.remove(key); 622 Integer key [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | RttService.java | 144 Integer key; field in class:RttService.RttServiceImpl.RttRequest 160 boolean addRttRequest(int key, RttManager.ParcelableRttParams parcelableParams) { argument 168 request.key = key; 171 mRequests.put(key, request); 176 void removeRttRequest(int key) { argument 177 mRequests.remove(key); 185 0, request.key, parcelableResults); 186 mRequests.remove(request.key); 190 reportFailed(request.key, reaso 193 reportFailed(int key, int reason, String description) argument 200 reportAborted(int key) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | LruCacheTest.java | 183 * Replacing the value for a key doesn't cause an eviction but it does bring 200 @Override protected int sizeOf(String key, String value) { 201 return key.length() + value.length(); 216 @Override protected int sizeOf(String key, String value) { 245 @Override protected int sizeOf(String key, int[] value) { 267 @Override protected int sizeOf(String key, String value) { 286 @Override protected int sizeOf(String key, String value) { 314 @Override protected int sizeOf(String key, String value) { 327 @Override protected int sizeOf(String key, String value) { 373 boolean evicted, String key, Strin 467 assertHit(LruCache<String, String> cache, String key, String value) argument 473 assertMiss(LruCache<String, String> cache, String key) argument 479 assertCreated(LruCache<String, String> cache, String key, String value) argument [all...] |
/frameworks/av/media/libstagefright/httplive/ |
H A D | M3UParser.cpp | 395 bool M3UParser::getTypeURI(size_t index, const char *key, AString *uri) const { argument 401 return !strcmp("audio", key) || !strcmp("video", key); 409 if (!meta->findString(key, &groupID)) { 416 return !strcmp("audio", key) || !strcmp("video", key); 425 // return true only if a codec of type `key` ("audio"/"video") 427 if (codecIsType(codec, key)) { 652 const AString &line, sp<AMessage> *meta, const char *key) { 669 (*meta)->setInt32(key, 651 parseMetaData( const AString &line, sp<AMessage> *meta, const char *key) argument 675 parseMetaDataDuration( const AString &line, sp<AMessage> *meta, const char *key) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationData.java | 41 public String key; field in class:NotificationData.Entry 54 this.key = n.getKey(); 106 boolean aMedia = a.key.equals(mediaNotification); 107 boolean bMedia = b.key.equals(mediaNotification); 126 mRankingMap.getRanking(a.key, mRankingA); 127 mRankingMap.getRanking(b.key, mRankingB); 159 public Entry get(String key) { argument 160 return mEntries.get(key); 168 public Entry remove(String key, RankingMap ranking) { argument 169 Entry removed = mEntries.remove(key); 179 isAmbient(String key) argument 187 getVisibilityOverride(String key) argument [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | ConfigurationBoundResourceCache.java | 46 * @param key A custom key that uniquely identifies the resource. 51 public void put(long key, Resources.Theme theme, ConstantState<T> constantState) { argument 63 themedCache.put(key, new WeakReference<ConstantState<T>>(constantState)); 70 * @param key The long key which can be used to uniquely identify the resource. 76 public T get(long key, Resources.Theme theme) { argument 85 wr = themedCache.get(key); 97 themedCache.delete(key);
|
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | LocationRequestStatistics.java | 28 PackageProviderKey key = new PackageProviderKey(packageName, providerName); 29 PackageStatistics stats = statistics.get(key); 32 statistics.put(key, stats); 44 PackageProviderKey key = new PackageProviderKey(packageName, providerName); 45 PackageStatistics stats = statistics.get(key); 55 * A key that holds both package and provider names.
|
/frameworks/compile/mclinker/lib/Target/Mips/ |
H A D | MipsGOT.cpp | 341 GotEntryKey key; 342 key.m_GOTPage = m_CurrentGOTPart; 343 key.m_pInfo = pInfo; 344 key.m_Addend = 0; 345 m_GotGlobalEntriesMap[key] = pEntry; 350 GotEntryKey key; 351 key.m_GOTPage= m_CurrentGOTPart; 352 key.m_pInfo = pInfo; 353 key.m_Addend = 0; 354 GotEntryMapType::iterator it = m_GotGlobalEntriesMap.find(key); [all...] |
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | KeyboardView.java | 59 * detecting key presses and touch movements. 78 * Called when the user presses a key. This is sent before the {@link #onKey} is called. 80 * @param primaryCode the unicode of the key being pressed. If the touch is not on a valid 81 * key, the value will be zero. 86 * Called when the user releases a key. This is sent after the {@link #onKey} is called. 88 * @param primaryCode the code of the key that was released 93 * Send a key press to the listener. 94 * @param primaryCode this is the key that was pressed 96 * with the primary code being the first. If the primary key code is 98 * will include other characters that may be on the same key o 839 getPreviewText(Key key) argument [all...] |
/frameworks/base/cmds/settings/src/com/android/commands/settings/ |
H A D | SettingsCmd.java | 177 final String table, final String key) { 191 Bundle b = provider.call(null, callGetCommand, key, arg); 196 System.err.println("Can't read key " + key + " in " + table + " for user " + userHandle); 202 final String table, final String key, final String value) { 216 provider.call(null, callPutCommand, key, arg); 218 System.err.println("Can't set key " + key + " in " + table + " for user " + userHandle); 223 final String table, final String key) { 225 if ("system".equals(table)) targetUri = Settings.System.getUriFor(key); 176 getForUser(IContentProvider provider, int userHandle, final String table, final String key) argument 201 putForUser(IContentProvider provider, int userHandle, final String table, final String key, final String value) argument 222 deleteForUser(IContentProvider provider, int userHandle, final String table, final String key) argument [all...] |
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | StochasticLinearRankerWithPrior.java | 176 public boolean setModelParameter(String key, String value){ argument 177 if (key.equals(USE_AUTO_ALPHA)){ 179 } else if (key.equals(USE_PRIOR)){ 181 } else if (key.equals(SET_ALPHA)){ 183 }else if (key.equals(SET_AUTO_ALPHA)){ 185 }else if (key.equals(SET_FORGET_RATE)){ 187 }else if (key.equals(SET_MIN_TRAIN_PAIR)){ 189 }else if (key.equals(SET_USER_PERF)){ 191 }else if (key.equals(SET_PRIOR_PERF)){ 193 }else if (key [all...] |
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
H A D | ImportTestProvider.java | 103 for (String key: keyToBeRemoved) { 104 actualContentValues.remove(key); 184 final String key = entry.getKey(); 187 if (Data.MIMETYPE.equals(key)) { 190 TestCase.assertNotNull(key); 191 sortedMap.put(key, valueString); 199 final String key = entry.getKey(); 202 builder.append(key); 219 final String key = entry.getKey(); 221 if (!actual.containsKey(key)) { [all...] |
/frameworks/av/include/camera/ |
H A D | CameraParameters.h | 50 void set(const char *key, const char *value); 51 void set(const char *key, int value); 52 void setFloat(const char *key, float value); 53 const char *get(const char *key) const; 54 int getInt(const char *key) const; 55 float getFloat(const char *key) const; 57 void remove(const char *key); 337 // "false" or this key not existing means it is not supported. 354 // means it is, and "false" or this key not existing means it is 411 // is not supported if the value is not "true" or the key doe [all...] |
/frameworks/base/tools/obbtool/ |
H A D | mkobb.sh | 110 hidden_prompt " Encryption key: " key 112 if [ "${key}x" = "x" ]; then \ 113 echo "ERROR: An empty key is not allowed!" 117 hidden_prompt "Encryption key (again): " key2 119 if [ "${key}x" != "${key2}x" ]; then \ 152 echo " -k <key> Use <key> to encrypt OBB file" 153 echo " -K Prompt for key to encrypt OBB file" 171 -k) key [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ViewsStateBundle.java | 91 String key = i.next(); 92 mChildStates.put(key, savedBundle.getSparseParcelableArray(key)); 154 String key = getSaveStatesKey(id); 155 SparseArray<Parcelable> container = mChildStates.get(key); 170 String key = getSaveStatesKey(id); 173 mChildStates.put(key, container);
|
/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseGeneralTest.java | 486 String key = DatabaseUtils.getHexCollationKey("Frederic Hjonneva"); 488 "SELECT count(*) from tokens where token GLOB '" + key + "*'", null)); 490 "SELECT source from tokens where token GLOB '" + key + "*'", null)); 492 "SELECT token_index from tokens where token GLOB '" + key + "*'", null)); 493 key = DatabaseUtils.getHexCollationKey("Hjonneva"); 495 "SELECT count(*) from tokens where token GLOB '" + key + "*'", null)); 497 "SELECT source from tokens where token GLOB '" + key + "*'", null)); 499 "SELECT token_index from tokens where token GLOB '" + key + "*'", null)); 501 key = DatabaseUtils.getHexCollationKey("some string ok"); 503 "SELECT count(*) from tokens where token GLOB '" + key [all...] |
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | IpConfigStore.java | 199 String key; 202 key = in.readUTF(); 204 if (key.equals(ID_KEY)) { 206 } else if (key.equals(IP_ASSIGNMENT_KEY)) { 208 } else if (key.equals(LINK_ADDRESS_KEY)) { 217 } else if (key.equals(GATEWAY_KEY)) { 245 } else if (key.equals(DNS_KEY)) { 248 } else if (key.equals(PROXY_SETTINGS_KEY)) { 250 } else if (key.equals(PROXY_HOST_KEY)) { 252 } else if (key [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | LockSettingsService.java | 198 String key = READ_PROFILE_PROTECTED_SETTINGS[i]; 199 if (key.equals(requestedKey) && mContext.checkCallingOrSelfPermission(READ_PROFILE) 209 public void setBoolean(String key, boolean value, int userId) throws RemoteException { argument 211 setStringUnchecked(key, userId, value ? "1" : "0"); 215 public void setLong(String key, long value, int userId) throws RemoteException { argument 217 setStringUnchecked(key, userId, Long.toString(value)); 221 public void setString(String key, String value, int userId) throws RemoteException { argument 223 setStringUnchecked(key, userId, value); 226 private void setStringUnchecked(String key, int userId, String value) { argument 227 mStorage.writeKeyValue(key, valu 231 getBoolean(String key, boolean defaultValue, int userId) argument 240 getLong(String key, long defaultValue, int userId) argument 248 getString(String key, String defaultValue, int userId) argument [all...] |
/frameworks/base/core/java/android/content/ |
H A D | RestrictionEntry.java | 92 /** The unique key that identifies the restriction. */ 117 * Constructor for specifying the type and key, with no initial value; 120 * @param key the unique key for this restriction 122 public RestrictionEntry(int type, String key) { argument 124 mKey = key; 129 * @param key the unique key for this restriction 132 public RestrictionEntry(String key, String selectedString) { argument 133 this.mKey = key; 143 RestrictionEntry(String key, boolean selectedState) argument 154 RestrictionEntry(String key, String[] selectedStrings) argument 165 RestrictionEntry(String key, int selectedInt) argument [all...] |
H A D | ContentProviderOperation.java | 299 * key refers to a column and the value is an index of the back reference whose 322 String key = entry.getKey(); 323 Integer backRefIndex = mValuesBackReferences.getAsInteger(key); 326 throw new IllegalArgumentException("values backref " + key + " is not an integer"); 328 values.put(key, backRefToValue(backRefs, numBackRefs, backRefIndex)); 335 * the key is an index into the selection argument array (see {@link Builder#withSelection}) 465 * Add a {@link ContentValues} of back references. The key is the name of the column 489 public Builder withValueBackReference(String key, int previousResult) { argument 497 mValuesBackReferences.put(key, previousResult); 542 * @param key th 547 withValue(String key, Object value) argument [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | BasicBitmapDrawable.java | 135 * Binds to the given key and start the decode process. This will first look in the cache, then 136 * decode from the request key if not found. 138 * The key being replaced will be kept in {@link #mPrevKey}. 142 public void bind(RequestKey key) { argument 144 if (mCurrKey != null && mCurrKey.equals(key)) { 148 setImage(key); 153 * Unbinds the current key and bitmap from the drawable. This will cause the bitmap to decrement 156 * This will assume that you do not want to keep the unbound key in {@link #mPrevKey}. 165 * Unbinds the current key and bitmap from the drawable. This will cause the bitmap to decrement 168 * If the temporary parameter is true, we will keep the unbound key i 184 setImage(final RequestKey key) argument 257 fileDescriptorFactoryCreated(final RequestKey key, final FileDescriptorFactory factory) argument 389 onDecodeBegin(final RequestKey key) argument 392 onDecodeComplete(final RequestKey key, final ReusableBitmap result) argument 405 onDecodeCancel(final RequestKey key) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | RemoteControlClient.java | 227 * Flag indicating a RemoteControlClient makes use of the "previous" media key. 234 * Flag indicating a RemoteControlClient makes use of the "rewind" media key. 241 * Flag indicating a RemoteControlClient makes use of the "play" media key. 248 * Flag indicating a RemoteControlClient makes use of the "play/pause" media key. 255 * Flag indicating a RemoteControlClient makes use of the "pause" media key. 262 * Flag indicating a RemoteControlClient makes use of the "stop" media key. 269 * Flag indicating a RemoteControlClient makes use of the "fast forward" media key. 276 * Flag indicating a RemoteControlClient makes use of the "next" media key. 297 * {@link MediaMetadataEditor#RATING_KEY_BY_USER} key), it will enable the user to rate 438 * The metadata key fo 469 putString(int key, String value) argument 499 putLong(int key, long value) argument 524 putBitmap(int key, Bitmap bitmap) argument 539 putObject(int key, Object object) argument 787 onMetadataUpdate(int key, Object newValue) argument 1036 onUpdateMetadata(int generationId, int key, Object value) argument [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | RttManager.java | 389 int key; 392 key = sListenerKey++; 393 } while (key == INVALID_KEY); 394 sListenerMap.put(key, listener); 396 return key; 399 private static Object getListener(int key) { argument 400 if (key == INVALID_KEY) return null; 402 Object listener = sListenerMap.get(key); 419 private static Object removeListener(int key) { argument 420 if (key [all...] |
/frameworks/opt/net/voip/src/java/android/net/sip/ |
H A D | SimpleSessionDescription.java | 169 * Returns the encryption key or {@code null} if it is not present. 176 * Sets the encryption method and the encryption key. The field will be 179 public void setEncryption(String method, String key) { argument 180 mFields.setEncryption(method, key); 385 * has three parts: a key, a delimiter, and a value. Delimiters are special 439 * Returns the encryption key or {@code null} if it is not present. 451 * Sets the encryption method and the encryption key. The field will be 454 public void setEncryption(String method, String key) { argument 455 set("k", '=', (method == null || key == null) ? 456 method : method + ':' + key); 568 find(String key, char delimiter) argument 584 set(String key, char delimiter, String value) argument 603 get(String key, char delimiter) argument [all...] |