android.content.ContextWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of findsecbugs-plugin-deps Show documentation
Show all versions of findsecbugs-plugin-deps Show documentation
This module create facades for all the APIs (classes, interfaces and annotations)
that are use in the test code. The objective is to avoid the needed to download
all the framework supported by the static analyzer.
package android.content;
import android.os.Bundle;
import android.os.Handler;
import android.os.UserHandle;
import java.io.File;
import java.io.FileOutputStream;
public class ContextWrapper extends Context {
@Override
public File getExternalCacheDir() {
return null;
}
@Override
public File[] getExternalCacheDirs() {
return new File[0];
}
@Override
public File getExternalFilesDir(String type) {
return null;
}
@Override
public File[] getExternalFilesDirs(String type) {
return new File[0];
}
@Override
public File[] getExternalMediaDirs() {
return new File[0];
}
@Override
public FileOutputStream openFileOutput(String name, int mode) {
return null;
}
@Override
public void sendBroadcast(Intent intent, String receiverPermission) {
}
@Override
public void sendBroadcast(Intent intent) {
}
@Override
public void sendBroadcastAsUser(Intent intent, UserHandle user) {
}
@Override
public void sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission) {
}
@Override
public void sendOrderedBroadcast(Intent intent, String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras) {
}
@Override
public void sendOrderedBroadcast(Intent intent, String receiverPermission) {
}
@Override
public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras) {
}
}