Lines Matching defs:Utility
41 * Utility class used to extract the value from the provided java object.
42 * May need to add some utility function to create java object.
44 class Utility {
59 String8 Utility::getStringValue(JNIEnv* env, jobject object, const char* fieldName) {
86 String8 Utility::getStringValue(JNIEnv* env, jstring string) {
103 char* Utility::getByteArrayValue(
125 char* Utility::getByteArrayValue(JNIEnv* env, jbyteArray byteArray, int* dataLength) {
139 int Utility::getIntValue(JNIEnv* env, jobject object, const char* fieldName) {
262 const String8 pathString = Utility::getStringValue(env, jpath);
308 const String8 pathString = Utility::getStringValue(env, jpath);
393 // ->installDrmEngine(uniqueId, Utility::getStringValue(env, engineFilePath));
403 char* mData = Utility::getByteArrayValue(env, drmRights, "mData", &dataLength);
407 Utility::getStringValue(env, drmRights, "mMimeType"),
408 Utility::getStringValue(env, drmRights, "mAccountId"),
409 Utility::getStringValue(env, drmRights, "mSubscriptionId"));
411 ->saveRights(uniqueId, rights, Utility::getStringValue(env, rightsPath),
412 Utility::getStringValue(env, contentPath));
425 ->canHandle(uniqueId, Utility::getStringValue(env, path),
426 Utility::getStringValue(env, mimeType));
435 const String8 mMimeType = Utility::getStringValue(env, drmInfoObject, "mMimeType");
436 char* mData = Utility::getByteArrayValue(env, drmInfoObject, "mData", &dataLength);
437 int mInfoType = Utility::getIntValue(env, drmInfoObject, "mInfoType");
464 String8 keyString = Utility::getStringValue(env, key);
465 String8 valueString = Utility::getStringValue(env, valString);
516 const String8 mMimeType = Utility::getStringValue(env, drmInfoRequest, "mMimeType");
517 int mInfoType = Utility::getIntValue(env, drmInfoRequest, "mInfoType");
537 String8 keyString = Utility::getStringValue(env, key);
538 String8 valueString = Utility::getStringValue(env, value);
588 ->getDrmObjectType(uniqueId, Utility::getStringValue(env, path),
589 Utility::getStringValue(env, mimeType));
599 ->getOriginalMimeType(uniqueId, Utility::getStringValue(env, path));
609 ->checkRightsStatus(uniqueId, Utility::getStringValue(env, path), action);
618 ->removeRights(uniqueId, Utility::getStringValue(env, path));
632 ->openConvertSession(uniqueId, Utility::getStringValue(env, mimeType));
642 char* mData = Utility::getByteArrayValue(env, inputData, &dataLength);