Build m5-rc15

android.content
Class ContextWrapper

java.lang.Object
  extended by android.content.Context
      extended by android.content.ContextWrapper
Direct Known Subclasses:
ContextThemeWrapper

public class ContextWrapper
extends Context


Field Summary
 
Fields inherited from class android.content.Context
ACTIVITY_SERVICE, ALARM_SERVICE, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, INFLATE_SERVICE, KEYGUARD_SERVICE, LOCATION_SERVICE, MODE_APPEND, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NOTIFICATION_SERVICE, POWER_SERVICE, SEARCH_SERVICE, WINDOW_SERVICE
 
Constructor Summary
ContextWrapper(Context base)
           
 
Method Summary
 boolean bindService(Intent service, ServiceConnection conn, int flags)
           
 void broadcastIntent(Intent intent)
           
 void broadcastIntent(Intent intent, String receiverPermission)
           
 void broadcastIntent(Intent intent, String receiverPermission, IntentReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras)
           
 void broadcastIntentSerialized(Intent intent, String receiverPermission)
           
 void broadcastStickyIntent(Intent intent)
           
 int checkCallingOrSelfPermission(String permission)
           
 int checkCallingPermission(String permission)
           
 int checkPermission(String permission, int pid, int uid)
           
 void clearWallpaper()
           
 SQLiteDatabase createDatabase(String name, int version, int mode, SQLiteDatabase.CursorFactory factory)
           
 Context createPackageContext(String packageName, int flags)
           
 boolean deleteDatabase(String name)
           
 boolean deleteFile(String name)
           
 String[] fileList()
           
 AssetManager getAssets()
           
 ClassLoader getClassLoader()
           
 ContentResolver getContentResolver()
           
 File getDatabasePath(String name)
           
 File getDir(String name, int mode)
           
 File getFilesDir()
           
 File getFileStreamPath(String name)
           
 PackageManager getPackageManager()
           
 String getPackageName()
           
 String getPackagePath()
           
 Resources getResources()
           
 SharedPreferences getSharedPreferences(String name, int mode)
           
 Object getSystemService(String name)
           
 Resources.Theme getTheme()
           
 Drawable getWallpaper()
           
 SQLiteDatabase openDatabase(String name, SQLiteDatabase.CursorFactory factory)
           
 FileInputStream openFileInput(String name)
           
 FileOutputStream openFileOutput(String name, int mode)
           
 Drawable peekWallpaper()
           
 Intent registerReceiver(IntentReceiver receiver, IntentFilter filter)
           
 Intent registerReceiver(IntentReceiver receiver, IntentFilter filter, String broadcastPermission, Handler scheduler)
           
 void setTheme(int resid)
           
 void setThreadPriority(int threadId, int priority)
           
 void setWallpaper(Bitmap bitmap)
           
 void setWallpaper(InputStream data)
           
 DialogInterface showAlert(CharSequence title, int iconId, CharSequence message, CharSequence buttonText, boolean cancelable)
           
 DialogInterface showAlert(CharSequence title, int iconId, CharSequence message, CharSequence buttonText, DialogInterface.OnClickListener buttonListener, boolean cancelable, DialogInterface.OnCancelListener cancelListener)
           
 void startActivity(Intent intent)
           
 boolean startInstrumentation(ComponentName className, String profileFile, Bundle arguments)
           
 ComponentName startService(Intent service, Bundle args)
           
 boolean stopService(Intent name)
           
 void unbindService(ServiceConnection conn)
           
 void unbroadcastStickyIntent(Intent intent)
           
 void unregisterReceiver(IntentReceiver receiver)
           
 
Methods inherited from class android.content.Context
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextWrapper

public ContextWrapper(Context base)
Method Detail

getAssets

public AssetManager getAssets()
Specified by:
getAssets in class Context

getResources

public Resources getResources()
Specified by:
getResources in class Context

getPackageManager

public PackageManager getPackageManager()
Specified by:
getPackageManager in class Context

getContentResolver

public ContentResolver getContentResolver()
Specified by:
getContentResolver in class Context

setTheme

public void setTheme(int resid)
Specified by:
setTheme in class Context

getTheme

public Resources.Theme getTheme()
Specified by:
getTheme in class Context

getClassLoader

public ClassLoader getClassLoader()
Specified by:
getClassLoader in class Context

getPackageName

public String getPackageName()
Specified by:
getPackageName in class Context

getPackagePath

public String getPackagePath()
Specified by:
getPackagePath in class Context

getSharedPreferences

public SharedPreferences getSharedPreferences(String name,
                                              int mode)
Specified by:
getSharedPreferences in class Context

openFileInput

public FileInputStream openFileInput(String name)
                              throws FileNotFoundException
Specified by:
openFileInput in class Context
Throws:
FileNotFoundException

openFileOutput

public FileOutputStream openFileOutput(String name,
                                       int mode)
                                throws FileNotFoundException
Specified by:
openFileOutput in class Context
Throws:
FileNotFoundException

deleteFile

public boolean deleteFile(String name)
Specified by:
deleteFile in class Context

getFileStreamPath

