mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Add tests for Android flow steps
This commit is contained in:
@@ -242,7 +242,7 @@ private class TaintPropagationModels extends SummaryModelCsv {
|
||||
[
|
||||
"Array", "ArrayList", "Boolean", "Bundle", "Byte", "Double", "FileDescriptor", "Float",
|
||||
"HashMap", "Int", "Long", "Parcelable", "ParcelableArray", "PersistableBundle",
|
||||
"Serializable", "Size", "SizeF", "SparseArray", "SparseBolleanArray", "String",
|
||||
"Serializable", "Size", "SizeF", "SparseArray", "SparseBooleanArray", "String",
|
||||
"StrongBinder", "TypedObject", "Value"
|
||||
] + ";;;Argument[-1];ReturnValue;taint"
|
||||
or
|
||||
|
||||
@@ -0,0 +1,824 @@
|
||||
package generatedtest;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.BaseBundle;
|
||||
import android.os.Bundle;
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.ParcelFileDescriptor;
|
||||
import android.os.Parcelable;
|
||||
import android.os.PersistableBundle;
|
||||
import android.util.Size;
|
||||
import android.util.SizeF;
|
||||
import android.util.SparseArray;
|
||||
import android.util.SparseBooleanArray;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
// Test case generated by GenerateFlowTestCase.ql
|
||||
public class Test {
|
||||
|
||||
Object source() { return null; }
|
||||
void sink(Object o) { }
|
||||
|
||||
public void test() throws Exception {
|
||||
|
||||
{
|
||||
// "android.content;Intent;true;getBooleanArrayExtra;;;Argument[-1];ReturnValue;taint"
|
||||
boolean[] out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getBooleanArrayExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getBooleanExtra;;;Argument[-1];ReturnValue;taint"
|
||||
boolean out = false;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getBooleanExtra(null, false);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getBundleExtra;;;Argument[-1];ReturnValue;taint"
|
||||
Bundle out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getBundleExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getByteArrayExtra;;;Argument[-1];ReturnValue;taint"
|
||||
byte[] out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getByteArrayExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getByteExtra;;;Argument[-1];ReturnValue;taint"
|
||||
byte out = 0;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getByteExtra(null, (byte)0);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getCharArrayExtra;;;Argument[-1];ReturnValue;taint"
|
||||
char[] out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getCharArrayExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getCharExtra;;;Argument[-1];ReturnValue;taint"
|
||||
char out = 'a';
|
||||
Intent in = (Intent)source();
|
||||
out = in.getCharExtra(null, 'a');
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getCharSequenceArrayExtra;;;Argument[-1];ReturnValue;taint"
|
||||
CharSequence[] out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getCharSequenceArrayExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getCharSequenceArrayListExtra;;;Argument[-1];ReturnValue;taint"
|
||||
ArrayList out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getCharSequenceArrayListExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getCharSequenceExtra;;;Argument[-1];ReturnValue;taint"
|
||||
CharSequence out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getCharSequenceExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getDoubleArrayExtra;;;Argument[-1];ReturnValue;taint"
|
||||
double[] out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getDoubleArrayExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getDoubleExtra;;;Argument[-1];ReturnValue;taint"
|
||||
double out = 0.0;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getDoubleExtra(null, 0.0);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getExtras;;;Argument[-1];ReturnValue;taint"
|
||||
Bundle out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getExtras();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getFloatArrayExtra;;;Argument[-1];ReturnValue;taint"
|
||||
float[] out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getFloatArrayExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getFloatExtra;;;Argument[-1];ReturnValue;taint"
|
||||
float out = 0.0f;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getFloatExtra(null, 0.0f);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getIntArrayExtra;;;Argument[-1];ReturnValue;taint"
|
||||
int[] out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getIntArrayExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getIntExtra;;;Argument[-1];ReturnValue;taint"
|
||||
int out = 0;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getIntExtra(null, 0);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getIntegerArrayListExtra;;;Argument[-1];ReturnValue;taint"
|
||||
ArrayList out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getIntegerArrayListExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getLongArrayExtra;;;Argument[-1];ReturnValue;taint"
|
||||
long[] out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getLongArrayExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getLongExtra;;;Argument[-1];ReturnValue;taint"
|
||||
long out = 0L;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getLongExtra(null, 0L);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getParcelableArrayExtra;;;Argument[-1];ReturnValue;taint"
|
||||
Parcelable[] out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getParcelableArrayExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getParcelableArrayListExtra;;;Argument[-1];ReturnValue;taint"
|
||||
ArrayList out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getParcelableArrayListExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getParcelableExtra;;;Argument[-1];ReturnValue;taint"
|
||||
Parcelable out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getParcelableExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getSerializableExtra;;;Argument[-1];ReturnValue;taint"
|
||||
Serializable out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getSerializableExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getShortArrayExtra;;;Argument[-1];ReturnValue;taint"
|
||||
short[] out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getShortArrayExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getShortExtra;;;Argument[-1];ReturnValue;taint"
|
||||
short out = 0;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getShortExtra(null, (short)0);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getStringArrayExtra;;;Argument[-1];ReturnValue;taint"
|
||||
String[] out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getStringArrayExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getStringArrayListExtra;;;Argument[-1];ReturnValue;taint"
|
||||
ArrayList out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getStringArrayListExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.content;Intent;true;getStringExtra;;;Argument[-1];ReturnValue;taint"
|
||||
String out = null;
|
||||
Intent in = (Intent)source();
|
||||
out = in.getStringExtra(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;BaseBundle;true;getBoolean;;;Argument[-1];ReturnValue;taint"
|
||||
boolean out = false;
|
||||
BaseBundle in = (BaseBundle)source();
|
||||
out = in.getBoolean(null, false);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;BaseBundle;true;getBoolean;;;Argument[-1];ReturnValue;taint"
|
||||
boolean out = false;
|
||||
BaseBundle in = (BaseBundle)source();
|
||||
out = in.getBoolean(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;BaseBundle;true;getBooleanArray;;;Argument[-1];ReturnValue;taint"
|
||||
boolean[] out = null;
|
||||
BaseBundle in = (BaseBundle)source();
|
||||
out = in.getBooleanArray(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;BaseBundle;true;getDouble;;;Argument[-1];ReturnValue;taint"
|
||||
double out = 0.0;
|
||||
BaseBundle in = (BaseBundle)source();
|
||||
out = in.getDouble(null, 0.0);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;BaseBundle;true;getDouble;;;Argument[-1];ReturnValue;taint"
|
||||
double out = 0.0;
|
||||
BaseBundle in = (BaseBundle)source();
|
||||
out = in.getDouble(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;BaseBundle;true;getDoubleArray;;;Argument[-1];ReturnValue;taint"
|
||||
double[] out = null;
|
||||
BaseBundle in = (BaseBundle)source();
|
||||
out = in.getDoubleArray(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;BaseBundle;true;getInt;;;Argument[-1];ReturnValue;taint"
|
||||
int out = 0;
|
||||
BaseBundle in = (BaseBundle)source();
|
||||
out = in.getInt(null, 0);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;BaseBundle;true;getInt;;;Argument[-1];ReturnValue;taint"
|
||||
int out = 0;
|
||||
BaseBundle in = (BaseBundle)source();
|
||||
out = in.getInt(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;BaseBundle;true;getIntArray;;;Argument[-1];ReturnValue;taint"
|
||||
int[] out = null;
|
||||
BaseBundle in = (BaseBundle)source();
|
||||
out = in.getIntArray(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;BaseBundle;true;getLong;;;Argument[-1];ReturnValue;taint"
|
||||
long out = 0L;
|
||||
BaseBundle in = (BaseBundle)source();
|
||||
out = in.getLong(null, 0L);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;BaseBundle;true;getLong;;;Argument[-1];ReturnValue;taint"
|
||||
long out = 0L;
|
||||
BaseBundle in = (BaseBundle)source();
|
||||
out = in.getLong(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;BaseBundle;true;getLongArray;;;Argument[-1];ReturnValue;taint"
|
||||
long[] out = null;
|
||||
BaseBundle in = (BaseBundle)source();
|
||||
out = in.getLongArray(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;BaseBundle;true;getString;;;Argument[-1];ReturnValue;taint"
|
||||
String out = null;
|
||||
BaseBundle in = (BaseBundle)source();
|
||||
out = in.getString(null, null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;BaseBundle;true;getString;;;Argument[-1];ReturnValue;taint"
|
||||
String out = null;
|
||||
BaseBundle in = (BaseBundle)source();
|
||||
out = in.getString(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;BaseBundle;true;getStringArray;;;Argument[-1];ReturnValue;taint"
|
||||
String[] out = null;
|
||||
BaseBundle in = (BaseBundle)source();
|
||||
out = in.getStringArray(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getBinder;;;Argument[-1];ReturnValue;taint"
|
||||
IBinder out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getBinder(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getBundle;;;Argument[-1];ReturnValue;taint"
|
||||
Bundle out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getBundle(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getByte;;;Argument[-1];ReturnValue;taint"
|
||||
byte out = 0;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getByte(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getByte;;;Argument[-1];ReturnValue;taint"
|
||||
byte out = 0;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getByte(null, (byte)0);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getByteArray;;;Argument[-1];ReturnValue;taint"
|
||||
byte[] out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getByteArray(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getChar;;;Argument[-1];ReturnValue;taint"
|
||||
char out = 'a';
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getChar(null, 'a');
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getChar;;;Argument[-1];ReturnValue;taint"
|
||||
char out = 'a';
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getChar(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getCharArray;;;Argument[-1];ReturnValue;taint"
|
||||
char[] out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getCharArray(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getCharSequence;;;Argument[-1];ReturnValue;taint"
|
||||
CharSequence out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getCharSequence(null, null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getCharSequence;;;Argument[-1];ReturnValue;taint"
|
||||
CharSequence out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getCharSequence(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getCharSequenceArray;;;Argument[-1];ReturnValue;taint"
|
||||
CharSequence[] out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getCharSequenceArray(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getCharSequenceArrayList;;;Argument[-1];ReturnValue;taint"
|
||||
ArrayList out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getCharSequenceArrayList(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getFloat;;;Argument[-1];ReturnValue;taint"
|
||||
float out = 0.0f;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getFloat(null, 0.0f);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getFloat;;;Argument[-1];ReturnValue;taint"
|
||||
float out = 0.0f;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getFloat(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getFloatArray;;;Argument[-1];ReturnValue;taint"
|
||||
float[] out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getFloatArray(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getIntegerArrayList;;;Argument[-1];ReturnValue;taint"
|
||||
ArrayList out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getIntegerArrayList(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getParcelable;;;Argument[-1];ReturnValue;taint"
|
||||
Parcelable out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getParcelable(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getParcelableArray;;;Argument[-1];ReturnValue;taint"
|
||||
Parcelable[] out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getParcelableArray(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getParcelableArrayList;;;Argument[-1];ReturnValue;taint"
|
||||
ArrayList out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getParcelableArrayList(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getSerializable;;;Argument[-1];ReturnValue;taint"
|
||||
Serializable out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getSerializable(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getShort;;;Argument[-1];ReturnValue;taint"
|
||||
short out = 0;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getShort(null, (short)0);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getShort;;;Argument[-1];ReturnValue;taint"
|
||||
short out = 0;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getShort(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getShortArray;;;Argument[-1];ReturnValue;taint"
|
||||
short[] out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getShortArray(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getSize;;;Argument[-1];ReturnValue;taint"
|
||||
Size out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getSize(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getSizeF;;;Argument[-1];ReturnValue;taint"
|
||||
SizeF out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getSizeF(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getSparseParcelableArray;;;Argument[-1];ReturnValue;taint"
|
||||
SparseArray out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getSparseParcelableArray(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Bundle;true;getStringArrayList;;;Argument[-1];ReturnValue;taint"
|
||||
ArrayList out = null;
|
||||
Bundle in = (Bundle)source();
|
||||
out = in.getStringArrayList(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readArray;;;Argument[-1];ReturnValue;taint"
|
||||
Object[] out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readArray(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readArrayList;;;Argument[-1];ReturnValue;taint"
|
||||
ArrayList out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readArrayList(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readBinderArray;;;Argument[-1];Argument[0];taint"
|
||||
IBinder[] out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
in.readBinderArray(out);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readBinderList;;;Argument[-1];Argument[0];taint"
|
||||
List out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
in.readBinderList(out);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readBoolean;;;Argument[-1];ReturnValue;taint"
|
||||
boolean out = false;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readBoolean();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readBooleanArray;;;Argument[-1];Argument[0];taint"
|
||||
boolean[] out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
in.readBooleanArray(out);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readBundle;;;Argument[-1];ReturnValue;taint"
|
||||
Bundle out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readBundle(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readBundle;;;Argument[-1];ReturnValue;taint"
|
||||
Bundle out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readBundle();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readByte;;;Argument[-1];ReturnValue;taint"
|
||||
byte out = 0;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readByte();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readByteArray;;;Argument[-1];Argument[0];taint"
|
||||
byte[] out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
in.readByteArray(out);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readCharArray;;;Argument[-1];Argument[0];taint"
|
||||
char[] out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
in.readCharArray(out);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readDouble;;;Argument[-1];ReturnValue;taint"
|
||||
double out = 0.0;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readDouble();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readDoubleArray;;;Argument[-1];Argument[0];taint"
|
||||
double[] out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
in.readDoubleArray(out);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readFileDescriptor;;;Argument[-1];ReturnValue;taint"
|
||||
ParcelFileDescriptor out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readFileDescriptor();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readFloat;;;Argument[-1];ReturnValue;taint"
|
||||
float out = 0.0f;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readFloat();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readFloatArray;;;Argument[-1];Argument[0];taint"
|
||||
float[] out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
in.readFloatArray(out);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readHashMap;;;Argument[-1];ReturnValue;taint"
|
||||
HashMap out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readHashMap(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readInt;;;Argument[-1];ReturnValue;taint"
|
||||
int out = 0;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readInt();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readIntArray;;;Argument[-1];Argument[0];taint"
|
||||
int[] out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
in.readIntArray(out);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readList;;;Argument[-1];Argument[0];taint"
|
||||
List out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
in.readList(out, null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readLong;;;Argument[-1];ReturnValue;taint"
|
||||
long out = 0L;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readLong();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readLongArray;;;Argument[-1];Argument[0];taint"
|
||||
long[] out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
in.readLongArray(out);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readMap;;;Argument[-1];Argument[0];taint"
|
||||
Map out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
in.readMap(out, null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readParcelable;;;Argument[-1];ReturnValue;taint"
|
||||
Parcelable out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readParcelable(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readParcelableArray;;;Argument[-1];ReturnValue;taint"
|
||||
Parcelable[] out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readParcelableArray(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readParcelableList;;;Argument[-1];Argument[0];taint"
|
||||
List out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
in.readParcelableList(out, null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readParcelableList;;;Argument[0];ReturnValue;value"
|
||||
List out = null;
|
||||
List in = (List)source();
|
||||
Parcel instance = null;
|
||||
out = instance.readParcelableList(in, null);
|
||||
sink(out); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readPersistableBundle;;;Argument[-1];ReturnValue;taint"
|
||||
PersistableBundle out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readPersistableBundle(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readPersistableBundle;;;Argument[-1];ReturnValue;taint"
|
||||
PersistableBundle out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readPersistableBundle();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readSerializable;;;Argument[-1];ReturnValue;taint"
|
||||
Serializable out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readSerializable();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readSize;;;Argument[-1];ReturnValue;taint"
|
||||
Size out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readSize();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readSizeF;;;Argument[-1];ReturnValue;taint"
|
||||
SizeF out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readSizeF();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readSparseArray;;;Argument[-1];ReturnValue;taint"
|
||||
SparseArray out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readSparseArray(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readSparseBooleanArray;;;Argument[-1];ReturnValue;taint"
|
||||
SparseBooleanArray out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readSparseBooleanArray();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readString;;;Argument[-1];ReturnValue;taint"
|
||||
String out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readString();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readStringArray;;;Argument[-1];Argument[0];taint"
|
||||
String[] out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
in.readStringArray(out);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readStringList;;;Argument[-1];Argument[0];taint"
|
||||
List out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
in.readStringList(out);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readStrongBinder;;;Argument[-1];ReturnValue;taint"
|
||||
IBinder out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readStrongBinder();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readTypedArray;;;Argument[-1];Argument[0];taint"
|
||||
Object[] out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
in.readTypedArray(out, null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readTypedList;;;Argument[-1];Argument[0];taint"
|
||||
List out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
in.readTypedList(out, null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readTypedObject;;;Argument[-1];ReturnValue;taint"
|
||||
Object out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readTypedObject(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "android.os;Parcel;false;readValue;;;Argument[-1];ReturnValue;taint"
|
||||
Object out = null;
|
||||
Parcel in = (Parcel)source();
|
||||
out = in.readValue(null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../../stubs/google-android-9.0.0
|
||||
@@ -0,0 +1,53 @@
|
||||
import java
|
||||
import semmle.code.java.dataflow.DataFlow
|
||||
import semmle.code.java.dataflow.ExternalFlow
|
||||
import semmle.code.java.dataflow.TaintTracking
|
||||
import TestUtilities.InlineExpectationsTest
|
||||
|
||||
class ValueFlowConf extends DataFlow::Configuration {
|
||||
ValueFlowConf() { this = "qltest:valueFlowConf" }
|
||||
|
||||
override predicate isSource(DataFlow::Node n) {
|
||||
n.asExpr().(MethodAccess).getMethod().hasName("source")
|
||||
}
|
||||
|
||||
override predicate isSink(DataFlow::Node n) {
|
||||
n.asExpr().(Argument).getCall().getCallee().hasName("sink")
|
||||
}
|
||||
}
|
||||
|
||||
class TaintFlowConf extends TaintTracking::Configuration {
|
||||
TaintFlowConf() { this = "qltest:taintFlowConf" }
|
||||
|
||||
override predicate isSource(DataFlow::Node n) {
|
||||
n.asExpr().(MethodAccess).getMethod().hasName("source")
|
||||
}
|
||||
|
||||
override predicate isSink(DataFlow::Node n) {
|
||||
n.asExpr().(Argument).getCall().getCallee().hasName("sink")
|
||||
}
|
||||
}
|
||||
|
||||
class HasFlowTest extends InlineExpectationsTest {
|
||||
HasFlowTest() { this = "HasFlowTest" }
|
||||
|
||||
override string getARelevantTag() { result = ["hasValueFlow", "hasTaintFlow"] }
|
||||
|
||||
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
||||
tag = "hasValueFlow" and
|
||||
exists(DataFlow::Node src, DataFlow::Node sink, ValueFlowConf conf | conf.hasFlow(src, sink) |
|
||||
sink.getLocation() = location and
|
||||
element = sink.toString() and
|
||||
value = ""
|
||||
)
|
||||
or
|
||||
tag = "hasTaintFlow" and
|
||||
exists(DataFlow::Node src, DataFlow::Node sink, TaintFlowConf conf |
|
||||
conf.hasFlow(src, sink) and not any(ValueFlowConf c).hasFlow(src, sink)
|
||||
|
|
||||
sink.getLocation() = location and
|
||||
element = sink.toString() and
|
||||
value = ""
|
||||
)
|
||||
}
|
||||
}
|
||||
21
java/ql/test/stubs/google-android-9.0.0/android/accounts/Account.java
generated
Normal file
21
java/ql/test/stubs/google-android-9.0.0/android/accounts/Account.java
generated
Normal file
@@ -0,0 +1,21 @@
|
||||
// Generated automatically from android.accounts.Account for testing purposes
|
||||
|
||||
package android.accounts;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
public class Account implements Parcelable
|
||||
{
|
||||
protected Account() {}
|
||||
public Account(Parcel p0){}
|
||||
public Account(String p0, String p1){}
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public final String name = null;
|
||||
public final String type = null;
|
||||
public int describeContents(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static Parcelable.Creator<Account> CREATOR = null;
|
||||
public void writeToParcel(Parcel p0, int p1){}
|
||||
}
|
||||
13
java/ql/test/stubs/google-android-9.0.0/android/database/CharArrayBuffer.java
generated
Normal file
13
java/ql/test/stubs/google-android-9.0.0/android/database/CharArrayBuffer.java
generated
Normal file
@@ -0,0 +1,13 @@
|
||||
// Generated automatically from android.database.CharArrayBuffer for testing purposes
|
||||
|
||||
package android.database;
|
||||
|
||||
|
||||
public class CharArrayBuffer
|
||||
{
|
||||
protected CharArrayBuffer() {}
|
||||
public CharArrayBuffer(char[] p0){}
|
||||
public CharArrayBuffer(int p0){}
|
||||
public char[] data = null;
|
||||
public int sizeCopied = 0;
|
||||
}
|
||||
17
java/ql/test/stubs/google-android-9.0.0/android/database/ContentObserver.java
generated
Normal file
17
java/ql/test/stubs/google-android-9.0.0/android/database/ContentObserver.java
generated
Normal file
@@ -0,0 +1,17 @@
|
||||
// Generated automatically from android.database.ContentObserver for testing purposes
|
||||
|
||||
package android.database;
|
||||
|
||||
import android.net.Uri;
|
||||
import android.os.Handler;
|
||||
|
||||
abstract public class ContentObserver
|
||||
{
|
||||
protected ContentObserver() {}
|
||||
public ContentObserver(Handler p0){}
|
||||
public boolean deliverSelfNotifications(){ return false; }
|
||||
public final void dispatchChange(boolean p0){}
|
||||
public final void dispatchChange(boolean p0, Uri p1){}
|
||||
public void onChange(boolean p0){}
|
||||
public void onChange(boolean p0, Uri p1){}
|
||||
}
|
||||
11
java/ql/test/stubs/google-android-9.0.0/android/database/DataSetObserver.java
generated
Normal file
11
java/ql/test/stubs/google-android-9.0.0/android/database/DataSetObserver.java
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from android.database.DataSetObserver for testing purposes
|
||||
|
||||
package android.database;
|
||||
|
||||
|
||||
abstract public class DataSetObserver
|
||||
{
|
||||
public DataSetObserver(){}
|
||||
public void onChanged(){}
|
||||
public void onInvalidated(){}
|
||||
}
|
||||
10
java/ql/test/stubs/google-android-9.0.0/android/database/DatabaseErrorHandler.java
generated
Normal file
10
java/ql/test/stubs/google-android-9.0.0/android/database/DatabaseErrorHandler.java
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from android.database.DatabaseErrorHandler for testing purposes
|
||||
|
||||
package android.database;
|
||||
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
|
||||
public interface DatabaseErrorHandler
|
||||
{
|
||||
void onCorruption(SQLiteDatabase p0);
|
||||
}
|
||||
16
java/ql/test/stubs/google-android-9.0.0/android/database/sqlite/SQLiteClosable.java
generated
Normal file
16
java/ql/test/stubs/google-android-9.0.0/android/database/sqlite/SQLiteClosable.java
generated
Normal file
@@ -0,0 +1,16 @@
|
||||
// Generated automatically from android.database.sqlite.SQLiteClosable for testing purposes
|
||||
|
||||
package android.database.sqlite;
|
||||
|
||||
import java.io.Closeable;
|
||||
|
||||
abstract public class SQLiteClosable implements Closeable
|
||||
{
|
||||
protected abstract void onAllReferencesReleased();
|
||||
protected void onAllReferencesReleasedFromContainer(){}
|
||||
public SQLiteClosable(){}
|
||||
public void acquireReference(){}
|
||||
public void close(){}
|
||||
public void releaseReference(){}
|
||||
public void releaseReferenceFromContainer(){}
|
||||
}
|
||||
15
java/ql/test/stubs/google-android-9.0.0/android/database/sqlite/SQLiteCursorDriver.java
generated
Normal file
15
java/ql/test/stubs/google-android-9.0.0/android/database/sqlite/SQLiteCursorDriver.java
generated
Normal file
@@ -0,0 +1,15 @@
|
||||
// Generated automatically from android.database.sqlite.SQLiteCursorDriver for testing purposes
|
||||
|
||||
package android.database.sqlite;
|
||||
|
||||
import android.database.Cursor;
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
|
||||
public interface SQLiteCursorDriver
|
||||
{
|
||||
Cursor query(SQLiteDatabase.CursorFactory p0, String[] p1);
|
||||
void cursorClosed();
|
||||
void cursorDeactivated();
|
||||
void cursorRequeried(Cursor p0);
|
||||
void setBindArguments(String[] p0);
|
||||
}
|
||||
122
java/ql/test/stubs/google-android-9.0.0/android/database/sqlite/SQLiteDatabase.java
generated
Normal file
122
java/ql/test/stubs/google-android-9.0.0/android/database/sqlite/SQLiteDatabase.java
generated
Normal file
@@ -0,0 +1,122 @@
|
||||
// Generated automatically from android.database.sqlite.SQLiteDatabase for testing purposes
|
||||
|
||||
package android.database.sqlite;
|
||||
|
||||
import android.content.ContentValues;
|
||||
import android.database.Cursor;
|
||||
import android.database.DatabaseErrorHandler;
|
||||
import android.database.sqlite.SQLiteClosable;
|
||||
import android.database.sqlite.SQLiteCursorDriver;
|
||||
import android.database.sqlite.SQLiteQuery;
|
||||
import android.database.sqlite.SQLiteStatement;
|
||||
import android.database.sqlite.SQLiteTransactionListener;
|
||||
import android.os.CancellationSignal;
|
||||
import android.util.Pair;
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
public class SQLiteDatabase extends SQLiteClosable
|
||||
{
|
||||
protected SQLiteDatabase() {}
|
||||
protected void finalize(){}
|
||||
protected void onAllReferencesReleased(){}
|
||||
public Cursor query(String p0, String[] p1, String p2, String[] p3, String p4, String p5, String p6){ return null; }
|
||||
public Cursor query(String p0, String[] p1, String p2, String[] p3, String p4, String p5, String p6, String p7){ return null; }
|
||||
public Cursor query(boolean p0, String p1, String[] p2, String p3, String[] p4, String p5, String p6, String p7, String p8){ return null; }
|
||||
public Cursor query(boolean p0, String p1, String[] p2, String p3, String[] p4, String p5, String p6, String p7, String p8, CancellationSignal p9){ return null; }
|
||||
public Cursor queryWithFactory(SQLiteDatabase.CursorFactory p0, boolean p1, String p2, String[] p3, String p4, String[] p5, String p6, String p7, String p8, String p9){ return null; }
|
||||
public Cursor queryWithFactory(SQLiteDatabase.CursorFactory p0, boolean p1, String p2, String[] p3, String p4, String[] p5, String p6, String p7, String p8, String p9, CancellationSignal p10){ return null; }
|
||||
public Cursor rawQuery(String p0, String[] p1){ return null; }
|
||||
public Cursor rawQuery(String p0, String[] p1, CancellationSignal p2){ return null; }
|
||||
public Cursor rawQueryWithFactory(SQLiteDatabase.CursorFactory p0, String p1, String[] p2, String p3){ return null; }
|
||||
public Cursor rawQueryWithFactory(SQLiteDatabase.CursorFactory p0, String p1, String[] p2, String p3, CancellationSignal p4){ return null; }
|
||||
public List<Pair<String, String>> getAttachedDbs(){ return null; }
|
||||
public Map<String, String> getSyncedTables(){ return null; }
|
||||
public SQLiteStatement compileStatement(String p0){ return null; }
|
||||
public String getPath(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean enableWriteAheadLogging(){ return false; }
|
||||
public boolean inTransaction(){ return false; }
|
||||
public boolean isDatabaseIntegrityOk(){ return false; }
|
||||
public boolean isDbLockedByCurrentThread(){ return false; }
|
||||
public boolean isDbLockedByOtherThreads(){ return false; }
|
||||
public boolean isOpen(){ return false; }
|
||||
public boolean isReadOnly(){ return false; }
|
||||
public boolean isWriteAheadLoggingEnabled(){ return false; }
|
||||
public boolean needUpgrade(int p0){ return false; }
|
||||
public boolean yieldIfContended(){ return false; }
|
||||
public boolean yieldIfContendedSafely(){ return false; }
|
||||
public boolean yieldIfContendedSafely(long p0){ return false; }
|
||||
public int delete(String p0, String p1, String[] p2){ return 0; }
|
||||
public int getVersion(){ return 0; }
|
||||
public int update(String p0, ContentValues p1, String p2, String[] p3){ return 0; }
|
||||
public int updateWithOnConflict(String p0, ContentValues p1, String p2, String[] p3, int p4){ return 0; }
|
||||
public long getMaximumSize(){ return 0; }
|
||||
public long getPageSize(){ return 0; }
|
||||
public long insert(String p0, String p1, ContentValues p2){ return 0; }
|
||||
public long insertOrThrow(String p0, String p1, ContentValues p2){ return 0; }
|
||||
public long insertWithOnConflict(String p0, String p1, ContentValues p2, int p3){ return 0; }
|
||||
public long replace(String p0, String p1, ContentValues p2){ return 0; }
|
||||
public long replaceOrThrow(String p0, String p1, ContentValues p2){ return 0; }
|
||||
public long setMaximumSize(long p0){ return 0; }
|
||||
public static SQLiteDatabase create(SQLiteDatabase.CursorFactory p0){ return null; }
|
||||
public static SQLiteDatabase createInMemory(SQLiteDatabase.OpenParams p0){ return null; }
|
||||
public static SQLiteDatabase openDatabase(File p0, SQLiteDatabase.OpenParams p1){ return null; }
|
||||
public static SQLiteDatabase openDatabase(String p0, SQLiteDatabase.CursorFactory p1, int p2){ return null; }
|
||||
public static SQLiteDatabase openDatabase(String p0, SQLiteDatabase.CursorFactory p1, int p2, DatabaseErrorHandler p3){ return null; }
|
||||
public static SQLiteDatabase openOrCreateDatabase(File p0, SQLiteDatabase.CursorFactory p1){ return null; }
|
||||
public static SQLiteDatabase openOrCreateDatabase(String p0, SQLiteDatabase.CursorFactory p1){ return null; }
|
||||
public static SQLiteDatabase openOrCreateDatabase(String p0, SQLiteDatabase.CursorFactory p1, DatabaseErrorHandler p2){ return null; }
|
||||
public static String findEditTable(String p0){ return null; }
|
||||
public static boolean deleteDatabase(File p0){ return false; }
|
||||
public static int CONFLICT_ABORT = 0;
|
||||
public static int CONFLICT_FAIL = 0;
|
||||
public static int CONFLICT_IGNORE = 0;
|
||||
public static int CONFLICT_NONE = 0;
|
||||
public static int CONFLICT_REPLACE = 0;
|
||||
public static int CONFLICT_ROLLBACK = 0;
|
||||
public static int CREATE_IF_NECESSARY = 0;
|
||||
public static int ENABLE_WRITE_AHEAD_LOGGING = 0;
|
||||
public static int MAX_SQL_CACHE_SIZE = 0;
|
||||
public static int NO_LOCALIZED_COLLATORS = 0;
|
||||
public static int OPEN_READONLY = 0;
|
||||
public static int OPEN_READWRITE = 0;
|
||||
public static int SQLITE_MAX_LIKE_PATTERN_LENGTH = 0;
|
||||
public static int releaseMemory(){ return 0; }
|
||||
public void beginTransaction(){}
|
||||
public void beginTransactionNonExclusive(){}
|
||||
public void beginTransactionWithListener(SQLiteTransactionListener p0){}
|
||||
public void beginTransactionWithListenerNonExclusive(SQLiteTransactionListener p0){}
|
||||
public void disableWriteAheadLogging(){}
|
||||
public void endTransaction(){}
|
||||
public void execSQL(String p0){}
|
||||
public void execSQL(String p0, Object[] p1){}
|
||||
public void markTableSyncable(String p0, String p1){}
|
||||
public void markTableSyncable(String p0, String p1, String p2){}
|
||||
public void setForeignKeyConstraintsEnabled(boolean p0){}
|
||||
public void setLocale(Locale p0){}
|
||||
public void setLockingEnabled(boolean p0){}
|
||||
public void setMaxSqlCacheSize(int p0){}
|
||||
public void setPageSize(long p0){}
|
||||
public void setTransactionSuccessful(){}
|
||||
public void setVersion(int p0){}
|
||||
public void validateSql(String p0, CancellationSignal p1){}
|
||||
static public class OpenParams
|
||||
{
|
||||
protected OpenParams() {}
|
||||
public DatabaseErrorHandler getErrorHandler(){ return null; }
|
||||
public SQLiteDatabase.CursorFactory getCursorFactory(){ return null; }
|
||||
public String getJournalMode(){ return null; }
|
||||
public String getSynchronousMode(){ return null; }
|
||||
public int getLookasideSlotCount(){ return 0; }
|
||||
public int getLookasideSlotSize(){ return 0; }
|
||||
public int getOpenFlags(){ return 0; }
|
||||
public long getIdleConnectionTimeout(){ return 0; }
|
||||
}
|
||||
static public interface CursorFactory
|
||||
{
|
||||
Cursor newCursor(SQLiteDatabase p0, SQLiteCursorDriver p1, String p2, SQLiteQuery p3);
|
||||
}
|
||||
}
|
||||
19
java/ql/test/stubs/google-android-9.0.0/android/database/sqlite/SQLiteProgram.java
generated
Normal file
19
java/ql/test/stubs/google-android-9.0.0/android/database/sqlite/SQLiteProgram.java
generated
Normal file
@@ -0,0 +1,19 @@
|
||||
// Generated automatically from android.database.sqlite.SQLiteProgram for testing purposes
|
||||
|
||||
package android.database.sqlite;
|
||||
|
||||
import android.database.sqlite.SQLiteClosable;
|
||||
|
||||
abstract public class SQLiteProgram extends SQLiteClosable
|
||||
{
|
||||
protected SQLiteProgram() {}
|
||||
protected void onAllReferencesReleased(){}
|
||||
public final int getUniqueId(){ return 0; }
|
||||
public void bindAllArgsAsStrings(String[] p0){}
|
||||
public void bindBlob(int p0, byte[] p1){}
|
||||
public void bindDouble(int p0, double p1){}
|
||||
public void bindLong(int p0, long p1){}
|
||||
public void bindNull(int p0){}
|
||||
public void bindString(int p0, String p1){}
|
||||
public void clearBindings(){}
|
||||
}
|
||||
11
java/ql/test/stubs/google-android-9.0.0/android/database/sqlite/SQLiteQuery.java
generated
Normal file
11
java/ql/test/stubs/google-android-9.0.0/android/database/sqlite/SQLiteQuery.java
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from android.database.sqlite.SQLiteQuery for testing purposes
|
||||
|
||||
package android.database.sqlite;
|
||||
|
||||
import android.database.sqlite.SQLiteProgram;
|
||||
|
||||
public class SQLiteQuery extends SQLiteProgram
|
||||
{
|
||||
protected SQLiteQuery() {}
|
||||
public String toString(){ return null; }
|
||||
}
|
||||
18
java/ql/test/stubs/google-android-9.0.0/android/database/sqlite/SQLiteStatement.java
generated
Normal file
18
java/ql/test/stubs/google-android-9.0.0/android/database/sqlite/SQLiteStatement.java
generated
Normal file
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from android.database.sqlite.SQLiteStatement for testing purposes
|
||||
|
||||
package android.database.sqlite;
|
||||
|
||||
import android.database.sqlite.SQLiteProgram;
|
||||
import android.os.ParcelFileDescriptor;
|
||||
|
||||
public class SQLiteStatement extends SQLiteProgram
|
||||
{
|
||||
protected SQLiteStatement() {}
|
||||
public ParcelFileDescriptor simpleQueryForBlobFileDescriptor(){ return null; }
|
||||
public String simpleQueryForString(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public int executeUpdateDelete(){ return 0; }
|
||||
public long executeInsert(){ return 0; }
|
||||
public long simpleQueryForLong(){ return 0; }
|
||||
public void execute(){}
|
||||
}
|
||||
11
java/ql/test/stubs/google-android-9.0.0/android/database/sqlite/SQLiteTransactionListener.java
generated
Normal file
11
java/ql/test/stubs/google-android-9.0.0/android/database/sqlite/SQLiteTransactionListener.java
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from android.database.sqlite.SQLiteTransactionListener for testing purposes
|
||||
|
||||
package android.database.sqlite;
|
||||
|
||||
|
||||
public interface SQLiteTransactionListener
|
||||
{
|
||||
void onBegin();
|
||||
void onCommit();
|
||||
void onRollback();
|
||||
}
|
||||
97
java/ql/test/stubs/google-android-9.0.0/android/graphics/Bitmap.java
generated
Normal file
97
java/ql/test/stubs/google-android-9.0.0/android/graphics/Bitmap.java
generated
Normal file
@@ -0,0 +1,97 @@
|
||||
// Generated automatically from android.graphics.Bitmap for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.ColorSpace;
|
||||
import android.graphics.Matrix;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.Picture;
|
||||
import android.hardware.HardwareBuffer;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.util.DisplayMetrics;
|
||||
import java.io.OutputStream;
|
||||
import java.nio.Buffer;
|
||||
|
||||
public class Bitmap implements Parcelable
|
||||
{
|
||||
public Bitmap copy(Bitmap.Config p0, boolean p1){ return null; }
|
||||
public Bitmap extractAlpha(){ return null; }
|
||||
public Bitmap extractAlpha(Paint p0, int[] p1){ return null; }
|
||||
public Bitmap.Config getConfig(){ return null; }
|
||||
public Color getColor(int p0, int p1){ return null; }
|
||||
public ColorSpace getColorSpace(){ return null; }
|
||||
public boolean compress(Bitmap.CompressFormat p0, int p1, OutputStream p2){ return false; }
|
||||
public boolean hasAlpha(){ return false; }
|
||||
public boolean hasMipMap(){ return false; }
|
||||
public boolean isMutable(){ return false; }
|
||||
public boolean isPremultiplied(){ return false; }
|
||||
public boolean isRecycled(){ return false; }
|
||||
public boolean sameAs(Bitmap p0){ return false; }
|
||||
public byte[] getNinePatchChunk(){ return null; }
|
||||
public int describeContents(){ return 0; }
|
||||
public int getAllocationByteCount(){ return 0; }
|
||||
public int getByteCount(){ return 0; }
|
||||
public int getDensity(){ return 0; }
|
||||
public int getGenerationId(){ return 0; }
|
||||
public int getHeight(){ return 0; }
|
||||
public int getPixel(int p0, int p1){ return 0; }
|
||||
public int getRowBytes(){ return 0; }
|
||||
public int getScaledHeight(Canvas p0){ return 0; }
|
||||
public int getScaledHeight(DisplayMetrics p0){ return 0; }
|
||||
public int getScaledHeight(int p0){ return 0; }
|
||||
public int getScaledWidth(Canvas p0){ return 0; }
|
||||
public int getScaledWidth(DisplayMetrics p0){ return 0; }
|
||||
public int getScaledWidth(int p0){ return 0; }
|
||||
public int getWidth(){ return 0; }
|
||||
public static Bitmap createBitmap(Bitmap p0){ return null; }
|
||||
public static Bitmap createBitmap(Bitmap p0, int p1, int p2, int p3, int p4){ return null; }
|
||||
public static Bitmap createBitmap(Bitmap p0, int p1, int p2, int p3, int p4, Matrix p5, boolean p6){ return null; }
|
||||
public static Bitmap createBitmap(DisplayMetrics p0, int p1, int p2, Bitmap.Config p3){ return null; }
|
||||
public static Bitmap createBitmap(DisplayMetrics p0, int p1, int p2, Bitmap.Config p3, boolean p4){ return null; }
|
||||
public static Bitmap createBitmap(DisplayMetrics p0, int p1, int p2, Bitmap.Config p3, boolean p4, ColorSpace p5){ return null; }
|
||||
public static Bitmap createBitmap(DisplayMetrics p0, int[] p1, int p2, int p3, Bitmap.Config p4){ return null; }
|
||||
public static Bitmap createBitmap(DisplayMetrics p0, int[] p1, int p2, int p3, int p4, int p5, Bitmap.Config p6){ return null; }
|
||||
public static Bitmap createBitmap(Picture p0){ return null; }
|
||||
public static Bitmap createBitmap(Picture p0, int p1, int p2, Bitmap.Config p3){ return null; }
|
||||
public static Bitmap createBitmap(int p0, int p1, Bitmap.Config p2){ return null; }
|
||||
public static Bitmap createBitmap(int p0, int p1, Bitmap.Config p2, boolean p3){ return null; }
|
||||
public static Bitmap createBitmap(int p0, int p1, Bitmap.Config p2, boolean p3, ColorSpace p4){ return null; }
|
||||
public static Bitmap createBitmap(int[] p0, int p1, int p2, Bitmap.Config p3){ return null; }
|
||||
public static Bitmap createBitmap(int[] p0, int p1, int p2, int p3, int p4, Bitmap.Config p5){ return null; }
|
||||
public static Bitmap createScaledBitmap(Bitmap p0, int p1, int p2, boolean p3){ return null; }
|
||||
public static Bitmap wrapHardwareBuffer(HardwareBuffer p0, ColorSpace p1){ return null; }
|
||||
public static Parcelable.Creator<Bitmap> CREATOR = null;
|
||||
public static int DENSITY_NONE = 0;
|
||||
public void copyPixelsFromBuffer(Buffer p0){}
|
||||
public void copyPixelsToBuffer(Buffer p0){}
|
||||
public void eraseColor(int p0){}
|
||||
public void eraseColor(long p0){}
|
||||
public void getPixels(int[] p0, int p1, int p2, int p3, int p4, int p5, int p6){}
|
||||
public void prepareToDraw(){}
|
||||
public void reconfigure(int p0, int p1, Bitmap.Config p2){}
|
||||
public void recycle(){}
|
||||
public void setColorSpace(ColorSpace p0){}
|
||||
public void setConfig(Bitmap.Config p0){}
|
||||
public void setDensity(int p0){}
|
||||
public void setHasAlpha(boolean p0){}
|
||||
public void setHasMipMap(boolean p0){}
|
||||
public void setHeight(int p0){}
|
||||
public void setPixel(int p0, int p1, int p2){}
|
||||
public void setPixels(int[] p0, int p1, int p2, int p3, int p4, int p5, int p6){}
|
||||
public void setPremultiplied(boolean p0){}
|
||||
public void setWidth(int p0){}
|
||||
public void writeToParcel(Parcel p0, int p1){}
|
||||
static public enum CompressFormat
|
||||
{
|
||||
JPEG, PNG, WEBP;
|
||||
private CompressFormat() {}
|
||||
}
|
||||
static public enum Config
|
||||
{
|
||||
ALPHA_8, ARGB_4444, ARGB_8888, HARDWARE, RGBA_F16, RGB_565;
|
||||
private Config() {}
|
||||
}
|
||||
}
|
||||
54
java/ql/test/stubs/google-android-9.0.0/android/graphics/BitmapFactory.java
generated
Normal file
54
java/ql/test/stubs/google-android-9.0.0/android/graphics/BitmapFactory.java
generated
Normal file
@@ -0,0 +1,54 @@
|
||||
// Generated automatically from android.graphics.BitmapFactory for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.ColorSpace;
|
||||
import android.graphics.Rect;
|
||||
import android.util.TypedValue;
|
||||
import java.io.FileDescriptor;
|
||||
import java.io.InputStream;
|
||||
|
||||
public class BitmapFactory
|
||||
{
|
||||
public BitmapFactory(){}
|
||||
public static Bitmap decodeByteArray(byte[] p0, int p1, int p2){ return null; }
|
||||
public static Bitmap decodeByteArray(byte[] p0, int p1, int p2, BitmapFactory.Options p3){ return null; }
|
||||
public static Bitmap decodeFile(String p0){ return null; }
|
||||
public static Bitmap decodeFile(String p0, BitmapFactory.Options p1){ return null; }
|
||||
public static Bitmap decodeFileDescriptor(FileDescriptor p0){ return null; }
|
||||
public static Bitmap decodeFileDescriptor(FileDescriptor p0, Rect p1, BitmapFactory.Options p2){ return null; }
|
||||
public static Bitmap decodeResource(Resources p0, int p1){ return null; }
|
||||
public static Bitmap decodeResource(Resources p0, int p1, BitmapFactory.Options p2){ return null; }
|
||||
public static Bitmap decodeResourceStream(Resources p0, TypedValue p1, InputStream p2, Rect p3, BitmapFactory.Options p4){ return null; }
|
||||
public static Bitmap decodeStream(InputStream p0){ return null; }
|
||||
public static Bitmap decodeStream(InputStream p0, Rect p1, BitmapFactory.Options p2){ return null; }
|
||||
static public class Options
|
||||
{
|
||||
public Bitmap inBitmap = null;
|
||||
public Bitmap.Config inPreferredConfig = null;
|
||||
public Bitmap.Config outConfig = null;
|
||||
public ColorSpace inPreferredColorSpace = null;
|
||||
public ColorSpace outColorSpace = null;
|
||||
public Options(){}
|
||||
public String outMimeType = null;
|
||||
public boolean inDither = false;
|
||||
public boolean inInputShareable = false;
|
||||
public boolean inJustDecodeBounds = false;
|
||||
public boolean inMutable = false;
|
||||
public boolean inPreferQualityOverSpeed = false;
|
||||
public boolean inPremultiplied = false;
|
||||
public boolean inPurgeable = false;
|
||||
public boolean inScaled = false;
|
||||
public boolean mCancel = false;
|
||||
public byte[] inTempStorage = null;
|
||||
public int inDensity = 0;
|
||||
public int inSampleSize = 0;
|
||||
public int inScreenDensity = 0;
|
||||
public int inTargetDensity = 0;
|
||||
public int outHeight = 0;
|
||||
public int outWidth = 0;
|
||||
public void requestCancelDecode(){}
|
||||
}
|
||||
}
|
||||
10
java/ql/test/stubs/google-android-9.0.0/android/graphics/BlendMode.java
generated
Normal file
10
java/ql/test/stubs/google-android-9.0.0/android/graphics/BlendMode.java
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from android.graphics.BlendMode for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
|
||||
public enum BlendMode
|
||||
{
|
||||
CLEAR, COLOR, COLOR_BURN, COLOR_DODGE, DARKEN, DIFFERENCE, DST, DST_ATOP, DST_IN, DST_OUT, DST_OVER, EXCLUSION, HARD_LIGHT, HUE, LIGHTEN, LUMINOSITY, MODULATE, MULTIPLY, OVERLAY, PLUS, SATURATION, SCREEN, SOFT_LIGHT, SRC, SRC_ATOP, SRC_IN, SRC_OUT, SRC_OVER, XOR;
|
||||
private BlendMode() {}
|
||||
}
|
||||
138
java/ql/test/stubs/google-android-9.0.0/android/graphics/Canvas.java
generated
Normal file
138
java/ql/test/stubs/google-android-9.0.0/android/graphics/Canvas.java
generated
Normal file
@@ -0,0 +1,138 @@
|
||||
// Generated automatically from android.graphics.Canvas for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BlendMode;
|
||||
import android.graphics.DrawFilter;
|
||||
import android.graphics.Matrix;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.Path;
|
||||
import android.graphics.Picture;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.graphics.Region;
|
||||
import android.graphics.RenderNode;
|
||||
import android.graphics.text.MeasuredText;
|
||||
|
||||
public class Canvas
|
||||
{
|
||||
public Canvas(){}
|
||||
public Canvas(Bitmap p0){}
|
||||
public DrawFilter getDrawFilter(){ return null; }
|
||||
public boolean clipOutPath(Path p0){ return false; }
|
||||
public boolean clipOutRect(Rect p0){ return false; }
|
||||
public boolean clipOutRect(RectF p0){ return false; }
|
||||
public boolean clipOutRect(float p0, float p1, float p2, float p3){ return false; }
|
||||
public boolean clipOutRect(int p0, int p1, int p2, int p3){ return false; }
|
||||
public boolean clipPath(Path p0){ return false; }
|
||||
public boolean clipPath(Path p0, Region.Op p1){ return false; }
|
||||
public boolean clipRect(Rect p0){ return false; }
|
||||
public boolean clipRect(Rect p0, Region.Op p1){ return false; }
|
||||
public boolean clipRect(RectF p0){ return false; }
|
||||
public boolean clipRect(RectF p0, Region.Op p1){ return false; }
|
||||
public boolean clipRect(float p0, float p1, float p2, float p3){ return false; }
|
||||
public boolean clipRect(float p0, float p1, float p2, float p3, Region.Op p4){ return false; }
|
||||
public boolean clipRect(int p0, int p1, int p2, int p3){ return false; }
|
||||
public boolean getClipBounds(Rect p0){ return false; }
|
||||
public boolean isHardwareAccelerated(){ return false; }
|
||||
public boolean isOpaque(){ return false; }
|
||||
public boolean quickReject(Path p0, Canvas.EdgeType p1){ return false; }
|
||||
public boolean quickReject(RectF p0, Canvas.EdgeType p1){ return false; }
|
||||
public boolean quickReject(float p0, float p1, float p2, float p3, Canvas.EdgeType p4){ return false; }
|
||||
public final Matrix getMatrix(){ return null; }
|
||||
public final Rect getClipBounds(){ return null; }
|
||||
public final void rotate(float p0, float p1, float p2){}
|
||||
public final void scale(float p0, float p1, float p2, float p3){}
|
||||
public int getDensity(){ return 0; }
|
||||
public int getHeight(){ return 0; }
|
||||
public int getMaximumBitmapHeight(){ return 0; }
|
||||
public int getMaximumBitmapWidth(){ return 0; }
|
||||
public int getSaveCount(){ return 0; }
|
||||
public int getWidth(){ return 0; }
|
||||
public int save(){ return 0; }
|
||||
public int saveLayer(RectF p0, Paint p1){ return 0; }
|
||||
public int saveLayer(RectF p0, Paint p1, int p2){ return 0; }
|
||||
public int saveLayer(float p0, float p1, float p2, float p3, Paint p4){ return 0; }
|
||||
public int saveLayer(float p0, float p1, float p2, float p3, Paint p4, int p5){ return 0; }
|
||||
public int saveLayerAlpha(RectF p0, int p1){ return 0; }
|
||||
public int saveLayerAlpha(RectF p0, int p1, int p2){ return 0; }
|
||||
public int saveLayerAlpha(float p0, float p1, float p2, float p3, int p4){ return 0; }
|
||||
public int saveLayerAlpha(float p0, float p1, float p2, float p3, int p4, int p5){ return 0; }
|
||||
public static int ALL_SAVE_FLAG = 0;
|
||||
public void concat(Matrix p0){}
|
||||
public void disableZ(){}
|
||||
public void drawARGB(int p0, int p1, int p2, int p3){}
|
||||
public void drawArc(RectF p0, float p1, float p2, boolean p3, Paint p4){}
|
||||
public void drawArc(float p0, float p1, float p2, float p3, float p4, float p5, boolean p6, Paint p7){}
|
||||
public void drawBitmap(Bitmap p0, Matrix p1, Paint p2){}
|
||||
public void drawBitmap(Bitmap p0, Rect p1, Rect p2, Paint p3){}
|
||||
public void drawBitmap(Bitmap p0, Rect p1, RectF p2, Paint p3){}
|
||||
public void drawBitmap(Bitmap p0, float p1, float p2, Paint p3){}
|
||||
public void drawBitmap(int[] p0, int p1, int p2, float p3, float p4, int p5, int p6, boolean p7, Paint p8){}
|
||||
public void drawBitmap(int[] p0, int p1, int p2, int p3, int p4, int p5, int p6, boolean p7, Paint p8){}
|
||||
public void drawBitmapMesh(Bitmap p0, int p1, int p2, float[] p3, int p4, int[] p5, int p6, Paint p7){}
|
||||
public void drawCircle(float p0, float p1, float p2, Paint p3){}
|
||||
public void drawColor(int p0){}
|
||||
public void drawColor(int p0, BlendMode p1){}
|
||||
public void drawColor(int p0, PorterDuff.Mode p1){}
|
||||
public void drawColor(long p0){}
|
||||
public void drawColor(long p0, BlendMode p1){}
|
||||
public void drawDoubleRoundRect(RectF p0, float p1, float p2, RectF p3, float p4, float p5, Paint p6){}
|
||||
public void drawDoubleRoundRect(RectF p0, float[] p1, RectF p2, float[] p3, Paint p4){}
|
||||
public void drawLine(float p0, float p1, float p2, float p3, Paint p4){}
|
||||
public void drawLines(float[] p0, Paint p1){}
|
||||
public void drawLines(float[] p0, int p1, int p2, Paint p3){}
|
||||
public void drawOval(RectF p0, Paint p1){}
|
||||
public void drawOval(float p0, float p1, float p2, float p3, Paint p4){}
|
||||
public void drawPaint(Paint p0){}
|
||||
public void drawPath(Path p0, Paint p1){}
|
||||
public void drawPicture(Picture p0){}
|
||||
public void drawPicture(Picture p0, Rect p1){}
|
||||
public void drawPicture(Picture p0, RectF p1){}
|
||||
public void drawPoint(float p0, float p1, Paint p2){}
|
||||
public void drawPoints(float[] p0, Paint p1){}
|
||||
public void drawPoints(float[] p0, int p1, int p2, Paint p3){}
|
||||
public void drawPosText(String p0, float[] p1, Paint p2){}
|
||||
public void drawPosText(char[] p0, int p1, int p2, float[] p3, Paint p4){}
|
||||
public void drawRGB(int p0, int p1, int p2){}
|
||||
public void drawRect(Rect p0, Paint p1){}
|
||||
public void drawRect(RectF p0, Paint p1){}
|
||||
public void drawRect(float p0, float p1, float p2, float p3, Paint p4){}
|
||||
public void drawRenderNode(RenderNode p0){}
|
||||
public void drawRoundRect(RectF p0, float p1, float p2, Paint p3){}
|
||||
public void drawRoundRect(float p0, float p1, float p2, float p3, float p4, float p5, Paint p6){}
|
||||
public void drawText(CharSequence p0, int p1, int p2, float p3, float p4, Paint p5){}
|
||||
public void drawText(String p0, float p1, float p2, Paint p3){}
|
||||
public void drawText(String p0, int p1, int p2, float p3, float p4, Paint p5){}
|
||||
public void drawText(char[] p0, int p1, int p2, float p3, float p4, Paint p5){}
|
||||
public void drawTextOnPath(String p0, Path p1, float p2, float p3, Paint p4){}
|
||||
public void drawTextOnPath(char[] p0, int p1, int p2, Path p3, float p4, float p5, Paint p6){}
|
||||
public void drawTextRun(CharSequence p0, int p1, int p2, int p3, int p4, float p5, float p6, boolean p7, Paint p8){}
|
||||
public void drawTextRun(MeasuredText p0, int p1, int p2, int p3, int p4, float p5, float p6, boolean p7, Paint p8){}
|
||||
public void drawTextRun(char[] p0, int p1, int p2, int p3, int p4, float p5, float p6, boolean p7, Paint p8){}
|
||||
public void drawVertices(Canvas.VertexMode p0, int p1, float[] p2, int p3, float[] p4, int p5, int[] p6, int p7, short[] p8, int p9, int p10, Paint p11){}
|
||||
public void enableZ(){}
|
||||
public void getMatrix(Matrix p0){}
|
||||
public void restore(){}
|
||||
public void restoreToCount(int p0){}
|
||||
public void rotate(float p0){}
|
||||
public void scale(float p0, float p1){}
|
||||
public void setBitmap(Bitmap p0){}
|
||||
public void setDensity(int p0){}
|
||||
public void setDrawFilter(DrawFilter p0){}
|
||||
public void setMatrix(Matrix p0){}
|
||||
public void skew(float p0, float p1){}
|
||||
public void translate(float p0, float p1){}
|
||||
static public enum EdgeType
|
||||
{
|
||||
AA, BW;
|
||||
private EdgeType() {}
|
||||
}
|
||||
static public enum VertexMode
|
||||
{
|
||||
TRIANGLES, TRIANGLE_FAN, TRIANGLE_STRIP;
|
||||
private VertexMode() {}
|
||||
}
|
||||
}
|
||||
80
java/ql/test/stubs/google-android-9.0.0/android/graphics/Color.java
generated
Normal file
80
java/ql/test/stubs/google-android-9.0.0/android/graphics/Color.java
generated
Normal file
@@ -0,0 +1,80 @@
|
||||
// Generated automatically from android.graphics.Color for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.graphics.ColorSpace;
|
||||
|
||||
public class Color
|
||||
{
|
||||
public Color convert(ColorSpace p0){ return null; }
|
||||
public Color(){}
|
||||
public ColorSpace getColorSpace(){ return null; }
|
||||
public ColorSpace.Model getModel(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public boolean isSrgb(){ return false; }
|
||||
public boolean isWideGamut(){ return false; }
|
||||
public float alpha(){ return 0; }
|
||||
public float blue(){ return 0; }
|
||||
public float getComponent(int p0){ return 0; }
|
||||
public float green(){ return 0; }
|
||||
public float luminance(){ return 0; }
|
||||
public float red(){ return 0; }
|
||||
public float[] getComponents(){ return null; }
|
||||
public float[] getComponents(float[] p0){ return null; }
|
||||
public int getComponentCount(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public int toArgb(){ return 0; }
|
||||
public long pack(){ return 0; }
|
||||
public static Color valueOf(float p0, float p1, float p2){ return null; }
|
||||
public static Color valueOf(float p0, float p1, float p2, float p3){ return null; }
|
||||
public static Color valueOf(float p0, float p1, float p2, float p3, ColorSpace p4){ return null; }
|
||||
public static Color valueOf(float[] p0, ColorSpace p1){ return null; }
|
||||
public static Color valueOf(int p0){ return null; }
|
||||
public static Color valueOf(long p0){ return null; }
|
||||
public static ColorSpace colorSpace(long p0){ return null; }
|
||||
public static boolean isInColorSpace(long p0, ColorSpace p1){ return false; }
|
||||
public static boolean isSrgb(long p0){ return false; }
|
||||
public static boolean isWideGamut(long p0){ return false; }
|
||||
public static float alpha(long p0){ return 0; }
|
||||
public static float blue(long p0){ return 0; }
|
||||
public static float green(long p0){ return 0; }
|
||||
public static float luminance(int p0){ return 0; }
|
||||
public static float luminance(long p0){ return 0; }
|
||||
public static float red(long p0){ return 0; }
|
||||
public static int BLACK = 0;
|
||||
public static int BLUE = 0;
|
||||
public static int CYAN = 0;
|
||||
public static int DKGRAY = 0;
|
||||
public static int GRAY = 0;
|
||||
public static int GREEN = 0;
|
||||
public static int HSVToColor(float[] p0){ return 0; }
|
||||
public static int HSVToColor(int p0, float[] p1){ return 0; }
|
||||
public static int LTGRAY = 0;
|
||||
public static int MAGENTA = 0;
|
||||
public static int RED = 0;
|
||||
public static int TRANSPARENT = 0;
|
||||
public static int WHITE = 0;
|
||||
public static int YELLOW = 0;
|
||||
public static int alpha(int p0){ return 0; }
|
||||
public static int argb(float p0, float p1, float p2, float p3){ return 0; }
|
||||
public static int argb(int p0, int p1, int p2, int p3){ return 0; }
|
||||
public static int blue(int p0){ return 0; }
|
||||
public static int green(int p0){ return 0; }
|
||||
public static int parseColor(String p0){ return 0; }
|
||||
public static int red(int p0){ return 0; }
|
||||
public static int rgb(float p0, float p1, float p2){ return 0; }
|
||||
public static int rgb(int p0, int p1, int p2){ return 0; }
|
||||
public static int toArgb(long p0){ return 0; }
|
||||
public static long convert(float p0, float p1, float p2, float p3, ColorSpace p4, ColorSpace p5){ return 0; }
|
||||
public static long convert(float p0, float p1, float p2, float p3, ColorSpace.Connector p4){ return 0; }
|
||||
public static long convert(int p0, ColorSpace p1){ return 0; }
|
||||
public static long convert(long p0, ColorSpace p1){ return 0; }
|
||||
public static long convert(long p0, ColorSpace.Connector p1){ return 0; }
|
||||
public static long pack(float p0, float p1, float p2){ return 0; }
|
||||
public static long pack(float p0, float p1, float p2, float p3){ return 0; }
|
||||
public static long pack(float p0, float p1, float p2, float p3, ColorSpace p4){ return 0; }
|
||||
public static long pack(int p0){ return 0; }
|
||||
public static void RGBToHSV(int p0, int p1, int p2, float[] p3){}
|
||||
public static void colorToHSV(int p0, float[] p1){}
|
||||
}
|
||||
9
java/ql/test/stubs/google-android-9.0.0/android/graphics/ColorFilter.java
generated
Normal file
9
java/ql/test/stubs/google-android-9.0.0/android/graphics/ColorFilter.java
generated
Normal file
@@ -0,0 +1,9 @@
|
||||
// Generated automatically from android.graphics.ColorFilter for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
|
||||
public class ColorFilter
|
||||
{
|
||||
public ColorFilter(){}
|
||||
}
|
||||
122
java/ql/test/stubs/google-android-9.0.0/android/graphics/ColorSpace.java
generated
Normal file
122
java/ql/test/stubs/google-android-9.0.0/android/graphics/ColorSpace.java
generated
Normal file
@@ -0,0 +1,122 @@
|
||||
// Generated automatically from android.graphics.ColorSpace for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import java.util.function.DoubleUnaryOperator;
|
||||
|
||||
abstract public class ColorSpace
|
||||
{
|
||||
protected ColorSpace() {}
|
||||
public ColorSpace.Model getModel(){ return null; }
|
||||
public String getName(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public abstract boolean isWideGamut();
|
||||
public abstract float getMaxValue(int p0);
|
||||
public abstract float getMinValue(int p0);
|
||||
public abstract float[] fromXyz(float[] p0);
|
||||
public abstract float[] toXyz(float[] p0);
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public boolean isSrgb(){ return false; }
|
||||
public float[] fromXyz(float p0, float p1, float p2){ return null; }
|
||||
public float[] toXyz(float p0, float p1, float p2){ return null; }
|
||||
public int getComponentCount(){ return 0; }
|
||||
public int getId(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static ColorSpace adapt(ColorSpace p0, float[] p1){ return null; }
|
||||
public static ColorSpace adapt(ColorSpace p0, float[] p1, ColorSpace.Adaptation p2){ return null; }
|
||||
public static ColorSpace get(ColorSpace.Named p0){ return null; }
|
||||
public static ColorSpace match(float[] p0, ColorSpace.Rgb.TransferParameters p1){ return null; }
|
||||
public static ColorSpace.Connector connect(ColorSpace p0){ return null; }
|
||||
public static ColorSpace.Connector connect(ColorSpace p0, ColorSpace p1){ return null; }
|
||||
public static ColorSpace.Connector connect(ColorSpace p0, ColorSpace p1, ColorSpace.RenderIntent p2){ return null; }
|
||||
public static ColorSpace.Connector connect(ColorSpace p0, ColorSpace.RenderIntent p1){ return null; }
|
||||
public static float[] ILLUMINANT_A = null;
|
||||
public static float[] ILLUMINANT_B = null;
|
||||
public static float[] ILLUMINANT_C = null;
|
||||
public static float[] ILLUMINANT_D50 = null;
|
||||
public static float[] ILLUMINANT_D55 = null;
|
||||
public static float[] ILLUMINANT_D60 = null;
|
||||
public static float[] ILLUMINANT_D65 = null;
|
||||
public static float[] ILLUMINANT_D75 = null;
|
||||
public static float[] ILLUMINANT_E = null;
|
||||
public static int MAX_ID = 0;
|
||||
public static int MIN_ID = 0;
|
||||
static public class Connector
|
||||
{
|
||||
protected Connector() {}
|
||||
public ColorSpace getDestination(){ return null; }
|
||||
public ColorSpace getSource(){ return null; }
|
||||
public ColorSpace.RenderIntent getRenderIntent(){ return null; }
|
||||
public float[] transform(float p0, float p1, float p2){ return null; }
|
||||
public float[] transform(float[] p0){ return null; }
|
||||
}
|
||||
static public class Rgb extends ColorSpace
|
||||
{
|
||||
protected Rgb() {}
|
||||
public ColorSpace.Rgb.TransferParameters getTransferParameters(){ return null; }
|
||||
public DoubleUnaryOperator getEotf(){ return null; }
|
||||
public DoubleUnaryOperator getOetf(){ return null; }
|
||||
public Rgb(String p0, float[] p1, ColorSpace.Rgb.TransferParameters p2){}
|
||||
public Rgb(String p0, float[] p1, DoubleUnaryOperator p2, DoubleUnaryOperator p3){}
|
||||
public Rgb(String p0, float[] p1, double p2){}
|
||||
public Rgb(String p0, float[] p1, float[] p2, ColorSpace.Rgb.TransferParameters p3){}
|
||||
public Rgb(String p0, float[] p1, float[] p2, DoubleUnaryOperator p3, DoubleUnaryOperator p4, float p5, float p6){}
|
||||
public Rgb(String p0, float[] p1, float[] p2, double p3){}
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public boolean isSrgb(){ return false; }
|
||||
public boolean isWideGamut(){ return false; }
|
||||
public float getMaxValue(int p0){ return 0; }
|
||||
public float getMinValue(int p0){ return 0; }
|
||||
public float[] fromLinear(float p0, float p1, float p2){ return null; }
|
||||
public float[] fromLinear(float[] p0){ return null; }
|
||||
public float[] fromXyz(float[] p0){ return null; }
|
||||
public float[] getInverseTransform(){ return null; }
|
||||
public float[] getInverseTransform(float[] p0){ return null; }
|
||||
public float[] getPrimaries(){ return null; }
|
||||
public float[] getPrimaries(float[] p0){ return null; }
|
||||
public float[] getTransform(){ return null; }
|
||||
public float[] getTransform(float[] p0){ return null; }
|
||||
public float[] getWhitePoint(){ return null; }
|
||||
public float[] getWhitePoint(float[] p0){ return null; }
|
||||
public float[] toLinear(float p0, float p1, float p2){ return null; }
|
||||
public float[] toLinear(float[] p0){ return null; }
|
||||
public float[] toXyz(float[] p0){ return null; }
|
||||
public int hashCode(){ return 0; }
|
||||
static public class TransferParameters
|
||||
{
|
||||
protected TransferParameters() {}
|
||||
public TransferParameters(double p0, double p1, double p2, double p3, double p4){}
|
||||
public TransferParameters(double p0, double p1, double p2, double p3, double p4, double p5, double p6){}
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public final double a = 0;
|
||||
public final double b = 0;
|
||||
public final double c = 0;
|
||||
public final double d = 0;
|
||||
public final double e = 0;
|
||||
public final double f = 0;
|
||||
public final double g = 0;
|
||||
public int hashCode(){ return 0; }
|
||||
}
|
||||
}
|
||||
static public enum Adaptation
|
||||
{
|
||||
BRADFORD, CIECAT02, VON_KRIES;
|
||||
private Adaptation() {}
|
||||
}
|
||||
static public enum Model
|
||||
{
|
||||
CMYK, LAB, RGB, XYZ;
|
||||
private Model() {}
|
||||
public int getComponentCount(){ return 0; }
|
||||
}
|
||||
static public enum Named
|
||||
{
|
||||
ACES, ACESCG, ADOBE_RGB, BT2020, BT709, CIE_LAB, CIE_XYZ, DCI_P3, DISPLAY_P3, EXTENDED_SRGB, LINEAR_EXTENDED_SRGB, LINEAR_SRGB, NTSC_1953, PRO_PHOTO_RGB, SMPTE_C, SRGB;
|
||||
private Named() {}
|
||||
}
|
||||
static public enum RenderIntent
|
||||
{
|
||||
ABSOLUTE, PERCEPTUAL, RELATIVE, SATURATION;
|
||||
private RenderIntent() {}
|
||||
}
|
||||
}
|
||||
10
java/ql/test/stubs/google-android-9.0.0/android/graphics/DrawFilter.java
generated
Normal file
10
java/ql/test/stubs/google-android-9.0.0/android/graphics/DrawFilter.java
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from android.graphics.DrawFilter for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
|
||||
public class DrawFilter
|
||||
{
|
||||
protected void finalize(){}
|
||||
public DrawFilter(){}
|
||||
}
|
||||
29
java/ql/test/stubs/google-android-9.0.0/android/graphics/Insets.java
generated
Normal file
29
java/ql/test/stubs/google-android-9.0.0/android/graphics/Insets.java
generated
Normal file
@@ -0,0 +1,29 @@
|
||||
// Generated automatically from android.graphics.Insets for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.graphics.Rect;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
public class Insets implements Parcelable
|
||||
{
|
||||
protected Insets() {}
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public final int bottom = 0;
|
||||
public final int left = 0;
|
||||
public final int right = 0;
|
||||
public final int top = 0;
|
||||
public int describeContents(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static Insets NONE = null;
|
||||
public static Insets add(Insets p0, Insets p1){ return null; }
|
||||
public static Insets max(Insets p0, Insets p1){ return null; }
|
||||
public static Insets min(Insets p0, Insets p1){ return null; }
|
||||
public static Insets of(Rect p0){ return null; }
|
||||
public static Insets of(int p0, int p1, int p2, int p3){ return null; }
|
||||
public static Insets subtract(Insets p0, Insets p1){ return null; }
|
||||
public static Parcelable.Creator<Insets> CREATOR = null;
|
||||
public void writeToParcel(Parcel p0, int p1){}
|
||||
}
|
||||
10
java/ql/test/stubs/google-android-9.0.0/android/graphics/MaskFilter.java
generated
Normal file
10
java/ql/test/stubs/google-android-9.0.0/android/graphics/MaskFilter.java
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from android.graphics.MaskFilter for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
|
||||
public class MaskFilter
|
||||
{
|
||||
protected void finalize(){}
|
||||
public MaskFilter(){}
|
||||
}
|
||||
74
java/ql/test/stubs/google-android-9.0.0/android/graphics/Matrix.java
generated
Normal file
74
java/ql/test/stubs/google-android-9.0.0/android/graphics/Matrix.java
generated
Normal file
@@ -0,0 +1,74 @@
|
||||
// Generated automatically from android.graphics.Matrix for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.graphics.RectF;
|
||||
|
||||
public class Matrix
|
||||
{
|
||||
public Matrix(){}
|
||||
public Matrix(Matrix p0){}
|
||||
public String toShortString(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public boolean invert(Matrix p0){ return false; }
|
||||
public boolean isAffine(){ return false; }
|
||||
public boolean isIdentity(){ return false; }
|
||||
public boolean mapRect(RectF p0){ return false; }
|
||||
public boolean mapRect(RectF p0, RectF p1){ return false; }
|
||||
public boolean postConcat(Matrix p0){ return false; }
|
||||
public boolean postRotate(float p0){ return false; }
|
||||
public boolean postRotate(float p0, float p1, float p2){ return false; }
|
||||
public boolean postScale(float p0, float p1){ return false; }
|
||||
public boolean postScale(float p0, float p1, float p2, float p3){ return false; }
|
||||
public boolean postSkew(float p0, float p1){ return false; }
|
||||
public boolean postSkew(float p0, float p1, float p2, float p3){ return false; }
|
||||
public boolean postTranslate(float p0, float p1){ return false; }
|
||||
public boolean preConcat(Matrix p0){ return false; }
|
||||
public boolean preRotate(float p0){ return false; }
|
||||
public boolean preRotate(float p0, float p1, float p2){ return false; }
|
||||
public boolean preScale(float p0, float p1){ return false; }
|
||||
public boolean preScale(float p0, float p1, float p2, float p3){ return false; }
|
||||
public boolean preSkew(float p0, float p1){ return false; }
|
||||
public boolean preSkew(float p0, float p1, float p2, float p3){ return false; }
|
||||
public boolean preTranslate(float p0, float p1){ return false; }
|
||||
public boolean rectStaysRect(){ return false; }
|
||||
public boolean setConcat(Matrix p0, Matrix p1){ return false; }
|
||||
public boolean setPolyToPoly(float[] p0, int p1, float[] p2, int p3, int p4){ return false; }
|
||||
public boolean setRectToRect(RectF p0, RectF p1, Matrix.ScaleToFit p2){ return false; }
|
||||
public float mapRadius(float p0){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static int MPERSP_0 = 0;
|
||||
public static int MPERSP_1 = 0;
|
||||
public static int MPERSP_2 = 0;
|
||||
public static int MSCALE_X = 0;
|
||||
public static int MSCALE_Y = 0;
|
||||
public static int MSKEW_X = 0;
|
||||
public static int MSKEW_Y = 0;
|
||||
public static int MTRANS_X = 0;
|
||||
public static int MTRANS_Y = 0;
|
||||
public void getValues(float[] p0){}
|
||||
public void mapPoints(float[] p0){}
|
||||
public void mapPoints(float[] p0, float[] p1){}
|
||||
public void mapPoints(float[] p0, int p1, float[] p2, int p3, int p4){}
|
||||
public void mapVectors(float[] p0){}
|
||||
public void mapVectors(float[] p0, float[] p1){}
|
||||
public void mapVectors(float[] p0, int p1, float[] p2, int p3, int p4){}
|
||||
public void reset(){}
|
||||
public void set(Matrix p0){}
|
||||
public void setRotate(float p0){}
|
||||
public void setRotate(float p0, float p1, float p2){}
|
||||
public void setScale(float p0, float p1){}
|
||||
public void setScale(float p0, float p1, float p2, float p3){}
|
||||
public void setSinCos(float p0, float p1){}
|
||||
public void setSinCos(float p0, float p1, float p2, float p3){}
|
||||
public void setSkew(float p0, float p1){}
|
||||
public void setSkew(float p0, float p1, float p2, float p3){}
|
||||
public void setTranslate(float p0, float p1){}
|
||||
public void setValues(float[] p0){}
|
||||
static public enum ScaleToFit
|
||||
{
|
||||
CENTER, END, FILL, START;
|
||||
private ScaleToFit() {}
|
||||
}
|
||||
}
|
||||
23
java/ql/test/stubs/google-android-9.0.0/android/graphics/Movie.java
generated
Normal file
23
java/ql/test/stubs/google-android-9.0.0/android/graphics/Movie.java
generated
Normal file
@@ -0,0 +1,23 @@
|
||||
// Generated automatically from android.graphics.Movie for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Paint;
|
||||
import java.io.InputStream;
|
||||
|
||||
public class Movie
|
||||
{
|
||||
protected Movie() {}
|
||||
protected void finalize(){}
|
||||
public boolean isOpaque(){ return false; }
|
||||
public boolean setTime(int p0){ return false; }
|
||||
public int duration(){ return 0; }
|
||||
public int height(){ return 0; }
|
||||
public int width(){ return 0; }
|
||||
public static Movie decodeByteArray(byte[] p0, int p1, int p2){ return null; }
|
||||
public static Movie decodeFile(String p0){ return null; }
|
||||
public static Movie decodeStream(InputStream p0){ return null; }
|
||||
public void draw(Canvas p0, float p1, float p2){}
|
||||
public void draw(Canvas p0, float p1, float p2, Paint p3){}
|
||||
}
|
||||
31
java/ql/test/stubs/google-android-9.0.0/android/graphics/NinePatch.java
generated
Normal file
31
java/ql/test/stubs/google-android-9.0.0/android/graphics/NinePatch.java
generated
Normal file
@@ -0,0 +1,31 @@
|
||||
// Generated automatically from android.graphics.NinePatch for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.graphics.Region;
|
||||
|
||||
public class NinePatch
|
||||
{
|
||||
protected NinePatch() {}
|
||||
protected void finalize(){}
|
||||
public Bitmap getBitmap(){ return null; }
|
||||
public NinePatch(Bitmap p0, byte[] p1){}
|
||||
public NinePatch(Bitmap p0, byte[] p1, String p2){}
|
||||
public Paint getPaint(){ return null; }
|
||||
public String getName(){ return null; }
|
||||
public final Region getTransparentRegion(Rect p0){ return null; }
|
||||
public final boolean hasAlpha(){ return false; }
|
||||
public int getDensity(){ return 0; }
|
||||
public int getHeight(){ return 0; }
|
||||
public int getWidth(){ return 0; }
|
||||
public static boolean isNinePatchChunk(byte[] p0){ return false; }
|
||||
public void draw(Canvas p0, Rect p1){}
|
||||
public void draw(Canvas p0, Rect p1, Paint p2){}
|
||||
public void draw(Canvas p0, RectF p1){}
|
||||
public void setPaint(Paint p0){}
|
||||
}
|
||||
28
java/ql/test/stubs/google-android-9.0.0/android/graphics/Outline.java
generated
Normal file
28
java/ql/test/stubs/google-android-9.0.0/android/graphics/Outline.java
generated
Normal file
@@ -0,0 +1,28 @@
|
||||
// Generated automatically from android.graphics.Outline for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.graphics.Path;
|
||||
import android.graphics.Rect;
|
||||
|
||||
public class Outline
|
||||
{
|
||||
public Outline(){}
|
||||
public Outline(Outline p0){}
|
||||
public boolean canClip(){ return false; }
|
||||
public boolean getRect(Rect p0){ return false; }
|
||||
public boolean isEmpty(){ return false; }
|
||||
public float getAlpha(){ return 0; }
|
||||
public float getRadius(){ return 0; }
|
||||
public void offset(int p0, int p1){}
|
||||
public void set(Outline p0){}
|
||||
public void setAlpha(float p0){}
|
||||
public void setConvexPath(Path p0){}
|
||||
public void setEmpty(){}
|
||||
public void setOval(Rect p0){}
|
||||
public void setOval(int p0, int p1, int p2, int p3){}
|
||||
public void setRect(Rect p0){}
|
||||
public void setRect(int p0, int p1, int p2, int p3){}
|
||||
public void setRoundRect(Rect p0, float p1){}
|
||||
public void setRoundRect(int p0, int p1, int p2, int p3, float p4){}
|
||||
}
|
||||
212
java/ql/test/stubs/google-android-9.0.0/android/graphics/Paint.java
generated
Normal file
212
java/ql/test/stubs/google-android-9.0.0/android/graphics/Paint.java
generated
Normal file
@@ -0,0 +1,212 @@
|
||||
// Generated automatically from android.graphics.Paint for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.graphics.BlendMode;
|
||||
import android.graphics.ColorFilter;
|
||||
import android.graphics.MaskFilter;
|
||||
import android.graphics.Path;
|
||||
import android.graphics.PathEffect;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.Shader;
|
||||
import android.graphics.Typeface;
|
||||
import android.graphics.Xfermode;
|
||||
import android.os.LocaleList;
|
||||
import java.util.Locale;
|
||||
|
||||
public class Paint
|
||||
{
|
||||
public BlendMode getBlendMode(){ return null; }
|
||||
public ColorFilter getColorFilter(){ return null; }
|
||||
public ColorFilter setColorFilter(ColorFilter p0){ return null; }
|
||||
public Locale getTextLocale(){ return null; }
|
||||
public LocaleList getTextLocales(){ return null; }
|
||||
public MaskFilter getMaskFilter(){ return null; }
|
||||
public MaskFilter setMaskFilter(MaskFilter p0){ return null; }
|
||||
public Paint(){}
|
||||
public Paint(Paint p0){}
|
||||
public Paint(int p0){}
|
||||
public Paint.Align getTextAlign(){ return null; }
|
||||
public Paint.Cap getStrokeCap(){ return null; }
|
||||
public Paint.FontMetrics getFontMetrics(){ return null; }
|
||||
public Paint.FontMetricsInt getFontMetricsInt(){ return null; }
|
||||
public Paint.Join getStrokeJoin(){ return null; }
|
||||
public Paint.Style getStyle(){ return null; }
|
||||
public PathEffect getPathEffect(){ return null; }
|
||||
public PathEffect setPathEffect(PathEffect p0){ return null; }
|
||||
public Shader getShader(){ return null; }
|
||||
public Shader setShader(Shader p0){ return null; }
|
||||
public String getFontFeatureSettings(){ return null; }
|
||||
public String getFontVariationSettings(){ return null; }
|
||||
public Typeface getTypeface(){ return null; }
|
||||
public Typeface setTypeface(Typeface p0){ return null; }
|
||||
public Xfermode getXfermode(){ return null; }
|
||||
public Xfermode setXfermode(Xfermode p0){ return null; }
|
||||
public boolean equalsForTextMeasurement(Paint p0){ return false; }
|
||||
public boolean getFillPath(Path p0, Path p1){ return false; }
|
||||
public boolean hasGlyph(String p0){ return false; }
|
||||
public boolean isElegantTextHeight(){ return false; }
|
||||
public boolean setFontVariationSettings(String p0){ return false; }
|
||||
public final boolean isAntiAlias(){ return false; }
|
||||
public final boolean isDither(){ return false; }
|
||||
public final boolean isFakeBoldText(){ return false; }
|
||||
public final boolean isFilterBitmap(){ return false; }
|
||||
public final boolean isLinearText(){ return false; }
|
||||
public final boolean isStrikeThruText(){ return false; }
|
||||
public final boolean isSubpixelText(){ return false; }
|
||||
public final boolean isUnderlineText(){ return false; }
|
||||
public float ascent(){ return 0; }
|
||||
public float descent(){ return 0; }
|
||||
public float getFontMetrics(Paint.FontMetrics p0){ return 0; }
|
||||
public float getFontSpacing(){ return 0; }
|
||||
public float getLetterSpacing(){ return 0; }
|
||||
public float getRunAdvance(CharSequence p0, int p1, int p2, int p3, int p4, boolean p5, int p6){ return 0; }
|
||||
public float getRunAdvance(char[] p0, int p1, int p2, int p3, int p4, boolean p5, int p6){ return 0; }
|
||||
public float getShadowLayerDx(){ return 0; }
|
||||
public float getShadowLayerDy(){ return 0; }
|
||||
public float getShadowLayerRadius(){ return 0; }
|
||||
public float getStrikeThruPosition(){ return 0; }
|
||||
public float getStrikeThruThickness(){ return 0; }
|
||||
public float getStrokeMiter(){ return 0; }
|
||||
public float getStrokeWidth(){ return 0; }
|
||||
public float getTextRunAdvances(char[] p0, int p1, int p2, int p3, int p4, boolean p5, float[] p6, int p7){ return 0; }
|
||||
public float getTextScaleX(){ return 0; }
|
||||
public float getTextSize(){ return 0; }
|
||||
public float getTextSkewX(){ return 0; }
|
||||
public float getUnderlinePosition(){ return 0; }
|
||||
public float getUnderlineThickness(){ return 0; }
|
||||
public float getWordSpacing(){ return 0; }
|
||||
public float measureText(CharSequence p0, int p1, int p2){ return 0; }
|
||||
public float measureText(String p0){ return 0; }
|
||||
public float measureText(String p0, int p1, int p2){ return 0; }
|
||||
public float measureText(char[] p0, int p1, int p2){ return 0; }
|
||||
public int breakText(CharSequence p0, int p1, int p2, boolean p3, float p4, float[] p5){ return 0; }
|
||||
public int breakText(String p0, boolean p1, float p2, float[] p3){ return 0; }
|
||||
public int breakText(char[] p0, int p1, int p2, float p3, float[] p4){ return 0; }
|
||||
public int getAlpha(){ return 0; }
|
||||
public int getColor(){ return 0; }
|
||||
public int getEndHyphenEdit(){ return 0; }
|
||||
public int getFlags(){ return 0; }
|
||||
public int getFontMetricsInt(Paint.FontMetricsInt p0){ return 0; }
|
||||
public int getHinting(){ return 0; }
|
||||
public int getOffsetForAdvance(CharSequence p0, int p1, int p2, int p3, int p4, boolean p5, float p6){ return 0; }
|
||||
public int getOffsetForAdvance(char[] p0, int p1, int p2, int p3, int p4, boolean p5, float p6){ return 0; }
|
||||
public int getShadowLayerColor(){ return 0; }
|
||||
public int getStartHyphenEdit(){ return 0; }
|
||||
public int getTextRunCursor(CharSequence p0, int p1, int p2, boolean p3, int p4, int p5){ return 0; }
|
||||
public int getTextRunCursor(char[] p0, int p1, int p2, boolean p3, int p4, int p5){ return 0; }
|
||||
public int getTextWidths(CharSequence p0, int p1, int p2, float[] p3){ return 0; }
|
||||
public int getTextWidths(String p0, float[] p1){ return 0; }
|
||||
public int getTextWidths(String p0, int p1, int p2, float[] p3){ return 0; }
|
||||
public int getTextWidths(char[] p0, int p1, int p2, float[] p3){ return 0; }
|
||||
public long getColorLong(){ return 0; }
|
||||
public long getShadowLayerColorLong(){ return 0; }
|
||||
public static int ANTI_ALIAS_FLAG = 0;
|
||||
public static int CURSOR_AFTER = 0;
|
||||
public static int CURSOR_AT = 0;
|
||||
public static int CURSOR_AT_OR_AFTER = 0;
|
||||
public static int CURSOR_AT_OR_BEFORE = 0;
|
||||
public static int CURSOR_BEFORE = 0;
|
||||
public static int DEV_KERN_TEXT_FLAG = 0;
|
||||
public static int DITHER_FLAG = 0;
|
||||
public static int EMBEDDED_BITMAP_TEXT_FLAG = 0;
|
||||
public static int END_HYPHEN_EDIT_INSERT_ARMENIAN_HYPHEN = 0;
|
||||
public static int END_HYPHEN_EDIT_INSERT_HYPHEN = 0;
|
||||
public static int END_HYPHEN_EDIT_INSERT_MAQAF = 0;
|
||||
public static int END_HYPHEN_EDIT_INSERT_UCAS_HYPHEN = 0;
|
||||
public static int END_HYPHEN_EDIT_INSERT_ZWJ_AND_HYPHEN = 0;
|
||||
public static int END_HYPHEN_EDIT_NO_EDIT = 0;
|
||||
public static int END_HYPHEN_EDIT_REPLACE_WITH_HYPHEN = 0;
|
||||
public static int FAKE_BOLD_TEXT_FLAG = 0;
|
||||
public static int FILTER_BITMAP_FLAG = 0;
|
||||
public static int HINTING_OFF = 0;
|
||||
public static int HINTING_ON = 0;
|
||||
public static int LINEAR_TEXT_FLAG = 0;
|
||||
public static int START_HYPHEN_EDIT_INSERT_HYPHEN = 0;
|
||||
public static int START_HYPHEN_EDIT_INSERT_ZWJ = 0;
|
||||
public static int START_HYPHEN_EDIT_NO_EDIT = 0;
|
||||
public static int STRIKE_THRU_TEXT_FLAG = 0;
|
||||
public static int SUBPIXEL_TEXT_FLAG = 0;
|
||||
public static int UNDERLINE_TEXT_FLAG = 0;
|
||||
public void clearShadowLayer(){}
|
||||
public void getTextBounds(CharSequence p0, int p1, int p2, Rect p3){}
|
||||
public void getTextBounds(String p0, int p1, int p2, Rect p3){}
|
||||
public void getTextBounds(char[] p0, int p1, int p2, Rect p3){}
|
||||
public void getTextPath(String p0, int p1, int p2, float p3, float p4, Path p5){}
|
||||
public void getTextPath(char[] p0, int p1, int p2, float p3, float p4, Path p5){}
|
||||
public void reset(){}
|
||||
public void set(Paint p0){}
|
||||
public void setARGB(int p0, int p1, int p2, int p3){}
|
||||
public void setAlpha(int p0){}
|
||||
public void setAntiAlias(boolean p0){}
|
||||
public void setBlendMode(BlendMode p0){}
|
||||
public void setColor(int p0){}
|
||||
public void setColor(long p0){}
|
||||
public void setDither(boolean p0){}
|
||||
public void setElegantTextHeight(boolean p0){}
|
||||
public void setEndHyphenEdit(int p0){}
|
||||
public void setFakeBoldText(boolean p0){}
|
||||
public void setFilterBitmap(boolean p0){}
|
||||
public void setFlags(int p0){}
|
||||
public void setFontFeatureSettings(String p0){}
|
||||
public void setHinting(int p0){}
|
||||
public void setLetterSpacing(float p0){}
|
||||
public void setLinearText(boolean p0){}
|
||||
public void setShadowLayer(float p0, float p1, float p2, int p3){}
|
||||
public void setShadowLayer(float p0, float p1, float p2, long p3){}
|
||||
public void setStartHyphenEdit(int p0){}
|
||||
public void setStrikeThruText(boolean p0){}
|
||||
public void setStrokeCap(Paint.Cap p0){}
|
||||
public void setStrokeJoin(Paint.Join p0){}
|
||||
public void setStrokeMiter(float p0){}
|
||||
public void setStrokeWidth(float p0){}
|
||||
public void setStyle(Paint.Style p0){}
|
||||
public void setSubpixelText(boolean p0){}
|
||||
public void setTextAlign(Paint.Align p0){}
|
||||
public void setTextLocale(Locale p0){}
|
||||
public void setTextLocales(LocaleList p0){}
|
||||
public void setTextScaleX(float p0){}
|
||||
public void setTextSize(float p0){}
|
||||
public void setTextSkewX(float p0){}
|
||||
public void setUnderlineText(boolean p0){}
|
||||
public void setWordSpacing(float p0){}
|
||||
static public class FontMetrics
|
||||
{
|
||||
public FontMetrics(){}
|
||||
public float ascent = 0;
|
||||
public float bottom = 0;
|
||||
public float descent = 0;
|
||||
public float leading = 0;
|
||||
public float top = 0;
|
||||
}
|
||||
static public class FontMetricsInt
|
||||
{
|
||||
public FontMetricsInt(){}
|
||||
public String toString(){ return null; }
|
||||
public int ascent = 0;
|
||||
public int bottom = 0;
|
||||
public int descent = 0;
|
||||
public int leading = 0;
|
||||
public int top = 0;
|
||||
}
|
||||
static public enum Align
|
||||
{
|
||||
CENTER, LEFT, RIGHT;
|
||||
private Align() {}
|
||||
}
|
||||
static public enum Cap
|
||||
{
|
||||
BUTT, ROUND, SQUARE;
|
||||
private Cap() {}
|
||||
}
|
||||
static public enum Join
|
||||
{
|
||||
BEVEL, MITER, ROUND;
|
||||
private Join() {}
|
||||
}
|
||||
static public enum Style
|
||||
{
|
||||
FILL, FILL_AND_STROKE, STROKE;
|
||||
private Style() {}
|
||||
}
|
||||
}
|
||||
73
java/ql/test/stubs/google-android-9.0.0/android/graphics/Path.java
generated
Normal file
73
java/ql/test/stubs/google-android-9.0.0/android/graphics/Path.java
generated
Normal file
@@ -0,0 +1,73 @@
|
||||
// Generated automatically from android.graphics.Path for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.graphics.Matrix;
|
||||
import android.graphics.RectF;
|
||||
|
||||
public class Path
|
||||
{
|
||||
public Path(){}
|
||||
public Path(Path p0){}
|
||||
public Path.FillType getFillType(){ return null; }
|
||||
public boolean isConvex(){ return false; }
|
||||
public boolean isEmpty(){ return false; }
|
||||
public boolean isInverseFillType(){ return false; }
|
||||
public boolean isRect(RectF p0){ return false; }
|
||||
public boolean op(Path p0, Path p1, Path.Op p2){ return false; }
|
||||
public boolean op(Path p0, Path.Op p1){ return false; }
|
||||
public float[] approximate(float p0){ return null; }
|
||||
public void addArc(RectF p0, float p1, float p2){}
|
||||
public void addArc(float p0, float p1, float p2, float p3, float p4, float p5){}
|
||||
public void addCircle(float p0, float p1, float p2, Path.Direction p3){}
|
||||
public void addOval(RectF p0, Path.Direction p1){}
|
||||
public void addOval(float p0, float p1, float p2, float p3, Path.Direction p4){}
|
||||
public void addPath(Path p0){}
|
||||
public void addPath(Path p0, Matrix p1){}
|
||||
public void addPath(Path p0, float p1, float p2){}
|
||||
public void addRect(RectF p0, Path.Direction p1){}
|
||||
public void addRect(float p0, float p1, float p2, float p3, Path.Direction p4){}
|
||||
public void addRoundRect(RectF p0, float p1, float p2, Path.Direction p3){}
|
||||
public void addRoundRect(RectF p0, float[] p1, Path.Direction p2){}
|
||||
public void addRoundRect(float p0, float p1, float p2, float p3, float p4, float p5, Path.Direction p6){}
|
||||
public void addRoundRect(float p0, float p1, float p2, float p3, float[] p4, Path.Direction p5){}
|
||||
public void arcTo(RectF p0, float p1, float p2){}
|
||||
public void arcTo(RectF p0, float p1, float p2, boolean p3){}
|
||||
public void arcTo(float p0, float p1, float p2, float p3, float p4, float p5, boolean p6){}
|
||||
public void close(){}
|
||||
public void computeBounds(RectF p0, boolean p1){}
|
||||
public void cubicTo(float p0, float p1, float p2, float p3, float p4, float p5){}
|
||||
public void incReserve(int p0){}
|
||||
public void lineTo(float p0, float p1){}
|
||||
public void moveTo(float p0, float p1){}
|
||||
public void offset(float p0, float p1){}
|
||||
public void offset(float p0, float p1, Path p2){}
|
||||
public void quadTo(float p0, float p1, float p2, float p3){}
|
||||
public void rCubicTo(float p0, float p1, float p2, float p3, float p4, float p5){}
|
||||
public void rLineTo(float p0, float p1){}
|
||||
public void rMoveTo(float p0, float p1){}
|
||||
public void rQuadTo(float p0, float p1, float p2, float p3){}
|
||||
public void reset(){}
|
||||
public void rewind(){}
|
||||
public void set(Path p0){}
|
||||
public void setFillType(Path.FillType p0){}
|
||||
public void setLastPoint(float p0, float p1){}
|
||||
public void toggleInverseFillType(){}
|
||||
public void transform(Matrix p0){}
|
||||
public void transform(Matrix p0, Path p1){}
|
||||
static public enum Direction
|
||||
{
|
||||
CCW, CW;
|
||||
private Direction() {}
|
||||
}
|
||||
static public enum FillType
|
||||
{
|
||||
EVEN_ODD, INVERSE_EVEN_ODD, INVERSE_WINDING, WINDING;
|
||||
private FillType() {}
|
||||
}
|
||||
static public enum Op
|
||||
{
|
||||
DIFFERENCE, INTERSECT, REVERSE_DIFFERENCE, UNION, XOR;
|
||||
private Op() {}
|
||||
}
|
||||
}
|
||||
10
java/ql/test/stubs/google-android-9.0.0/android/graphics/PathEffect.java
generated
Normal file
10
java/ql/test/stubs/google-android-9.0.0/android/graphics/PathEffect.java
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from android.graphics.PathEffect for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
|
||||
public class PathEffect
|
||||
{
|
||||
protected void finalize(){}
|
||||
public PathEffect(){}
|
||||
}
|
||||
18
java/ql/test/stubs/google-android-9.0.0/android/graphics/Picture.java
generated
Normal file
18
java/ql/test/stubs/google-android-9.0.0/android/graphics/Picture.java
generated
Normal file
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from android.graphics.Picture for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.graphics.Canvas;
|
||||
|
||||
public class Picture
|
||||
{
|
||||
protected void finalize(){}
|
||||
public Canvas beginRecording(int p0, int p1){ return null; }
|
||||
public Picture(){}
|
||||
public Picture(Picture p0){}
|
||||
public boolean requiresHardwareAcceleration(){ return false; }
|
||||
public int getHeight(){ return 0; }
|
||||
public int getWidth(){ return 0; }
|
||||
public void draw(Canvas p0){}
|
||||
public void endRecording(){}
|
||||
}
|
||||
26
java/ql/test/stubs/google-android-9.0.0/android/graphics/Point.java
generated
Normal file
26
java/ql/test/stubs/google-android-9.0.0/android/graphics/Point.java
generated
Normal file
@@ -0,0 +1,26 @@
|
||||
// Generated automatically from android.graphics.Point for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
public class Point implements Parcelable
|
||||
{
|
||||
public Point(){}
|
||||
public Point(Point p0){}
|
||||
public Point(int p0, int p1){}
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public final boolean equals(int p0, int p1){ return false; }
|
||||
public final void negate(){}
|
||||
public final void offset(int p0, int p1){}
|
||||
public int describeContents(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public int x = 0;
|
||||
public int y = 0;
|
||||
public static Parcelable.Creator<Point> CREATOR = null;
|
||||
public void readFromParcel(Parcel p0){}
|
||||
public void set(int p0, int p1){}
|
||||
public void writeToParcel(Parcel p0, int p1){}
|
||||
}
|
||||
14
java/ql/test/stubs/google-android-9.0.0/android/graphics/PorterDuff.java
generated
Normal file
14
java/ql/test/stubs/google-android-9.0.0/android/graphics/PorterDuff.java
generated
Normal file
@@ -0,0 +1,14 @@
|
||||
// Generated automatically from android.graphics.PorterDuff for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
|
||||
public class PorterDuff
|
||||
{
|
||||
public PorterDuff(){}
|
||||
static public enum Mode
|
||||
{
|
||||
ADD, CLEAR, DARKEN, DST, DST_ATOP, DST_IN, DST_OUT, DST_OVER, LIGHTEN, MULTIPLY, OVERLAY, SCREEN, SRC, SRC_ATOP, SRC_IN, SRC_OUT, SRC_OVER, XOR;
|
||||
private Mode() {}
|
||||
}
|
||||
}
|
||||
83
java/ql/test/stubs/google-android-9.0.0/android/graphics/RecordingCanvas.java
generated
Normal file
83
java/ql/test/stubs/google-android-9.0.0/android/graphics/RecordingCanvas.java
generated
Normal file
@@ -0,0 +1,83 @@
|
||||
// Generated automatically from android.graphics.RecordingCanvas for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BlendMode;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Matrix;
|
||||
import android.graphics.NinePatch;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.Path;
|
||||
import android.graphics.Picture;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.graphics.RenderNode;
|
||||
import android.graphics.text.MeasuredText;
|
||||
|
||||
public class RecordingCanvas extends Canvas
|
||||
{
|
||||
protected RecordingCanvas() {}
|
||||
public boolean isHardwareAccelerated(){ return false; }
|
||||
public boolean isOpaque(){ return false; }
|
||||
public final void drawARGB(int p0, int p1, int p2, int p3){}
|
||||
public final void drawArc(RectF p0, float p1, float p2, boolean p3, Paint p4){}
|
||||
public final void drawArc(float p0, float p1, float p2, float p3, float p4, float p5, boolean p6, Paint p7){}
|
||||
public final void drawBitmap(Bitmap p0, Matrix p1, Paint p2){}
|
||||
public final void drawBitmap(Bitmap p0, Rect p1, Rect p2, Paint p3){}
|
||||
public final void drawBitmap(Bitmap p0, Rect p1, RectF p2, Paint p3){}
|
||||
public final void drawBitmap(Bitmap p0, float p1, float p2, Paint p3){}
|
||||
public final void drawBitmap(int[] p0, int p1, int p2, float p3, float p4, int p5, int p6, boolean p7, Paint p8){}
|
||||
public final void drawBitmap(int[] p0, int p1, int p2, int p3, int p4, int p5, int p6, boolean p7, Paint p8){}
|
||||
public final void drawBitmapMesh(Bitmap p0, int p1, int p2, float[] p3, int p4, int[] p5, int p6, Paint p7){}
|
||||
public final void drawCircle(float p0, float p1, float p2, Paint p3){}
|
||||
public final void drawColor(int p0){}
|
||||
public final void drawColor(int p0, BlendMode p1){}
|
||||
public final void drawColor(int p0, PorterDuff.Mode p1){}
|
||||
public final void drawColor(long p0, BlendMode p1){}
|
||||
public final void drawDoubleRoundRect(RectF p0, float p1, float p2, RectF p3, float p4, float p5, Paint p6){}
|
||||
public final void drawDoubleRoundRect(RectF p0, float[] p1, RectF p2, float[] p3, Paint p4){}
|
||||
public final void drawLine(float p0, float p1, float p2, float p3, Paint p4){}
|
||||
public final void drawLines(float[] p0, Paint p1){}
|
||||
public final void drawLines(float[] p0, int p1, int p2, Paint p3){}
|
||||
public final void drawOval(RectF p0, Paint p1){}
|
||||
public final void drawOval(float p0, float p1, float p2, float p3, Paint p4){}
|
||||
public final void drawPaint(Paint p0){}
|
||||
public final void drawPatch(NinePatch p0, Rect p1, Paint p2){}
|
||||
public final void drawPatch(NinePatch p0, RectF p1, Paint p2){}
|
||||
public final void drawPath(Path p0, Paint p1){}
|
||||
public final void drawPicture(Picture p0){}
|
||||
public final void drawPicture(Picture p0, Rect p1){}
|
||||
public final void drawPicture(Picture p0, RectF p1){}
|
||||
public final void drawPoint(float p0, float p1, Paint p2){}
|
||||
public final void drawPoints(float[] p0, Paint p1){}
|
||||
public final void drawPoints(float[] p0, int p1, int p2, Paint p3){}
|
||||
public final void drawPosText(String p0, float[] p1, Paint p2){}
|
||||
public final void drawPosText(char[] p0, int p1, int p2, float[] p3, Paint p4){}
|
||||
public final void drawRGB(int p0, int p1, int p2){}
|
||||
public final void drawRect(Rect p0, Paint p1){}
|
||||
public final void drawRect(RectF p0, Paint p1){}
|
||||
public final void drawRect(float p0, float p1, float p2, float p3, Paint p4){}
|
||||
public final void drawRoundRect(RectF p0, float p1, float p2, Paint p3){}
|
||||
public final void drawRoundRect(float p0, float p1, float p2, float p3, float p4, float p5, Paint p6){}
|
||||
public final void drawText(CharSequence p0, int p1, int p2, float p3, float p4, Paint p5){}
|
||||
public final void drawText(String p0, float p1, float p2, Paint p3){}
|
||||
public final void drawText(String p0, int p1, int p2, float p3, float p4, Paint p5){}
|
||||
public final void drawText(char[] p0, int p1, int p2, float p3, float p4, Paint p5){}
|
||||
public final void drawTextOnPath(String p0, Path p1, float p2, float p3, Paint p4){}
|
||||
public final void drawTextOnPath(char[] p0, int p1, int p2, Path p3, float p4, float p5, Paint p6){}
|
||||
public final void drawTextRun(CharSequence p0, int p1, int p2, int p3, int p4, float p5, float p6, boolean p7, Paint p8){}
|
||||
public final void drawTextRun(char[] p0, int p1, int p2, int p3, int p4, float p5, float p6, boolean p7, Paint p8){}
|
||||
public final void drawVertices(Canvas.VertexMode p0, int p1, float[] p2, int p3, float[] p4, int p5, int[] p6, int p7, short[] p8, int p9, int p10, Paint p11){}
|
||||
public int getHeight(){ return 0; }
|
||||
public int getMaximumBitmapHeight(){ return 0; }
|
||||
public int getMaximumBitmapWidth(){ return 0; }
|
||||
public int getWidth(){ return 0; }
|
||||
public void disableZ(){}
|
||||
public void drawRenderNode(RenderNode p0){}
|
||||
public void drawTextRun(MeasuredText p0, int p1, int p2, int p3, int p4, float p5, float p6, boolean p7, Paint p8){}
|
||||
public void enableZ(){}
|
||||
public void setBitmap(Bitmap p0){}
|
||||
public void setDensity(int p0){}
|
||||
}
|
||||
52
java/ql/test/stubs/google-android-9.0.0/android/graphics/Rect.java
generated
Normal file
52
java/ql/test/stubs/google-android-9.0.0/android/graphics/Rect.java
generated
Normal file
@@ -0,0 +1,52 @@
|
||||
// Generated automatically from android.graphics.Rect for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
public class Rect implements Parcelable
|
||||
{
|
||||
public Rect(){}
|
||||
public Rect(Rect p0){}
|
||||
public Rect(int p0, int p1, int p2, int p3){}
|
||||
public String flattenToString(){ return null; }
|
||||
public String toShortString(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean contains(Rect p0){ return false; }
|
||||
public boolean contains(int p0, int p1){ return false; }
|
||||
public boolean contains(int p0, int p1, int p2, int p3){ return false; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public boolean intersect(Rect p0){ return false; }
|
||||
public boolean intersect(int p0, int p1, int p2, int p3){ return false; }
|
||||
public boolean intersects(int p0, int p1, int p2, int p3){ return false; }
|
||||
public boolean isEmpty(){ return false; }
|
||||
public boolean setIntersect(Rect p0, Rect p1){ return false; }
|
||||
public float exactCenterX(){ return 0; }
|
||||
public float exactCenterY(){ return 0; }
|
||||
public int bottom = 0;
|
||||
public int centerX(){ return 0; }
|
||||
public int centerY(){ return 0; }
|
||||
public int describeContents(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public int height(){ return 0; }
|
||||
public int left = 0;
|
||||
public int right = 0;
|
||||
public int top = 0;
|
||||
public int width(){ return 0; }
|
||||
public static Parcelable.Creator<Rect> CREATOR = null;
|
||||
public static Rect unflattenFromString(String p0){ return null; }
|
||||
public static boolean intersects(Rect p0, Rect p1){ return false; }
|
||||
public void inset(int p0, int p1){}
|
||||
public void offset(int p0, int p1){}
|
||||
public void offsetTo(int p0, int p1){}
|
||||
public void readFromParcel(Parcel p0){}
|
||||
public void set(Rect p0){}
|
||||
public void set(int p0, int p1, int p2, int p3){}
|
||||
public void setEmpty(){}
|
||||
public void sort(){}
|
||||
public void union(Rect p0){}
|
||||
public void union(int p0, int p1){}
|
||||
public void union(int p0, int p1, int p2, int p3){}
|
||||
public void writeToParcel(Parcel p0, int p1){}
|
||||
}
|
||||
53
java/ql/test/stubs/google-android-9.0.0/android/graphics/RectF.java
generated
Normal file
53
java/ql/test/stubs/google-android-9.0.0/android/graphics/RectF.java
generated
Normal file
@@ -0,0 +1,53 @@
|
||||
// Generated automatically from android.graphics.RectF for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.graphics.Rect;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
public class RectF implements Parcelable
|
||||
{
|
||||
public RectF(){}
|
||||
public RectF(Rect p0){}
|
||||
public RectF(RectF p0){}
|
||||
public RectF(float p0, float p1, float p2, float p3){}
|
||||
public String toShortString(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean contains(RectF p0){ return false; }
|
||||
public boolean contains(float p0, float p1){ return false; }
|
||||
public boolean contains(float p0, float p1, float p2, float p3){ return false; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public boolean intersect(RectF p0){ return false; }
|
||||
public boolean intersect(float p0, float p1, float p2, float p3){ return false; }
|
||||
public boolean intersects(float p0, float p1, float p2, float p3){ return false; }
|
||||
public boolean setIntersect(RectF p0, RectF p1){ return false; }
|
||||
public final boolean isEmpty(){ return false; }
|
||||
public final float centerX(){ return 0; }
|
||||
public final float centerY(){ return 0; }
|
||||
public final float height(){ return 0; }
|
||||
public final float width(){ return 0; }
|
||||
public float bottom = 0;
|
||||
public float left = 0;
|
||||
public float right = 0;
|
||||
public float top = 0;
|
||||
public int describeContents(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static Parcelable.Creator<RectF> CREATOR = null;
|
||||
public static boolean intersects(RectF p0, RectF p1){ return false; }
|
||||
public void inset(float p0, float p1){}
|
||||
public void offset(float p0, float p1){}
|
||||
public void offsetTo(float p0, float p1){}
|
||||
public void readFromParcel(Parcel p0){}
|
||||
public void round(Rect p0){}
|
||||
public void roundOut(Rect p0){}
|
||||
public void set(Rect p0){}
|
||||
public void set(RectF p0){}
|
||||
public void set(float p0, float p1, float p2, float p3){}
|
||||
public void setEmpty(){}
|
||||
public void sort(){}
|
||||
public void union(RectF p0){}
|
||||
public void union(float p0, float p1){}
|
||||
public void union(float p0, float p1, float p2, float p3){}
|
||||
public void writeToParcel(Parcel p0, int p1){}
|
||||
}
|
||||
53
java/ql/test/stubs/google-android-9.0.0/android/graphics/Region.java
generated
Normal file
53
java/ql/test/stubs/google-android-9.0.0/android/graphics/Region.java
generated
Normal file
@@ -0,0 +1,53 @@
|
||||
// Generated automatically from android.graphics.Region for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.graphics.Path;
|
||||
import android.graphics.Rect;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
public class Region implements Parcelable
|
||||
{
|
||||
protected void finalize(){}
|
||||
public Path getBoundaryPath(){ return null; }
|
||||
public Rect getBounds(){ return null; }
|
||||
public Region(){}
|
||||
public Region(Rect p0){}
|
||||
public Region(Region p0){}
|
||||
public Region(int p0, int p1, int p2, int p3){}
|
||||
public String toString(){ return null; }
|
||||
public boolean contains(int p0, int p1){ return false; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public boolean getBoundaryPath(Path p0){ return false; }
|
||||
public boolean getBounds(Rect p0){ return false; }
|
||||
public boolean isComplex(){ return false; }
|
||||
public boolean isEmpty(){ return false; }
|
||||
public boolean isRect(){ return false; }
|
||||
public boolean op(Rect p0, Region p1, Region.Op p2){ return false; }
|
||||
public boolean op(Rect p0, Region.Op p1){ return false; }
|
||||
public boolean op(Region p0, Region p1, Region.Op p2){ return false; }
|
||||
public boolean op(Region p0, Region.Op p1){ return false; }
|
||||
public boolean op(int p0, int p1, int p2, int p3, Region.Op p4){ return false; }
|
||||
public boolean quickContains(Rect p0){ return false; }
|
||||
public boolean quickContains(int p0, int p1, int p2, int p3){ return false; }
|
||||
public boolean quickReject(Rect p0){ return false; }
|
||||
public boolean quickReject(Region p0){ return false; }
|
||||
public boolean quickReject(int p0, int p1, int p2, int p3){ return false; }
|
||||
public boolean set(Rect p0){ return false; }
|
||||
public boolean set(Region p0){ return false; }
|
||||
public boolean set(int p0, int p1, int p2, int p3){ return false; }
|
||||
public boolean setPath(Path p0, Region p1){ return false; }
|
||||
public final boolean union(Rect p0){ return false; }
|
||||
public int describeContents(){ return 0; }
|
||||
public static Parcelable.Creator<Region> CREATOR = null;
|
||||
public void setEmpty(){}
|
||||
public void translate(int p0, int p1){}
|
||||
public void translate(int p0, int p1, Region p2){}
|
||||
public void writeToParcel(Parcel p0, int p1){}
|
||||
static public enum Op
|
||||
{
|
||||
DIFFERENCE, INTERSECT, REPLACE, REVERSE_DIFFERENCE, UNION, XOR;
|
||||
private Op() {}
|
||||
}
|
||||
}
|
||||
82
java/ql/test/stubs/google-android-9.0.0/android/graphics/RenderNode.java
generated
Normal file
82
java/ql/test/stubs/google-android-9.0.0/android/graphics/RenderNode.java
generated
Normal file
@@ -0,0 +1,82 @@
|
||||
// Generated automatically from android.graphics.RenderNode for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.graphics.Matrix;
|
||||
import android.graphics.Outline;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.RecordingCanvas;
|
||||
import android.graphics.Rect;
|
||||
|
||||
public class RenderNode
|
||||
{
|
||||
protected RenderNode() {}
|
||||
public RecordingCanvas beginRecording(){ return null; }
|
||||
public RecordingCanvas beginRecording(int p0, int p1){ return null; }
|
||||
public RenderNode(String p0){}
|
||||
public boolean getClipToBounds(){ return false; }
|
||||
public boolean getClipToOutline(){ return false; }
|
||||
public boolean getUseCompositingLayer(){ return false; }
|
||||
public boolean hasDisplayList(){ return false; }
|
||||
public boolean hasIdentityMatrix(){ return false; }
|
||||
public boolean hasOverlappingRendering(){ return false; }
|
||||
public boolean hasShadow(){ return false; }
|
||||
public boolean isForceDarkAllowed(){ return false; }
|
||||
public boolean isPivotExplicitlySet(){ return false; }
|
||||
public boolean offsetLeftAndRight(int p0){ return false; }
|
||||
public boolean offsetTopAndBottom(int p0){ return false; }
|
||||
public boolean resetPivot(){ return false; }
|
||||
public boolean setAlpha(float p0){ return false; }
|
||||
public boolean setAmbientShadowColor(int p0){ return false; }
|
||||
public boolean setCameraDistance(float p0){ return false; }
|
||||
public boolean setClipRect(Rect p0){ return false; }
|
||||
public boolean setClipToBounds(boolean p0){ return false; }
|
||||
public boolean setClipToOutline(boolean p0){ return false; }
|
||||
public boolean setElevation(float p0){ return false; }
|
||||
public boolean setForceDarkAllowed(boolean p0){ return false; }
|
||||
public boolean setHasOverlappingRendering(boolean p0){ return false; }
|
||||
public boolean setOutline(Outline p0){ return false; }
|
||||
public boolean setPivotX(float p0){ return false; }
|
||||
public boolean setPivotY(float p0){ return false; }
|
||||
public boolean setPosition(Rect p0){ return false; }
|
||||
public boolean setPosition(int p0, int p1, int p2, int p3){ return false; }
|
||||
public boolean setProjectBackwards(boolean p0){ return false; }
|
||||
public boolean setProjectionReceiver(boolean p0){ return false; }
|
||||
public boolean setRotationX(float p0){ return false; }
|
||||
public boolean setRotationY(float p0){ return false; }
|
||||
public boolean setRotationZ(float p0){ return false; }
|
||||
public boolean setScaleX(float p0){ return false; }
|
||||
public boolean setScaleY(float p0){ return false; }
|
||||
public boolean setSpotShadowColor(int p0){ return false; }
|
||||
public boolean setTranslationX(float p0){ return false; }
|
||||
public boolean setTranslationY(float p0){ return false; }
|
||||
public boolean setTranslationZ(float p0){ return false; }
|
||||
public boolean setUseCompositingLayer(boolean p0, Paint p1){ return false; }
|
||||
public float getAlpha(){ return 0; }
|
||||
public float getCameraDistance(){ return 0; }
|
||||
public float getElevation(){ return 0; }
|
||||
public float getPivotX(){ return 0; }
|
||||
public float getPivotY(){ return 0; }
|
||||
public float getRotationX(){ return 0; }
|
||||
public float getRotationY(){ return 0; }
|
||||
public float getRotationZ(){ return 0; }
|
||||
public float getScaleX(){ return 0; }
|
||||
public float getScaleY(){ return 0; }
|
||||
public float getTranslationX(){ return 0; }
|
||||
public float getTranslationY(){ return 0; }
|
||||
public float getTranslationZ(){ return 0; }
|
||||
public int getAmbientShadowColor(){ return 0; }
|
||||
public int getBottom(){ return 0; }
|
||||
public int getHeight(){ return 0; }
|
||||
public int getLeft(){ return 0; }
|
||||
public int getRight(){ return 0; }
|
||||
public int getSpotShadowColor(){ return 0; }
|
||||
public int getTop(){ return 0; }
|
||||
public int getWidth(){ return 0; }
|
||||
public long computeApproximateMemoryUsage(){ return 0; }
|
||||
public long getUniqueId(){ return 0; }
|
||||
public void discardDisplayList(){}
|
||||
public void endRecording(){}
|
||||
public void getInverseMatrix(Matrix p0){}
|
||||
public void getMatrix(Matrix p0){}
|
||||
}
|
||||
12
java/ql/test/stubs/google-android-9.0.0/android/graphics/Shader.java
generated
Normal file
12
java/ql/test/stubs/google-android-9.0.0/android/graphics/Shader.java
generated
Normal file
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from android.graphics.Shader for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.graphics.Matrix;
|
||||
|
||||
public class Shader
|
||||
{
|
||||
public Shader(){}
|
||||
public boolean getLocalMatrix(Matrix p0){ return false; }
|
||||
public void setLocalMatrix(Matrix p0){}
|
||||
}
|
||||
33
java/ql/test/stubs/google-android-9.0.0/android/graphics/Typeface.java
generated
Normal file
33
java/ql/test/stubs/google-android-9.0.0/android/graphics/Typeface.java
generated
Normal file
@@ -0,0 +1,33 @@
|
||||
// Generated automatically from android.graphics.Typeface for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
import android.content.res.AssetManager;
|
||||
import java.io.File;
|
||||
|
||||
public class Typeface
|
||||
{
|
||||
protected Typeface() {}
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public final boolean isBold(){ return false; }
|
||||
public final boolean isItalic(){ return false; }
|
||||
public int getStyle(){ return 0; }
|
||||
public int getWeight(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static Typeface DEFAULT = null;
|
||||
public static Typeface DEFAULT_BOLD = null;
|
||||
public static Typeface MONOSPACE = null;
|
||||
public static Typeface SANS_SERIF = null;
|
||||
public static Typeface SERIF = null;
|
||||
public static Typeface create(String p0, int p1){ return null; }
|
||||
public static Typeface create(Typeface p0, int p1){ return null; }
|
||||
public static Typeface create(Typeface p0, int p1, boolean p2){ return null; }
|
||||
public static Typeface createFromAsset(AssetManager p0, String p1){ return null; }
|
||||
public static Typeface createFromFile(File p0){ return null; }
|
||||
public static Typeface createFromFile(String p0){ return null; }
|
||||
public static Typeface defaultFromStyle(int p0){ return null; }
|
||||
public static int BOLD = 0;
|
||||
public static int BOLD_ITALIC = 0;
|
||||
public static int ITALIC = 0;
|
||||
public static int NORMAL = 0;
|
||||
}
|
||||
9
java/ql/test/stubs/google-android-9.0.0/android/graphics/Xfermode.java
generated
Normal file
9
java/ql/test/stubs/google-android-9.0.0/android/graphics/Xfermode.java
generated
Normal file
@@ -0,0 +1,9 @@
|
||||
// Generated automatically from android.graphics.Xfermode for testing purposes
|
||||
|
||||
package android.graphics;
|
||||
|
||||
|
||||
public class Xfermode
|
||||
{
|
||||
public Xfermode(){}
|
||||
}
|
||||
111
java/ql/test/stubs/google-android-9.0.0/android/graphics/drawable/Drawable.java
generated
Normal file
111
java/ql/test/stubs/google-android-9.0.0/android/graphics/drawable/Drawable.java
generated
Normal file
@@ -0,0 +1,111 @@
|
||||
// Generated automatically from android.graphics.drawable.Drawable for testing purposes
|
||||
|
||||
package android.graphics.drawable;
|
||||
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.graphics.BlendMode;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.ColorFilter;
|
||||
import android.graphics.Insets;
|
||||
import android.graphics.Outline;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.Region;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.TypedValue;
|
||||
import java.io.InputStream;
|
||||
import org.xmlpull.v1.XmlPullParser;
|
||||
|
||||
abstract public class Drawable
|
||||
{
|
||||
abstract static public class ConstantState
|
||||
{
|
||||
public ConstantState(){}
|
||||
public Drawable newDrawable(Resources p0){ return null; }
|
||||
public Drawable newDrawable(Resources p0, Resources.Theme p1){ return null; }
|
||||
public abstract Drawable newDrawable();
|
||||
public abstract int getChangingConfigurations();
|
||||
public boolean canApplyTheme(){ return false; }
|
||||
}
|
||||
protected boolean onLevelChange(int p0){ return false; }
|
||||
protected boolean onStateChange(int[] p0){ return false; }
|
||||
protected void onBoundsChange(Rect p0){}
|
||||
public ColorFilter getColorFilter(){ return null; }
|
||||
public Drawable getCurrent(){ return null; }
|
||||
public Drawable mutate(){ return null; }
|
||||
public Drawable(){}
|
||||
public Drawable.Callback getCallback(){ return null; }
|
||||
public Drawable.ConstantState getConstantState(){ return null; }
|
||||
public Insets getOpticalInsets(){ return null; }
|
||||
public Rect getDirtyBounds(){ return null; }
|
||||
public Region getTransparentRegion(){ return null; }
|
||||
public abstract int getOpacity();
|
||||
public abstract void draw(Canvas p0);
|
||||
public abstract void setAlpha(int p0);
|
||||
public abstract void setColorFilter(ColorFilter p0);
|
||||
public boolean canApplyTheme(){ return false; }
|
||||
public boolean getPadding(Rect p0){ return false; }
|
||||
public boolean isAutoMirrored(){ return false; }
|
||||
public boolean isFilterBitmap(){ return false; }
|
||||
public boolean isProjected(){ return false; }
|
||||
public boolean isStateful(){ return false; }
|
||||
public boolean onLayoutDirectionChanged(int p0){ return false; }
|
||||
public boolean setState(int[] p0){ return false; }
|
||||
public boolean setVisible(boolean p0, boolean p1){ return false; }
|
||||
public final Rect copyBounds(){ return null; }
|
||||
public final Rect getBounds(){ return null; }
|
||||
public final boolean isVisible(){ return false; }
|
||||
public final boolean setLayoutDirection(int p0){ return false; }
|
||||
public final boolean setLevel(int p0){ return false; }
|
||||
public final int getLevel(){ return 0; }
|
||||
public final void copyBounds(Rect p0){}
|
||||
public final void setCallback(Drawable.Callback p0){}
|
||||
public int getAlpha(){ return 0; }
|
||||
public int getChangingConfigurations(){ return 0; }
|
||||
public int getIntrinsicHeight(){ return 0; }
|
||||
public int getIntrinsicWidth(){ return 0; }
|
||||
public int getLayoutDirection(){ return 0; }
|
||||
public int getMinimumHeight(){ return 0; }
|
||||
public int getMinimumWidth(){ return 0; }
|
||||
public int[] getState(){ return null; }
|
||||
public static Drawable createFromPath(String p0){ return null; }
|
||||
public static Drawable createFromResourceStream(Resources p0, TypedValue p1, InputStream p2, String p3){ return null; }
|
||||
public static Drawable createFromResourceStream(Resources p0, TypedValue p1, InputStream p2, String p3, BitmapFactory.Options p4){ return null; }
|
||||
public static Drawable createFromStream(InputStream p0, String p1){ return null; }
|
||||
public static Drawable createFromXml(Resources p0, XmlPullParser p1){ return null; }
|
||||
public static Drawable createFromXml(Resources p0, XmlPullParser p1, Resources.Theme p2){ return null; }
|
||||
public static Drawable createFromXmlInner(Resources p0, XmlPullParser p1, AttributeSet p2){ return null; }
|
||||
public static Drawable createFromXmlInner(Resources p0, XmlPullParser p1, AttributeSet p2, Resources.Theme p3){ return null; }
|
||||
public static int resolveOpacity(int p0, int p1){ return 0; }
|
||||
public void applyTheme(Resources.Theme p0){}
|
||||
public void clearColorFilter(){}
|
||||
public void getHotspotBounds(Rect p0){}
|
||||
public void getOutline(Outline p0){}
|
||||
public void inflate(Resources p0, XmlPullParser p1, AttributeSet p2){}
|
||||
public void inflate(Resources p0, XmlPullParser p1, AttributeSet p2, Resources.Theme p3){}
|
||||
public void invalidateSelf(){}
|
||||
public void jumpToCurrentState(){}
|
||||
public void scheduleSelf(Runnable p0, long p1){}
|
||||
public void setAutoMirrored(boolean p0){}
|
||||
public void setBounds(Rect p0){}
|
||||
public void setBounds(int p0, int p1, int p2, int p3){}
|
||||
public void setChangingConfigurations(int p0){}
|
||||
public void setColorFilter(int p0, PorterDuff.Mode p1){}
|
||||
public void setDither(boolean p0){}
|
||||
public void setFilterBitmap(boolean p0){}
|
||||
public void setHotspot(float p0, float p1){}
|
||||
public void setHotspotBounds(int p0, int p1, int p2, int p3){}
|
||||
public void setTint(int p0){}
|
||||
public void setTintBlendMode(BlendMode p0){}
|
||||
public void setTintList(ColorStateList p0){}
|
||||
public void setTintMode(PorterDuff.Mode p0){}
|
||||
public void unscheduleSelf(Runnable p0){}
|
||||
static public interface Callback
|
||||
{
|
||||
void invalidateDrawable(Drawable p0);
|
||||
void scheduleDrawable(Drawable p0, Runnable p1, long p2);
|
||||
void unscheduleDrawable(Drawable p0, Runnable p1);
|
||||
}
|
||||
}
|
||||
52
java/ql/test/stubs/google-android-9.0.0/android/graphics/drawable/Icon.java
generated
Normal file
52
java/ql/test/stubs/google-android-9.0.0/android/graphics/drawable/Icon.java
generated
Normal file
@@ -0,0 +1,52 @@
|
||||
// Generated automatically from android.graphics.drawable.Icon for testing purposes
|
||||
|
||||
package android.graphics.drawable;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BlendMode;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.net.Uri;
|
||||
import android.os.Handler;
|
||||
import android.os.Message;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
public class Icon implements Parcelable
|
||||
{
|
||||
protected Icon() {}
|
||||
public Drawable loadDrawable(Context p0){ return null; }
|
||||
public Icon setTint(int p0){ return null; }
|
||||
public Icon setTintBlendMode(BlendMode p0){ return null; }
|
||||
public Icon setTintList(ColorStateList p0){ return null; }
|
||||
public Icon setTintMode(PorterDuff.Mode p0){ return null; }
|
||||
public String getResPackage(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public Uri getUri(){ return null; }
|
||||
public int describeContents(){ return 0; }
|
||||
public int getResId(){ return 0; }
|
||||
public int getType(){ return 0; }
|
||||
public static Icon createWithAdaptiveBitmap(Bitmap p0){ return null; }
|
||||
public static Icon createWithBitmap(Bitmap p0){ return null; }
|
||||
public static Icon createWithContentUri(String p0){ return null; }
|
||||
public static Icon createWithContentUri(Uri p0){ return null; }
|
||||
public static Icon createWithData(byte[] p0, int p1, int p2){ return null; }
|
||||
public static Icon createWithFilePath(String p0){ return null; }
|
||||
public static Icon createWithResource(Context p0, int p1){ return null; }
|
||||
public static Icon createWithResource(String p0, int p1){ return null; }
|
||||
public static Parcelable.Creator<Icon> CREATOR = null;
|
||||
public static int TYPE_ADAPTIVE_BITMAP = 0;
|
||||
public static int TYPE_BITMAP = 0;
|
||||
public static int TYPE_DATA = 0;
|
||||
public static int TYPE_RESOURCE = 0;
|
||||
public static int TYPE_URI = 0;
|
||||
public void loadDrawableAsync(Context p0, Icon.OnDrawableLoadedListener p1, Handler p2){}
|
||||
public void loadDrawableAsync(Context p0, Message p1){}
|
||||
public void writeToParcel(Parcel p0, int p1){}
|
||||
static public interface OnDrawableLoadedListener
|
||||
{
|
||||
void onDrawableLoaded(Drawable p0);
|
||||
}
|
||||
}
|
||||
13
java/ql/test/stubs/google-android-9.0.0/android/graphics/text/MeasuredText.java
generated
Normal file
13
java/ql/test/stubs/google-android-9.0.0/android/graphics/text/MeasuredText.java
generated
Normal file
@@ -0,0 +1,13 @@
|
||||
// Generated automatically from android.graphics.text.MeasuredText for testing purposes
|
||||
|
||||
package android.graphics.text;
|
||||
|
||||
import android.graphics.Rect;
|
||||
|
||||
public class MeasuredText
|
||||
{
|
||||
protected MeasuredText() {}
|
||||
public float getCharWidthAt(int p0){ return 0; }
|
||||
public float getWidth(int p0, int p1){ return 0; }
|
||||
public void getBounds(int p0, int p1, Rect p2){}
|
||||
}
|
||||
49
java/ql/test/stubs/google-android-9.0.0/android/hardware/HardwareBuffer.java
generated
Normal file
49
java/ql/test/stubs/google-android-9.0.0/android/hardware/HardwareBuffer.java
generated
Normal file
@@ -0,0 +1,49 @@
|
||||
// Generated automatically from android.hardware.HardwareBuffer for testing purposes
|
||||
|
||||
package android.hardware;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
public class HardwareBuffer implements AutoCloseable, Parcelable
|
||||
{
|
||||
protected HardwareBuffer() {}
|
||||
protected void finalize(){}
|
||||
public boolean isClosed(){ return false; }
|
||||
public int describeContents(){ return 0; }
|
||||
public int getFormat(){ return 0; }
|
||||
public int getHeight(){ return 0; }
|
||||
public int getLayers(){ return 0; }
|
||||
public int getWidth(){ return 0; }
|
||||
public long getUsage(){ return 0; }
|
||||
public static HardwareBuffer create(int p0, int p1, int p2, int p3, long p4){ return null; }
|
||||
public static Parcelable.Creator<HardwareBuffer> CREATOR = null;
|
||||
public static boolean isSupported(int p0, int p1, int p2, int p3, long p4){ return false; }
|
||||
public static int BLOB = 0;
|
||||
public static int DS_24UI8 = 0;
|
||||
public static int DS_FP32UI8 = 0;
|
||||
public static int D_16 = 0;
|
||||
public static int D_24 = 0;
|
||||
public static int D_FP32 = 0;
|
||||
public static int RGBA_1010102 = 0;
|
||||
public static int RGBA_8888 = 0;
|
||||
public static int RGBA_FP16 = 0;
|
||||
public static int RGBX_8888 = 0;
|
||||
public static int RGB_565 = 0;
|
||||
public static int RGB_888 = 0;
|
||||
public static int S_UI8 = 0;
|
||||
public static long USAGE_CPU_READ_OFTEN = 0;
|
||||
public static long USAGE_CPU_READ_RARELY = 0;
|
||||
public static long USAGE_CPU_WRITE_OFTEN = 0;
|
||||
public static long USAGE_CPU_WRITE_RARELY = 0;
|
||||
public static long USAGE_GPU_COLOR_OUTPUT = 0;
|
||||
public static long USAGE_GPU_CUBE_MAP = 0;
|
||||
public static long USAGE_GPU_DATA_BUFFER = 0;
|
||||
public static long USAGE_GPU_MIPMAP_COMPLETE = 0;
|
||||
public static long USAGE_GPU_SAMPLED_IMAGE = 0;
|
||||
public static long USAGE_PROTECTED_CONTENT = 0;
|
||||
public static long USAGE_SENSOR_DIRECT_DATA = 0;
|
||||
public static long USAGE_VIDEO_ENCODE = 0;
|
||||
public void close(){}
|
||||
public void writeToParcel(Parcel p0, int p1){}
|
||||
}
|
||||
138
java/ql/test/stubs/google-android-9.0.0/android/icu/util/ULocale.java
generated
Normal file
138
java/ql/test/stubs/google-android-9.0.0/android/icu/util/ULocale.java
generated
Normal file
@@ -0,0 +1,138 @@
|
||||
// Generated automatically from android.icu.util.ULocale for testing purposes
|
||||
|
||||
package android.icu.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Iterator;
|
||||
import java.util.Locale;
|
||||
import java.util.Set;
|
||||
|
||||
public class ULocale implements Comparable<ULocale>, Serializable
|
||||
{
|
||||
protected ULocale() {}
|
||||
public Iterator<String> getKeywords(){ return null; }
|
||||
public Locale toLocale(){ return null; }
|
||||
public Object clone(){ return null; }
|
||||
public Set<Character> getExtensionKeys(){ return null; }
|
||||
public Set<String> getUnicodeLocaleAttributes(){ return null; }
|
||||
public Set<String> getUnicodeLocaleKeys(){ return null; }
|
||||
public String getBaseName(){ return null; }
|
||||
public String getCharacterOrientation(){ return null; }
|
||||
public String getCountry(){ return null; }
|
||||
public String getDisplayCountry(){ return null; }
|
||||
public String getDisplayCountry(ULocale p0){ return null; }
|
||||
public String getDisplayKeywordValue(String p0){ return null; }
|
||||
public String getDisplayKeywordValue(String p0, ULocale p1){ return null; }
|
||||
public String getDisplayLanguage(){ return null; }
|
||||
public String getDisplayLanguage(ULocale p0){ return null; }
|
||||
public String getDisplayLanguageWithDialect(){ return null; }
|
||||
public String getDisplayLanguageWithDialect(ULocale p0){ return null; }
|
||||
public String getDisplayName(){ return null; }
|
||||
public String getDisplayName(ULocale p0){ return null; }
|
||||
public String getDisplayNameWithDialect(){ return null; }
|
||||
public String getDisplayNameWithDialect(ULocale p0){ return null; }
|
||||
public String getDisplayScript(){ return null; }
|
||||
public String getDisplayScript(ULocale p0){ return null; }
|
||||
public String getDisplayVariant(){ return null; }
|
||||
public String getDisplayVariant(ULocale p0){ return null; }
|
||||
public String getExtension(char p0){ return null; }
|
||||
public String getISO3Country(){ return null; }
|
||||
public String getISO3Language(){ return null; }
|
||||
public String getKeywordValue(String p0){ return null; }
|
||||
public String getLanguage(){ return null; }
|
||||
public String getLineOrientation(){ return null; }
|
||||
public String getName(){ return null; }
|
||||
public String getScript(){ return null; }
|
||||
public String getUnicodeLocaleType(String p0){ return null; }
|
||||
public String getVariant(){ return null; }
|
||||
public String toLanguageTag(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public ULocale getFallback(){ return null; }
|
||||
public ULocale setKeywordValue(String p0, String p1){ return null; }
|
||||
public ULocale(String p0){}
|
||||
public ULocale(String p0, String p1){}
|
||||
public ULocale(String p0, String p1, String p2){}
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public boolean isRightToLeft(){ return false; }
|
||||
public int compareTo(ULocale p0){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static Iterator<String> getKeywords(String p0){ return null; }
|
||||
public static String canonicalize(String p0){ return null; }
|
||||
public static String getBaseName(String p0){ return null; }
|
||||
public static String getCountry(String p0){ return null; }
|
||||
public static String getDisplayCountry(String p0, String p1){ return null; }
|
||||
public static String getDisplayCountry(String p0, ULocale p1){ return null; }
|
||||
public static String getDisplayKeyword(String p0){ return null; }
|
||||
public static String getDisplayKeyword(String p0, String p1){ return null; }
|
||||
public static String getDisplayKeyword(String p0, ULocale p1){ return null; }
|
||||
public static String getDisplayKeywordValue(String p0, String p1, String p2){ return null; }
|
||||
public static String getDisplayKeywordValue(String p0, String p1, ULocale p2){ return null; }
|
||||
public static String getDisplayLanguage(String p0, String p1){ return null; }
|
||||
public static String getDisplayLanguage(String p0, ULocale p1){ return null; }
|
||||
public static String getDisplayLanguageWithDialect(String p0, String p1){ return null; }
|
||||
public static String getDisplayLanguageWithDialect(String p0, ULocale p1){ return null; }
|
||||
public static String getDisplayName(String p0, String p1){ return null; }
|
||||
public static String getDisplayName(String p0, ULocale p1){ return null; }
|
||||
public static String getDisplayNameWithDialect(String p0, String p1){ return null; }
|
||||
public static String getDisplayNameWithDialect(String p0, ULocale p1){ return null; }
|
||||
public static String getDisplayScript(String p0, String p1){ return null; }
|
||||
public static String getDisplayScript(String p0, ULocale p1){ return null; }
|
||||
public static String getDisplayVariant(String p0, String p1){ return null; }
|
||||
public static String getDisplayVariant(String p0, ULocale p1){ return null; }
|
||||
public static String getFallback(String p0){ return null; }
|
||||
public static String getISO3Country(String p0){ return null; }
|
||||
public static String getISO3Language(String p0){ return null; }
|
||||
public static String getKeywordValue(String p0, String p1){ return null; }
|
||||
public static String getLanguage(String p0){ return null; }
|
||||
public static String getName(String p0){ return null; }
|
||||
public static String getScript(String p0){ return null; }
|
||||
public static String getVariant(String p0){ return null; }
|
||||
public static String setKeywordValue(String p0, String p1, String p2){ return null; }
|
||||
public static String toLegacyKey(String p0){ return null; }
|
||||
public static String toLegacyType(String p0, String p1){ return null; }
|
||||
public static String toUnicodeLocaleKey(String p0){ return null; }
|
||||
public static String toUnicodeLocaleType(String p0, String p1){ return null; }
|
||||
public static String[] getISOCountries(){ return null; }
|
||||
public static String[] getISOLanguages(){ return null; }
|
||||
public static ULocale CANADA = null;
|
||||
public static ULocale CANADA_FRENCH = null;
|
||||
public static ULocale CHINA = null;
|
||||
public static ULocale CHINESE = null;
|
||||
public static ULocale ENGLISH = null;
|
||||
public static ULocale FRANCE = null;
|
||||
public static ULocale FRENCH = null;
|
||||
public static ULocale GERMAN = null;
|
||||
public static ULocale GERMANY = null;
|
||||
public static ULocale ITALIAN = null;
|
||||
public static ULocale ITALY = null;
|
||||
public static ULocale JAPAN = null;
|
||||
public static ULocale JAPANESE = null;
|
||||
public static ULocale KOREA = null;
|
||||
public static ULocale KOREAN = null;
|
||||
public static ULocale PRC = null;
|
||||
public static ULocale ROOT = null;
|
||||
public static ULocale SIMPLIFIED_CHINESE = null;
|
||||
public static ULocale TAIWAN = null;
|
||||
public static ULocale TRADITIONAL_CHINESE = null;
|
||||
public static ULocale UK = null;
|
||||
public static ULocale US = null;
|
||||
public static ULocale acceptLanguage(String p0, ULocale[] p1, boolean[] p2){ return null; }
|
||||
public static ULocale acceptLanguage(String p0, boolean[] p1){ return null; }
|
||||
public static ULocale acceptLanguage(ULocale[] p0, ULocale[] p1, boolean[] p2){ return null; }
|
||||
public static ULocale acceptLanguage(ULocale[] p0, boolean[] p1){ return null; }
|
||||
public static ULocale addLikelySubtags(ULocale p0){ return null; }
|
||||
public static ULocale createCanonical(String p0){ return null; }
|
||||
public static ULocale forLanguageTag(String p0){ return null; }
|
||||
public static ULocale forLocale(Locale p0){ return null; }
|
||||
public static ULocale getDefault(){ return null; }
|
||||
public static ULocale getDefault(ULocale.Category p0){ return null; }
|
||||
public static ULocale minimizeSubtags(ULocale p0){ return null; }
|
||||
public static ULocale[] getAvailableLocales(){ return null; }
|
||||
public static char PRIVATE_USE_EXTENSION = '0';
|
||||
public static char UNICODE_LOCALE_EXTENSION = '0';
|
||||
static public enum Category
|
||||
{
|
||||
DISPLAY, FORMAT;
|
||||
private Category() {}
|
||||
}
|
||||
}
|
||||
@@ -1,545 +1,76 @@
|
||||
/*
|
||||
* Copyright (C) 2007 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package android.net;
|
||||
// Generated automatically from android.net.Uri for testing purposes
|
||||
|
||||
import android.content.Intent;
|
||||
package android.net;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLEncoder;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.AbstractList;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Objects;
|
||||
import java.util.RandomAccess;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Immutable URI reference. A URI reference includes a URI and a fragment, the
|
||||
* component of the URI following a '#'. Builds and parses URI references which
|
||||
* conform to <a href="http://www.faqs.org/rfcs/rfc2396.html">RFC 2396</a>.
|
||||
*
|
||||
* <p>
|
||||
* In the interest of performance, this class performs little to no validation.
|
||||
* Behavior is undefined for invalid input. This class is very forgiving--in the
|
||||
* face of invalid input, it will return garbage rather than throw an exception
|
||||
* unless otherwise specified.
|
||||
*/
|
||||
public abstract class Uri implements Parcelable, Comparable<Uri> {
|
||||
/*
|
||||
* This class aims to do as little up front work as possible. To accomplish
|
||||
* that, we vary the implementation depending on what the user passes in. For
|
||||
* example, we have one implementation if the user passes in a URI string
|
||||
* (StringUri) and another if the user passes in the individual components
|
||||
* (OpaqueUri). Concurrency notes*: Like any truly immutable object, this class
|
||||
* is safe for concurrent use. This class uses a caching pattern in some places
|
||||
* where it doesn't use volatile or synchronized. This is safe to do with ints
|
||||
* because getting or setting an int is atomic. It's safe to do with a String
|
||||
* because the internal fields are final and the memory model guarantees other
|
||||
* threads won't see a partially initialized instance. We are not guaranteed
|
||||
* that some threads will immediately see changes from other threads on certain
|
||||
* platforms, but we don't mind if those threads reconstruct the cached result.
|
||||
* As a result, we get thread safe caching with no concurrency overhead, which
|
||||
* means the most common case, access from a single thread, is as fast as
|
||||
* possible. From the Java Language spec.: "17.5 Final Field Semantics ... when
|
||||
* the object is seen by another thread, that thread will always see the
|
||||
* correctly constructed version of that object's final fields. It will also see
|
||||
* versions of any object or array referenced by those final fields that are at
|
||||
* least as up-to-date as the final fields are." In that same vein, all
|
||||
* non-transient fields within Uri implementations should be final and immutable
|
||||
* so as to ensure true immutability for clients even when they don't use proper
|
||||
* concurrency control. For reference, from RFC 2396: "4.3. Parsing a URI
|
||||
* Reference A URI reference is typically parsed according to the four main
|
||||
* components and fragment identifier in order to determine what components are
|
||||
* present and whether the reference is relative or absolute. The individual
|
||||
* components are then parsed for their subparts and, if not opaque, to verify
|
||||
* their validity. Although the BNF defines what is allowed in each component,
|
||||
* it is ambiguous in terms of differentiating between an authority component
|
||||
* and a path component that begins with two slash characters. The greedy
|
||||
* algorithm is used for disambiguation: the left-most matching rule soaks up as
|
||||
* much of the URI reference string as it is capable of matching. In other
|
||||
* words, the authority component wins." The "four main components" of a
|
||||
* hierarchical URI consist of <scheme>://<authority><path>?<query>
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: EMPTY accesses this field during its own initialization, so this field
|
||||
* *must* be initialized first, or else EMPTY will see a null value!
|
||||
*
|
||||
* Placeholder for strings which haven't been cached. This enables us to cache
|
||||
* null. We intentionally create a new String instance so we can compare its
|
||||
* identity and there is no chance we will confuse it with user data.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Returns true if this URI is hierarchical like "http://google.com". Absolute
|
||||
* URIs are hierarchical if the scheme-specific part starts with a '/'. Relative
|
||||
* URIs are always hierarchical.
|
||||
*/
|
||||
public abstract boolean isHierarchical();
|
||||
|
||||
/**
|
||||
* Returns true if this URI is opaque like "mailto:nobody@google.com". The
|
||||
* scheme-specific part of an opaque URI cannot start with a '/'.
|
||||
*/
|
||||
public boolean isOpaque() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if this URI is relative, i.e. if it doesn't contain an
|
||||
* explicit scheme.
|
||||
*
|
||||
* @return true if this URI is relative, false if it's absolute
|
||||
*/
|
||||
public abstract boolean isRelative();
|
||||
|
||||
/**
|
||||
* Returns true if this URI is absolute, i.e. if it contains an explicit
|
||||
* scheme.
|
||||
*
|
||||
* @return true if this URI is absolute, false if it's relative
|
||||
*/
|
||||
public boolean isAbsolute() {
|
||||
return !isRelative();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the scheme of this URI. Example: "http"
|
||||
*
|
||||
* @return the scheme or null if this is a relative URI
|
||||
*/
|
||||
public abstract String getScheme();
|
||||
|
||||
/**
|
||||
* Gets the scheme-specific part of this URI, i.e. everything between the
|
||||
* scheme separator ':' and the fragment separator '#'. If this is a relative
|
||||
* URI, this method returns the entire URI. Decodes escaped octets.
|
||||
*
|
||||
* <p>
|
||||
* Example: "//www.google.com/search?q=android"
|
||||
*
|
||||
* @return the decoded scheme-specific-part
|
||||
*/
|
||||
public abstract String getSchemeSpecificPart();
|
||||
|
||||
/**
|
||||
* Gets the scheme-specific part of this URI, i.e. everything between the
|
||||
* scheme separator ':' and the fragment separator '#'. If this is a relative
|
||||
* URI, this method returns the entire URI. Leaves escaped octets intact.
|
||||
*
|
||||
* <p>
|
||||
* Example: "//www.google.com/search?q=android"
|
||||
*
|
||||
* @return the decoded scheme-specific-part
|
||||
*/
|
||||
public abstract String getEncodedSchemeSpecificPart();
|
||||
|
||||
/**
|
||||
* Gets the decoded authority part of this URI. For server addresses, the
|
||||
* authority is structured as follows:
|
||||
* {@code [ userinfo '@' ] host [ ':' port ]}
|
||||
*
|
||||
* <p>
|
||||
* Examples: "google.com", "bob@google.com:80"
|
||||
*
|
||||
* @return the authority for this URI or null if not present
|
||||
*/
|
||||
public abstract String getAuthority();
|
||||
|
||||
/**
|
||||
* Gets the encoded authority part of this URI. For server addresses, the
|
||||
* authority is structured as follows:
|
||||
* {@code [ userinfo '@' ] host [ ':' port ]}
|
||||
*
|
||||
* <p>
|
||||
* Examples: "google.com", "bob@google.com:80"
|
||||
*
|
||||
* @return the authority for this URI or null if not present
|
||||
*/
|
||||
public abstract String getEncodedAuthority();
|
||||
|
||||
/**
|
||||
* Gets the decoded user information from the authority. For example, if the
|
||||
* authority is "nobody@google.com", this method will return "nobody".
|
||||
*
|
||||
* @return the user info for this URI or null if not present
|
||||
*/
|
||||
public abstract String getUserInfo();
|
||||
|
||||
/**
|
||||
* Gets the encoded user information from the authority. For example, if the
|
||||
* authority is "nobody@google.com", this method will return "nobody".
|
||||
*
|
||||
* @return the user info for this URI or null if not present
|
||||
*/
|
||||
public abstract String getEncodedUserInfo();
|
||||
|
||||
/**
|
||||
* Gets the encoded host from the authority for this URI. For example, if the
|
||||
* authority is "bob@google.com", this method will return "google.com".
|
||||
*
|
||||
* @return the host for this URI or null if not present
|
||||
*/
|
||||
public abstract String getHost();
|
||||
|
||||
/**
|
||||
* Gets the port from the authority for this URI. For example, if the authority
|
||||
* is "google.com:80", this method will return 80.
|
||||
*
|
||||
* @return the port for this URI or -1 if invalid or not present
|
||||
*/
|
||||
public abstract int getPort();
|
||||
|
||||
/**
|
||||
* Gets the decoded path.
|
||||
*
|
||||
* @return the decoded path, or null if this is not a hierarchical URI (like
|
||||
* "mailto:nobody@google.com") or the URI is invalid
|
||||
*/
|
||||
public abstract String getPath();
|
||||
|
||||
/**
|
||||
* Gets the encoded path.
|
||||
*
|
||||
* @return the encoded path, or null if this is not a hierarchical URI (like
|
||||
* "mailto:nobody@google.com") or the URI is invalid
|
||||
*/
|
||||
public abstract String getEncodedPath();
|
||||
|
||||
/**
|
||||
* Gets the decoded query component from this URI. The query comes after the
|
||||
* query separator ('?') and before the fragment separator ('#'). This method
|
||||
* would return "q=android" for "http://www.google.com/search?q=android".
|
||||
*
|
||||
* @return the decoded query or null if there isn't one
|
||||
*/
|
||||
public abstract String getQuery();
|
||||
|
||||
/**
|
||||
* Gets the encoded query component from this URI. The query comes after the
|
||||
* query separator ('?') and before the fragment separator ('#'). This method
|
||||
* would return "q=android" for "http://www.google.com/search?q=android".
|
||||
*
|
||||
* @return the encoded query or null if there isn't one
|
||||
*/
|
||||
public abstract String getEncodedQuery();
|
||||
|
||||
/**
|
||||
* Gets the decoded fragment part of this URI, everything after the '#'.
|
||||
*
|
||||
* @return the decoded fragment or null if there isn't one
|
||||
*/
|
||||
public abstract String getFragment();
|
||||
|
||||
/**
|
||||
* Gets the encoded fragment part of this URI, everything after the '#'.
|
||||
*
|
||||
* @return the encoded fragment or null if there isn't one
|
||||
*/
|
||||
public abstract String getEncodedFragment();
|
||||
|
||||
/**
|
||||
* Gets the decoded path segments.
|
||||
*
|
||||
* @return decoded path segments, each without a leading or trailing '/'
|
||||
*/
|
||||
abstract public class Uri implements Comparable<Uri>, Parcelable
|
||||
{
|
||||
public List<String> getQueryParameters(String p0){ return null; }
|
||||
public Set<String> getQueryParameterNames(){ return null; }
|
||||
public String getQueryParameter(String p0){ return null; }
|
||||
public Uri normalizeScheme(){ return null; }
|
||||
public abstract List<String> getPathSegments();
|
||||
|
||||
/**
|
||||
* Gets the decoded last segment in the path.
|
||||
*
|
||||
* @return the decoded last segment or null if the path is empty
|
||||
*/
|
||||
public abstract String getAuthority();
|
||||
public abstract String getEncodedAuthority();
|
||||
public abstract String getEncodedFragment();
|
||||
public abstract String getEncodedPath();
|
||||
public abstract String getEncodedQuery();
|
||||
public abstract String getEncodedSchemeSpecificPart();
|
||||
public abstract String getEncodedUserInfo();
|
||||
public abstract String getFragment();
|
||||
public abstract String getHost();
|
||||
public abstract String getLastPathSegment();
|
||||
|
||||
/**
|
||||
* Compares this Uri to another object for equality. Returns true if the encoded
|
||||
* string representations of this Uri and the given Uri are equal. Case counts.
|
||||
* Paths are not normalized. If one Uri specifies a default port explicitly and
|
||||
* the other leaves it implicit, they will not be considered equal.
|
||||
*/
|
||||
public boolean equals(Object o) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Hashes the encoded string represention of this Uri consistently with
|
||||
* {@link #equals(Object)}.
|
||||
*/
|
||||
public int hashCode() {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Compares the string representation of this Uri with that of another.
|
||||
*/
|
||||
public int compareTo(Uri other) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the encoded string representation of this URI. Example:
|
||||
* "http://google.com/"
|
||||
*/
|
||||
public abstract String getPath();
|
||||
public abstract String getQuery();
|
||||
public abstract String getScheme();
|
||||
public abstract String getSchemeSpecificPart();
|
||||
public abstract String getUserInfo();
|
||||
public abstract String toString();
|
||||
|
||||
/**
|
||||
* Return a string representation of the URI that is safe to print to logs and
|
||||
* other places where PII should be avoided.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public String toSafeString() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a Uri which parses the given encoded URI string.
|
||||
*
|
||||
* @param uriString an RFC 2396-compliant, encoded URI
|
||||
* @throws NullPointerException if uriString is null
|
||||
* @return Uri for this given uri string
|
||||
*/
|
||||
public static Uri parse(String uriString) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a Uri from a file. The URI has the form "file://<absolute path>".
|
||||
* Encodes path characters with the exception of '/'.
|
||||
*
|
||||
* <p>
|
||||
* Example: "file:///tmp/android.txt"
|
||||
*
|
||||
* @throws NullPointerException if file is null
|
||||
* @return a Uri for the given file
|
||||
*/
|
||||
public static Uri fromFile(File file) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an opaque Uri from the given components. Encodes the ssp which means
|
||||
* this method cannot be used to create hierarchical URIs.
|
||||
*
|
||||
* @param scheme of the URI
|
||||
* @param ssp scheme-specific-part, everything between the scheme separator
|
||||
* (':') and the fragment separator ('#'), which will get
|
||||
* encoded
|
||||
* @param fragment fragment, everything after the '#', null if undefined, will
|
||||
* get encoded
|
||||
*
|
||||
* @throws NullPointerException if scheme or ssp is null
|
||||
* @return Uri composed of the given scheme, ssp, and fragment
|
||||
*
|
||||
* @see Builder if you don't want the ssp and fragment to be encoded
|
||||
*/
|
||||
public static Uri fromParts(String scheme, String ssp, String fragment) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a set of the unique names of all query parameters. Iterating over the
|
||||
* set will return the names in order of their first occurrence.
|
||||
*
|
||||
* @throws UnsupportedOperationException if this isn't a hierarchical URI
|
||||
*
|
||||
* @return a set of decoded names
|
||||
*/
|
||||
public Set<String> getQueryParameterNames() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Searches the query string for parameter values with the given key.
|
||||
*
|
||||
* @param key which will be encoded
|
||||
*
|
||||
* @throws UnsupportedOperationException if this isn't a hierarchical URI
|
||||
* @throws NullPointerException if key is null
|
||||
* @return a list of decoded values
|
||||
*/
|
||||
public List<String> getQueryParameters(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Searches the query string for the first value with the given key.
|
||||
*
|
||||
* <p>
|
||||
* <strong>Warning:</strong> Prior to Jelly Bean, this decoded the '+' character
|
||||
* as '+' rather than ' '.
|
||||
*
|
||||
* @param key which will be encoded
|
||||
* @throws UnsupportedOperationException if this isn't a hierarchical URI
|
||||
* @throws NullPointerException if key is null
|
||||
* @return the decoded value or null if no parameter is found
|
||||
*/
|
||||
public String getQueryParameter(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Searches the query string for the first value with the given key and
|
||||
* interprets it as a boolean value. "false" and "0" are interpreted as
|
||||
* <code>false</code>, everything else is interpreted as <code>true</code>.
|
||||
*
|
||||
* @param key which will be decoded
|
||||
* @param defaultValue the default value to return if there is no query
|
||||
* parameter for key
|
||||
* @return the boolean interpretation of the query parameter key
|
||||
*/
|
||||
public boolean getBooleanQueryParameter(String key, boolean defaultValue) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return an equivalent URI with a lowercase scheme component. This aligns the
|
||||
* Uri with Android best practices for intent filtering.
|
||||
*
|
||||
* <p>
|
||||
* For example, "HTTP://www.android.com" becomes "http://www.android.com"
|
||||
*
|
||||
* <p>
|
||||
* All URIs received from outside Android (such as user input, or external
|
||||
* sources like Bluetooth, NFC, or the Internet) should be normalized before
|
||||
* they are used to create an Intent.
|
||||
*
|
||||
* <p class="note">
|
||||
* This method does <em>not</em> validate bad URI's, or 'fix' poorly formatted
|
||||
* URI's - so do not use it for input validation. A Uri will always be returned,
|
||||
* even if the Uri is badly formatted to begin with and a scheme component
|
||||
* cannot be found.
|
||||
*
|
||||
* @return normalized Uri (never null)
|
||||
* @see android.content.Intent#setData
|
||||
* @see android.content.Intent#setDataAndNormalize
|
||||
*/
|
||||
public Uri normalizeScheme() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes a Uri to a Parcel.
|
||||
*
|
||||
* @param out parcel to write to
|
||||
* @param uri to write, can be null
|
||||
*/
|
||||
public static void writeToParcel(Parcel out, Uri uri) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Encodes characters in the given string as '%'-escaped octets using the UTF-8
|
||||
* scheme. Leaves letters ("A-Z", "a-z"), numbers ("0-9"), and unreserved
|
||||
* characters ("_-!.~'()*") intact. Encodes all other characters.
|
||||
*
|
||||
* @param s string to encode
|
||||
* @return an encoded version of s suitable for use as a URI component, or null
|
||||
* if s is null
|
||||
*/
|
||||
public static String encode(String s) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Encodes characters in the given string as '%'-escaped octets using the UTF-8
|
||||
* scheme. Leaves letters ("A-Z", "a-z"), numbers ("0-9"), and unreserved
|
||||
* characters ("_-!.~'()*") intact. Encodes all other characters with the
|
||||
* exception of those specified in the allow argument.
|
||||
*
|
||||
* @param s string to encode
|
||||
* @param allow set of additional characters to allow in the encoded form, null
|
||||
* if no characters should be skipped
|
||||
* @return an encoded version of s suitable for use as a URI component, or null
|
||||
* if s is null
|
||||
*/
|
||||
public static String encode(String s, String allow) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Decodes '%'-escaped octets in the given string using the UTF-8 scheme.
|
||||
* Replaces invalid octets with the unicode replacement character ("\\uFFFD").
|
||||
*
|
||||
* @param s encoded string to decode
|
||||
* @return the given string with escaped octets decoded, or null if s is null
|
||||
*/
|
||||
public static String decode(String s) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new Uri by appending an already-encoded path segment to a base Uri.
|
||||
*
|
||||
* @param baseUri Uri to append path segment to
|
||||
* @param pathSegment encoded path segment to append
|
||||
* @return a new Uri based on baseUri with the given segment appended to the
|
||||
* path
|
||||
* @throws NullPointerException if baseUri is null
|
||||
*/
|
||||
public static Uri withAppendedPath(Uri baseUri, String pathSegment) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* If this {@link Uri} is {@code file://}, then resolve and return its canonical
|
||||
* path. Also fixes legacy emulated storage paths so they are usable across user
|
||||
* boundaries. Should always be called from the app process before sending
|
||||
* elsewhere.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public Uri getCanonicalUri() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* If this is a {@code file://} Uri, it will be reported to {@link StrictMode}.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public void checkFileUriExposed(String location) {
|
||||
}
|
||||
|
||||
/**
|
||||
* If this is a {@code content://} Uri without access flags, it will be reported
|
||||
* to {@link StrictMode}.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public void checkContentUriWithoutPermission(String location, int flags) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test if this is a path prefix match against the given Uri. Verifies that
|
||||
* scheme, authority, and atomic path segments match.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public boolean isPathPrefixMatch(Uri prefix) {
|
||||
return false;
|
||||
public abstract Uri.Builder buildUpon();
|
||||
public abstract boolean isHierarchical();
|
||||
public abstract boolean isRelative();
|
||||
public abstract int getPort();
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public boolean getBooleanQueryParameter(String p0, boolean p1){ return false; }
|
||||
public boolean isAbsolute(){ return false; }
|
||||
public boolean isOpaque(){ return false; }
|
||||
public int compareTo(Uri p0){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static Parcelable.Creator<Uri> CREATOR = null;
|
||||
public static String decode(String p0){ return null; }
|
||||
public static String encode(String p0){ return null; }
|
||||
public static String encode(String p0, String p1){ return null; }
|
||||
public static Uri EMPTY = null;
|
||||
public static Uri fromFile(File p0){ return null; }
|
||||
public static Uri fromParts(String p0, String p1, String p2){ return null; }
|
||||
public static Uri parse(String p0){ return null; }
|
||||
public static Uri withAppendedPath(Uri p0, String p1){ return null; }
|
||||
public static void writeToParcel(Parcel p0, Uri p1){}
|
||||
static public class Builder
|
||||
{
|
||||
public Builder(){}
|
||||
public String toString(){ return null; }
|
||||
public Uri build(){ return null; }
|
||||
public Uri.Builder appendEncodedPath(String p0){ return null; }
|
||||
public Uri.Builder appendPath(String p0){ return null; }
|
||||
public Uri.Builder appendQueryParameter(String p0, String p1){ return null; }
|
||||
public Uri.Builder authority(String p0){ return null; }
|
||||
public Uri.Builder clearQuery(){ return null; }
|
||||
public Uri.Builder encodedAuthority(String p0){ return null; }
|
||||
public Uri.Builder encodedFragment(String p0){ return null; }
|
||||
public Uri.Builder encodedOpaquePart(String p0){ return null; }
|
||||
public Uri.Builder encodedPath(String p0){ return null; }
|
||||
public Uri.Builder encodedQuery(String p0){ return null; }
|
||||
public Uri.Builder fragment(String p0){ return null; }
|
||||
public Uri.Builder opaquePart(String p0){ return null; }
|
||||
public Uri.Builder path(String p0){ return null; }
|
||||
public Uri.Builder query(String p0){ return null; }
|
||||
public Uri.Builder scheme(String p0){ return null; }
|
||||
}
|
||||
|
||||
public Builder buildUpon() { return null; }
|
||||
|
||||
@@ -1,832 +1,43 @@
|
||||
/*
|
||||
* Copyright (C) 2014 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
// Generated automatically from android.os.BaseBundle for testing purposes
|
||||
|
||||
package android.os;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import android.os.PersistableBundle;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* A mapping from String keys to values of various types. In most cases, you
|
||||
* should work directly with either the {@link Bundle} or
|
||||
* {@link PersistableBundle} subclass.
|
||||
*/
|
||||
public class BaseBundle {
|
||||
/**
|
||||
* Constructs a new, empty Bundle that uses a specific ClassLoader for
|
||||
* instantiating Parcelable and Serializable objects.
|
||||
*
|
||||
* @param loader An explicit ClassLoader to use when instantiating objects
|
||||
* inside of the Bundle.
|
||||
* @param capacity Initial size of the ArrayMap.
|
||||
*/
|
||||
BaseBundle(ClassLoader loader, int capacity) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new, empty Bundle.
|
||||
*/
|
||||
BaseBundle() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a Bundle whose data is stored as a Parcel. The data will be
|
||||
* unparcelled on first contact, using the assigned ClassLoader.
|
||||
*
|
||||
* @param parcelledData a Parcel containing a Bundle
|
||||
*/
|
||||
BaseBundle(Parcel parcelledData) {
|
||||
}
|
||||
|
||||
BaseBundle(Parcel parcelledData, int length) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new, empty Bundle that uses a specific ClassLoader for
|
||||
* instantiating Parcelable and Serializable objects.
|
||||
*
|
||||
* @param loader An explicit ClassLoader to use when instantiating objects
|
||||
* inside of the Bundle.
|
||||
*/
|
||||
BaseBundle(ClassLoader loader) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new, empty Bundle sized to hold the given number of elements.
|
||||
* The Bundle will grow as needed.
|
||||
*
|
||||
* @param capacity the initial capacity of the Bundle
|
||||
*/
|
||||
BaseBundle(int capacity) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a Bundle containing a copy of the mappings from the given Bundle.
|
||||
*
|
||||
* @param b a Bundle to be copied.
|
||||
*/
|
||||
BaseBundle(BaseBundle b) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Special constructor that does not initialize the bundle.
|
||||
*/
|
||||
BaseBundle(boolean doInit) {
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO: optimize this later (getting just the value part of a Bundle with a
|
||||
* single pair) once Bundle.forPair() above is implemented with a special
|
||||
* single-value Map implementation/serialization.
|
||||
*
|
||||
* Note: value in single-pair Bundle may be null.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public String getPairValue() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Changes the ClassLoader this Bundle uses when instantiating objects.
|
||||
*
|
||||
* @param loader An explicit ClassLoader to use when instantiating objects
|
||||
* inside of the Bundle.
|
||||
*/
|
||||
void setClassLoader(ClassLoader loader) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the ClassLoader currently associated with this Bundle.
|
||||
*/
|
||||
ClassLoader getClassLoader() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
public boolean isParcelled() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
public boolean isEmptyParcel() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the given key is contained in the mapping
|
||||
* of this Bundle.
|
||||
*
|
||||
* @param key a String key
|
||||
* @return true if the key is part of the mapping, false otherwise
|
||||
*/
|
||||
public boolean containsKey(String key) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the entry with the given key as an object.
|
||||
*
|
||||
* @param key a String key
|
||||
* @return an Object, or null
|
||||
*/
|
||||
public Object get(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes any entry with the given key from the mapping of this Bundle.
|
||||
*
|
||||
* @param key a String key
|
||||
*/
|
||||
public void remove(String key) {
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
public void putObject(String key, Object value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a Boolean value into the mapping of this Bundle, replacing
|
||||
* any existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a boolean
|
||||
*/
|
||||
public void putBoolean(String key, boolean value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a byte value into the mapping of this Bundle, replacing
|
||||
* any existing value for the given key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a byte
|
||||
*/
|
||||
void putByte(String key, byte value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a char value into the mapping of this Bundle, replacing
|
||||
* any existing value for the given key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a char
|
||||
*/
|
||||
void putChar(String key, char value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a short value into the mapping of this Bundle, replacing
|
||||
* any existing value for the given key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a short
|
||||
*/
|
||||
void putShort(String key, short value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts an int value into the mapping of this Bundle, replacing
|
||||
* any existing value for the given key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value an int
|
||||
*/
|
||||
public void putInt(String key, int value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a long value into the mapping of this Bundle, replacing
|
||||
* any existing value for the given key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a long
|
||||
*/
|
||||
public void putLong(String key, long value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a float value into the mapping of this Bundle, replacing
|
||||
* any existing value for the given key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a float
|
||||
*/
|
||||
void putFloat(String key, float value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a double value into the mapping of this Bundle, replacing
|
||||
* any existing value for the given key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a double
|
||||
*/
|
||||
public void putDouble(String key, double value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a String value into the mapping of this Bundle, replacing
|
||||
* any existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a String, or null
|
||||
*/
|
||||
public void putString(String key, String value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a CharSequence value into the mapping of this Bundle, replacing
|
||||
* any existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a CharSequence, or null
|
||||
*/
|
||||
void putCharSequence(String key, CharSequence value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts an ArrayList<Integer> value into the mapping of this Bundle, replacing
|
||||
* any existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value an ArrayList<Integer> object, or null
|
||||
*/
|
||||
void putIntegerArrayList(String key, ArrayList<Integer> value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts an ArrayList<String> value into the mapping of this Bundle, replacing
|
||||
* any existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value an ArrayList<String> object, or null
|
||||
*/
|
||||
void putStringArrayList(String key, ArrayList<String> value) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Inserts an ArrayList<CharSequence> value into the mapping of this Bundle,
|
||||
* replacing any existing value for the given key. Either key or value may be
|
||||
* null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value an ArrayList<CharSequence> object, or null
|
||||
*/
|
||||
void putCharSequenceArrayList(String key, ArrayList<CharSequence> value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a Serializable value into the mapping of this Bundle, replacing any
|
||||
* existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a Serializable object, or null
|
||||
*/
|
||||
void putSerializable(String key, Serializable value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a boolean array value into the mapping of this Bundle, replacing any
|
||||
* existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a boolean array object, or null
|
||||
*/
|
||||
public void putBooleanArray(String key, boolean[] value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a byte array value into the mapping of this Bundle, replacing any
|
||||
* existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a byte array object, or null
|
||||
*/
|
||||
void putByteArray(String key, byte[] value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a short array value into the mapping of this Bundle, replacing any
|
||||
* existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a short array object, or null
|
||||
*/
|
||||
void putShortArray(String key, short[] value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a char array value into the mapping of this Bundle, replacing any
|
||||
* existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a char array object, or null
|
||||
*/
|
||||
void putCharArray(String key, char[] value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts an int array value into the mapping of this Bundle, replacing any
|
||||
* existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value an int array object, or null
|
||||
*/
|
||||
public void putIntArray(String key, int[] value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a long array value into the mapping of this Bundle, replacing any
|
||||
* existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a long array object, or null
|
||||
*/
|
||||
public void putLongArray(String key, long[] value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a float array value into the mapping of this Bundle, replacing any
|
||||
* existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a float array object, or null
|
||||
*/
|
||||
void putFloatArray(String key, float[] value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a double array value into the mapping of this Bundle, replacing any
|
||||
* existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a double array object, or null
|
||||
*/
|
||||
public void putDoubleArray(String key, double[] value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a String array value into the mapping of this Bundle, replacing any
|
||||
* existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a String array object, or null
|
||||
*/
|
||||
public void putStringArray(String key, String[] value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a CharSequence array value into the mapping of this Bundle, replacing
|
||||
* any existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a CharSequence array object, or null
|
||||
*/
|
||||
void putCharSequenceArray(String key, CharSequence[] value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or false if no mapping of
|
||||
* the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @return a boolean value
|
||||
*/
|
||||
public boolean getBoolean(String key) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or defaultValue if no
|
||||
* mapping of the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @param defaultValue Value to return if key does not exist
|
||||
* @return a boolean value
|
||||
*/
|
||||
public boolean getBoolean(String key, boolean defaultValue) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or (byte) 0 if no mapping of
|
||||
* the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @return a byte value
|
||||
*/
|
||||
byte getByte(String key) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or defaultValue if no
|
||||
* mapping of the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @param defaultValue Value to return if key does not exist
|
||||
* @return a byte value
|
||||
*/
|
||||
Byte getByte(String key, byte defaultValue) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or (char) 0 if no mapping of
|
||||
* the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @return a char value
|
||||
*/
|
||||
char getChar(String key) {
|
||||
return 'a';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or defaultValue if no
|
||||
* mapping of the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @param defaultValue Value to return if key does not exist
|
||||
* @return a char value
|
||||
*/
|
||||
char getChar(String key, char defaultValue) {
|
||||
return 'a';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or (short) 0 if no mapping
|
||||
* of the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @return a short value
|
||||
*/
|
||||
short getShort(String key) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or defaultValue if no
|
||||
* mapping of the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @param defaultValue Value to return if key does not exist
|
||||
* @return a short value
|
||||
*/
|
||||
short getShort(String key, short defaultValue) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or 0 if no mapping of the
|
||||
* desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @return an int value
|
||||
*/
|
||||
public int getInt(String key) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or defaultValue if no
|
||||
* mapping of the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @param defaultValue Value to return if key does not exist
|
||||
* @return an int value
|
||||
*/
|
||||
public int getInt(String key, int defaultValue) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or 0L if no mapping of the
|
||||
* desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @return a long value
|
||||
*/
|
||||
public long getLong(String key) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or defaultValue if no
|
||||
* mapping of the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @param defaultValue Value to return if key does not exist
|
||||
* @return a long value
|
||||
*/
|
||||
public long getLong(String key, long defaultValue) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or 0.0f if no mapping of the
|
||||
* desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @return a float value
|
||||
*/
|
||||
float getFloat(String key) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or defaultValue if no
|
||||
* mapping of the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @param defaultValue Value to return if key does not exist
|
||||
* @return a float value
|
||||
*/
|
||||
float getFloat(String key, float defaultValue) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or 0.0 if no mapping of the
|
||||
* desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @return a double value
|
||||
*/
|
||||
public double getDouble(String key) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or defaultValue if no
|
||||
* mapping of the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @param defaultValue Value to return if key does not exist
|
||||
* @return a double value
|
||||
*/
|
||||
public double getDouble(String key, double defaultValue) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a String value, or null
|
||||
*/
|
||||
public String getString(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or defaultValue if no
|
||||
* mapping of the desired type exists for the given key or if a null value is
|
||||
* explicitly associated with the given key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param defaultValue Value to return if key does not exist or if a null value
|
||||
* is associated with the given key.
|
||||
* @return the String value associated with the given key, or defaultValue if no
|
||||
* valid String object is currently mapped to that key.
|
||||
*/
|
||||
public String getString(String key, String defaultValue) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a CharSequence value, or null
|
||||
*/
|
||||
CharSequence getCharSequence(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or defaultValue if no
|
||||
* mapping of the desired type exists for the given key or if a null value is
|
||||
* explicitly associated with the given key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param defaultValue Value to return if key does not exist or if a null value
|
||||
* is associated with the given key.
|
||||
* @return the CharSequence value associated with the given key, or defaultValue
|
||||
* if no valid CharSequence object is currently mapped to that key.
|
||||
*/
|
||||
CharSequence getCharSequence(String key, CharSequence defaultValue) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a Serializable value, or null
|
||||
*/
|
||||
Serializable getSerializable(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return an ArrayList<String> value, or null
|
||||
*/
|
||||
ArrayList<Integer> getIntegerArrayList(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return an ArrayList<String> value, or null
|
||||
*/
|
||||
ArrayList<String> getStringArrayList(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return an ArrayList<CharSequence> value, or null
|
||||
*/
|
||||
ArrayList<CharSequence> getCharSequenceArrayList(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a boolean[] value, or null
|
||||
*/
|
||||
public boolean[] getBooleanArray(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a byte[] value, or null
|
||||
*/
|
||||
byte[] getByteArray(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a short[] value, or null
|
||||
*/
|
||||
short[] getShortArray(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a char[] value, or null
|
||||
*/
|
||||
char[] getCharArray(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return an int[] value, or null
|
||||
*/
|
||||
public int[] getIntArray(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a long[] value, or null
|
||||
*/
|
||||
public long[] getLongArray(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a float[] value, or null
|
||||
*/
|
||||
float[] getFloatArray(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a double[] value, or null
|
||||
*/
|
||||
public double[] getDoubleArray(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a String[] value, or null
|
||||
*/
|
||||
public String[] getStringArray(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a CharSequence[] value, or null
|
||||
*/
|
||||
CharSequence[] getCharSequenceArray(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes the Bundle contents to a Parcel, typically in order for it to be
|
||||
* passed through an IBinder connection.
|
||||
*
|
||||
* @param parcel The parcel to copy this bundle to.
|
||||
*/
|
||||
void writeToParcelInner(Parcel parcel, int flags) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads the Parcel contents into this Bundle, typically in order for it to be
|
||||
* passed through an IBinder connection.
|
||||
*
|
||||
* @param parcel The parcel to overwrite this bundle from.
|
||||
*/
|
||||
void readFromParcelInner(Parcel parcel) {
|
||||
}
|
||||
|
||||
public class BaseBundle
|
||||
{
|
||||
public Object get(String p0){ return null; }
|
||||
public Set<String> keySet(){ return null; }
|
||||
public String getString(String p0){ return null; }
|
||||
public String getString(String p0, String p1){ return null; }
|
||||
public String[] getStringArray(String p0){ return null; }
|
||||
public boolean containsKey(String p0){ return false; }
|
||||
public boolean getBoolean(String p0){ return false; }
|
||||
public boolean getBoolean(String p0, boolean p1){ return false; }
|
||||
public boolean isEmpty(){ return false; }
|
||||
public boolean[] getBooleanArray(String p0){ return null; }
|
||||
public double getDouble(String p0){ return 0; }
|
||||
public double getDouble(String p0, double p1){ return 0; }
|
||||
public double[] getDoubleArray(String p0){ return null; }
|
||||
public int getInt(String p0){ return 0; }
|
||||
public int getInt(String p0, int p1){ return 0; }
|
||||
public int size(){ return 0; }
|
||||
public int[] getIntArray(String p0){ return null; }
|
||||
public long getLong(String p0){ return 0; }
|
||||
public long getLong(String p0, long p1){ return 0; }
|
||||
public long[] getLongArray(String p0){ return null; }
|
||||
public void clear(){}
|
||||
public void putAll(PersistableBundle p0){}
|
||||
public void putBoolean(String p0, boolean p1){}
|
||||
public void putBooleanArray(String p0, boolean[] p1){}
|
||||
public void putDouble(String p0, double p1){}
|
||||
public void putDoubleArray(String p0, double[] p1){}
|
||||
public void putInt(String p0, int p1){}
|
||||
public void putIntArray(String p0, int[] p1){}
|
||||
public void putLong(String p0, long p1){}
|
||||
public void putLongArray(String p0, long[] p1){}
|
||||
public void putString(String p0, String p1){}
|
||||
public void putStringArray(String p0, String[] p1){}
|
||||
public void remove(String p0){}
|
||||
}
|
||||
|
||||
@@ -1,511 +1,86 @@
|
||||
/*
|
||||
* Copyright (C) 2007 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
// Generated automatically from android.os.Bundle for testing purposes
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.os.BaseBundle;
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.os.PersistableBundle;
|
||||
import android.util.Size;
|
||||
import android.util.SizeF;
|
||||
import android.util.SparseArray;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* A mapping from String keys to various {@link Parcelable} values.
|
||||
*
|
||||
* @see PersistableBundle
|
||||
*/
|
||||
public final class Bundle extends BaseBundle implements Cloneable, Parcelable {
|
||||
|
||||
/**
|
||||
* Constructs a new, empty Bundle.
|
||||
*/
|
||||
public Bundle() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes all elements from the mapping of this Bundle.
|
||||
*/
|
||||
public void clear() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes any entry with the given key from the mapping of this Bundle.
|
||||
*
|
||||
* @param key a String key
|
||||
*/
|
||||
public void remove(String key) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts all mappings from the given Bundle into this Bundle.
|
||||
*
|
||||
* @param bundle a Bundle
|
||||
*/
|
||||
public void putAll(Bundle bundle) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the size of {@link #mParcelledData} in bytes if available, otherwise
|
||||
* {@code 0}.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public int getSize() {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a byte value into the mapping of this Bundle, replacing any existing
|
||||
* value for the given key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a byte
|
||||
*/
|
||||
public void putByte(String key, byte value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a char value into the mapping of this Bundle, replacing any existing
|
||||
* value for the given key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a char
|
||||
*/
|
||||
public void putChar(String key, char value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a short value into the mapping of this Bundle, replacing any existing
|
||||
* value for the given key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a short
|
||||
*/
|
||||
public void putShort(String key, short value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a float value into the mapping of this Bundle, replacing any existing
|
||||
* value for the given key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a float
|
||||
*/
|
||||
public void putFloat(String key, float value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a CharSequence value into the mapping of this Bundle, replacing any
|
||||
* existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a CharSequence, or null
|
||||
*/
|
||||
public void putCharSequence(String key, CharSequence value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts an ArrayList<Integer> value into the mapping of this Bundle,
|
||||
* replacing any existing value for the given key. Either key or value may be
|
||||
* null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value an ArrayList<Integer> object, or null
|
||||
*/
|
||||
public void putIntegerArrayList(String key, ArrayList<Integer> value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts an ArrayList<String> value into the mapping of this Bundle, replacing
|
||||
* any existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value an ArrayList<String> object, or null
|
||||
*/
|
||||
public void putStringArrayList(String key, ArrayList<String> value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts an ArrayList<CharSequence> value into the mapping of this Bundle,
|
||||
* replacing any existing value for the given key. Either key or value may be
|
||||
* null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value an ArrayList<CharSequence> object, or null
|
||||
*/
|
||||
public void putCharSequenceArrayList(String key, ArrayList<CharSequence> value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a Serializable value into the mapping of this Bundle, replacing any
|
||||
* existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a Serializable object, or null
|
||||
*/
|
||||
public void putSerializable(String key, Serializable value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a byte array value into the mapping of this Bundle, replacing any
|
||||
* existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a byte array object, or null
|
||||
*/
|
||||
public void putByteArray(String key, byte[] value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a short array value into the mapping of this Bundle, replacing any
|
||||
* existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a short array object, or null
|
||||
*/
|
||||
public void putShortArray(String key, short[] value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a char array value into the mapping of this Bundle, replacing any
|
||||
* existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a char array object, or null
|
||||
*/
|
||||
public void putCharArray(String key, char[] value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a float array value into the mapping of this Bundle, replacing any
|
||||
* existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a float array object, or null
|
||||
*/
|
||||
public void putFloatArray(String key, float[] value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a CharSequence array value into the mapping of this Bundle, replacing
|
||||
* any existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a CharSequence array object, or null
|
||||
*/
|
||||
public void putCharSequenceArray(String key, CharSequence[] value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a Bundle value into the mapping of this Bundle, replacing any
|
||||
* existing value for the given key. Either key or value may be null.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param value a Bundle object, or null
|
||||
*/
|
||||
public void putBundle(String key, Bundle value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or (byte) 0 if no mapping of
|
||||
* the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @return a byte value
|
||||
*/
|
||||
public byte getByte(String key) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or defaultValue if no
|
||||
* mapping of the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @param defaultValue Value to return if key does not exist
|
||||
* @return a byte value
|
||||
*/
|
||||
public Byte getByte(String key, byte defaultValue) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or (char) 0 if no mapping of
|
||||
* the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @return a char value
|
||||
*/
|
||||
public char getChar(String key) {
|
||||
return 'a';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or defaultValue if no
|
||||
* mapping of the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @param defaultValue Value to return if key does not exist
|
||||
* @return a char value
|
||||
*/
|
||||
public char getChar(String key, char defaultValue) {
|
||||
return 'a';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or (short) 0 if no mapping
|
||||
* of the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @return a short value
|
||||
*/
|
||||
public short getShort(String key) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or defaultValue if no
|
||||
* mapping of the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @param defaultValue Value to return if key does not exist
|
||||
* @return a short value
|
||||
*/
|
||||
public short getShort(String key, short defaultValue) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or 0.0f if no mapping of the
|
||||
* desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @return a float value
|
||||
*/
|
||||
public float getFloat(String key) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or defaultValue if no
|
||||
* mapping of the desired type exists for the given key.
|
||||
*
|
||||
* @param key a String
|
||||
* @param defaultValue Value to return if key does not exist
|
||||
* @return a float value
|
||||
*/
|
||||
public float getFloat(String key, float defaultValue) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a CharSequence value, or null
|
||||
*/
|
||||
public CharSequence getCharSequence(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or defaultValue if no
|
||||
* mapping of the desired type exists for the given key or if a null value is
|
||||
* explicitly associatd with the given key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @param defaultValue Value to return if key does not exist or if a null value
|
||||
* is associated with the given key.
|
||||
* @return the CharSequence value associated with the given key, or defaultValue
|
||||
* if no valid CharSequence object is currently mapped to that key.
|
||||
*/
|
||||
public CharSequence getCharSequence(String key, CharSequence defaultValue) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a Bundle value, or null
|
||||
*/
|
||||
public Bundle getBundle(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if
|
||||
* no mapping of the desired type exists for the given key or a null
|
||||
* value is explicitly associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a Parcelable value, or null
|
||||
*/
|
||||
public <T extends Parcelable> T getParcelable(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return an ArrayList<T> value, or null
|
||||
*/
|
||||
public <T extends Parcelable> ArrayList<T> getParcelableArrayList(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a Serializable value, or null
|
||||
*/
|
||||
public Serializable getSerializable(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return an ArrayList<String> value, or null
|
||||
*/
|
||||
public ArrayList<Integer> getIntegerArrayList(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return an ArrayList<String> value, or null
|
||||
*/
|
||||
public ArrayList<String> getStringArrayList(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return an ArrayList<CharSequence> value, or null
|
||||
*/
|
||||
public ArrayList<CharSequence> getCharSequenceArrayList(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a byte[] value, or null
|
||||
*/
|
||||
public byte[] getByteArray(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a short[] value, or null
|
||||
*/
|
||||
public short[] getShortArray(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a char[] value, or null
|
||||
*/
|
||||
public char[] getCharArray(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a float[] value, or null
|
||||
*/
|
||||
public float[] getFloatArray(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with the given key, or null if no mapping of the
|
||||
* desired type exists for the given key or a null value is explicitly
|
||||
* associated with the key.
|
||||
*
|
||||
* @param key a String, or null
|
||||
* @return a CharSequence[] value, or null
|
||||
*/
|
||||
public CharSequence[] getCharSequenceArray(String key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes the Bundle contents to a Parcel, typically in order for it to be
|
||||
* passed through an IBinder connection.
|
||||
*
|
||||
* @param parcel The parcel to copy this bundle to.
|
||||
*/
|
||||
public void writeToParcel(Parcel parcel, int flags) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads the Parcel contents into this Bundle, typically in order for it to be
|
||||
* passed through an IBinder connection.
|
||||
*
|
||||
* @param parcel The parcel to overwrite this bundle from.
|
||||
*/
|
||||
public void readFromParcel(Parcel parcel) {
|
||||
}
|
||||
|
||||
public synchronized String toString() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
public synchronized String toShortString() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
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 ArrayList<CharSequence> getCharSequenceArrayList(String p0){ return null; }
|
||||
public ArrayList<Integer> getIntegerArrayList(String p0){ return null; }
|
||||
public ArrayList<String> getStringArrayList(String p0){ return null; }
|
||||
public Bundle deepCopy(){ return null; }
|
||||
public Bundle getBundle(String p0){ return null; }
|
||||
public Bundle(){}
|
||||
public Bundle(Bundle p0){}
|
||||
public Bundle(ClassLoader p0){}
|
||||
public Bundle(PersistableBundle p0){}
|
||||
public Bundle(int p0){}
|
||||
public Byte getByte(String p0, byte p1){ return null; }
|
||||
public CharSequence getCharSequence(String p0){ return null; }
|
||||
public CharSequence getCharSequence(String p0, CharSequence p1){ return null; }
|
||||
public CharSequence[] getCharSequenceArray(String p0){ return null; }
|
||||
public ClassLoader getClassLoader(){ return null; }
|
||||
public IBinder getBinder(String p0){ return null; }
|
||||
public Object clone(){ return null; }
|
||||
public Parcelable[] getParcelableArray(String p0){ return null; }
|
||||
public Serializable getSerializable(String p0){ return null; }
|
||||
public Size getSize(String p0){ return null; }
|
||||
public SizeF getSizeF(String p0){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean hasFileDescriptors(){ return false; }
|
||||
public byte getByte(String p0){ return 0; }
|
||||
public byte[] getByteArray(String p0){ return null; }
|
||||
public char getChar(String p0){ return '0'; }
|
||||
public char getChar(String p0, char p1){ return '0'; }
|
||||
public char[] getCharArray(String p0){ return null; }
|
||||
public float getFloat(String p0){ return 0; }
|
||||
public float getFloat(String p0, float p1){ return 0; }
|
||||
public float[] getFloatArray(String p0){ return null; }
|
||||
public int describeContents(){ return 0; }
|
||||
public short getShort(String p0){ return 0; }
|
||||
public short getShort(String p0, short p1){ return 0; }
|
||||
public short[] getShortArray(String p0){ return null; }
|
||||
public static Bundle EMPTY = null;
|
||||
public static Parcelable.Creator<Bundle> CREATOR = null;
|
||||
public void clear(){}
|
||||
public void putAll(Bundle p0){}
|
||||
public void putBinder(String p0, IBinder p1){}
|
||||
public void putBundle(String p0, Bundle p1){}
|
||||
public void putByte(String p0, byte p1){}
|
||||
public void putByteArray(String p0, byte[] p1){}
|
||||
public void putChar(String p0, char p1){}
|
||||
public void putCharArray(String p0, char[] p1){}
|
||||
public void putCharSequence(String p0, CharSequence p1){}
|
||||
public void putCharSequenceArray(String p0, CharSequence[] p1){}
|
||||
public void putCharSequenceArrayList(String p0, ArrayList<CharSequence> p1){}
|
||||
public void putFloat(String p0, float p1){}
|
||||
public void putFloatArray(String p0, float[] p1){}
|
||||
public void putIntegerArrayList(String p0, ArrayList<Integer> p1){}
|
||||
public void putParcelable(String p0, Parcelable p1){}
|
||||
public void putParcelableArray(String p0, Parcelable[] p1){}
|
||||
public void putParcelableArrayList(String p0, ArrayList<? extends Parcelable> p1){}
|
||||
public void putSerializable(String p0, Serializable p1){}
|
||||
public void putShort(String p0, short p1){}
|
||||
public void putShortArray(String p0, short[] p1){}
|
||||
public void putSize(String p0, Size p1){}
|
||||
public void putSizeF(String p0, SizeF p1){}
|
||||
public void putSparseParcelableArray(String p0, SparseArray<? extends Parcelable> p1){}
|
||||
public void putStringArrayList(String p0, ArrayList<String> p1){}
|
||||
public void readFromParcel(Parcel p0){}
|
||||
public void remove(String p0){}
|
||||
public void setClassLoader(ClassLoader p0){}
|
||||
public void writeToParcel(Parcel p0, int p1){}
|
||||
}
|
||||
|
||||
53
java/ql/test/stubs/google-android-9.0.0/android/os/Handler.java
generated
Normal file
53
java/ql/test/stubs/google-android-9.0.0/android/os/Handler.java
generated
Normal file
@@ -0,0 +1,53 @@
|
||||
// Generated automatically from android.os.Handler for testing purposes
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.os.Looper;
|
||||
import android.os.Message;
|
||||
import android.util.Printer;
|
||||
|
||||
public class Handler
|
||||
{
|
||||
public Handler(){}
|
||||
public Handler(Handler.Callback p0){}
|
||||
public Handler(Looper p0){}
|
||||
public Handler(Looper p0, Handler.Callback p1){}
|
||||
public String getMessageName(Message p0){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean sendMessageAtTime(Message p0, long p1){ return false; }
|
||||
public final Looper getLooper(){ return null; }
|
||||
public final Message obtainMessage(){ return null; }
|
||||
public final Message obtainMessage(int p0){ return null; }
|
||||
public final Message obtainMessage(int p0, Object p1){ return null; }
|
||||
public final Message obtainMessage(int p0, int p1, int p2){ return null; }
|
||||
public final Message obtainMessage(int p0, int p1, int p2, Object p3){ return null; }
|
||||
public final boolean hasCallbacks(Runnable p0){ return false; }
|
||||
public final boolean hasMessages(int p0){ return false; }
|
||||
public final boolean hasMessages(int p0, Object p1){ return false; }
|
||||
public final boolean post(Runnable p0){ return false; }
|
||||
public final boolean postAtFrontOfQueue(Runnable p0){ return false; }
|
||||
public final boolean postAtTime(Runnable p0, Object p1, long p2){ return false; }
|
||||
public final boolean postAtTime(Runnable p0, long p1){ return false; }
|
||||
public final boolean postDelayed(Runnable p0, Object p1, long p2){ return false; }
|
||||
public final boolean postDelayed(Runnable p0, long p1){ return false; }
|
||||
public final boolean sendEmptyMessage(int p0){ return false; }
|
||||
public final boolean sendEmptyMessageAtTime(int p0, long p1){ return false; }
|
||||
public final boolean sendEmptyMessageDelayed(int p0, long p1){ return false; }
|
||||
public final boolean sendMessage(Message p0){ return false; }
|
||||
public final boolean sendMessageAtFrontOfQueue(Message p0){ return false; }
|
||||
public final boolean sendMessageDelayed(Message p0, long p1){ return false; }
|
||||
public final void dump(Printer p0, String p1){}
|
||||
public final void removeCallbacks(Runnable p0){}
|
||||
public final void removeCallbacks(Runnable p0, Object p1){}
|
||||
public final void removeCallbacksAndMessages(Object p0){}
|
||||
public final void removeMessages(int p0){}
|
||||
public final void removeMessages(int p0, Object p1){}
|
||||
public static Handler createAsync(Looper p0){ return null; }
|
||||
public static Handler createAsync(Looper p0, Handler.Callback p1){ return null; }
|
||||
public void dispatchMessage(Message p0){}
|
||||
public void handleMessage(Message p0){}
|
||||
static public interface Callback
|
||||
{
|
||||
boolean handleMessage(Message p0);
|
||||
}
|
||||
}
|
||||
32
java/ql/test/stubs/google-android-9.0.0/android/os/IBinder.java
generated
Normal file
32
java/ql/test/stubs/google-android-9.0.0/android/os/IBinder.java
generated
Normal file
@@ -0,0 +1,32 @@
|
||||
// Generated automatically from android.os.IBinder for testing purposes
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import java.io.FileDescriptor;
|
||||
|
||||
public interface IBinder
|
||||
{
|
||||
IInterface queryLocalInterface(String p0);
|
||||
String getInterfaceDescriptor();
|
||||
boolean isBinderAlive();
|
||||
boolean pingBinder();
|
||||
boolean transact(int p0, Parcel p1, Parcel p2, int p3);
|
||||
boolean unlinkToDeath(IBinder.DeathRecipient p0, int p1);
|
||||
static int DUMP_TRANSACTION = 0;
|
||||
static int FIRST_CALL_TRANSACTION = 0;
|
||||
static int FLAG_ONEWAY = 0;
|
||||
static int INTERFACE_TRANSACTION = 0;
|
||||
static int LAST_CALL_TRANSACTION = 0;
|
||||
static int LIKE_TRANSACTION = 0;
|
||||
static int PING_TRANSACTION = 0;
|
||||
static int TWEET_TRANSACTION = 0;
|
||||
static public interface DeathRecipient
|
||||
{
|
||||
void binderDied();
|
||||
}
|
||||
void dump(FileDescriptor p0, String[] p1);
|
||||
void dumpAsync(FileDescriptor p0, String[] p1);
|
||||
void linkToDeath(IBinder.DeathRecipient p0, int p1);
|
||||
}
|
||||
10
java/ql/test/stubs/google-android-9.0.0/android/os/IInterface.java
generated
Normal file
10
java/ql/test/stubs/google-android-9.0.0/android/os/IInterface.java
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from android.os.IInterface for testing purposes
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.os.IBinder;
|
||||
|
||||
public interface IInterface
|
||||
{
|
||||
IBinder asBinder();
|
||||
}
|
||||
32
java/ql/test/stubs/google-android-9.0.0/android/os/LocaleList.java
generated
Normal file
32
java/ql/test/stubs/google-android-9.0.0/android/os/LocaleList.java
generated
Normal file
@@ -0,0 +1,32 @@
|
||||
// Generated automatically from android.os.LocaleList for testing purposes
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.icu.util.ULocale;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import java.util.Locale;
|
||||
|
||||
public class LocaleList implements Parcelable
|
||||
{
|
||||
protected LocaleList() {}
|
||||
public Locale get(int p0){ return null; }
|
||||
public Locale getFirstMatch(String[] p0){ return null; }
|
||||
public LocaleList(Locale... p0){}
|
||||
public String toLanguageTags(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public boolean isEmpty(){ return false; }
|
||||
public int describeContents(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public int indexOf(Locale p0){ return 0; }
|
||||
public int size(){ return 0; }
|
||||
public static LocaleList forLanguageTags(String p0){ return null; }
|
||||
public static LocaleList getAdjustedDefault(){ return null; }
|
||||
public static LocaleList getDefault(){ return null; }
|
||||
public static LocaleList getEmptyLocaleList(){ return null; }
|
||||
public static Parcelable.Creator<LocaleList> CREATOR = null;
|
||||
public static boolean isPseudoLocale(ULocale p0){ return false; }
|
||||
public static void setDefault(LocaleList p0){}
|
||||
public void writeToParcel(Parcel p0, int p1){}
|
||||
}
|
||||
25
java/ql/test/stubs/google-android-9.0.0/android/os/Looper.java
generated
Normal file
25
java/ql/test/stubs/google-android-9.0.0/android/os/Looper.java
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
// Generated automatically from android.os.Looper for testing purposes
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.os.MessageQueue;
|
||||
import android.util.Printer;
|
||||
|
||||
public class Looper
|
||||
{
|
||||
protected Looper() {}
|
||||
public MessageQueue getQueue(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public Thread getThread(){ return null; }
|
||||
public boolean isCurrentThread(){ return false; }
|
||||
public static Looper getMainLooper(){ return null; }
|
||||
public static Looper myLooper(){ return null; }
|
||||
public static MessageQueue myQueue(){ return null; }
|
||||
public static void loop(){}
|
||||
public static void prepare(){}
|
||||
public static void prepareMainLooper(){}
|
||||
public void dump(Printer p0, String p1){}
|
||||
public void quit(){}
|
||||
public void quitSafely(){}
|
||||
public void setMessageLogging(Printer p0){}
|
||||
}
|
||||
44
java/ql/test/stubs/google-android-9.0.0/android/os/Message.java
generated
Normal file
44
java/ql/test/stubs/google-android-9.0.0/android/os/Message.java
generated
Normal file
@@ -0,0 +1,44 @@
|
||||
// Generated automatically from android.os.Message for testing purposes
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.Messenger;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
public class Message implements Parcelable
|
||||
{
|
||||
public Bundle getData(){ return null; }
|
||||
public Bundle peekData(){ return null; }
|
||||
public Handler getTarget(){ return null; }
|
||||
public Message(){}
|
||||
public Messenger replyTo = null;
|
||||
public Object obj = null;
|
||||
public Runnable getCallback(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean isAsynchronous(){ return false; }
|
||||
public int arg1 = 0;
|
||||
public int arg2 = 0;
|
||||
public int describeContents(){ return 0; }
|
||||
public int sendingUid = 0;
|
||||
public int what = 0;
|
||||
public long getWhen(){ return 0; }
|
||||
public static Message obtain(){ return null; }
|
||||
public static Message obtain(Handler p0){ return null; }
|
||||
public static Message obtain(Handler p0, Runnable p1){ return null; }
|
||||
public static Message obtain(Handler p0, int p1){ return null; }
|
||||
public static Message obtain(Handler p0, int p1, Object p2){ return null; }
|
||||
public static Message obtain(Handler p0, int p1, int p2, int p3){ return null; }
|
||||
public static Message obtain(Handler p0, int p1, int p2, int p3, Object p4){ return null; }
|
||||
public static Message obtain(Message p0){ return null; }
|
||||
public static Parcelable.Creator<Message> CREATOR = null;
|
||||
public void copyFrom(Message p0){}
|
||||
public void recycle(){}
|
||||
public void sendToTarget(){}
|
||||
public void setAsynchronous(boolean p0){}
|
||||
public void setData(Bundle p0){}
|
||||
public void setTarget(Handler p0){}
|
||||
public void writeToParcel(Parcel p0, int p1){}
|
||||
}
|
||||
27
java/ql/test/stubs/google-android-9.0.0/android/os/MessageQueue.java
generated
Normal file
27
java/ql/test/stubs/google-android-9.0.0/android/os/MessageQueue.java
generated
Normal file
@@ -0,0 +1,27 @@
|
||||
// Generated automatically from android.os.MessageQueue for testing purposes
|
||||
|
||||
package android.os;
|
||||
|
||||
import java.io.FileDescriptor;
|
||||
|
||||
public class MessageQueue
|
||||
{
|
||||
protected MessageQueue() {}
|
||||
protected void finalize(){}
|
||||
public boolean isIdle(){ return false; }
|
||||
public void addIdleHandler(MessageQueue.IdleHandler p0){}
|
||||
public void addOnFileDescriptorEventListener(FileDescriptor p0, int p1, MessageQueue.OnFileDescriptorEventListener p2){}
|
||||
public void removeIdleHandler(MessageQueue.IdleHandler p0){}
|
||||
public void removeOnFileDescriptorEventListener(FileDescriptor p0){}
|
||||
static public interface IdleHandler
|
||||
{
|
||||
boolean queueIdle();
|
||||
}
|
||||
static public interface OnFileDescriptorEventListener
|
||||
{
|
||||
int onFileDescriptorEvents(FileDescriptor p0, int p1);
|
||||
static int EVENT_ERROR = 0;
|
||||
static int EVENT_INPUT = 0;
|
||||
static int EVENT_OUTPUT = 0;
|
||||
}
|
||||
}
|
||||
25
java/ql/test/stubs/google-android-9.0.0/android/os/Messenger.java
generated
Normal file
25
java/ql/test/stubs/google-android-9.0.0/android/os/Messenger.java
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
// Generated automatically from android.os.Messenger for testing purposes
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.os.Handler;
|
||||
import android.os.IBinder;
|
||||
import android.os.Message;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
public class Messenger implements Parcelable
|
||||
{
|
||||
protected Messenger() {}
|
||||
public IBinder getBinder(){ return null; }
|
||||
public Messenger(Handler p0){}
|
||||
public Messenger(IBinder p0){}
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int describeContents(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static Messenger readMessengerOrNullFromParcel(Parcel p0){ return null; }
|
||||
public static Parcelable.Creator<Messenger> CREATOR = null;
|
||||
public static void writeMessengerOrNullToParcel(Messenger p0, Parcel p1){}
|
||||
public void send(Message p0){}
|
||||
public void writeToParcel(Parcel p0, int p1){}
|
||||
}
|
||||
@@ -1,670 +1,144 @@
|
||||
/*
|
||||
* Copyright (C) 2006 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
// Generated automatically from android.os.Parcel for testing purposes
|
||||
|
||||
package android.os;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import android.os.Bundle;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.ParcelFileDescriptor;
|
||||
import android.os.Parcelable;
|
||||
import android.os.PersistableBundle;
|
||||
import android.util.ArrayMap;
|
||||
import android.util.Size;
|
||||
import android.util.SizeF;
|
||||
import android.util.SparseArray;
|
||||
import android.util.SparseBooleanArray;
|
||||
import java.io.FileDescriptor;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.io.ObjectInputStream;
|
||||
import java.io.ObjectOutputStream;
|
||||
import java.io.ObjectStreamClass;
|
||||
import java.io.Serializable;
|
||||
import java.lang.reflect.Array;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Modifier;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
public final class Parcel {
|
||||
|
||||
/**
|
||||
* Retrieve a new Parcel object from the pool.
|
||||
*/
|
||||
public static Parcel obtain() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Write a byte array into the parcel at the current {@link #dataPosition},
|
||||
* growing {@link #dataCapacity} if needed.
|
||||
*
|
||||
* @param b Bytes to place into the parcel.
|
||||
*/
|
||||
public final void writeByteArray(byte[] b) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Write a byte array into the parcel at the current {@link #dataPosition},
|
||||
* growing {@link #dataCapacity} if needed.
|
||||
*
|
||||
* @param b Bytes to place into the parcel.
|
||||
* @param offset Index of first byte to be written.
|
||||
* @param len Number of bytes to write.
|
||||
*/
|
||||
public final void writeByteArray(byte[] b, int offset, int len) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Write a blob of data into the parcel at the current {@link #dataPosition},
|
||||
* growing {@link #dataCapacity} if needed.
|
||||
*
|
||||
* @param b Bytes to place into the parcel. {@hide} {@SystemApi}
|
||||
*/
|
||||
public final void writeBlob(byte[] b) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Write a blob of data into the parcel at the current {@link #dataPosition},
|
||||
* growing {@link #dataCapacity} if needed.
|
||||
*
|
||||
* @param b Bytes to place into the parcel.
|
||||
* @param offset Index of first byte to be written.
|
||||
* @param len Number of bytes to write. {@hide} {@SystemApi}
|
||||
*/
|
||||
public final void writeBlob(byte[] b, int offset, int len) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Write an integer value into the parcel at the current dataPosition(), growing
|
||||
* dataCapacity() if needed.
|
||||
*/
|
||||
public final void writeInt(int val) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Write a long integer value into the parcel at the current dataPosition(),
|
||||
* growing dataCapacity() if needed.
|
||||
*/
|
||||
public final void writeLong(long val) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Write a floating point value into the parcel at the current dataPosition(),
|
||||
* growing dataCapacity() if needed.
|
||||
*/
|
||||
public final void writeFloat(float val) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Write a double precision floating point value into the parcel at the current
|
||||
* dataPosition(), growing dataCapacity() if needed.
|
||||
*/
|
||||
public final void writeDouble(double val) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Write a string value into the parcel at the current dataPosition(), growing
|
||||
* dataCapacity() if needed.
|
||||
*/
|
||||
public final void writeString(String val) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Write a string without going though a {@link ReadWriteHelper}. Subclasses of
|
||||
* {@link ReadWriteHelper} must use this method instead of {@link #writeString}
|
||||
* to avoid infinity recursive calls.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public void writeStringNoHelper(String val) {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
public final void writeBoolean(boolean val) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Write a CharSequence value into the parcel at the current dataPosition(),
|
||||
* growing dataCapacity() if needed.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public final void writeCharSequence(CharSequence val) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Write a byte value into the parcel at the current dataPosition(), growing
|
||||
* dataCapacity() if needed.
|
||||
*/
|
||||
public final void writeByte(byte val) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use {@link #writeBundle} instead. Flattens a Map into the parcel at
|
||||
* the current dataPosition(), growing dataCapacity() if needed. The Map keys
|
||||
* must be String objects. The Map values are written using {@link #writeValue}
|
||||
* and must follow the specification there.
|
||||
*
|
||||
* <p>
|
||||
* It is strongly recommended to use {@link #writeBundle} instead of this
|
||||
* method, since the Bundle class provides a type-safe API that allows you to
|
||||
* avoid mysterious type errors at the point of marshalling.
|
||||
*/
|
||||
public final void writeMap(Map val) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Flatten a Bundle into the parcel at the current dataPosition(), growing
|
||||
* dataCapacity() if needed.
|
||||
*/
|
||||
public final void writeBundle(Bundle val) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Flatten a List into the parcel at the current dataPosition(), growing
|
||||
* dataCapacity() if needed. The List values are written using
|
||||
* {@link #writeValue} and must follow the specification there.
|
||||
*/
|
||||
public final void writeList(List val) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Flatten an Object array into the parcel at the current dataPosition(),
|
||||
* growing dataCapacity() if needed. The array values are written using
|
||||
* {@link #writeValue} and must follow the specification there.
|
||||
*/
|
||||
public final void writeArray(Object[] val) {
|
||||
}
|
||||
|
||||
public final void writeBooleanArray(boolean[] val) {
|
||||
}
|
||||
|
||||
public final boolean[] createBooleanArray() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void readBooleanArray(boolean[] val) {
|
||||
}
|
||||
|
||||
public final void writeCharArray(char[] val) {
|
||||
}
|
||||
|
||||
public final char[] createCharArray() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void readCharArray(char[] val) {
|
||||
}
|
||||
|
||||
public final void writeIntArray(int[] val) {
|
||||
}
|
||||
|
||||
public final int[] createIntArray() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void readIntArray(int[] val) {
|
||||
}
|
||||
|
||||
public final void writeLongArray(long[] val) {
|
||||
}
|
||||
|
||||
public final long[] createLongArray() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void readLongArray(long[] val) {
|
||||
}
|
||||
|
||||
public final void writeFloatArray(float[] val) {
|
||||
}
|
||||
|
||||
public final float[] createFloatArray() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void readFloatArray(float[] val) {
|
||||
}
|
||||
|
||||
public final void writeDoubleArray(double[] val) {
|
||||
}
|
||||
|
||||
public final double[] createDoubleArray() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void readDoubleArray(double[] val) {
|
||||
}
|
||||
|
||||
public final void writeStringArray(String[] val) {
|
||||
}
|
||||
|
||||
public final String[] createStringArray() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void readStringArray(String[] val) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
public final void writeCharSequenceArray(CharSequence[] val) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
public final void writeCharSequenceList(ArrayList<CharSequence> val) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Flatten a List containing String objects into the parcel, at the current
|
||||
* dataPosition() and growing dataCapacity() if needed. They can later be
|
||||
* retrieved with {@link #createStringArrayList} or {@link #readStringList}.
|
||||
*
|
||||
* @param val The list of strings to be written.
|
||||
*
|
||||
* @see #createStringArrayList
|
||||
* @see #readStringList
|
||||
*/
|
||||
public final void writeStringList(List<String> val) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Flatten a generic object in to a parcel. The given Object value may currently
|
||||
* be one of the following types:
|
||||
*
|
||||
* <ul>
|
||||
* <li>null
|
||||
* <li>String
|
||||
* <li>Byte
|
||||
* <li>Short
|
||||
* <li>Integer
|
||||
* <li>Long
|
||||
* <li>Float
|
||||
* <li>Double
|
||||
* <li>Boolean
|
||||
* <li>String[]
|
||||
* <li>boolean[]
|
||||
* <li>byte[]
|
||||
* <li>int[]
|
||||
* <li>long[]
|
||||
* <li>Object[] (supporting objects of the same type defined here).
|
||||
* <li>{@link Bundle}
|
||||
* <li>Map (as supported by {@link #writeMap}).
|
||||
* <li>Any object that implements the {@link Parcelable} protocol.
|
||||
* <li>Parcelable[]
|
||||
* <li>CharSequence (as supported by {@link TextUtils#writeToParcel}).
|
||||
* <li>List (as supported by {@link #writeList}).
|
||||
* <li>{@link SparseArray} (as supported by
|
||||
* {@link #writeSparseArray(SparseArray)}).
|
||||
* <li>{@link IBinder}
|
||||
* <li>Any object that implements Serializable (but see
|
||||
* {@link #writeSerializable} for caveats). Note that all of the previous types
|
||||
* have relatively efficient implementations for writing to a Parcel; having to
|
||||
* rely on the generic serialization approach is much less efficient and should
|
||||
* be avoided whenever possible.
|
||||
* </ul>
|
||||
*
|
||||
* <p class="caution">
|
||||
* {@link Parcelable} objects are written with {@link Parcelable#writeToParcel}
|
||||
* using contextual flags of 0. When serializing objects containing
|
||||
* {@link ParcelFileDescriptor}s, this may result in file descriptor leaks when
|
||||
* they are returned from Binder calls (where
|
||||
* {@link Parcelable#PARCELABLE_WRITE_RETURN_VALUE} should be used).
|
||||
* </p>
|
||||
*/
|
||||
public final void writeValue(Object v) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Flatten the name of the class of the Parcelable and its contents into the
|
||||
* parcel.
|
||||
*
|
||||
* @param p The Parcelable object to be written.
|
||||
* @param parcelableFlags Contextual flags as per
|
||||
* {@link Parcelable#writeToParcel(Parcel, int)
|
||||
* Parcelable.writeToParcel()}.
|
||||
*/
|
||||
public final void writeParcelable(Parcelable p, int parcelableFlags) {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
public final void writeParcelableCreator(Parcelable p) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Write a generic serializable object in to a Parcel. It is strongly
|
||||
* recommended that this method be avoided, since the serialization overhead is
|
||||
* extremely large, and this approach will be much slower than using the other
|
||||
* approaches to writing data in to a Parcel.
|
||||
*/
|
||||
public final void writeSerializable(Serializable s) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Special function for writing an exception result at the header of a parcel,
|
||||
* to be used when returning an exception from a transaction. Note that this
|
||||
* currently only supports a few exception types; any other exception will be
|
||||
* re-thrown by this function as a RuntimeException (to be caught by the
|
||||
* system's last-resort exception handling when dispatching a transaction).
|
||||
*
|
||||
* <p>
|
||||
* The supported exception types are:
|
||||
* <ul>
|
||||
* <li>{@link BadParcelableException}
|
||||
* <li>{@link IllegalArgumentException}
|
||||
* <li>{@link IllegalStateException}
|
||||
* <li>{@link NullPointerException}
|
||||
* <li>{@link SecurityException}
|
||||
* <li>{@link UnsupportedOperationException}
|
||||
* <li>{@link NetworkOnMainThreadException}
|
||||
* </ul>
|
||||
*
|
||||
* @param e The Exception to be written.
|
||||
*
|
||||
* @see #writeNoException
|
||||
* @see #readException
|
||||
*/
|
||||
public final void writeException(Exception e) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Special function for writing information at the front of the Parcel
|
||||
* indicating that no exception occurred.
|
||||
*
|
||||
* @see #writeException
|
||||
* @see #readException
|
||||
*/
|
||||
public final void writeNoException() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Special function for reading an exception result from the header of a parcel,
|
||||
* to be used after receiving the result of a transaction. This will throw the
|
||||
* exception for you if it had been written to the Parcel, otherwise return and
|
||||
* let you read the normal result data from the Parcel.
|
||||
*
|
||||
* @see #writeException
|
||||
* @see #writeNoException
|
||||
*/
|
||||
public final void readException() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Parses the header of a Binder call's response Parcel and returns the
|
||||
* exception code. Deals with lite or fat headers. In the common successful
|
||||
* case, this header is generally zero. In less common cases, it's a small
|
||||
* negative number and will be followed by an error string.
|
||||
*
|
||||
* This exists purely for android.database.DatabaseUtils and insulating it from
|
||||
* having to handle fat headers as returned by e.g. StrictMode-induced RPC
|
||||
* responses.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public final int readExceptionCode() {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Throw an exception with the given message. Not intended for use outside the
|
||||
* Parcel class.
|
||||
*
|
||||
* @param code Used to determine which exception class to throw.
|
||||
* @param msg The exception message.
|
||||
*/
|
||||
public final void readException(int code, String msg) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Read an integer value from the parcel at the current dataPosition().
|
||||
*/
|
||||
public final int readInt() {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a long integer value from the parcel at the current dataPosition().
|
||||
*/
|
||||
public final long readLong() {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a floating point value from the parcel at the current dataPosition().
|
||||
*/
|
||||
public final float readFloat() {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a double precision floating point value from the parcel at the current
|
||||
* dataPosition().
|
||||
*/
|
||||
public final double readDouble() {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a string value from the parcel at the current dataPosition().
|
||||
*/
|
||||
public final String readString() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
public final boolean readBoolean() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a CharSequence value from the parcel at the current dataPosition().
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public final CharSequence readCharSequence() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a byte value from the parcel at the current dataPosition().
|
||||
*/
|
||||
public final byte readByte() {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use {@link #readBundle(ClassLoader)} instead (whose data must have
|
||||
* been written with {@link #writeBundle}. Read into an existing Map object from
|
||||
* the parcel at the current dataPosition().
|
||||
*/
|
||||
public final void readMap(Map outVal, ClassLoader loader) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Read into an existing List object from the parcel at the current
|
||||
* dataPosition(), using the given class loader to load any enclosed
|
||||
* Parcelables. If it is null, the default class loader is used.
|
||||
*/
|
||||
public final void readList(List outVal, ClassLoader loader) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Please use {@link #readBundle(ClassLoader)} instead (whose data must have
|
||||
* been written with {@link #writeBundle}. Read and return a new HashMap object
|
||||
* from the parcel at the current dataPosition(), using the given class loader
|
||||
* to load any enclosed Parcelables. Returns null if the previously written map
|
||||
* object was null.
|
||||
*/
|
||||
public final HashMap readHashMap(ClassLoader loader) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read and return a new Bundle object from the parcel at the current
|
||||
* dataPosition(). Returns null if the previously written Bundle object was
|
||||
* null.
|
||||
*/
|
||||
public final Bundle readBundle() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read and return a new Bundle object from the parcel at the current
|
||||
* dataPosition(), using the given class loader to initialize the class loader
|
||||
* of the Bundle for later retrieval of Parcelable objects. Returns null if the
|
||||
* previously written Bundle object was null.
|
||||
*/
|
||||
public final Bundle readBundle(ClassLoader loader) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read and return a byte[] object from the parcel.
|
||||
*/
|
||||
public final byte[] createByteArray() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a byte[] object from the parcel and copy it into the given byte array.
|
||||
*/
|
||||
public final void readByteArray(byte[] val) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a blob of data from the parcel and return it as a byte array.
|
||||
* {@hide} {@SystemApi}
|
||||
*/
|
||||
public final byte[] readBlob() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read and return a String[] object from the parcel. {@hide}
|
||||
*/
|
||||
public final String[] readStringArray() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read and return a CharSequence[] object from the parcel. {@hide}
|
||||
*/
|
||||
public final CharSequence[] readCharSequenceArray() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read and return an ArrayList<CharSequence> object from the parcel.
|
||||
* {@hide}
|
||||
*/
|
||||
public final ArrayList<CharSequence> readCharSequenceList() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read and return a new ArrayList object from the parcel at the current
|
||||
* dataPosition(). Returns null if the previously written list object was null.
|
||||
* The given class loader will be used to load any enclosed Parcelables.
|
||||
*/
|
||||
public final ArrayList readArrayList(ClassLoader loader) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read and return a new Object array from the parcel at the current
|
||||
* dataPosition(). Returns null if the previously written array was null. The
|
||||
* given class loader will be used to load any enclosed Parcelables.
|
||||
*/
|
||||
public final Object[] readArray(ClassLoader loader) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read and return a new ArrayList containing String objects from the parcel
|
||||
* that was written with {@link #writeStringList} at the current dataPosition().
|
||||
* Returns null if the previously written list object was null.
|
||||
*
|
||||
* @return A newly created ArrayList containing strings with the same data as
|
||||
* those that were previously written.
|
||||
*
|
||||
* @see #writeStringList
|
||||
*/
|
||||
public final ArrayList<String> createStringArrayList() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read into the given List items String objects that were written with
|
||||
* {@link #writeStringList} at the current dataPosition().
|
||||
*
|
||||
* @see #writeStringList
|
||||
*/
|
||||
public final void readStringList(List<String> list) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a typed object from a parcel. The given class loader will be used to
|
||||
* load any enclosed Parcelables. If it is null, the default class loader will
|
||||
* be used.
|
||||
*/
|
||||
public final Object readValue(ClassLoader loader) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read and return a new Parcelable from the parcel. The given class loader will
|
||||
* be used to load any enclosed Parcelables. If it is null, the default class
|
||||
* loader will be used.
|
||||
*
|
||||
* @param loader A ClassLoader from which to instantiate the Parcelable object,
|
||||
* or null for the default class loader.
|
||||
* @return Returns the newly created Parcelable, or null if a null object has
|
||||
* been written.
|
||||
* @throws BadParcelableException Throws BadParcelableException if there was an
|
||||
* error trying to instantiate the Parcelable.
|
||||
*/
|
||||
public final <T extends Parcelable> T readParcelable(ClassLoader loader) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read and return a new Parcelable array from the parcel. The given class
|
||||
* loader will be used to load any enclosed Parcelables.
|
||||
*
|
||||
* @return the Parcelable array, or null if the array is null
|
||||
*/
|
||||
public final Parcelable[] readParcelableArray(ClassLoader loader) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
public final <T extends Parcelable> T[] readParcelableArray(ClassLoader loader, Class<T> clazz) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read and return a new Serializable object from the parcel.
|
||||
*
|
||||
* @return the Serializable object, or null if the Serializable name wasn't
|
||||
* found in the parcel.
|
||||
*/
|
||||
public final Serializable readSerializable() {
|
||||
return null;
|
||||
}
|
||||
|
||||
private final Serializable readSerializable(final ClassLoader loader) {
|
||||
return null;
|
||||
}
|
||||
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> void writeParcelableArray(T[] p0, int p1){}
|
||||
public <T extends Parcelable> void writeParcelableList(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 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> T readTypedObject(Parcelable.Creator<T> p0){ return null; }
|
||||
public <T> T[] createTypedArray(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 ArrayList readArrayList(ClassLoader p0){ return null; }
|
||||
public ArrayList<IBinder> createBinderArrayList(){ return null; }
|
||||
public ArrayList<String> createStringArrayList(){ return null; }
|
||||
public Bundle readBundle(){ return null; }
|
||||
public Bundle readBundle(ClassLoader p0){ return null; }
|
||||
public HashMap readHashMap(ClassLoader p0){ return null; }
|
||||
public IBinder readStrongBinder(){ return null; }
|
||||
public IBinder[] createBinderArray(){ return null; }
|
||||
public Object readValue(ClassLoader p0){ return null; }
|
||||
public Object[] readArray(ClassLoader p0){ return null; }
|
||||
public ParcelFileDescriptor readFileDescriptor(){ return null; }
|
||||
public Parcelable[] readParcelableArray(ClassLoader p0){ return null; }
|
||||
public PersistableBundle readPersistableBundle(){ return null; }
|
||||
public PersistableBundle readPersistableBundle(ClassLoader p0){ return null; }
|
||||
public Serializable readSerializable(){ return null; }
|
||||
public Size readSize(){ return null; }
|
||||
public SizeF readSizeF(){ return null; }
|
||||
public SparseBooleanArray readSparseBooleanArray(){ return null; }
|
||||
public String readString(){ return null; }
|
||||
public String[] createStringArray(){ return null; }
|
||||
public boolean hasFileDescriptors(){ return false; }
|
||||
public boolean readBoolean(){ return false; }
|
||||
public boolean[] createBooleanArray(){ return null; }
|
||||
public byte readByte(){ return 0; }
|
||||
public byte[] createByteArray(){ return null; }
|
||||
public byte[] marshall(){ return null; }
|
||||
public char[] createCharArray(){ return null; }
|
||||
public double readDouble(){ return 0; }
|
||||
public double[] createDoubleArray(){ return null; }
|
||||
public float readFloat(){ return 0; }
|
||||
public float[] createFloatArray(){ return null; }
|
||||
public int dataAvail(){ return 0; }
|
||||
public int dataCapacity(){ return 0; }
|
||||
public int dataPosition(){ return 0; }
|
||||
public int dataSize(){ return 0; }
|
||||
public int readInt(){ return 0; }
|
||||
public int[] createIntArray(){ return null; }
|
||||
public long readLong(){ return 0; }
|
||||
public long[] createLongArray(){ return null; }
|
||||
public static Parcel obtain(){ return null; }
|
||||
public static Parcelable.Creator<String> STRING_CREATOR = null;
|
||||
public void appendFrom(Parcel p0, int p1, int p2){}
|
||||
public void enforceInterface(String p0){}
|
||||
public void readBinderArray(IBinder[] p0){}
|
||||
public void readBinderList(List<IBinder> p0){}
|
||||
public void readBooleanArray(boolean[] p0){}
|
||||
public void readByteArray(byte[] p0){}
|
||||
public void readCharArray(char[] p0){}
|
||||
public void readDoubleArray(double[] p0){}
|
||||
public void readException(){}
|
||||
public void readException(int p0, String p1){}
|
||||
public void readFloatArray(float[] p0){}
|
||||
public void readIntArray(int[] p0){}
|
||||
public void readList(List p0, ClassLoader p1){}
|
||||
public void readLongArray(long[] p0){}
|
||||
public void readMap(Map p0, ClassLoader p1){}
|
||||
public void readStringArray(String[] p0){}
|
||||
public void readStringList(List<String> p0){}
|
||||
public void recycle(){}
|
||||
public void setDataCapacity(int p0){}
|
||||
public void setDataPosition(int p0){}
|
||||
public void setDataSize(int p0){}
|
||||
public void unmarshall(byte[] p0, int p1, int p2){}
|
||||
public void writeArray(Object[] p0){}
|
||||
public void writeBinderArray(IBinder[] p0){}
|
||||
public void writeBinderList(List<IBinder> p0){}
|
||||
public void writeBoolean(boolean p0){}
|
||||
public void writeBooleanArray(boolean[] p0){}
|
||||
public void writeBundle(Bundle p0){}
|
||||
public void writeByte(byte p0){}
|
||||
public void writeByteArray(byte[] p0){}
|
||||
public void writeByteArray(byte[] p0, int p1, int p2){}
|
||||
public void writeCharArray(char[] p0){}
|
||||
public void writeDouble(double p0){}
|
||||
public void writeDoubleArray(double[] p0){}
|
||||
public void writeException(Exception p0){}
|
||||
public void writeFileDescriptor(FileDescriptor p0){}
|
||||
public void writeFloat(float p0){}
|
||||
public void writeFloatArray(float[] p0){}
|
||||
public void writeInt(int p0){}
|
||||
public void writeIntArray(int[] p0){}
|
||||
public void writeInterfaceToken(String p0){}
|
||||
public void writeList(List p0){}
|
||||
public void writeLong(long p0){}
|
||||
public void writeLongArray(long[] p0){}
|
||||
public void writeMap(Map p0){}
|
||||
public void writeNoException(){}
|
||||
public void writeParcelable(Parcelable p0, int p1){}
|
||||
public void writePersistableBundle(PersistableBundle p0){}
|
||||
public void writeSerializable(Serializable p0){}
|
||||
public void writeSize(Size p0){}
|
||||
public void writeSizeF(SizeF p0){}
|
||||
public void writeSparseBooleanArray(SparseBooleanArray p0){}
|
||||
public void writeString(String p0){}
|
||||
public void writeStringArray(String[] p0){}
|
||||
public void writeStringList(List<String> p0){}
|
||||
public void writeStrongBinder(IBinder p0){}
|
||||
public void writeStrongInterface(IInterface p0){}
|
||||
public void writeValue(Object p0){}
|
||||
}
|
||||
|
||||
@@ -1,111 +1,18 @@
|
||||
/*
|
||||
* Copyright (C) 2006 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
// Generated automatically from android.os.Parcelable for testing purposes
|
||||
|
||||
package android.os;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import android.os.Parcel;
|
||||
|
||||
/**
|
||||
* Interface for classes whose instances can be written to and restored from a
|
||||
* {@link Parcel}. Classes implementing the Parcelable interface must also have
|
||||
* a non-null static field called <code>CREATOR</code> of a type that implements
|
||||
* the {@link Parcelable.Creator} interface.
|
||||
*
|
||||
* <p>
|
||||
* A typical implementation of Parcelable is:
|
||||
* </p>
|
||||
*
|
||||
* <pre>
|
||||
* public class MyParcelable implements Parcelable {
|
||||
* private int mData;
|
||||
*
|
||||
* public int describeContents() {
|
||||
* return 0;
|
||||
* }
|
||||
*
|
||||
* public void writeToParcel(Parcel out, int flags) {
|
||||
* out.writeInt(mData);
|
||||
* }
|
||||
*
|
||||
* public static final Parcelable.Creator<MyParcelable> CREATOR = new Parcelable.Creator<MyParcelable>() {
|
||||
* public MyParcelable createFromParcel(Parcel in) {
|
||||
* return new MyParcelable(in);
|
||||
* }
|
||||
*
|
||||
* public MyParcelable[] newArray(int size) {
|
||||
* return new MyParcelable[size];
|
||||
* }
|
||||
* };
|
||||
*
|
||||
* private MyParcelable(Parcel in) {
|
||||
* mData = in.readInt();
|
||||
* }
|
||||
* }
|
||||
* </pre>
|
||||
*/
|
||||
public interface Parcelable {
|
||||
/**
|
||||
* Flatten this object in to a Parcel.
|
||||
*
|
||||
* @param dest The Parcel in which the object should be written.
|
||||
* @param flags Additional flags about how the object should be written. May be
|
||||
* 0 or {@link #PARCELABLE_WRITE_RETURN_VALUE}.
|
||||
*/
|
||||
public void writeToParcel(Parcel dest, int flags);
|
||||
|
||||
/**
|
||||
* Interface that must be implemented and provided as a public CREATOR
|
||||
* field that generates instances of your Parcelable class from a Parcel.
|
||||
*/
|
||||
public interface Creator<T> {
|
||||
/**
|
||||
* Create a new instance of the Parcelable class, instantiating it
|
||||
* from the given Parcel whose data had previously been written by
|
||||
* {@link Parcelable#writeToParcel Parcelable.writeToParcel()}.
|
||||
*
|
||||
* @param source The Parcel to read the object's data from.
|
||||
* @return Returns a new instance of the Parcelable class.
|
||||
*/
|
||||
public T createFromParcel(Parcel source);
|
||||
|
||||
/**
|
||||
* Create a new array of the Parcelable class.
|
||||
*
|
||||
* @param size Size of the array.
|
||||
* @return Returns an array of the Parcelable class, with every entry
|
||||
* initialized to null.
|
||||
*/
|
||||
public T[] newArray(int size);
|
||||
public interface Parcelable
|
||||
{
|
||||
int describeContents();
|
||||
static int CONTENTS_FILE_DESCRIPTOR = 0;
|
||||
static int PARCELABLE_WRITE_RETURN_VALUE = 0;
|
||||
static public interface Creator<T>
|
||||
{
|
||||
T createFromParcel(Parcel p0);
|
||||
T[] newArray(int p0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Specialization of {@link Creator} that allows you to receive the ClassLoader
|
||||
* the object is being created in.
|
||||
*/
|
||||
public interface ClassLoaderCreator<T> {
|
||||
/**
|
||||
* Create a new instance of the Parcelable class, instantiating it from the
|
||||
* given Parcel whose data had previously been written by
|
||||
* {@link Parcelable#writeToParcel Parcelable.writeToParcel()} and using the
|
||||
* given ClassLoader.
|
||||
*
|
||||
* @param source The Parcel to read the object's data from.
|
||||
* @param loader The ClassLoader that this object is being created in.
|
||||
* @return Returns a new instance of the Parcelable class.
|
||||
*/
|
||||
public T createFromParcel(Parcel source, ClassLoader loader);
|
||||
}
|
||||
}
|
||||
void writeToParcel(Parcel p0, int p1);
|
||||
}
|
||||
|
||||
23
java/ql/test/stubs/google-android-9.0.0/android/os/PersistableBundle.java
generated
Normal file
23
java/ql/test/stubs/google-android-9.0.0/android/os/PersistableBundle.java
generated
Normal file
@@ -0,0 +1,23 @@
|
||||
// Generated automatically from android.os.PersistableBundle for testing purposes
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.os.BaseBundle;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
public class PersistableBundle extends BaseBundle implements Cloneable, Parcelable
|
||||
{
|
||||
public Object clone(){ return null; }
|
||||
public PersistableBundle deepCopy(){ return null; }
|
||||
public PersistableBundle getPersistableBundle(String p0){ return null; }
|
||||
public PersistableBundle(){}
|
||||
public PersistableBundle(PersistableBundle p0){}
|
||||
public PersistableBundle(int p0){}
|
||||
public String toString(){ return null; }
|
||||
public int describeContents(){ return 0; }
|
||||
public static Parcelable.Creator<PersistableBundle> CREATOR = null;
|
||||
public static PersistableBundle EMPTY = null;
|
||||
public void putPersistableBundle(String p0, PersistableBundle p1){}
|
||||
public void writeToParcel(Parcel p0, int p1){}
|
||||
}
|
||||
21
java/ql/test/stubs/google-android-9.0.0/android/os/UserHandle.java
generated
Normal file
21
java/ql/test/stubs/google-android-9.0.0/android/os/UserHandle.java
generated
Normal file
@@ -0,0 +1,21 @@
|
||||
// Generated automatically from android.os.UserHandle for testing purposes
|
||||
|
||||
package android.os;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
public class UserHandle implements Parcelable
|
||||
{
|
||||
protected UserHandle() {}
|
||||
public String toString(){ return null; }
|
||||
public UserHandle(Parcel p0){}
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int describeContents(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static Parcelable.Creator<UserHandle> CREATOR = null;
|
||||
public static UserHandle getUserHandleForUid(int p0){ return null; }
|
||||
public static UserHandle readFromParcel(Parcel p0){ return null; }
|
||||
public static void writeToParcel(UserHandle p0, Parcel p1){}
|
||||
public void writeToParcel(Parcel p0, int p1){}
|
||||
}
|
||||
31
java/ql/test/stubs/google-android-9.0.0/android/util/AttributeSet.java
generated
Normal file
31
java/ql/test/stubs/google-android-9.0.0/android/util/AttributeSet.java
generated
Normal file
@@ -0,0 +1,31 @@
|
||||
// Generated automatically from android.util.AttributeSet for testing purposes
|
||||
|
||||
package android.util;
|
||||
|
||||
|
||||
public interface AttributeSet
|
||||
{
|
||||
String getAttributeName(int p0);
|
||||
String getAttributeValue(String p0, String p1);
|
||||
String getAttributeValue(int p0);
|
||||
String getClassAttribute();
|
||||
String getIdAttribute();
|
||||
String getPositionDescription();
|
||||
boolean getAttributeBooleanValue(String p0, String p1, boolean p2);
|
||||
boolean getAttributeBooleanValue(int p0, boolean p1);
|
||||
default String getAttributeNamespace(int p0){ return null; }
|
||||
float getAttributeFloatValue(String p0, String p1, float p2);
|
||||
float getAttributeFloatValue(int p0, float p1);
|
||||
int getAttributeCount();
|
||||
int getAttributeIntValue(String p0, String p1, int p2);
|
||||
int getAttributeIntValue(int p0, int p1);
|
||||
int getAttributeListValue(String p0, String p1, String[] p2, int p3);
|
||||
int getAttributeListValue(int p0, String[] p1, int p2);
|
||||
int getAttributeNameResource(int p0);
|
||||
int getAttributeResourceValue(String p0, String p1, int p2);
|
||||
int getAttributeResourceValue(int p0, int p1);
|
||||
int getAttributeUnsignedIntValue(String p0, String p1, int p2);
|
||||
int getAttributeUnsignedIntValue(int p0, int p1);
|
||||
int getIdAttributeResourceValue(int p0);
|
||||
int getStyleAttribute();
|
||||
}
|
||||
46
java/ql/test/stubs/google-android-9.0.0/android/util/DisplayMetrics.java
generated
Normal file
46
java/ql/test/stubs/google-android-9.0.0/android/util/DisplayMetrics.java
generated
Normal file
@@ -0,0 +1,46 @@
|
||||
// Generated automatically from android.util.DisplayMetrics for testing purposes
|
||||
|
||||
package android.util;
|
||||
|
||||
|
||||
public class DisplayMetrics
|
||||
{
|
||||
public DisplayMetrics(){}
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(DisplayMetrics p0){ return false; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public float density = 0;
|
||||
public float scaledDensity = 0;
|
||||
public float xdpi = 0;
|
||||
public float ydpi = 0;
|
||||
public int densityDpi = 0;
|
||||
public int hashCode(){ return 0; }
|
||||
public int heightPixels = 0;
|
||||
public int widthPixels = 0;
|
||||
public static int DENSITY_140 = 0;
|
||||
public static int DENSITY_180 = 0;
|
||||
public static int DENSITY_200 = 0;
|
||||
public static int DENSITY_220 = 0;
|
||||
public static int DENSITY_260 = 0;
|
||||
public static int DENSITY_280 = 0;
|
||||
public static int DENSITY_300 = 0;
|
||||
public static int DENSITY_340 = 0;
|
||||
public static int DENSITY_360 = 0;
|
||||
public static int DENSITY_400 = 0;
|
||||
public static int DENSITY_420 = 0;
|
||||
public static int DENSITY_440 = 0;
|
||||
public static int DENSITY_450 = 0;
|
||||
public static int DENSITY_560 = 0;
|
||||
public static int DENSITY_600 = 0;
|
||||
public static int DENSITY_DEFAULT = 0;
|
||||
public static int DENSITY_DEVICE_STABLE = 0;
|
||||
public static int DENSITY_HIGH = 0;
|
||||
public static int DENSITY_LOW = 0;
|
||||
public static int DENSITY_MEDIUM = 0;
|
||||
public static int DENSITY_TV = 0;
|
||||
public static int DENSITY_XHIGH = 0;
|
||||
public static int DENSITY_XXHIGH = 0;
|
||||
public static int DENSITY_XXXHIGH = 0;
|
||||
public void setTo(DisplayMetrics p0){}
|
||||
public void setToDefaults(){}
|
||||
}
|
||||
9
java/ql/test/stubs/google-android-9.0.0/android/util/Printer.java
generated
Normal file
9
java/ql/test/stubs/google-android-9.0.0/android/util/Printer.java
generated
Normal file
@@ -0,0 +1,9 @@
|
||||
// Generated automatically from android.util.Printer for testing purposes
|
||||
|
||||
package android.util;
|
||||
|
||||
|
||||
public interface Printer
|
||||
{
|
||||
void println(String p0);
|
||||
}
|
||||
16
java/ql/test/stubs/google-android-9.0.0/android/util/Size.java
generated
Normal file
16
java/ql/test/stubs/google-android-9.0.0/android/util/Size.java
generated
Normal file
@@ -0,0 +1,16 @@
|
||||
// Generated automatically from android.util.Size for testing purposes
|
||||
|
||||
package android.util;
|
||||
|
||||
|
||||
public class Size
|
||||
{
|
||||
protected Size() {}
|
||||
public Size(int p0, int p1){}
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int getHeight(){ return 0; }
|
||||
public int getWidth(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static Size parseSize(String p0){ return null; }
|
||||
}
|
||||
16
java/ql/test/stubs/google-android-9.0.0/android/util/SizeF.java
generated
Normal file
16
java/ql/test/stubs/google-android-9.0.0/android/util/SizeF.java
generated
Normal file
@@ -0,0 +1,16 @@
|
||||
// Generated automatically from android.util.SizeF for testing purposes
|
||||
|
||||
package android.util;
|
||||
|
||||
|
||||
public class SizeF
|
||||
{
|
||||
protected SizeF() {}
|
||||
public SizeF(float p0, float p1){}
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public float getHeight(){ return 0; }
|
||||
public float getWidth(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static SizeF parseSizeF(String p0){ return null; }
|
||||
}
|
||||
27
java/ql/test/stubs/google-android-9.0.0/android/util/SparseArray.java
generated
Normal file
27
java/ql/test/stubs/google-android-9.0.0/android/util/SparseArray.java
generated
Normal file
@@ -0,0 +1,27 @@
|
||||
// Generated automatically from android.util.SparseArray for testing purposes
|
||||
|
||||
package android.util;
|
||||
|
||||
|
||||
public class SparseArray<E> implements Cloneable
|
||||
{
|
||||
public E get(int p0){ return null; }
|
||||
public E get(int p0, E p1){ return null; }
|
||||
public E valueAt(int p0){ return null; }
|
||||
public SparseArray(){}
|
||||
public SparseArray(int p0){}
|
||||
public SparseArray<E> clone(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public int indexOfKey(int p0){ return 0; }
|
||||
public int indexOfValue(E p0){ return 0; }
|
||||
public int keyAt(int p0){ return 0; }
|
||||
public int size(){ return 0; }
|
||||
public void append(int p0, E p1){}
|
||||
public void clear(){}
|
||||
public void delete(int p0){}
|
||||
public void put(int p0, E p1){}
|
||||
public void remove(int p0){}
|
||||
public void removeAt(int p0){}
|
||||
public void removeAtRange(int p0, int p1){}
|
||||
public void setValueAt(int p0, E p1){}
|
||||
}
|
||||
27
java/ql/test/stubs/google-android-9.0.0/android/util/SparseBooleanArray.java
generated
Normal file
27
java/ql/test/stubs/google-android-9.0.0/android/util/SparseBooleanArray.java
generated
Normal file
@@ -0,0 +1,27 @@
|
||||
// Generated automatically from android.util.SparseBooleanArray for testing purposes
|
||||
|
||||
package android.util;
|
||||
|
||||
|
||||
public class SparseBooleanArray implements Cloneable
|
||||
{
|
||||
public SparseBooleanArray clone(){ return null; }
|
||||
public SparseBooleanArray(){}
|
||||
public SparseBooleanArray(int p0){}
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public boolean get(int p0){ return false; }
|
||||
public boolean get(int p0, boolean p1){ return false; }
|
||||
public boolean valueAt(int p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public int indexOfKey(int p0){ return 0; }
|
||||
public int indexOfValue(boolean p0){ return 0; }
|
||||
public int keyAt(int p0){ return 0; }
|
||||
public int size(){ return 0; }
|
||||
public void append(int p0, boolean p1){}
|
||||
public void clear(){}
|
||||
public void delete(int p0){}
|
||||
public void put(int p0, boolean p1){}
|
||||
public void removeAt(int p0){}
|
||||
public void setValueAt(int p0, boolean p1){}
|
||||
}
|
||||
73
java/ql/test/stubs/google-android-9.0.0/android/util/TypedValue.java
generated
Normal file
73
java/ql/test/stubs/google-android-9.0.0/android/util/TypedValue.java
generated
Normal file
@@ -0,0 +1,73 @@
|
||||
// Generated automatically from android.util.TypedValue for testing purposes
|
||||
|
||||
package android.util;
|
||||
|
||||
import android.util.DisplayMetrics;
|
||||
|
||||
public class TypedValue
|
||||
{
|
||||
public CharSequence string = null;
|
||||
public String toString(){ return null; }
|
||||
public TypedValue(){}
|
||||
public boolean isColorType(){ return false; }
|
||||
public final CharSequence coerceToString(){ return null; }
|
||||
public final float getFloat(){ return 0; }
|
||||
public float getDimension(DisplayMetrics p0){ return 0; }
|
||||
public float getFraction(float p0, float p1){ return 0; }
|
||||
public int assetCookie = 0;
|
||||
public int changingConfigurations = 0;
|
||||
public int data = 0;
|
||||
public int density = 0;
|
||||
public int getComplexUnit(){ return 0; }
|
||||
public int resourceId = 0;
|
||||
public int sourceResourceId = 0;
|
||||
public int type = 0;
|
||||
public static String coerceToString(int p0, int p1){ return null; }
|
||||
public static float applyDimension(int p0, float p1, DisplayMetrics p2){ return 0; }
|
||||
public static float complexToDimension(int p0, DisplayMetrics p1){ return 0; }
|
||||
public static float complexToFloat(int p0){ return 0; }
|
||||
public static float complexToFraction(int p0, float p1, float p2){ return 0; }
|
||||
public static int COMPLEX_MANTISSA_MASK = 0;
|
||||
public static int COMPLEX_MANTISSA_SHIFT = 0;
|
||||
public static int COMPLEX_RADIX_0p23 = 0;
|
||||
public static int COMPLEX_RADIX_16p7 = 0;
|
||||
public static int COMPLEX_RADIX_23p0 = 0;
|
||||
public static int COMPLEX_RADIX_8p15 = 0;
|
||||
public static int COMPLEX_RADIX_MASK = 0;
|
||||
public static int COMPLEX_RADIX_SHIFT = 0;
|
||||
public static int COMPLEX_UNIT_DIP = 0;
|
||||
public static int COMPLEX_UNIT_FRACTION = 0;
|
||||
public static int COMPLEX_UNIT_FRACTION_PARENT = 0;
|
||||
public static int COMPLEX_UNIT_IN = 0;
|
||||
public static int COMPLEX_UNIT_MASK = 0;
|
||||
public static int COMPLEX_UNIT_MM = 0;
|
||||
public static int COMPLEX_UNIT_PT = 0;
|
||||
public static int COMPLEX_UNIT_PX = 0;
|
||||
public static int COMPLEX_UNIT_SHIFT = 0;
|
||||
public static int COMPLEX_UNIT_SP = 0;
|
||||
public static int DATA_NULL_EMPTY = 0;
|
||||
public static int DATA_NULL_UNDEFINED = 0;
|
||||
public static int DENSITY_DEFAULT = 0;
|
||||
public static int DENSITY_NONE = 0;
|
||||
public static int TYPE_ATTRIBUTE = 0;
|
||||
public static int TYPE_DIMENSION = 0;
|
||||
public static int TYPE_FIRST_COLOR_INT = 0;
|
||||
public static int TYPE_FIRST_INT = 0;
|
||||
public static int TYPE_FLOAT = 0;
|
||||
public static int TYPE_FRACTION = 0;
|
||||
public static int TYPE_INT_BOOLEAN = 0;
|
||||
public static int TYPE_INT_COLOR_ARGB4 = 0;
|
||||
public static int TYPE_INT_COLOR_ARGB8 = 0;
|
||||
public static int TYPE_INT_COLOR_RGB4 = 0;
|
||||
public static int TYPE_INT_COLOR_RGB8 = 0;
|
||||
public static int TYPE_INT_DEC = 0;
|
||||
public static int TYPE_INT_HEX = 0;
|
||||
public static int TYPE_LAST_COLOR_INT = 0;
|
||||
public static int TYPE_LAST_INT = 0;
|
||||
public static int TYPE_NULL = 0;
|
||||
public static int TYPE_REFERENCE = 0;
|
||||
public static int TYPE_STRING = 0;
|
||||
public static int complexToDimensionPixelOffset(int p0, DisplayMetrics p1){ return 0; }
|
||||
public static int complexToDimensionPixelSize(int p0, DisplayMetrics p1){ return 0; }
|
||||
public void setTo(TypedValue p0){}
|
||||
}
|
||||
88
java/ql/test/stubs/google-android-9.0.0/android/view/Display.java
generated
Normal file
88
java/ql/test/stubs/google-android-9.0.0/android/view/Display.java
generated
Normal file
@@ -0,0 +1,88 @@
|
||||
// Generated automatically from android.view.Display for testing purposes
|
||||
|
||||
package android.view;
|
||||
|
||||
import android.graphics.ColorSpace;
|
||||
import android.graphics.Point;
|
||||
import android.graphics.Rect;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.util.DisplayMetrics;
|
||||
import android.view.DisplayCutout;
|
||||
|
||||
public class Display
|
||||
{
|
||||
public ColorSpace getPreferredWideGamutColorSpace(){ return null; }
|
||||
public Display.HdrCapabilities getHdrCapabilities(){ return null; }
|
||||
public Display.Mode getMode(){ return null; }
|
||||
public Display.Mode[] getSupportedModes(){ return null; }
|
||||
public DisplayCutout getCutout(){ return null; }
|
||||
public String getName(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean isHdr(){ return false; }
|
||||
public boolean isValid(){ return false; }
|
||||
public boolean isWideColorGamut(){ return false; }
|
||||
public float getRefreshRate(){ return 0; }
|
||||
public float[] getSupportedRefreshRates(){ return null; }
|
||||
public int getDisplayId(){ return 0; }
|
||||
public int getFlags(){ return 0; }
|
||||
public int getHeight(){ return 0; }
|
||||
public int getOrientation(){ return 0; }
|
||||
public int getPixelFormat(){ return 0; }
|
||||
public int getRotation(){ return 0; }
|
||||
public int getState(){ return 0; }
|
||||
public int getWidth(){ return 0; }
|
||||
public long getAppVsyncOffsetNanos(){ return 0; }
|
||||
public long getPresentationDeadlineNanos(){ return 0; }
|
||||
public static int DEFAULT_DISPLAY = 0;
|
||||
public static int FLAG_PRESENTATION = 0;
|
||||
public static int FLAG_PRIVATE = 0;
|
||||
public static int FLAG_ROUND = 0;
|
||||
public static int FLAG_SECURE = 0;
|
||||
public static int FLAG_SUPPORTS_PROTECTED_BUFFERS = 0;
|
||||
public static int INVALID_DISPLAY = 0;
|
||||
public static int STATE_DOZE = 0;
|
||||
public static int STATE_DOZE_SUSPEND = 0;
|
||||
public static int STATE_OFF = 0;
|
||||
public static int STATE_ON = 0;
|
||||
public static int STATE_ON_SUSPEND = 0;
|
||||
public static int STATE_UNKNOWN = 0;
|
||||
public static int STATE_VR = 0;
|
||||
public void getCurrentSizeRange(Point p0, Point p1){}
|
||||
public void getMetrics(DisplayMetrics p0){}
|
||||
public void getRealMetrics(DisplayMetrics p0){}
|
||||
public void getRealSize(Point p0){}
|
||||
public void getRectSize(Rect p0){}
|
||||
public void getSize(Point p0){}
|
||||
static public class HdrCapabilities implements Parcelable
|
||||
{
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public float getDesiredMaxAverageLuminance(){ return 0; }
|
||||
public float getDesiredMaxLuminance(){ return 0; }
|
||||
public float getDesiredMinLuminance(){ return 0; }
|
||||
public int describeContents(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public int[] getSupportedHdrTypes(){ return null; }
|
||||
public static Parcelable.Creator<Display.HdrCapabilities> CREATOR = null;
|
||||
public static float INVALID_LUMINANCE = 0;
|
||||
public static int HDR_TYPE_DOLBY_VISION = 0;
|
||||
public static int HDR_TYPE_HDR10 = 0;
|
||||
public static int HDR_TYPE_HDR10_PLUS = 0;
|
||||
public static int HDR_TYPE_HLG = 0;
|
||||
public void writeToParcel(Parcel p0, int p1){}
|
||||
}
|
||||
static public class Mode implements Parcelable
|
||||
{
|
||||
protected Mode() {}
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public float getRefreshRate(){ return 0; }
|
||||
public int describeContents(){ return 0; }
|
||||
public int getModeId(){ return 0; }
|
||||
public int getPhysicalHeight(){ return 0; }
|
||||
public int getPhysicalWidth(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static Parcelable.Creator<Display.Mode> CREATOR = null;
|
||||
public void writeToParcel(Parcel p0, int p1){}
|
||||
}
|
||||
}
|
||||
26
java/ql/test/stubs/google-android-9.0.0/android/view/DisplayCutout.java
generated
Normal file
26
java/ql/test/stubs/google-android-9.0.0/android/view/DisplayCutout.java
generated
Normal file
@@ -0,0 +1,26 @@
|
||||
// Generated automatically from android.view.DisplayCutout for testing purposes
|
||||
|
||||
package android.view;
|
||||
|
||||
import android.graphics.Insets;
|
||||
import android.graphics.Rect;
|
||||
import java.util.List;
|
||||
|
||||
public class DisplayCutout
|
||||
{
|
||||
protected DisplayCutout() {}
|
||||
public DisplayCutout(Insets p0, Rect p1, Rect p2, Rect p3, Rect p4){}
|
||||
public DisplayCutout(Rect p0, List<Rect> p1){}
|
||||
public List<Rect> getBoundingRects(){ return null; }
|
||||
public Rect getBoundingRectBottom(){ return null; }
|
||||
public Rect getBoundingRectLeft(){ return null; }
|
||||
public Rect getBoundingRectRight(){ return null; }
|
||||
public Rect getBoundingRectTop(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int getSafeInsetBottom(){ return 0; }
|
||||
public int getSafeInsetLeft(){ return 0; }
|
||||
public int getSafeInsetRight(){ return 0; }
|
||||
public int getSafeInsetTop(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
}
|
||||
64
java/ql/test/stubs/google-android-9.0.0/org/xmlpull/v1/XmlPullParser.java
generated
Normal file
64
java/ql/test/stubs/google-android-9.0.0/org/xmlpull/v1/XmlPullParser.java
generated
Normal file
@@ -0,0 +1,64 @@
|
||||
// Generated automatically from org.xmlpull.v1.XmlPullParser for testing purposes
|
||||
|
||||
package org.xmlpull.v1;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.Reader;
|
||||
|
||||
public interface XmlPullParser
|
||||
{
|
||||
Object getProperty(String p0);
|
||||
String getAttributeName(int p0);
|
||||
String getAttributeNamespace(int p0);
|
||||
String getAttributePrefix(int p0);
|
||||
String getAttributeType(int p0);
|
||||
String getAttributeValue(String p0, String p1);
|
||||
String getAttributeValue(int p0);
|
||||
String getInputEncoding();
|
||||
String getName();
|
||||
String getNamespace();
|
||||
String getNamespace(String p0);
|
||||
String getNamespacePrefix(int p0);
|
||||
String getNamespaceUri(int p0);
|
||||
String getPositionDescription();
|
||||
String getPrefix();
|
||||
String getText();
|
||||
String nextText();
|
||||
boolean getFeature(String p0);
|
||||
boolean isAttributeDefault(int p0);
|
||||
boolean isEmptyElementTag();
|
||||
boolean isWhitespace();
|
||||
char[] getTextCharacters(int[] p0);
|
||||
int getAttributeCount();
|
||||
int getColumnNumber();
|
||||
int getDepth();
|
||||
int getEventType();
|
||||
int getLineNumber();
|
||||
int getNamespaceCount(int p0);
|
||||
int next();
|
||||
int nextTag();
|
||||
int nextToken();
|
||||
static String FEATURE_PROCESS_DOCDECL = null;
|
||||
static String FEATURE_PROCESS_NAMESPACES = null;
|
||||
static String FEATURE_REPORT_NAMESPACE_ATTRIBUTES = null;
|
||||
static String FEATURE_VALIDATION = null;
|
||||
static String NO_NAMESPACE = null;
|
||||
static String[] TYPES = null;
|
||||
static int CDSECT = 0;
|
||||
static int COMMENT = 0;
|
||||
static int DOCDECL = 0;
|
||||
static int END_DOCUMENT = 0;
|
||||
static int END_TAG = 0;
|
||||
static int ENTITY_REF = 0;
|
||||
static int IGNORABLE_WHITESPACE = 0;
|
||||
static int PROCESSING_INSTRUCTION = 0;
|
||||
static int START_DOCUMENT = 0;
|
||||
static int START_TAG = 0;
|
||||
static int TEXT = 0;
|
||||
void defineEntityReplacementText(String p0, String p1);
|
||||
void require(int p0, String p1, String p2);
|
||||
void setFeature(String p0, boolean p1);
|
||||
void setInput(InputStream p0, String p1);
|
||||
void setInput(Reader p0);
|
||||
void setProperty(String p0, Object p1);
|
||||
}
|
||||
35
java/ql/test/stubs/google-android-9.0.0/org/xmlpull/v1/XmlSerializer.java
generated
Normal file
35
java/ql/test/stubs/google-android-9.0.0/org/xmlpull/v1/XmlSerializer.java
generated
Normal file
@@ -0,0 +1,35 @@
|
||||
// Generated automatically from org.xmlpull.v1.XmlSerializer for testing purposes
|
||||
|
||||
package org.xmlpull.v1;
|
||||
|
||||
import java.io.OutputStream;
|
||||
import java.io.Writer;
|
||||
|
||||
public interface XmlSerializer
|
||||
{
|
||||
Object getProperty(String p0);
|
||||
String getName();
|
||||
String getNamespace();
|
||||
String getPrefix(String p0, boolean p1);
|
||||
XmlSerializer attribute(String p0, String p1, String p2);
|
||||
XmlSerializer endTag(String p0, String p1);
|
||||
XmlSerializer startTag(String p0, String p1);
|
||||
XmlSerializer text(String p0);
|
||||
XmlSerializer text(char[] p0, int p1, int p2);
|
||||
boolean getFeature(String p0);
|
||||
int getDepth();
|
||||
void cdsect(String p0);
|
||||
void comment(String p0);
|
||||
void docdecl(String p0);
|
||||
void endDocument();
|
||||
void entityRef(String p0);
|
||||
void flush();
|
||||
void ignorableWhitespace(String p0);
|
||||
void processingInstruction(String p0);
|
||||
void setFeature(String p0, boolean p1);
|
||||
void setOutput(OutputStream p0, String p1);
|
||||
void setOutput(Writer p0);
|
||||
void setPrefix(String p0, String p1);
|
||||
void setProperty(String p0, Object p1);
|
||||
void startDocument(String p0, Boolean p1);
|
||||
}
|
||||
Reference in New Issue
Block a user