|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xtremelabs.robolectric.shadows.ShadowContext
com.xtremelabs.robolectric.shadows.ShadowContextWrapper
@Implements(value=android.content.ContextWrapper.class) public class ShadowContextWrapper
Constructor Summary | |
---|---|
ShadowContextWrapper()
|
Method Summary | |
---|---|
void |
__constructor__(android.content.Context baseContext)
|
android.content.Context |
getApplicationContext()
|
android.content.ContentResolver |
getContentResolver()
|
android.content.Intent |
getNextStartedActivity()
Non-Android accessor that delegates to the application to consume and return the next Intent on the
started activities stack. |
android.content.Intent |
getNextStartedService()
Non-Android accessor that delegates to the application to consume and return the next Intent on the
started services stack. |
android.content.pm.PackageManager |
getPackageManager()
Implements Android's MockPackageManager with an anonymous inner class. |
java.lang.String |
getPackageName()
|
android.content.res.Resources |
getResources()
|
android.content.SharedPreferences |
getSharedPreferences(java.lang.String name,
int mode)
|
java.lang.Object |
getSystemService(java.lang.String name)
|
android.content.Intent |
peekNextStartedActivity()
Non-Androic accessor that delegates to the application to return (without consuming) the next Intent on
the started activities stack. |
android.content.Intent |
peekNextStartedService()
Non-Android accessor that delegates to the application to return (without consuming) the next Intent on
the started services stack. |
android.content.Intent |
registerReceiver(android.content.BroadcastReceiver receiver,
android.content.IntentFilter filter)
|
void |
sendBroadcast(android.content.Intent intent)
|
void |
startActivity(android.content.Intent intent)
|
android.content.ComponentName |
startService(android.content.Intent service)
|
void |
unregisterReceiver(android.content.BroadcastReceiver broadcastReceiver)
|
Methods inherited from class com.xtremelabs.robolectric.shadows.ShadowContext |
---|
getResourceLoader, getString, getString, getText |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShadowContextWrapper()
Method Detail |
---|
public void __constructor__(android.content.Context baseContext)
@Implementation public android.content.Context getApplicationContext()
@Implementation public android.content.res.Resources getResources()
@Implementation public android.content.ContentResolver getContentResolver()
@Implementation public java.lang.Object getSystemService(java.lang.String name)
@Implementation public void sendBroadcast(android.content.Intent intent)
@Implementation public android.content.Intent registerReceiver(android.content.BroadcastReceiver receiver, android.content.IntentFilter filter)
@Implementation public void unregisterReceiver(android.content.BroadcastReceiver broadcastReceiver)
@Implementation public java.lang.String getPackageName()
@Implementation public android.content.pm.PackageManager getPackageManager()
MockPackageManager
with an anonymous inner class.
MockPackageManager
@Implementation public android.content.ComponentName startService(android.content.Intent service)
@Implementation public void startActivity(android.content.Intent intent)
@Implementation public android.content.SharedPreferences getSharedPreferences(java.lang.String name, int mode)
public android.content.Intent getNextStartedActivity()
Intent
on the
started activities stack.
Intent
for an activitypublic android.content.Intent peekNextStartedActivity()
Intent
on
the started activities stack.
Intent
for an activitypublic android.content.Intent getNextStartedService()
Intent
on the
started services stack.
Intent
for a servicepublic android.content.Intent peekNextStartedService()
Intent
on
the started services stack.
Intent
for a service
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |