Home
last modified time | relevance | path

Searched refs:signature (Results 1 – 25 of 138) sorted by relevance

123456

/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DOverrideMethod.java52 public static void setMethodListener(String signature, MethodListener listener) { in setMethodListener() argument
54 sMethods.remove(signature); in setMethodListener()
56 sMethods.put(signature, listener); in setMethodListener()
74 public static void invokeV(String signature, boolean isNative, Object caller) { in invokeV() argument
75 MethodListener i = sMethods.get(signature); in invokeV()
77 i.onInvokeV(signature, isNative, caller); in invokeV()
79 sDefaultListener.onInvokeV(signature, isNative, caller); in invokeV()
87 public static int invokeI(String signature, boolean isNative, Object caller) { in invokeI() argument
88 MethodListener i = sMethods.get(signature); in invokeI()
90 return i.onInvokeI(signature, isNative, caller); in invokeI()
[all …]
DMethodAdapter.java39 public void onInvokeV(String signature, boolean isNative, Object caller) { in onInvokeV() argument
48 public int onInvokeI(String signature, boolean isNative, Object caller) { in onInvokeI() argument
49 onInvokeV(signature, isNative, caller); in onInvokeI()
59 public long onInvokeL(String signature, boolean isNative, Object caller) { in onInvokeL() argument
60 onInvokeV(signature, isNative, caller); in onInvokeL()
70 public float onInvokeF(String signature, boolean isNative, Object caller) { in onInvokeF() argument
71 onInvokeV(signature, isNative, caller); in onInvokeF()
81 public double onInvokeD(String signature, boolean isNative, Object caller) { in onInvokeD() argument
82 onInvokeV(signature, isNative, caller); in onInvokeD()
92 public Object onInvokeA(String signature, boolean isNative, Object caller) { in onInvokeA() argument
[all …]
DMethodListener.java39 void onInvokeV(String signature, boolean isNative, Object caller); in onInvokeV() argument
46 int onInvokeI(String signature, boolean isNative, Object caller); in onInvokeI() argument
53 long onInvokeL(String signature, boolean isNative, Object caller); in onInvokeL() argument
60 float onInvokeF(String signature, boolean isNative, Object caller); in onInvokeF() argument
67 double onInvokeD(String signature, boolean isNative, Object caller); in onInvokeD() argument
74 Object onInvokeA(String signature, boolean isNative, Object caller); in onInvokeA() argument
DDelegateClassAdapter.java76 public FieldVisitor visitField(int access, String name, String desc, String signature, in visitField() argument
83 return super.visitField(access, name, desc, signature, value); in visitField()
88 String signature, String[] exceptions) { in visitMethod() argument
98 return super.visitMethod(access, name, desc, signature, exceptions); in visitMethod()
112 MethodVisitor mwDelegate = super.visitMethod(access, name, desc, signature, exceptions); in visitMethod()
126 desc, signature, exceptions); in visitMethod()
141 desc, signature, exceptions); in visitMethod()
143 desc, signature, exceptions); in visitMethod()
DAbstractClassAdapter.java25 import org.objectweb.asm.signature.SignatureReader;
26 import org.objectweb.asm.signature.SignatureVisitor;
27 import org.objectweb.asm.signature.SignatureWriter;
168 public void visit(int version, int access, String name, String signature, in visit() argument
172 signature = renameTypeSignature(signature); in visit()
179 super.visit(version, access, name, signature, superName, interfaces); in visit()
196 String signature, String[] exceptions) { in visitMethod() argument
198 signature = renameTypeSignature(signature); in visitMethod()
199 MethodVisitor mw = super.visitMethod(access, name, desc, signature, exceptions); in visitMethod()
211 String signature, Object value) { in visitField() argument
[all …]
DDependencyFinder.java30 import org.objectweb.asm.signature.SignatureReader;
31 import org.objectweb.asm.signature.SignatureVisitor;
338 public void considerSignature(String signature) { in considerSignature() argument
339 if (signature != null) { in considerSignature()
340 SignatureReader sr = new SignatureReader(signature); in considerSignature()
398 String signature, String superName, String[] interfaces) { in visit() argument
402 if (signature != null) { in visit()
403 considerSignature(signature); in visit()
461 String signature, Object value) { in visitField() argument
467 considerSignature(signature); in visitField()
[all …]
DStubClassAdapter.java185 String signature, String superName, String[] interfaces) { in visit() argument
198 super.visit(version, access, name, signature, superName, interfaces); in visit()
215 String signature, String[] exceptions) { in visitMethod() argument
238 signature; in visitMethod()
259 MethodVisitor mw = super.visitMethod(access, name, desc, signature, exceptions); in visitMethod()
265 return super.visitMethod(access, name, desc, signature, exceptions); in visitMethod()
270 public FieldVisitor visitField(int access, String name, String desc, String signature, in visitField() argument
276 return super.visitField(access, name, desc, signature, value); in visitField()
DAsmAnalyzer.java30 import org.objectweb.asm.signature.SignatureReader;
31 import org.objectweb.asm.signature.SignatureVisitor;
524 public void considerSignature(String signature) { in considerSignature() argument
525 if (signature != null) { in considerSignature()
526 SignatureReader sr = new SignatureReader(signature); in considerSignature()
577 String signature, String superName, String[] interfaces) { in visit() argument
581 if (signature != null) { in visit()
582 considerSignature(signature); in visit()
640 String signature, Object value) { in visitField() argument
646 considerSignature(signature); in visitField()
[all …]
/frameworks/base/tools/stats_log_api_gen/
Dnative_writer_q.cpp23 static void write_native_stats_write_body_q(FILE* out, const vector<java_type_t>& signature, in write_native_stats_write_body_q() argument
29 write_native_method_call(out, tryMethodName, signature, attributionDecl); in write_native_stats_write_body_q()
93 vector<java_type_t> signature = signature_to_modules_it->first; in write_native_try_stats_write_methods_q() local
95 write_native_method_signature(out, "static int try_stats_write", signature, in write_native_try_stats_write_methods_q()
103 for (vector<java_type_t>::const_iterator arg = signature.begin(); in write_native_try_stats_write_methods_q()
104 arg != signature.end(); arg++) { in write_native_try_stats_write_methods_q()
197 vector<java_type_t> signature = signature_to_modules_it->first; in write_native_stats_write_methods_q() local
199 write_native_method_signature(out, methodName, signature, attributionDecl, " {"); in write_native_stats_write_methods_q()
201 write_native_stats_write_body_q(out, signature, attributionDecl, " ", tryMethodName); in write_native_stats_write_methods_q()
214 vector<java_type_t> signature = signature_it->first; in write_native_stats_write_non_chained_methods_q() local
[all …]
Dnative_writer.cpp43 vector<java_type_t> signature = signature_to_modules_it->first; in write_native_stats_write_methods() local
45 write_native_method_signature(out, "int stats_write", signature, in write_native_stats_write_methods()
52 for (vector<java_type_t>::const_iterator arg = signature.begin(); in write_native_stats_write_methods()
53 arg != signature.end(); arg++) { in write_native_stats_write_methods()
98 for (vector<java_type_t>::const_iterator arg = signature.begin(); in write_native_stats_write_methods()
99 arg != signature.end(); arg++) { in write_native_stats_write_methods()
171 vector<java_type_t> signature = signature_it->first; in write_native_stats_write_non_chained_methods() local
173 write_native_method_signature(out, "int stats_write_non_chained", signature, in write_native_stats_write_non_chained_methods()
179 newSignature.reserve(signature.size() - 1); in write_native_stats_write_non_chained_methods()
185 newSignature.insert(newSignature.end(), signature.begin() + 2, signature.end()); in write_native_stats_write_non_chained_methods()
[all …]
Dutils.cpp208 const vector<java_type_t>& signature, const AtomDecl& attributionDecl, in write_native_method_signature() argument
212 for (vector<java_type_t>::const_iterator arg = signature.begin(); in write_native_method_signature()
213 arg != signature.end(); arg++) { in write_native_method_signature()
241 const vector<java_type_t>& signature, const AtomDecl& attributionDecl, int argIndex) { in write_native_method_call() argument
243 for (vector<java_type_t>::const_iterator arg = signature.begin(); in write_native_method_call()
244 arg != signature.end(); arg++) { in write_native_method_call()
364 vector<java_type_t> signature = signature_to_modules_it->first; in write_java_non_chained_methods() local
366 for (vector<java_type_t>::const_iterator arg = signature.begin(); in write_java_non_chained_methods()
367 arg != signature.end(); arg++) { in write_java_non_chained_methods()
383 for (vector<java_type_t>::const_iterator arg = signature.begin(); in write_java_non_chained_methods()
[all …]
Dmain.cpp76 jni_function_name(const string& method_name, const vector<java_type_t>& signature) in jni_function_name() argument
79 for (vector<java_type_t>::const_iterator arg = signature.begin(); in jni_function_name()
80 arg != signature.end(); arg++) { in jni_function_name()
143 jni_function_signature(const vector<java_type_t>& signature, const AtomDecl &attributionDecl) in jni_function_signature() argument
146 for (vector<java_type_t>::const_iterator arg = signature.begin(); in jni_function_signature()
147 arg != signature.end(); arg++) { in jni_function_signature()
212 vector<java_type_t> signature = signature_to_modules_it->first; in write_stats_log_jni_method() local
217 jni_function_name(java_method_name, signature).c_str()); in write_stats_log_jni_method()
219 for (vector<java_type_t>::const_iterator arg = signature.begin(); in write_stats_log_jni_method()
220 arg != signature.end(); arg++) { in write_stats_log_jni_method()
[all …]
DCollation.cpp165 vector<java_type_t> *signature) { in collate_atom() argument
269 signature->push_back(JAVA_TYPE_INT); in collate_atom()
272 signature->push_back(JAVA_TYPE_BYTE_ARRAY); in collate_atom()
274 signature->push_back(javaType); in collate_atom()
331 vector<java_type_t> *signature) { in get_non_chained_node() argument
355 signature->insert( in get_non_chained_node()
356 signature->end(), in get_non_chained_node()
364 signature->push_back(JAVA_TYPE_INT); in get_non_chained_node()
367 signature->push_back(javaType); in get_non_chained_node()
413 vector<java_type_t> signature; in collate_atoms() local
[all …]
Djava_writer.cpp66 vector<java_type_t> signature = signature_to_modules_it->first; in write_java_methods() local
68 for (vector<java_type_t>::const_iterator arg = signature.begin(); in write_java_methods()
69 arg != signature.end(); arg++) { in write_java_methods()
103 for (vector<java_type_t>::const_iterator arg = signature.begin(); in write_java_methods()
104 arg != signature.end(); arg++) { in write_java_methods()
228 for (vector<java_type_t>::const_iterator arg = signature.begin(); in write_java_methods()
229 arg != signature.end(); arg++) { in write_java_methods()
Djava_writer_q.cpp67 vector<java_type_t> signature = signature_to_modules_it->first; in write_java_methods_q_schema() local
70 for (vector<java_type_t>::const_iterator arg = signature.begin(); in write_java_methods_q_schema()
71 arg != signature.end(); arg++) { in write_java_methods_q_schema()
95 for (vector<java_type_t>::const_iterator arg = signature.begin(); in write_java_methods_q_schema()
96 arg != signature.end(); arg++) { in write_java_methods_q_schema()
183 fprintf(out, "%s buff[pos + 1] = %zu;\n", indent.c_str(), signature.size() + 2); in write_java_methods_q_schema()
199 for (vector<java_type_t>::const_iterator arg = signature.begin(); in write_java_methods_q_schema()
200 arg != signature.end(); arg++) { in write_java_methods_q_schema()
417 vector<java_type_t> signature = signature_to_modules_it->first; in write_java_method() local
421 for (vector<java_type_t>::const_iterator arg = signature.begin(); in write_java_method()
[all …]
/frameworks/base/core/java/android/view/textclassifier/
DSelectionSessionLogger.java200 static boolean isPlatformLocalTextClassifierSmartSelection(String signature) { in isPlatformLocalTextClassifierSmartSelection() argument
202 SelectionSessionLogger.SignatureParser.getClassifierId(signature)); in isPlatformLocalTextClassifierSmartSelection()
276 static String getClassifierId(@Nullable String signature) { in getClassifierId() argument
277 if (signature == null) { in getClassifierId()
280 final int end = signature.indexOf("|"); in getClassifierId()
282 return signature.substring(0, end); in getClassifierId()
287 static String getModelName(@Nullable String signature) { in getModelName() argument
288 if (signature == null) { in getModelName()
291 final int start = signature.indexOf("|") + 1; in getModelName()
292 final int end = signature.indexOf("|", start); in getModelName()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DStatsdHiddenApiUsageLogger.java48 public void hiddenApiUsed(int sampledValue, String packageName, String signature, in hiddenApiUsed() argument
51 logUsage(packageName, signature, accessMethod, accessDenied); in hiddenApiUsed()
55 newLogUsage(signature, accessMethod, accessDenied); in hiddenApiUsed()
59 private void logUsage(String packageName, String signature, int accessMethod, in logUsage() argument
79 .addTaggedData(MetricsEvent.FIELD_HIDDEN_API_SIGNATURE, signature) in logUsage()
90 private void newLogUsage(String signature, int accessMethod, boolean accessDenied) { in newLogUsage() argument
108 StatsLog.write(StatsLog.HIDDEN_API_USED, uid, signature, accessMethodProto, accessDenied); in newLogUsage()
/frameworks/compile/libbcc/lib/
DRSScriptGroupFusion.cpp53 uint32_t* signature) { in getFunction() argument
69 if (signature != nullptr) { in getFunction()
70 *signature = metadata.getExportForEachSignatureList()[slot]; in getFunction()
96 uint32_t signature = 0; in getFusedFuncSig() local
108 signature = metadata.getExportForEachSignatureList()[slot]; in getFusedFuncSig()
109 if (signature & ~ExpectedSignatureBits) { in getFusedFuncSig()
111 source->getName().c_str(), slot, signature); in getFusedFuncSig()
116 firstSignature = signature; in getFusedFuncSig()
119 *retSig |= signature; in getFusedFuncSig()
126 if (!bcinfo::MetadataExtractor::hasForEachSignatureOut(signature)) { in getFusedFuncSig()
[all …]
/frameworks/base/tools/hiddenapi/
Dgenerate_hiddenapi_lists_test.py92 signature = 'Lcom/foo/bar/Baz;->method1()Lcom/bar/Baz;'
94 self.assertEqual(extract_package(signature), expected_package)
96 signature = 'Lcom/foo1/bar/MyClass;->method2()V'
98 self.assertEqual(extract_package(signature), expected_package)
100 signature = 'Lcom/foo_bar/baz/MyClass;->method3()V'
102 self.assertEqual(extract_package(signature), expected_package)
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageSignaturesTest.java359 for (Signature signature : signatures) { in testReadXmlWithPastSignerWithNoCapabilities()
360 String signatureValue = HexDump.toHexString(signature.toByteArray(), false); in testReadXmlWithPastSignerWithNoCapabilities()
362 previousSignature = signature; in testReadXmlWithPastSignerWithNoCapabilities()
404 for (Signature signature : signatures) { in verifyReadXmlReturnsExpectedSignaturesAndLineage()
405 String signatureValue = HexDump.toHexString(signature.toByteArray(), false); in verifyReadXmlReturnsExpectedSignaturesAndLineage()
411 mPackageSetting.signatures.mSigningDetails.hasCertificate(signature, in verifyReadXmlReturnsExpectedSignaturesAndLineage()
427 for (Signature signature : signatures) { in verifySignaturesContainExpectedValues()
429 if (signature != null) { in verifySignaturesContainExpectedValues()
430 signatureString = HexDump.toHexString(signature.toByteArray(), false); in verifySignaturesContainExpectedValues()
444 for (String signature : signatures) { in createSetOfSignatures()
[all …]
/frameworks/base/services/core/java/com/android/server/signedconfig/
DSignatureVerifier.java78 private boolean verifyWithPublicKey(PublicKey key, byte[] data, byte[] signature) in verifyWithPublicKey() argument
83 return verifier.verify(signature); in verifyWithPublicKey()
95 byte[] signature; in verifySignature()
97 signature = Base64.getDecoder().decode(base64Signature); in verifySignature()
109 if (verifyWithPublicKey(mDebugKey, data, signature)) { in verifySignature()
126 if (verifyWithPublicKey(mProdKey, data, signature)) { in verifySignature()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/certificate/
DSigXml.java44 private final byte[] signature; field in SigXml
47 List<X509Certificate> intermediateCerts, X509Certificate signerCert, byte[] signature) { in SigXml() argument
50 this.signature = signature; in SigXml()
75 CertUtils.verifyRsaSha256Signature(signerCert.getPublicKey(), signature, signedFileBytes); in verifyFileSignature() local
/frameworks/base/core/jni/
Dandroid_animation_PropertyValuesHolder.cpp54 char *signature = new char[parameterCount + 4]; in getMultiparameterMethod() local
55 signature[0] = '('; in getMultiparameterMethod()
56 memset(&(signature[1]), parameterType, parameterCount); in getMultiparameterMethod()
57 strcpy(&(signature[parameterCount + 1]), ")V"); in getMultiparameterMethod()
58 jmethodID mid = env->GetMethodID(targetClass, nativeString, signature); in getMultiparameterMethod()
59 delete[] signature; in getMultiparameterMethod()
/frameworks/base/services/core/java/com/android/server/backup/
DBackupUtils.java104 public static byte[] hashSignature(byte[] signature) { in hashSignature() argument
107 digest.update(signature); in hashSignature()
115 public static byte[] hashSignature(Signature signature) { in hashSignature() argument
116 return hashSignature(signature.toByteArray()); in hashSignature()
/frameworks/base/services/core/jni/
Dcom_android_server_security_VerityUtils.cpp41 int enableFsverity(JNIEnv* env, jobject /* clazz */, jstring filePath, jbyteArray signature) { in enableFsverity() argument
55 arg.sig_size = env->GetArrayLength(signature); in enableFsverity()
56 arg.sig_ptr = reinterpret_cast<uintptr_t>(signature); in enableFsverity()

123456