mirror of
https://github.com/github/codeql.git
synced 2026-04-22 23:35:14 +02:00
Generate stubs
This commit is contained in:
69
java/ql/test/stubs/google-android-9.0.0/android/hardware/biometrics/BiometricPrompt.java
generated
Normal file
69
java/ql/test/stubs/google-android-9.0.0/android/hardware/biometrics/BiometricPrompt.java
generated
Normal file
@@ -0,0 +1,69 @@
|
||||
// Generated automatically from android.hardware.biometrics.BiometricPrompt for testing purposes
|
||||
|
||||
package android.hardware.biometrics;
|
||||
|
||||
import android.os.CancellationSignal;
|
||||
import android.security.identity.IdentityCredential;
|
||||
import java.security.Signature;
|
||||
import java.util.concurrent.Executor;
|
||||
import javax.crypto.Cipher;
|
||||
import javax.crypto.Mac;
|
||||
|
||||
public class BiometricPrompt
|
||||
{
|
||||
protected BiometricPrompt() {}
|
||||
abstract static public class AuthenticationCallback
|
||||
{
|
||||
public AuthenticationCallback(){}
|
||||
public void onAuthenticationError(int p0, CharSequence p1){}
|
||||
public void onAuthenticationFailed(){}
|
||||
public void onAuthenticationHelp(int p0, CharSequence p1){}
|
||||
public void onAuthenticationSucceeded(BiometricPrompt.AuthenticationResult p0){}
|
||||
}
|
||||
public CharSequence getDescription(){ return null; }
|
||||
public CharSequence getNegativeButtonText(){ return null; }
|
||||
public CharSequence getSubtitle(){ return null; }
|
||||
public CharSequence getTitle(){ return null; }
|
||||
public boolean isConfirmationRequired(){ return false; }
|
||||
public int getAllowedAuthenticators(){ return 0; }
|
||||
public static int AUTHENTICATION_RESULT_TYPE_BIOMETRIC = 0;
|
||||
public static int AUTHENTICATION_RESULT_TYPE_DEVICE_CREDENTIAL = 0;
|
||||
public static int BIOMETRIC_ACQUIRED_GOOD = 0;
|
||||
public static int BIOMETRIC_ACQUIRED_IMAGER_DIRTY = 0;
|
||||
public static int BIOMETRIC_ACQUIRED_INSUFFICIENT = 0;
|
||||
public static int BIOMETRIC_ACQUIRED_PARTIAL = 0;
|
||||
public static int BIOMETRIC_ACQUIRED_TOO_FAST = 0;
|
||||
public static int BIOMETRIC_ACQUIRED_TOO_SLOW = 0;
|
||||
public static int BIOMETRIC_ERROR_CANCELED = 0;
|
||||
public static int BIOMETRIC_ERROR_HW_NOT_PRESENT = 0;
|
||||
public static int BIOMETRIC_ERROR_HW_UNAVAILABLE = 0;
|
||||
public static int BIOMETRIC_ERROR_LOCKOUT = 0;
|
||||
public static int BIOMETRIC_ERROR_LOCKOUT_PERMANENT = 0;
|
||||
public static int BIOMETRIC_ERROR_NO_BIOMETRICS = 0;
|
||||
public static int BIOMETRIC_ERROR_NO_DEVICE_CREDENTIAL = 0;
|
||||
public static int BIOMETRIC_ERROR_NO_SPACE = 0;
|
||||
public static int BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED = 0;
|
||||
public static int BIOMETRIC_ERROR_TIMEOUT = 0;
|
||||
public static int BIOMETRIC_ERROR_UNABLE_TO_PROCESS = 0;
|
||||
public static int BIOMETRIC_ERROR_USER_CANCELED = 0;
|
||||
public static int BIOMETRIC_ERROR_VENDOR = 0;
|
||||
public void authenticate(BiometricPrompt.CryptoObject p0, CancellationSignal p1, Executor p2, BiometricPrompt.AuthenticationCallback p3){}
|
||||
public void authenticate(CancellationSignal p0, Executor p1, BiometricPrompt.AuthenticationCallback p2){}
|
||||
static public class AuthenticationResult
|
||||
{
|
||||
public BiometricPrompt.CryptoObject getCryptoObject(){ return null; }
|
||||
public int getAuthenticationType(){ return 0; }
|
||||
}
|
||||
static public class CryptoObject
|
||||
{
|
||||
protected CryptoObject() {}
|
||||
public Cipher getCipher(){ return null; }
|
||||
public CryptoObject(Cipher p0){}
|
||||
public CryptoObject(IdentityCredential p0){}
|
||||
public CryptoObject(Mac p0){}
|
||||
public CryptoObject(Signature p0){}
|
||||
public IdentityCredential getIdentityCredential(){ return null; }
|
||||
public Mac getMac(){ return null; }
|
||||
public Signature getSignature(){ return null; }
|
||||
}
|
||||
}
|
||||
55
java/ql/test/stubs/google-android-9.0.0/android/hardware/fingerprint/FingerprintManager.java
generated
Normal file
55
java/ql/test/stubs/google-android-9.0.0/android/hardware/fingerprint/FingerprintManager.java
generated
Normal file
@@ -0,0 +1,55 @@
|
||||
// Generated automatically from android.hardware.fingerprint.FingerprintManager for testing purposes
|
||||
|
||||
package android.hardware.fingerprint;
|
||||
|
||||
import android.os.CancellationSignal;
|
||||
import android.os.Handler;
|
||||
import java.security.Signature;
|
||||
import javax.crypto.Cipher;
|
||||
import javax.crypto.Mac;
|
||||
|
||||
public class FingerprintManager
|
||||
{
|
||||
abstract static public class AuthenticationCallback
|
||||
{
|
||||
public AuthenticationCallback(){}
|
||||
public void onAuthenticationError(int p0, CharSequence p1){}
|
||||
public void onAuthenticationFailed(){}
|
||||
public void onAuthenticationHelp(int p0, CharSequence p1){}
|
||||
public void onAuthenticationSucceeded(FingerprintManager.AuthenticationResult p0){}
|
||||
}
|
||||
public boolean hasEnrolledFingerprints(){ return false; }
|
||||
public boolean isHardwareDetected(){ return false; }
|
||||
public static int FINGERPRINT_ACQUIRED_GOOD = 0;
|
||||
public static int FINGERPRINT_ACQUIRED_IMAGER_DIRTY = 0;
|
||||
public static int FINGERPRINT_ACQUIRED_INSUFFICIENT = 0;
|
||||
public static int FINGERPRINT_ACQUIRED_PARTIAL = 0;
|
||||
public static int FINGERPRINT_ACQUIRED_TOO_FAST = 0;
|
||||
public static int FINGERPRINT_ACQUIRED_TOO_SLOW = 0;
|
||||
public static int FINGERPRINT_ERROR_CANCELED = 0;
|
||||
public static int FINGERPRINT_ERROR_HW_NOT_PRESENT = 0;
|
||||
public static int FINGERPRINT_ERROR_HW_UNAVAILABLE = 0;
|
||||
public static int FINGERPRINT_ERROR_LOCKOUT = 0;
|
||||
public static int FINGERPRINT_ERROR_LOCKOUT_PERMANENT = 0;
|
||||
public static int FINGERPRINT_ERROR_NO_FINGERPRINTS = 0;
|
||||
public static int FINGERPRINT_ERROR_NO_SPACE = 0;
|
||||
public static int FINGERPRINT_ERROR_TIMEOUT = 0;
|
||||
public static int FINGERPRINT_ERROR_UNABLE_TO_PROCESS = 0;
|
||||
public static int FINGERPRINT_ERROR_USER_CANCELED = 0;
|
||||
public static int FINGERPRINT_ERROR_VENDOR = 0;
|
||||
public void authenticate(FingerprintManager.CryptoObject p0, CancellationSignal p1, int p2, FingerprintManager.AuthenticationCallback p3, Handler p4){}
|
||||
static public class AuthenticationResult
|
||||
{
|
||||
public FingerprintManager.CryptoObject getCryptoObject(){ return null; }
|
||||
}
|
||||
static public class CryptoObject
|
||||
{
|
||||
protected CryptoObject() {}
|
||||
public Cipher getCipher(){ return null; }
|
||||
public CryptoObject(Cipher p0){}
|
||||
public CryptoObject(Mac p0){}
|
||||
public CryptoObject(Signature p0){}
|
||||
public Mac getMac(){ return null; }
|
||||
public Signature getSignature(){ return null; }
|
||||
}
|
||||
}
|
||||
@@ -15,9 +15,9 @@ import java.util.ArrayList;
|
||||
|
||||
public class Bundle extends BaseBundle implements Cloneable, Parcelable
|
||||
{
|
||||
public <T extends Parcelable> ArrayList<T> getParcelableArrayList(String p0){ return null; }
|
||||
public <T extends Parcelable> SparseArray<T> getSparseParcelableArray(String p0){ return null; }
|
||||
public <T extends Parcelable> T getParcelable(String p0){ return null; }
|
||||
public <T extends Parcelable> android.util.SparseArray<T> getSparseParcelableArray(String p0){ return null; }
|
||||
public <T extends Parcelable> java.util.ArrayList<T> getParcelableArrayList(String p0){ return null; }
|
||||
public ArrayList<CharSequence> getCharSequenceArrayList(String p0){ return null; }
|
||||
public ArrayList<Integer> getIntegerArrayList(String p0){ return null; }
|
||||
public ArrayList<String> getStringArrayList(String p0){ return null; }
|
||||
|
||||
@@ -24,24 +24,24 @@ public class Parcel
|
||||
{
|
||||
protected Parcel() {}
|
||||
protected void finalize(){}
|
||||
public <T extends Parcelable> ArrayMap<String, T> createTypedArrayMap(Parcelable.Creator<T> p0){ return null; }
|
||||
public <T extends Parcelable> List<T> readParcelableList(List<T> p0, ClassLoader p1){ return null; }
|
||||
public <T extends Parcelable> SparseArray<T> createTypedSparseArray(Parcelable.Creator<T> p0){ return null; }
|
||||
public <T extends Parcelable> T readParcelable(ClassLoader p0){ return null; }
|
||||
public <T extends Parcelable> android.util.ArrayMap<String, T> createTypedArrayMap(Parcelable.Creator<T> p0){ return null; }
|
||||
public <T extends Parcelable> android.util.SparseArray<T> createTypedSparseArray(Parcelable.Creator<T> p0){ return null; }
|
||||
public <T extends Parcelable> java.util.List<T> readParcelableList(java.util.List<T> p0, ClassLoader p1){ return null; }
|
||||
public <T extends Parcelable> void writeParcelableArray(T[] p0, int p1){}
|
||||
public <T extends Parcelable> void writeParcelableList(List<T> p0, int p1){}
|
||||
public <T extends Parcelable> void writeParcelableList(java.util.List<T> p0, int p1){}
|
||||
public <T extends Parcelable> void writeTypedArray(T[] p0, int p1){}
|
||||
public <T extends Parcelable> void writeTypedArrayMap(ArrayMap<String, T> p0, int p1){}
|
||||
public <T extends Parcelable> void writeTypedList(List<T> p0){}
|
||||
public <T extends Parcelable> void writeTypedArrayMap(android.util.ArrayMap<String, T> p0, int p1){}
|
||||
public <T extends Parcelable> void writeTypedList(java.util.List<T> p0){}
|
||||
public <T extends Parcelable> void writeTypedObject(T p0, int p1){}
|
||||
public <T extends Parcelable> void writeTypedSparseArray(SparseArray<T> p0, int p1){}
|
||||
public <T> ArrayList<T> createTypedArrayList(Parcelable.Creator<T> p0){ return null; }
|
||||
public <T> SparseArray<T> readSparseArray(ClassLoader p0){ return null; }
|
||||
public <T extends Parcelable> void writeTypedSparseArray(android.util.SparseArray<T> p0, int p1){}
|
||||
public <T> T readTypedObject(Parcelable.Creator<T> p0){ return null; }
|
||||
public <T> T[] createTypedArray(Parcelable.Creator<T> p0){ return null; }
|
||||
public <T> android.util.SparseArray<T> readSparseArray(ClassLoader p0){ return null; }
|
||||
public <T> java.util.ArrayList<T> createTypedArrayList(Parcelable.Creator<T> p0){ return null; }
|
||||
public <T> void readTypedArray(T[] p0, Parcelable.Creator<T> p1){}
|
||||
public <T> void readTypedList(List<T> p0, Parcelable.Creator<T> p1){}
|
||||
public <T> void writeSparseArray(SparseArray<T> p0){}
|
||||
public <T> void readTypedList(java.util.List<T> p0, Parcelable.Creator<T> p1){}
|
||||
public <T> void writeSparseArray(android.util.SparseArray<T> p0){}
|
||||
public ArrayList readArrayList(ClassLoader p0){ return null; }
|
||||
public ArrayList<IBinder> createBinderArrayList(){ return null; }
|
||||
public ArrayList<String> createStringArrayList(){ return null; }
|
||||
|
||||
32
java/ql/test/stubs/google-android-9.0.0/android/security/identity/IdentityCredential.java
generated
Normal file
32
java/ql/test/stubs/google-android-9.0.0/android/security/identity/IdentityCredential.java
generated
Normal file
@@ -0,0 +1,32 @@
|
||||
// Generated automatically from android.security.identity.IdentityCredential for testing purposes
|
||||
|
||||
package android.security.identity;
|
||||
|
||||
import android.security.identity.PersonalizationData;
|
||||
import android.security.identity.ResultData;
|
||||
import java.security.KeyPair;
|
||||
import java.security.PublicKey;
|
||||
import java.security.cert.X509Certificate;
|
||||
import java.time.Instant;
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
|
||||
abstract public class IdentityCredential
|
||||
{
|
||||
public abstract Collection<X509Certificate> getAuthKeysNeedingCertification();
|
||||
public abstract Collection<X509Certificate> getCredentialKeyCertificateChain();
|
||||
public abstract KeyPair createEphemeralKeyPair();
|
||||
public abstract ResultData getEntries(byte[] p0, Map<String, Collection<String>> p1, byte[] p2, byte[] p3);
|
||||
public abstract byte[] decryptMessageFromReader(byte[] p0);
|
||||
public abstract byte[] encryptMessageToReader(byte[] p0);
|
||||
public abstract int[] getAuthenticationDataUsageCount();
|
||||
public abstract void setAllowUsingExhaustedKeys(boolean p0);
|
||||
public abstract void setAvailableAuthenticationKeys(int p0, int p1);
|
||||
public abstract void setReaderEphemeralPublicKey(PublicKey p0);
|
||||
public abstract void storeStaticAuthenticationData(X509Certificate p0, byte[] p1);
|
||||
public byte[] delete(byte[] p0){ return null; }
|
||||
public byte[] proveOwnership(byte[] p0){ return null; }
|
||||
public byte[] update(PersonalizationData p0){ return null; }
|
||||
public void setAllowUsingExpiredKeys(boolean p0){}
|
||||
public void storeStaticAuthenticationData(X509Certificate p0, Instant p1, byte[] p2){}
|
||||
}
|
||||
9
java/ql/test/stubs/google-android-9.0.0/android/security/identity/PersonalizationData.java
generated
Normal file
9
java/ql/test/stubs/google-android-9.0.0/android/security/identity/PersonalizationData.java
generated
Normal file
@@ -0,0 +1,9 @@
|
||||
// Generated automatically from android.security.identity.PersonalizationData for testing purposes
|
||||
|
||||
package android.security.identity;
|
||||
|
||||
|
||||
public class PersonalizationData
|
||||
{
|
||||
protected PersonalizationData() {}
|
||||
}
|
||||
24
java/ql/test/stubs/google-android-9.0.0/android/security/identity/ResultData.java
generated
Normal file
24
java/ql/test/stubs/google-android-9.0.0/android/security/identity/ResultData.java
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
// Generated automatically from android.security.identity.ResultData for testing purposes
|
||||
|
||||
package android.security.identity;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
abstract public class ResultData
|
||||
{
|
||||
public abstract Collection<String> getEntryNames(String p0);
|
||||
public abstract Collection<String> getNamespaces();
|
||||
public abstract Collection<String> getRetrievedEntryNames(String p0);
|
||||
public abstract byte[] getAuthenticatedData();
|
||||
public abstract byte[] getEntry(String p0, String p1);
|
||||
public abstract byte[] getMessageAuthenticationCode();
|
||||
public abstract byte[] getStaticAuthenticationData();
|
||||
public abstract int getStatus(String p0, String p1);
|
||||
public static int STATUS_NOT_IN_REQUEST_MESSAGE = 0;
|
||||
public static int STATUS_NOT_REQUESTED = 0;
|
||||
public static int STATUS_NO_ACCESS_CONTROL_PROFILES = 0;
|
||||
public static int STATUS_NO_SUCH_ENTRY = 0;
|
||||
public static int STATUS_OK = 0;
|
||||
public static int STATUS_READER_AUTHENTICATION_FAILED = 0;
|
||||
public static int STATUS_USER_AUTHENTICATION_FAILED = 0;
|
||||
}
|
||||
@@ -6,15 +6,12 @@ import java.util.Collection;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
public class ArrayMap<K, V> implements Map<K, V>
|
||||
public class ArrayMap<K, V> implements java.util.Map<K, V>
|
||||
{
|
||||
public ArrayMap(){}
|
||||
public ArrayMap(ArrayMap<K, V> p0){}
|
||||
public ArrayMap(int p0){}
|
||||
public Collection<V> values(){ return null; }
|
||||
public K keyAt(int p0){ return null; }
|
||||
public Set<K> keySet(){ return null; }
|
||||
public Set<Map.Entry<K, V>> entrySet(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public V get(Object p0){ return null; }
|
||||
public V put(K p0, V p1){ return null; }
|
||||
@@ -33,8 +30,11 @@ public class ArrayMap<K, V> implements Map<K, V>
|
||||
public int indexOfKey(Object p0){ return 0; }
|
||||
public int indexOfValue(Object p0){ return 0; }
|
||||
public int size(){ return 0; }
|
||||
public java.util.Collection<V> values(){ return null; }
|
||||
public java.util.Set<K> keySet(){ return null; }
|
||||
public java.util.Set<Map.Entry<K, V>> entrySet(){ return null; }
|
||||
public void clear(){}
|
||||
public void ensureCapacity(int p0){}
|
||||
public void putAll(ArrayMap<? extends K, ? extends V> p0){}
|
||||
public void putAll(Map<? extends K, ? extends V> p0){}
|
||||
public void putAll(java.util.Map<? extends K, ? extends V> p0){}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user