/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 182 pSession->encryptedSessionKeyLength, pData->key, KEY_SIZE); 184 if (AES_set_encrypt_key(pData->key, KEY_SIZE_IN_BITS, &pData->sessionRoundKeys) != 0) { 187 // Encrypt the 16-byte value {0, 0, ..., 0} to produce the encryption key. 189 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys); 190 if (AES_set_encrypt_key(pData->key, KEY_SIZE_IN_BITS, 194 // 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/base/core/java/android/app/ |
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/os/storage/ |
H A D | StorageManager.java | 436 * Mount an Opaque Binary Blob (OBB) file. If a <code>key</code> is 451 * @param key secret used to encrypt the OBB; may be <code>null</code> if no 456 public boolean mountObb(String rawPath, String key, OnObbStateChangeListener listener) { argument 463 mMountService.mountObb(rawPath, canonicalPath, key, mObbActionListener, nonce);
|
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
H A D | AsecTests.java | 78 private int createContainer(String localId, int size, String key, String filesystem, argument 84 return ms.createSecureContainer(fullId, size, filesystem, key, android.os.Process.myUid(), 88 private int mountContainer(String localId, String key) throws Exception { argument 93 return ms.mountSecureContainer(fullId, key, android.os.Process.myUid());
|
H A D | StorageManagerBaseTest.java | 300 * @param key (optional) The key to use to unencrypt the OBB; pass null for no encryption 304 protected String mountObb(String obbFilePath, String key, int expectedState) { argument 305 return doMountObb(obbFilePath, key, expectedState); 352 protected String doMountObb_noThrow(String obbFilePath, String key, int expectedState) { argument 353 Log.i(LOG_TAG, "doMountObb() on " + obbFilePath + " using key: " + key); 358 boolean success = mSm.mountObb(obbFilePath, key, obbListener); 380 * @param key (optional) The key t 385 doMountObb(String obbFilePath, String key, int expectedState) argument [all...] |
/frameworks/base/include/androidfw/ |
H A D | InputTransport.h | 72 } key; member in union:android::InputMessage::Body 190 /* Publishes a key event to the input channel.
|
/frameworks/base/libs/hwui/ |
H A D | SkiaShader.cpp | 72 SkiaShader::SkiaShader(Type type, SkShader* key, SkShader::TileMode tileX, argument 74 mType(type), mKey(key), mTileX(tileX), mTileY(tileY), mBlend(blend) { 103 SkiaBitmapShader::SkiaBitmapShader(SkBitmap* bitmap, SkShader* key, SkShader::TileMode tileX, argument 105 SkiaShader(kBitmap, key, tileX, tileY, matrix, blend), mBitmap(bitmap), mTexture(NULL) { 182 float* positions, int count, SkShader* key, SkShader::TileMode tileMode, 184 SkiaShader(kLinearGradient, key, tileMode, tileMode, matrix, blend), 261 uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, 263 SkiaSweepGradientShader(kCircularGradient, x, y, colors, positions, count, key, 300 float* positions, int count, SkShader* key, SkMatrix* matrix, bool blend): 301 SkiaShader(kSweepGradient, key, SkShade 181 SkiaLinearGradientShader(float* bounds, uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend) argument 260 SkiaCircularGradientShader(float x, float y, float radius, uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend) argument 299 SkiaSweepGradientShader(float x, float y, uint32_t* colors, float* positions, int count, SkShader* key, SkMatrix* matrix, bool blend) argument 313 SkiaSweepGradientShader(Type type, float x, float y, uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend) argument 373 SkiaComposeShader(SkiaShader* first, SkiaShader* second, SkXfermode::Mode mode, SkShader* key) argument [all...] |
/frameworks/base/services/java/com/android/server/net/ |
H A D | NetworkStatsCollection.java | 57 * Collection of {@link NetworkStatsHistory}, stored based on combined key of 149 final Key key = entry.getKey(); 150 final boolean setMatches = set == SET_ALL || key.set == set; 151 if (key.uid == uid && setMatches && key.tag == tag 152 && templateMatches(template, key.ident)) { 174 final Key key = mapEntry.getKey(); 175 if (templateMatches(template, key.ident)) { 180 entry.uid = key.uid; 181 entry.set = key 211 recordHistory(Key key, NetworkStatsHistory history) argument [all...] |
/frameworks/base/test-runner/tests/src/android/test/ |
H A D | InstrumentationTestRunnerTest.java | 195 private Bundle createBundle(String key, String value) { argument 197 bundle.putString(key, value);
|
/frameworks/base/voip/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...] |
/frameworks/compile/libbcc/include/bcc/Renderscript/ |
H A D | RSInfo.h | 90 // Pragma is a key-value pair. 91 StringIndexTy key; member in struct:bcc::rsinfo::PragmaItem
|
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/jni/ |
H A D | jni_stochastic_linear_ranker.cpp | 36 const char *key = env->GetStringUTFChars(s, &iscopy); local 37 sample->SetElement(key, static_cast<double>(values[i])); 38 env->ReleaseStringUTFChars(s,key); 58 std::string key = iter->first; local 60 jstring jstr = env->NewStringUTF(key.c_str()); 98 jstring key, 104 const char *cKey = env->GetStringUTFChars(key, &iscopy); 95 Java_android_bordeaux_learning_StochasticLinearRanker_nativeSetParameterClassifier( JNIEnv* env, jobject thiz, jstring key, jstring value, jint paPtr) argument
|
/frameworks/native/cmds/dumpstate/ |
H A D | utils.c | 247 static void print_prop(const char *key, const char *name, void *user) { argument 251 snprintf(buf, sizeof(buf), "[%s]: [%s]\n", key, name);
|
/frameworks/base/media/java/android/media/ |
H A D | MediaCodec.java | 357 key = newKey; 375 * A 16-byte opaque key 377 public byte[] key; field in class:MediaCodec.CryptoInfo
|
H A D | Metadata.java | 37 Metadata is like a Bundle. It is sparse and each key can occur at 38 most once. The key is an integer and the value is the actual metadata. 53 // The key range [0 8192) is reserved for the system. 255 // Map to associate a Metadata key (e.g TITLE) with the offset of 257 // Used to look up if a key was present too. 279 | metadata key | // TITLE 308 // Check the metadata key. 418 * @return true if a value is present for the given key. 422 throw new IllegalArgumentException("Invalid key: " + metadataId); 428 // Caller must make sure the key i 434 getString(final int key) argument 442 getInt(final int key) argument 450 getBoolean(final int key) argument 458 getLong(final int key) argument 468 getDouble(final int key) argument 476 getByteArray(final int key) argument 484 getDate(final int key) argument 535 checkType(final int key, final int expectedType) argument [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | FrameFormat.java | 109 public boolean hasMetaKey(String key) { argument 110 return mMetaData != null ? mMetaData.containsKey(key) : false; 113 public boolean hasMetaKey(String key, Class expectedClass) { argument 114 if (mMetaData != null && mMetaData.containsKey(key)) { 115 if (!expectedClass.isAssignableFrom(mMetaData.get(key).getClass())) { 117 "FrameFormat meta-key '" + key + "' is of type " + 118 mMetaData.get(key).getClass() + " but expected to be of type " + 126 public Object getMetaValue(String key) { argument 127 return mMetaData != null ? mMetaData.get(key) [all...] |
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_shader_program.cpp | 77 jstring key, 81 const std::string c_key = ToCppString(env, key); 85 ALOGE("ShaderProgram: Could not convert java object value passed for key '%s'!", c_key.c_str()); 92 jstring key) { 94 const std::string c_key = ToCppString(env, key); 75 Java_android_filterfw_core_ShaderProgram_setUniformValue(JNIEnv* env, jobject thiz, jstring key, jobject value) argument 90 Java_android_filterfw_core_ShaderProgram_getUniformValue(JNIEnv* env, jobject thiz, jstring key) argument
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | DatabaseHelper.java | 772 * 2. Define the key bindings for traversing web content in WebViews. 1262 // Patch up the slightly-wrong key migration from 82 -> 83 for those 2210 private void loadSetting(SQLiteStatement stmt, String key, Object value) { argument 2211 stmt.bindString(1, key); 2216 private void loadStringSetting(SQLiteStatement stmt, String key, int resid) { argument 2217 loadSetting(stmt, key, mContext.getResources().getString(resid)); 2220 private void loadBooleanSetting(SQLiteStatement stmt, String key, int resid) { argument 2221 loadSetting(stmt, key, 2225 private void loadIntegerSetting(SQLiteStatement stmt, String key, int resid) { argument 2226 loadSetting(stmt, key, 2230 loadFractionSetting(SQLiteStatement stmt, String key, int resid, int base) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | CommandQueue.java | 72 IBinder key; field in class:CommandQueue.NotificationQueueEntry 84 public void addNotification(IBinder key, StatusBarNotification notification); argument 85 public void updateNotification(IBinder key, StatusBarNotification notification); argument 86 public void removeNotification(IBinder key); argument 124 public void addNotification(IBinder key, StatusBarNotification notification) { argument 127 ne.key = key; 133 public void updateNotification(IBinder key, StatusBarNotification notification) { argument 136 ne.key = key; 142 removeNotification(IBinder key) argument [all...] |
/frameworks/av/drm/common/ |
H A D | IDrmManagerService.cpp | 81 DrmCopyControl key = (DrmCopyControl)data.readInt32(); local 83 handle->copyControlVector.add(key, value); 88 String8 key = data.readString8(); local 90 handle->extendedData.add(key, value); 187 const String8 key(reply.readString8()); 194 drmConstraints->put(&key, data); 216 const String8 key(reply.readString8()); 223 drmMetadata->put(&key, data); 265 const String8 key = keyIt.next(); local 266 data.writeString8(key); 310 const String8 key = keyIt.next(); local 886 const String8 key = keyIt.next(); local 916 const String8 key = keyIt.next(); local 1039 const String8 key = keyIt.next(); local [all...] |
/frameworks/av/drm/drmserver/ |
H A D | DrmManager.cpp | 613 String8 key = mSupportInfoToPlugInIdMap.valueFor(drmSupportInfo); local 614 IDrmEngine& drmEngine = mPlugInManager.getPlugIn(key); 617 plugInId = key;
|
/frameworks/av/media/libmedia/ |
H A D | IMediaPlayer.cpp | 276 status_t setParameter(int key, const Parcel& request) argument 280 data.writeInt32(key); 288 status_t getParameter(int key, Parcel *reply) argument 292 data.writeInt32(key); 362 String8 key = data.readString8(); local 364 headers.add(key, value); 494 int key = data.readInt32(); local 502 reply->writeInt32(setParameter(key, request));
|
H A D | mediaplayer.cpp | 597 status_t MediaPlayer::setParameter(int key, const Parcel& request) argument 599 ALOGV("MediaPlayer::setParameter(%d)", key); 602 return mPlayer->setParameter(key, request); 608 status_t MediaPlayer::getParameter(int key, Parcel *reply) argument 610 ALOGV("MediaPlayer::getParameter(%d)", key); 613 return mPlayer->getParameter(key, reply);
|