Home
last modified time | relevance | path

Searched refs:clazz (Results 1 – 12 of 12) 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/tools/aidl/
Dgenerate_ndk.cpp331 const std::string& clazz, in GenerateConstantDefinitions() argument
340 out << "const char* " << clazz << "::" << constant->GetName() << " = " in GenerateConstantDefinitions()
370 const std::string clazz = ClassName(defined_type, ClassNames::CLIENT); in GenerateClientMethodDefinition() local
372 out << NdkMethodDecl(types, method, clazz) << " {\n"; in GenerateClientMethodDefinition()
575 const std::string clazz = ClassName(defined_type, ClassNames::INTERFACE); in GenerateClassSource() local
625 out << "static AIBinder_Class* " << kClazz << " = ::ndk::ICInterface::defineClass(" << clazz in GenerateClassSource()
634 const std::string clazz = ClassName(defined_type, ClassNames::CLIENT); in GenerateClientSource() local
636 out << clazz << "::" << clazz << "(const ::ndk::SpAIBinder& binder) : BpCInterface(binder) {}\n"; in GenerateClientSource()
637 out << clazz << "::~" << clazz << "() {}\n"; in GenerateClientSource()
639 out << "std::function<void(const " + clazz + "::TransactionLog&)> " << clazz << "::logFunc;\n"; in GenerateClientSource()
[all …]
Daidl_to_ndk.cpp130 const std::string clazz = NdkFullClassName(type, cpp::ClassNames::INTERFACE); in InterfaceTypeInfo() local
135 .cpp_name = "std::shared_ptr<" + clazz + ">", in InterfaceTypeInfo()
137 .read_func = StandardRead(clazz + "::readFromParcel"), in InterfaceTypeInfo()
138 .write_func = StandardWrite(clazz + "::writeToParcel"), in InterfaceTypeInfo()
142 .cpp_name = "std::shared_ptr<" + clazz + ">", in InterfaceTypeInfo()
144 .read_func = StandardRead(clazz + "::readFromParcel"), in InterfaceTypeInfo()
145 .write_func = StandardWrite(clazz + "::writeToParcel"), in InterfaceTypeInfo()
153 std::string clazz = NdkFullClassName(type, cpp::ClassNames::RAW); in ParcelableTypeInfo() local
160 clazz += base::StringPrintf("<%s>", base::Join(type_params, ", ").c_str()); in ParcelableTypeInfo()
165 .cpp_name = clazz, in ParcelableTypeInfo()
[all …]
Dgenerate_java.cpp685 const string clazz = decl->GetName(); in generate_union() local
696 out << "public final class " + clazz + " implements android.os.Parcelable {\n"; in generate_union()
713 AIDL_FATAL_IF(decl->GetFields().empty(), *decl) << "Union '" << clazz << "' is empty."; in generate_union()
719 out << "public " + clazz + "() {\n"; in generate_union()
729 out << "private " + clazz + "(android.os.Parcel _aidl_parcel) {\n"; in generate_union()
735 out << "private " + clazz + "(" + tag_type + " _tag, Object _value) {\n"; in generate_union()
759 out << "public static " + clazz + " " + var_name + "(" + var_type + " _value) {\n"; in generate_union()
761 out << "return new " + clazz + "(" + var_name + ", _value);\n"; in generate_union()
793 out << "public static final android.os.Parcelable.Creator<" << clazz << "> CREATOR = " in generate_union()
794 << "new android.os.Parcelable.Creator<" << clazz << ">() {\n"; in generate_union()
[all …]
Daidl_to_ndk.h91 const std::string& clazz = "");
Dast_java.h106 FieldVariable(const std::string& clazz, const std::string& name);
180 MethodCall(const std::string& clazz, const std::string& name);
339 std::unique_ptr<Class> clazz);
Dast_java.cpp437 std::unique_ptr<Class> clazz) in Document() argument
440 clazz_(std::move(clazz)) { in Document()
Dgenerate_cpp.cpp1214 void BuildParcelFields(ClassDecl& clazz, const AidlStructuredParcelable& decl, in BuildParcelFields() argument
1233 clazz.AddPublic(std::unique_ptr<LiteralDecl>(new LiteralDecl(out.str()))); in BuildParcelFields()
1237 void BuildParcelFields(ClassDecl& clazz, const AidlUnionDecl& decl, in BuildParcelFields() argument
1244 clazz.AddPublic(std::make_unique<LiteralDecl>(public_fields)); in BuildParcelFields()
1245 clazz.AddPrivate(std::make_unique<LiteralDecl>(private_fields)); in BuildParcelFields()
/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/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/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);