public File getFileStreamPath(String name)
Specified by:
getFileStreamPath in class Context

fileList

public String[] fileList()
Specified by:
fileList in class Context

getFilesDir

public File getFilesDir()
Specified by:
getFilesDir in class Context

getDir

public File getDir(String name,
                   int mode)
Specified by:
getDir in class Context

openDatabase

public SQLiteDatabase openDatabase(String name,
                                   SQLiteDatabase.CursorFactory factory)
                            throws FileNotFoundException
Specified by:
openDatabase in class Context
Throws:
FileNotFoundException

createDatabase

public SQLiteDatabase createDatabase(String name,
                                     int version,
                                     int mode,
                                     SQLiteDatabase.CursorFactory factory)
                              throws FileNotFoundException
Specified by:
createDatabase in class Context
Throws:
FileNotFoundException

deleteDatabase

public boolean deleteDatabase(String name)
Specified by:
deleteDatabase in class Context

getDatabasePath

public File getDatabasePath(String name)
Specified by:
getDatabasePath in class Context

getWallpaper

public Drawable getWallpaper()
Specified by:
getWallpaper in class Context

peekWallpaper

public Drawable peekWallpaper()
Specified by:
peekWallpaper in class Context

setWallpaper

public void setWallpaper(Bitmap bitmap)
                  throws IOException
Specified by:
setWallpaper in class Context
Throws:
IOException

setWallpaper

public void setWallpaper(InputStream data)
                  throws IOException
Specified by:
setWallpaper in class Context
Throws:
IOException

clearWallpaper

public void clearWallpaper()
Specified by:
clearWallpaper in class Context

startActivity

public void startActivity(Intent intent)
Specified by:
startActivity in class Context

showAlert

public DialogInterface showAlert(CharSequence title,
                                 int iconId,
                                 CharSequence message,
                                 CharSequence buttonText,
                                 boolean cancelable)
Specified by:
showAlert in class Context

showAlert

public DialogInterface showAlert(CharSequence title,
                                 int iconId,
                                 CharSequence message,
                                 CharSequence buttonText,
                                 DialogInterface.OnClickListener buttonListener,
                                 boolean cancelable,
                                 DialogInterface.OnCancelListener cancelListener)
Specified by:
showAlert in class Context

broadcastIntent

public void broadcastIntent(Intent intent)
Specified by:
broadcastIntent in class Context

broadcastIntent

public void broadcastIntent(Intent intent,
                            String receiverPermission)
Specified by:
broadcastIntent in class Context

broadcastIntentSerialized

public void broadcastIntentSerialized(Intent intent,
                                      String receiverPermission)
Specified by:
broadcastIntentSerialized in class Context

broadcastIntent

public void broadcastIntent(Intent intent,
                            String receiverPermission,
                            IntentReceiver resultReceiver,
                            Handler scheduler,
                            int initialCode,
                            String initialData,
                            Bundle initialExtras)
Specified by:
broadcastIntent in class Context

broadcastStickyIntent

public void broadcastStickyIntent(Intent intent)
Specified by:
broadcastStickyIntent in class Context

unbroadcastStickyIntent

public void unbroadcastStickyIntent(Intent intent)
Specified by:
unbroadcastStickyIntent in class Context

registerReceiver

public Intent registerReceiver(IntentReceiver receiver,
                               IntentFilter filter)
Specified by:
registerReceiver in class Context

registerReceiver

public Intent registerReceiver(IntentReceiver receiver,
                               IntentFilter filter,
                               String broadcastPermission,
                               Handler scheduler)
Specified by:
registerReceiver in class Context

unregisterReceiver

public void unregisterReceiver(IntentReceiver receiver)
Specified by:
unregisterReceiver in class Context

startService

public ComponentName startService(Intent service,
                                  Bundle args)
Specified by:
startService in class Context

stopService

public boolean stopService(Intent name)
Specified by:
stopService in class Context

bindService

public boolean bindService(Intent service,
                           ServiceConnection conn,
                           int flags)
Specified by:
bindService in class Context

unbindService

public void unbindService(ServiceConnection conn)
Specified by:
unbindService in class Context

startInstrumentation

public boolean startInstrumentation(ComponentName className,
                                    String profileFile,
                                    Bundle arguments)
Specified by:
startInstrumentation in class Context

getSystemService

public Object getSystemService(String name)
Specified by:
getSystemService in class Context

checkPermission

public int checkPermission(String permission,
                           int pid,
                           int uid)
Specified by:
checkPermission in class Context

checkCallingPermission

public int checkCallingPermission(String permission)
Specified by:
checkCallingPermission in class Context

checkCallingOrSelfPermission

public int checkCallingOrSelfPermission(String permission)
Specified by:
checkCallingOrSelfPermission in class Context

createPackageContext

public Context createPackageContext(String packageName,
                                    int flags)
                             throws PackageManager.NameNotFoundException
Specified by:
createPackageContext in class Context
Throws:
PackageManager.NameNotFoundException

setThreadPriority

public void setThreadPriority(int threadId,
                              int priority)
Specified by:
setThreadPriority in class Context

Build m5-rc15

Please submit a feedback, bug or feature