/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | KeySetManagerService.java | 51 /** Sentinel value returned when public key is not found. */ 332 // add the stable key ids to the mapping 354 private long addPublicKeyLPw(PublicKey key) { argument 355 // check if the public key is new 356 long existingKeyId = getIdForPublicKeyLPr(key); 362 // add the public key to it 363 mPublicKeys.put(id, key); 593 PublicKey key = mPublicKeys.valueAt(pKeyIndex); 594 String encodedKey = encodePublicKey(key); 595 serializer.startTag(null, "public-key"); [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/ |
H A D | CertPinInstallReceiverTest.java | 102 private void overrideSettings(String key, String value) throws Exception { argument 103 assertTrue(Settings.Secure.putString(mContext.getContentResolver(), key, value));
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
H A D | UsbDebuggingManager.java | 91 String key = new String(Arrays.copyOfRange(buffer, 2, count)); 92 Slog.d(TAG, "Received public key: " + key); 94 msg.obj = key; 187 String key = (String)msg.obj; 188 String fingerprints = getFingerprints(key); 197 writeKey(key); 209 String key = (String)msg.obj; 210 String fingerprints = getFingerprints(key); 216 startConfirmation(key, mFingerprint 227 getFingerprints(String key) argument 260 startConfirmation(String key, String fingerprints) argument 275 startConfirmationActivity(ComponentName componentName, String key, String fingerprints) argument 294 startConfirmationService(ComponentName componentName, String key, String fingerprints) argument 307 createConfirmationIntent(ComponentName componentName, String key, String fingerprints) argument 328 writeKey(String key) argument [all...] |
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/ |
H A D | TrackerService.java | 437 SharedPreferences sharedPreferences, String key) { 436 onSharedPreferenceChanged( SharedPreferences sharedPreferences, String key) argument
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | AndroidCamera2Settings.java | 151 private <T> T queryTemplateDefaultOrMakeOneUp(Key<T> key, T defaultDefault) { argument 152 T val = mTemplateSettings.get(key); 156 // Spoof the default so matchesTemplateDefault excludes this key from generated sets. 158 mTemplateSettings.set(key, defaultDefault); 242 Log.w(TAG, "Settings implementation checked default of unhandled option key");
|
/frameworks/ex/camera2/utils/tests/src/com/android/ex/camera2/utils/ |
H A D | Camera2UtilsTest.java | 154 Key<T> key, T value, 157 assertEquals(shouldHaveChanged, settings.set(key, value)); 185 Key<T> key, boolean shouldHaveChanged) { 187 assertEquals(shouldHaveChanged, settings.unset(key)); 153 requestSettingsSetAndAssertChanged(Camera2RequestSettingsSet settings, Key<T> key, T value, boolean shouldHaveChanged) argument 184 requestSettingsUnsetAndAssertChanged(Camera2RequestSettingsSet settings, Key<T> key, boolean shouldHaveChanged) argument
|
/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/native/libs/input/ |
H A D | KeyLayoutMap.cpp | 58 ALOGE("Error %d opening key layout map file %s.", status, filename.string()); 62 ALOGE("Error allocating key layout map."); 72 ALOGD("Parsed key layout map file '%s' %d lines in %0.3fms.", 87 const Key* key = getKey(scanCode, usageCode); local 88 if (!key) { 97 *outKeyCode = key->keyCode; 98 *outFlags = key->flags; 209 if (keywordToken == "key") { 253 ALOGE("%s: Expected key %s number, got '%s'.", mTokenizer->getLocation().string(), 259 ALOGE("%s: Duplicate entry for key 297 Key key; local [all...] |
/frameworks/native/opengl/libs/EGL/ |
H A D | egl_cache.cpp | 62 static void setBlob(const void* key, EGLsizeiANDROID keySize, argument 64 egl_cache_t::get()->setBlob(key, keySize, value, valueSize); 67 static EGLsizeiANDROID getBlob(const void* key, EGLsizeiANDROID keySize, argument 69 return egl_cache_t::get()->getBlob(key, keySize, value, valueSize); 133 void egl_cache_t::setBlob(const void* key, EGLsizeiANDROID keySize, argument 144 bc->set(key, keySize, value, valueSize); 172 EGLsizeiANDROID egl_cache_t::getBlob(const void* key, EGLsizeiANDROID keySize, argument 183 return bc->get(key, keySize, value, valueSize);
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
H A D | DecodeTask.java | 75 void onDecodeBegin(RequestKey key); argument 80 void onDecodeComplete(RequestKey key, ReusableBitmap result); argument 85 void onDecodeCancel(RequestKey key); argument 91 * @param requestKey The request to decode, also the key to use for the cache. 275 + mInBitmap + " key=" + mKey); 280 + mInBitmap + " key=" + mKey); 448 Log.d(TAG, "placed result in cache: key=" + mKey + " bmp=" 453 Log.d(TAG, "placing failed/cancelled bitmap in pool: key=" 556 * key, this will determine where vertically the destination rect will be cropped from. 574 * provided by the request key, thi [all...] |
/frameworks/opt/bluetooth/src/android/bluetooth/client/pbap/ |
H A D | BluetoothPbapSession.java | 222 public boolean setAuthResponse(String key) { argument 223 Log.d(TAG, "setAuthResponse key=" + key); 233 return mObexSession.setAuthReply(key);
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
H A D | EventRecurrenceTest.java | 313 key = k; 317 String key; field in class:EventRecurrenceTest.Check 336 String recur = "FREQ=DAILY;" + ck.key + "=" + n;
|
/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/opt/telephony/src/java/com/google/android/mms/util/ |
H A D | PduCache.java | 163 private PduCacheEntry purgeSingleEntry(Uri key) { argument 164 mUpdating.remove(key); 165 PduCacheEntry entry = super.purge(key); 167 removeFromThreads(key, entry); 168 removeFromMessageBoxes(key, entry); 185 * @return Uri The normalized key of cached entry. 220 for (Uri key : msgBox) { 221 mUpdating.remove(key); 222 PduCacheEntry entry = super.purge(key); 224 removeFromThreads(key, entr 231 removeFromThreads(Uri key, PduCacheEntry entry) argument 255 removeFromMessageBoxes(Uri key, PduCacheEntry entry) argument [all...] |
/frameworks/rs/cpp/util/ |
H A D | TypeHelpers.h | 223 * a key/value pair 231 KEY key; member in struct:android::RSC::key_value_pair_t 234 key_value_pair_t(const key_value_pair_t& o) : key(o.key), value(o.value) { } 235 key_value_pair_t(const KEY& k, const VALUE& v) : key(k), value(v) { } 236 key_value_pair_t(const KEY& k) : key(k) { } 238 return strictly_order_type(key, o.key); 241 return key; 269 hash_t hash_type(const TKey& key); [all...] |
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicColorMatrix.cpp | 113 uint64_t key; member in union:android::renderscript::__anon1486 202 bool build(Key_t key); 215 Key_t key; local 216 key.key = 0; 218 // Compute a unique code key for this operation 220 // Add to the key the input and output types 224 key.u.inType = RS_TYPE_FLOAT_32; 225 rsAssert(key.u.inType == RS_TYPE_FLOAT_32); 229 key [all...] |
/frameworks/rs/ |
H A D | rsScriptC.cpp | 302 const char * key = mHal.info.exportedPragmaKeyList[i]; local 305 if (!strcmp(key, "version")) { 314 if (!strcmp(key, "stateVertex")) { 326 if (!strcmp(key, "stateRaster")) { 338 if (!strcmp(key, "stateFragment")) { 350 if (!strcmp(key, "stateStore")) {
|
/frameworks/rs/server/ |
H A D | TypeHelpers.h | 223 * a key/value pair 231 KEY key; member in struct:android::key_value_pair_t 234 key_value_pair_t(const key_value_pair_t& o) : key(o.key), value(o.value) { } 235 key_value_pair_t(const KEY& k, const VALUE& v) : key(k), value(v) { } 236 key_value_pair_t(const KEY& k) : key(k) { } 238 return strictly_order_type(key, o.key); 241 return key; 269 hash_t hash_type(const TKey& key); [all...] |
/frameworks/support/v4/java/android/support/v4/util/ |
H A D | SimpleArrayMap.java | 61 int indexOf(Object key, int hash) { argument 71 // If the hash code wasn't found, then we have no entry for this key. 76 // If the key at the returned index matches, that's what we want. 77 if (key.equals(mArray[index<<1])) { 81 // Search for a matching key after the index. 84 if (key.equals(mArray[end << 1])) return end; 87 // Search for a matching key before the index. 89 if (key.equals(mArray[i << 1])) return i; 93 // new entry for this key should go. We use the end of the 109 // If the hash code wasn't found, then we have no entry for this key 272 containsKey(Object key) argument 282 indexOfKey(Object key) argument 322 get(Object key) argument 373 put(K key, V value) argument 450 remove(Object key) argument [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | PositionMap.java | 23 * Like a SparseArray, but with the ability to offset key ranges for bulk insertions/deletions. 74 * Gets the Object mapped from the specified key, or <code>null</code> 77 public E get(int key) { argument 78 return get(key, null); 82 * Gets the Object mapped from the specified key, or the specified Object 86 public E get(int key, E valueIfKeyNotFound) { argument 87 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 97 * Removes the mapping from the specified key, if there was any. 99 public void delete(int key) { argument 100 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 113 remove(int key) argument 181 put(int key, E value) argument 285 indexOfKey(int key) argument 334 append(int key, E value) argument [all...] |
/frameworks/volley/src/com/android/volley/toolbox/ |
H A D | DiskBasedCache.java | 102 * Returns the cache entry with the specified key if it exists, null otherwise. 105 public synchronized Entry get(String key) { argument 106 CacheHeader entry = mEntries.get(key); 112 File file = getFileForKey(key); 121 remove(key); 157 putEntry(entry.key, entry); 174 * @param key Cache key 178 public synchronized void invalidate(String key, boolean fullExpire) { argument 179 Entry entry = get(key); 194 put(String key, Entry entry) argument 222 remove(String key) argument 236 getFilenameForKey(String key) argument 246 getFileForKey(String key) argument 296 putEntry(String key, CacheHeader entry) argument 309 removeEntry(String key) argument 343 public String key; field in class:DiskBasedCache.CacheHeader 367 CacheHeader(String key, Entry entry) argument [all...] |
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/ |
H A D | FwdLockFile.c | 158 memset(sessionPtrs[sessionId], 0, sizeof *sessionPtrs[sessionId]); // Zero out key data. 165 * Derives keys for encryption and signing from the encrypted session key. 169 * @return A Boolean value indicating whether key derivation was successful. 176 unsigned char key[KEY_SIZE]; member in struct:FwdLockFile_DeriveKeys_Data 185 pSession->encryptedSessionKeyLength, pData->key, KEY_SIZE); 187 if (AES_set_encrypt_key(pData->key, KEY_SIZE_IN_BITS, &pData->sessionRoundKeys) != 0) { 190 // Encrypt the 16-byte value {0, 0, ..., 0} to produce the encryption key. 192 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys); 193 if (AES_set_encrypt_key(pData->key, KEY_SIZE_IN_BITS, 197 // Encrypt the 16-byte value {1, 0, ..., 0} to produce the signing key [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AMPEG4AudioAssembler.cpp | 35 static bool GetAttribute(const char *s, const char *key, AString *value) { argument 38 size_t keyLen = strlen(key); 50 if (len >= keyLen + 1 && s[keyLen] == '=' && !strncmp(s, key, keyLen)) {
|
H A D | APacketSource.cpp | 44 static bool GetAttribute(const char *s, const char *key, AString *value) { argument 47 size_t keyLen = strlen(key); 59 if (len >= keyLen + 1 && s[keyLen] == '=' && !strncmp(s, key, keyLen)) {
|
/frameworks/av/media/libstagefright/webm/ |
H A D | WebmElement.cpp | 192 bool key, 200 mKey(key), 189 WebmSimpleBlock( int trackNum, int16_t relTimecode, bool key, const sp<ABuffer>& orig) argument
|