Lines Matching refs:Utility
42 * Utility class used to extract the value from the provided java object.
43 * May need to add some utility function to create java object.
45 class Utility {
60 String8 Utility::getStringValue(JNIEnv* env, jobject object, const char* fieldName) {
67 return Utility::getStringValue(env, valueString);
74 String8 Utility::getStringValue(JNIEnv* env, jstring string) {
91 char* Utility::getByteArrayValue(
100 return Utility::getByteArrayValue(env, byteArray, dataLength);
105 char* Utility::getByteArrayValue(JNIEnv* env, jbyteArray byteArray, int* dataLength) {
119 int Utility::getIntValue(JNIEnv* env, jobject object, const char* fieldName) {
249 const String8 pathString = Utility::getStringValue(env, jpath);
297 const String8 pathString = Utility::getStringValue(env, jpath);
385 // ->installDrmEngine(uniqueId, Utility::getStringValue(env, engineFilePath));
395 char* mData = Utility::getByteArrayValue(env, drmRights, "mData", &dataLength);
399 Utility::getStringValue(env, drmRights, "mMimeType"),
400 Utility::getStringValue(env, drmRights, "mAccountId"),
401 Utility::getStringValue(env, drmRights, "mSubscriptionId"));
403 ->saveRights(uniqueId, rights, Utility::getStringValue(env, rightsPath),
404 Utility::getStringValue(env, contentPath));
417 ->canHandle(uniqueId, Utility::getStringValue(env, path),
418 Utility::getStringValue(env, mimeType));
427 const String8 mMimeType = Utility::getStringValue(env, drmInfoObject, "mMimeType");
428 char* mData = Utility::getByteArrayValue(env, drmInfoObject, "mData", &dataLength);
429 int mInfoType = Utility::getIntValue(env, drmInfoObject, "mInfoType");
457 String8 keyString = Utility::getStringValue(env, key.get());
458 String8 valueString = Utility::getStringValue(env, valString.get());
509 const String8 mMimeType = Utility::getStringValue(env, drmInfoRequest, "mMimeType");
510 int mInfoType = Utility::getIntValue(env, drmInfoRequest, "mInfoType");
531 String8 keyString = Utility::getStringValue(env, key.get());
532 String8 valueString = Utility::getStringValue(env, value.get());
583 ->getDrmObjectType(uniqueId, Utility::getStringValue(env, path),
584 Utility::getStringValue(env, mimeType));
600 Utility::getStringValue(env, path), fd);
610 ->checkRightsStatus(uniqueId, Utility::getStringValue(env, path), action);
619 ->removeRights(uniqueId, Utility::getStringValue(env, path));
633 ->openConvertSession(uniqueId, Utility::getStringValue(env, mimeType));
674 char* mData = Utility::getByteArrayValue(env, inputData, &dataLength);