use lsp stub
This commit is contained in:
parent
49a39ab7ed
commit
8d05d3498d
|
|
@ -62,4 +62,5 @@ android {
|
|||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
implementation project(path: ':lspcore')
|
||||
compileOnly project(":hiddenapi-stubs")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
package android.app;
|
||||
|
||||
import android.content.pm.ApplicationInfo;
|
||||
import android.content.res.CompatibilityInfo;
|
||||
|
||||
public final class ActivityThread {
|
||||
public static ActivityThread currentActivityThread() {
|
||||
throw new UnsupportedOperationException("STUB");
|
||||
}
|
||||
|
||||
public static Application currentApplication() {
|
||||
throw new UnsupportedOperationException("STUB");
|
||||
}
|
||||
|
||||
public static String currentPackageName() {
|
||||
throw new UnsupportedOperationException("STUB");
|
||||
}
|
||||
|
||||
public final LoadedApk getPackageInfoNoCheck(ApplicationInfo ai, CompatibilityInfo compatInfo) {
|
||||
throw new UnsupportedOperationException("STUB");
|
||||
}
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
package android.app;
|
||||
|
||||
import android.content.pm.ApplicationInfo;
|
||||
|
||||
public final class LoadedApk {
|
||||
public ApplicationInfo getApplicationInfo() {
|
||||
throw new UnsupportedOperationException("STUB");
|
||||
}
|
||||
|
||||
public ClassLoader getClassLoader() {
|
||||
throw new UnsupportedOperationException("STUB");
|
||||
}
|
||||
|
||||
public String getPackageName() {
|
||||
throw new UnsupportedOperationException("STUB");
|
||||
}
|
||||
|
||||
public String getResDir() {
|
||||
throw new UnsupportedOperationException("STUB");
|
||||
}
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
package android.content.res;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
public class CompatibilityInfo implements Parcelable {
|
||||
public static final Parcelable.Creator<CompatibilityInfo> CREATOR = null;
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
throw new UnsupportedOperationException("STUB");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
throw new UnsupportedOperationException("STUB");
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue