Searched defs:key (Results 251 - 275 of 354) sorted by relevance

<<1112131415

/frameworks/base/core/java/android/print/
H A DPrintJobInfo.java530 * @param key The option key.
535 public boolean hasAdvancedOption(String key) { argument
536 return mAdvancedOptions != null && mAdvancedOptions.containsKey(key);
542 * @param key The option key.
547 public String getAdvancedStringOption(String key) { argument
549 return mAdvancedOptions.getString(key);
557 * @param key The option key
562 getAdvancedIntOption(String key) argument
719 putAdvancedOption(String key, String value) argument
732 putAdvancedOption(String key, int value) argument
[all...]
/frameworks/base/core/java/android/service/notification/
H A DNotificationListenerService.java270 * @deprecated Use {@link #cancelNotification(String key)}
299 * @param key Notification to dismiss from {@link StatusBarNotification#getKey()}.
301 public final void cancelNotification(String key) { argument
305 new String[] {key});
396 * Request one or more notifications by key. Useful if you have been keeping track of
402 * same order as the key list.
409 * Request one or more notifications by key. Useful if you have been keeping track of
418 * same order as the key list.
724 * Returns the key of the notification this Ranking applies to.
771 private void populate(String key, in argument
816 getRanking(String key, Ranking outRanking) argument
823 getRank(String key) argument
833 isAmbient(String key) argument
842 isIntercepted(String key) argument
851 getVisibilityOverride(String key) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_CameraMetadata.cpp626 const char *key = keyScoped.c_str(); local
627 if (key == NULL) {
631 size_t keyLength = strlen(key);
633 ALOGV("%s (key = '%s')", __FUNCTION__, key);
656 if (strstr(key, str) == key) { // key begins with the section name
676 "Could not find section name for key '%s')", key);
[all...]
/frameworks/base/keystore/tests/src/android/security/
H A DAndroidKeyStoreTest.java1168 assertTrue("Should contain generated private key", mKeyStore.containsAlias(TEST_ALIAS_1));
1565 private void assertPrivateKeyEntryEquals(PrivateKeyEntry keyEntry, String keyType, byte[] key, argument
1568 PrivateKey expectedKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(key));
1647 Key key = mKeyStore.getKey(TEST_ALIAS_1, null);
1648 assertNotNull("Key should exist", key);
1650 assertTrue("Should be a RSAPrivateKey", key instanceof RSAPrivateKey);
1652 RSAPrivateKey actualKey = (RSAPrivateKey) key;
1657 assertEquals("Inserted key should be same as retrieved key",
1671 Key key
[all...]
/frameworks/base/libs/hwui/
H A DProgram.h230 * Computes the unique key identifying this program.
232 programid key() const { function in struct:android::uirenderer::ProgramDescription
233 programid key = 0; local
234 if (hasTexture) key |= PROGRAM_KEY_TEXTURE;
235 if (hasAlpha8Texture) key |= PROGRAM_KEY_A8_TEXTURE;
237 key |= PROGRAM_KEY_BITMAP;
239 key |= PROGRAM_KEY_BITMAP_NPOT;
240 key |= getEnumForWrap(bitmapWrapS) << PROGRAM_BITMAP_WRAPS_SHIFT;
241 key |= getEnumForWrap(bitmapWrapT) << PROGRAM_BITMAP_WRAPT_SHIFT;
244 if (hasGradient) key |
[all...]
/frameworks/base/libs/storage/
H A DIMountService.cpp236 const String16& key, const int32_t ownerUid)
243 data.writeString16(key);
291 int32_t mountSecureContainer(const String16& id, const String16& key, const int32_t ownerUid) argument
296 data.writeString16(key);
438 void mountObb(const String16& rawPath, const String16& canonicalPath, const String16& key, argument
445 data.writeString16(key);
235 createSecureContainer(const String16& id, const int32_t sizeMb, const String16& fstype, const String16& key, const int32_t ownerUid) argument
/frameworks/base/location/java/android/location/
H A DLocation.java64 * Bundle key for a version of the location that has been fed through
73 * Bundle key for a version of the location containing no GPS data.
810 * <p> A number of common key/value pairs are listed
920 * @param key the key associated with the desired extra Location
924 public Location getExtraLocation(String key) { argument
926 Parcelable value = mExtras.getParcelable(key);
937 * @param key the key associated with the Location extra
941 public void setExtraLocation(String key, Locatio argument
[all...]
/frameworks/base/media/java/android/media/
H A DTimedText.java422 Log.w(TAG, "Invalid timed text key found: " + type);
427 int key = parcel.readInt();
428 if (!isValidKey(key)) {
429 Log.w(TAG, "Invalid timed text key found: " + key);
435 switch (key) {
517 if (mKeyObjectMap.containsKey(key)) {
518 mKeyObjectMap.remove(key);
521 mKeyObjectMap.put(key, object);
542 int key
690 isValidKey(final int key) argument
704 containsKey(final int key) argument
727 getObject(final int key) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DCameraMetadataTest.java125 fail("A null key should throw NPE");
131 fail("A section name only should not be a valid key");
137 fail("A valid section with an invalid tag name should not be a valid key");
143 fail("A namespace name only should not be a valid key");
148 CameraMetadataNative.getTag("this.key.is.definitely.invalid");
149 fail("A completely fake key name should not be valid");
336 Key<T> key = new Key<T>(keyStr, typeToken);
337 assertNull(mMetadata.get(key));
338 mMetadata.set(key, null);
339 assertNull(mMetadata.get(key));
1237 assertKeyValueEquals(T expected, CameraCharacteristics.Key<T> key) argument
1241 assertKeyValueEquals(T expected, Key<T> key) argument
1385 validateArrayMetadataReadWriteOverride(Key<T> key, T expectedWriteValues, T expectedReadValues, int tag) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DExpandableNotificationRow.java133 public void logNotificationExpansion(String key, boolean userAction, boolean expanded); argument
487 public void setExpansionLogger(ExpansionLogger logger, String key) { argument
489 mLoggingKey = key;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DHeadsUpNotificationView.java110 if (mHeadsUp != null && headsUp != null && !mHeadsUp.key.equals(headsUp.key)) {
159 public boolean isShowing(String key) { argument
160 return mHeadsUp != null && mHeadsUp.key.equals(key);
190 final String key = snoozeKey(packageName, mUser);
191 Long snoozedUntil = mSnoozedPackages.get(key);
194 if (DEBUG) Log.v(TAG, key + " snoozed");
/frameworks/base/services/core/java/com/android/server/
H A DLockSettingsStorage.java59 private static final String LOCK_PATTERN_FILE = "gesture.key";
60 private static final String LOCK_PASSWORD_FILE = "password.key";
74 public void writeKeyValue(String key, String value, int userId) { argument
75 writeKeyValue(mOpenHelper.getWritableDatabase(), key, value, userId);
78 public void writeKeyValue(SQLiteDatabase db, String key, String value, int userId) { argument
80 cv.put(COLUMN_KEY, key);
87 new String[] {key, Integer.toString(userId)});
90 mCache.putKeyValue(key, value, userId);
97 public String readKeyValue(String key, String defaultValue, int userId) { argument
100 if (mCache.hasKeyValue(key, userI
393 peekKeyValue(String key, String defaultValue, int userId) argument
398 hasKeyValue(String key, int userId) argument
402 putKeyValue(String key, String value, int userId) argument
406 putKeyValueIfUnchanged(String key, Object value, int userId, int version) argument
418 putFile(String key, byte[] value) argument
422 putFileIfUnchanged(String key, byte[] value, int version) argument
435 put(int type, String key, Object value, int userId) argument
441 putIfUnchanged(int type, String key, Object value, int userId, int version) argument
448 contains(int type, String key, int userId) argument
452 peek(int type, String key, int userId) argument
481 String key; field in class:LockSettingsStorage.Cache.CacheKey
485 set(int type, String key, int userId) argument
[all...]
/frameworks/base/services/core/java/com/android/server/statusbar/
H A DStatusBarManagerService.java309 * Hide or show the on-screen Menu key. Only call this from the window manager, typically in
317 if (SPEW) Slog.d(TAG, (menuVisible?"showing":"hiding") + " MENU key");
534 public void onNotificationClick(String key) { argument
540 mNotificationDelegate.onNotificationClick(callingUid, callingPid, key);
547 public void onNotificationActionClick(String key, int actionIndex) { argument
553 mNotificationDelegate.onNotificationActionClick(callingUid, callingPid, key,
603 public void onNotificationExpansionChanged(String key, boolean userAction, argument
609 key, userAction, expanded);
/frameworks/base/wifi/java/android/net/wifi/
H A DRttManager.java389 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...]
H A DWifiEnterpriseConfig.java112 for (String key : source.mFields.keySet()) {
113 mFields.put(key, source.mFields.get(key));
165 String key = in.readString();
167 enterpriseConfig.mFields.put(key, value);
480 * Specify a private key and client certificate for client authorization.
482 * <p>A default name is automatically assigned to the key entry and used
484 * key entry when the config is saved and removing the key entry when
489 * @throws IllegalArgumentException for an invalid key o
598 getFieldValue(String key, String prefix) argument
617 setFieldValue(String key, String value, String prefix) argument
632 setFieldValue(String key, String value) argument
[all...]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DCameraSettings.java152 public void setSetting(String key, String value) { argument
153 mGeneralSetting.put(key, value);
/frameworks/native/cmds/dumpstate/
H A Dutils.c375 static void print_prop(const char *key, const char *name, void *user) { argument
379 snprintf(buf, sizeof(buf), "[%s]: [%s]\n", key, name);
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DExtendedBitmapDrawable.java181 protected void setImage(final RequestKey key) { argument
192 super.setImage(key);
194 if (key == null) {
309 public void onDecodeBegin(final RequestKey key) { argument
311 getDecodeAggregator().expect(key, this);
313 onBecomeFirstExpected(key);
315 super.onDecodeBegin(key);
319 public void onBecomeFirstExpected(final RequestKey key) { argument
320 if (!key.equals(mCurrKey)) {
336 public void onDecodeComplete(final RequestKey key, fina argument
355 onDecodeCancel(final RequestKey key) argument
[all...]
/frameworks/av/media/libstagefright/
H A DMediaCodec.cpp393 const uint8_t key[16],
408 msg->setPointer("key", (void *)key);
1867 const uint8_t *key; local
1882 key = NULL;
1892 CHECK(msg->findPointer("key", (void **)&key));
1943 key,
388 queueSecureInputBuffer( size_t index, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, int64_t presentationTimeUs, uint32_t flags, AString *errorDetailMsg) argument
/frameworks/av/media/libstagefright/httplive/
H A DM3UParser.cpp395 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...]
H A DPlaylistFetcher.cpp217 ALOGE("Missing key uri");
223 sp<ABuffer> key; local
225 key = mAESKeyForURI.valueAt(index);
227 ssize_t err = mSession->fetchFile(keyURI.c_str(), &key);
230 ALOGE("failed to fetch cipher key from '%s'.", keyURI.c_str());
232 } else if (key->size() != 16) {
233 ALOGE("key file '%s' wasn't 16 bytes in size.", keyURI.c_str());
237 mAESKeyForURI.add(keyURI, key);
241 if (AES_set_decrypt_key(key->data(), 128, &aes_key) != 0) {
242 ALOGE("failed to set AES decryption key
1226 const char *key; local
[all...]
/frameworks/base/core/java/android/app/
H A DFragmentManager.java285 * @param key The name of the entry in the bundle.
288 public abstract void putFragment(Bundle bundle, String key, Fragment fragment); argument
295 * @param key The name of the entry in the bundle.
299 public abstract Fragment getFragment(Bundle bundle, String key); argument
566 public void putFragment(Bundle bundle, String key, Fragment fragment) { argument
571 bundle.putInt(key, fragment.mIndex);
575 public Fragment getFragment(Bundle bundle, String key) { argument
576 int index = bundle.getInt(key, -1);
581 throwException(new IllegalStateException("Fragment no longer exists for key "
582 + key
[all...]
/frameworks/base/core/java/android/database/
H A DDatabaseUtils.java400 * return the collation key
402 * @return the collation key
414 * return the collation key in hex format
416 * @return the collation key in hex format
581 * @param values The {@link ContentValues} to put the value into, with the field as the key
606 * @param values The {@link ContentValues} to put the value into, with the field as the key
607 * @param key The key to store the value with in the map
610 ContentValues values, String key) {
611 values.put(key, curso
609 cursorStringToContentValues(Cursor cursor, String field, ContentValues values, String key) argument
633 cursorIntToContentValues(Cursor cursor, String field, ContentValues values, String key) argument
663 cursorLongToContentValues(Cursor cursor, String field, ContentValues values, String key) argument
694 cursorDoubleToContentValues(Cursor cursor, String field, ContentValues values, String key) argument
1131 getColumnIndex(String key) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/
H A DCameraCharacteristics.java90 * specific key might look like {@code "com.google.nexus.data.private"}.</p>
92 * @return String representation of the key name
161 * <p>Querying the value for the same key more than once will return a value
164 * @throws IllegalArgumentException if the key was not valid
166 * @param key The characteristics field to read.
167 * @return The value of that key, or {@code null} if the field is not set.
169 public <T> T get(Key<T> key) { argument
170 return mProperties.get(key);
179 protected <T> T getProtected(Key<?> key) { argument
180 return (T) mProperties.get(key);
[all...]
H A DCaptureResult.java44 * not have every key set. Only {@link TotalCaptureResult total} results are guaranteed to have
45 * every key available that was enabled by the request.</p>
101 * specific key might look like {@code "com.google.nexus.data.private"}.</p>
103 * @return String representation of the key name
211 * <p>Querying the value for the same key more than once will return a value
214 * @throws IllegalArgumentException if the key was not valid
216 * @param key The result field to read.
217 * @return The value of that key, or {@code null} if the field is not set.
219 public <T> T get(Key<T> key) { argument
220 T value = mResults.get(key);
231 getProtected(Key<?> key) argument
[all...]

Completed in 871 milliseconds

<<1112131415