Home
last modified time | relevance | path

Searched refs:clazz (Results 1 – 14 of 14) sorted by relevance

/system/incremental_delivery/libdataloader/
DJNIHelpers.h23 jclass clazz = env->FindClass(class_name); in FindClassOrDie() local
24 LOG_ALWAYS_FATAL_IF(clazz == NULL, "Unable to find class %s", class_name); in FindClassOrDie()
25 return clazz; in FindClassOrDie()
28 static inline jmethodID GetMethodIDOrDie(JNIEnv* env, jclass clazz, const char* method_name, in GetMethodIDOrDie() argument
30 jmethodID res = env->GetMethodID(clazz, method_name, method_signature); in GetMethodIDOrDie()
35 static inline jmethodID GetStaticMethodIDOrDie(JNIEnv* env, jclass clazz, const char* method_name, in GetStaticMethodIDOrDie() argument
37 jmethodID res = env->GetStaticMethodID(clazz, method_name, method_signature); in GetStaticMethodIDOrDie()
42 static inline jfieldID GetFieldIDOrDie(JNIEnv* env, jclass clazz, const char* field_name, in GetFieldIDOrDie() argument
44 jfieldID res = env->GetFieldID(clazz, field_name, field_signature); in GetFieldIDOrDie()
49 static inline jfieldID GetStaticFieldIDOrDie(JNIEnv* env, jclass clazz, const char* field_name, in GetStaticFieldIDOrDie() argument
[all …]
/system/core/libcutils/
Diosched_policy.cpp35 int android_set_ioprio(int pid __android_unused, IoSchedClass clazz __android_unused, int ioprio __… in android_set_ioprio()
37 if (syscall(SYS_ioprio_set, IOPRIO_WHO_PROCESS, pid, ioprio | (clazz << IOPRIO_CLASS_SHIFT))) { in android_set_ioprio()
44 int android_get_ioprio(int pid __android_unused, IoSchedClass *clazz, int *ioprio) { in android_get_ioprio() argument
52 *clazz = static_cast<IoSchedClass>(rc >> IOPRIO_CLASS_SHIFT); in android_get_ioprio()
55 *clazz = IoSchedClass_NONE; in android_get_ioprio()
/system/extras/module_ndk_libs/libnativehelper/include_jni/
Djni.h514 jclass GetSuperclass(jclass clazz) in GetSuperclass()
515 { return functions->GetSuperclass(this, clazz); } in GetSuperclass()
526 jint ThrowNew(jclass clazz, const char* message) in ThrowNew()
527 { return functions->ThrowNew(this, clazz, message); } in ThrowNew()
565 jobject AllocObject(jclass clazz) in AllocObject()
566 { return functions->AllocObject(this, clazz); } in AllocObject()
568 jobject NewObject(jclass clazz, jmethodID methodID, ...) in NewObject()
572 jobject result = functions->NewObjectV(this, clazz, methodID, args); in NewObject()
577 jobject NewObjectV(jclass clazz, jmethodID methodID, va_list args) in NewObjectV()
578 { return functions->NewObjectV(this, clazz, methodID, args); } in NewObjectV()
[all …]
/system/tools/aidl/
Dgenerate_ndk.cpp443 const std::string& clazz, in GenerateConstantDefinitions() argument
452 out << "const char* " << clazz << "::" << constant->GetName() << " = " in GenerateConstantDefinitions()
477 const std::string clazz = ClassName(defined_type, ClassNames::CLIENT); in GenerateClientMethodDefinition() local
746 const std::string clazz = ClassName(defined_type, ClassNames::CLIENT); in GenerateClientSource() local
748 out << q_name << "::" << clazz << "(const ::ndk::SpAIBinder& binder) : BpCInterface(binder) {}\n"; in GenerateClientSource()
749 out << q_name << "::~" << clazz << "() {}\n"; in GenerateClientSource()
763 const std::string clazz = ClassName(defined_type, ClassNames::SERVER); in GenerateServerSource() local
766 out << "// Source for " << clazz << "\n"; in GenerateServerSource()
767 out << q_name << "::" << clazz << "() {}\n"; in GenerateServerSource()
768 out << q_name << "::~" << clazz << "() {}\n"; in GenerateServerSource()
[all …]
Daidl_to_ndk.cpp91 const std::string clazz = NdkFullClassName(*intf, cpp::ClassNames::INTERFACE); in GetBaseTypeInfo() local
92 return TypeInfo{"std::shared_ptr<" + clazz + ">"}; in GetBaseTypeInfo()
94 std::string clazz = NdkFullClassName(*parcelable, cpp::ClassNames::RAW); in GetBaseTypeInfo() local
101 clazz += base::StringPrintf("<%s>", base::Join(type_params, ", ").c_str()); in GetBaseTypeInfo()
103 return TypeInfo{clazz}; in GetBaseTypeInfo()
106 const std::string clazz = NdkFullClassName(*enum_decl, cpp::ClassNames::RAW); in GetBaseTypeInfo() local
107 return TypeInfo{clazz, true}; in GetBaseTypeInfo()
260 const std::string& clazz) { in NdkMethodDecl() argument
261 std::string class_prefix = clazz.empty() ? "" : (clazz + "::"); in NdkMethodDecl()
Dgenerate_java.cpp667 const string clazz = decl->GetName(); in GenerateUnionClass() local
676 out << "final class " + clazz + " implements android.os.Parcelable {\n"; in GenerateUnionClass()
693 AIDL_FATAL_IF(decl->GetFields().empty(), *decl) << "Union '" << clazz << "' is empty."; in GenerateUnionClass()
699 out << "public " + clazz + "() {\n"; in GenerateUnionClass()
710 out << "private " + clazz + "(android.os.Parcel _aidl_parcel) {\n"; in GenerateUnionClass()
716 out << "private " + clazz + "(" + tag_type + " _tag, Object _value) {\n"; in GenerateUnionClass()
740 out << "public static " + clazz + " " + var_name + "(" + var_type + " _value) {\n"; in GenerateUnionClass()
742 out << "return new " + clazz + "(" + var_name + ", _value);\n"; in GenerateUnionClass()
774 out << "public static final android.os.Parcelable.Creator<" << clazz << "> CREATOR = " in GenerateUnionClass()
775 << "new android.os.Parcelable.Creator<" << clazz << ">() {\n"; in GenerateUnionClass()
[all …]
Daidl_to_cpp.h39 std::string GetTransactionIdFor(const std::string& clazz, const AidlMethod& method);
Daidl_to_ndk.h87 const std::string& clazz = "");
Daidl_to_cpp.cpp214 std::string GetTransactionIdFor(const std::string& clazz, const AidlMethod& method) { in GetTransactionIdFor() argument
215 return clazz + "::TRANSACTION_" + method.GetName(); in GetTransactionIdFor()
Dast_java.h106 FieldVariable(const std::string& clazz, const std::string& name);
180 MethodCall(const std::string& clazz, const std::string& name);
Dgenerate_cpp.cpp161 const string& clazz) { in GenerateMethodDecl() argument
162 string clazz_prefix = clazz.empty() ? "" : clazz + "::"; in GenerateMethodDecl()
1206 const string clazz = parcel.GetName(); in GenerateParcelClassDecl() local
1212 out << " " << clazz << " : public ::android::Parcelable {\n"; in GenerateParcelClassDecl()
1247 out << "}; // class " << clazz << "\n"; in GenerateParcelClassDecl()
/system/core/libcutils/include/cutils/
Diosched_policy.h31 extern int android_set_ioprio(int pid, IoSchedClass clazz, int ioprio);
32 extern int android_get_ioprio(int pid, IoSchedClass *clazz, int *ioprio);
/system/core/libcutils/include_outside_system/cutils/
Diosched_policy.h31 extern int android_set_ioprio(int pid, IoSchedClass clazz, int ioprio);
32 extern int android_get_ioprio(int pid, IoSchedClass *clazz, int *ioprio);
/system/apex/tests/app/jni/
Dcom_android_tests_apex_app_ApkInApexTests.cpp36 jclass clazz = env->FindClass("com/android/tests/apex/app/ApkInApexTests"); in register_android_native_code_test_data() local
37 return env->RegisterNatives(clazz, gMethods, in register_android_native_code_test_data()