/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
FragmentActivityTest.java | 26 private TestFragmentActivity activity; field in class:FragmentActivityTest 31 activity = new TestFragmentActivity(); 32 activity.onCreate(null); 33 fragment = (TestFragment) activity.getSupportFragmentManager().findFragmentByTag("fragment_tag"); 38 assertNotNull(activity.getSupportFragmentManager()); 48 Fragment fragmentById = activity.getSupportFragmentManager().findFragmentById(R.id.fragment); 54 assertSame(fragment.onCreateViewReturnValue, activity.findViewById(TestFragment.FRAGMENT_VIEW_ID)); 59 assertSame(activity, fragment.getActivity()); 64 ViewGroup container = (ViewGroup) activity.findViewById(R.id.fragment); 70 ViewGroup container = (ViewGroup) activity.findViewById(R.id.fragment) [all...] |
AlarmManagerTest.java | 4 import android.app.Activity; 25 private MyActivity activity; field in class:AlarmManagerTest 31 activity = new MyActivity(); 32 alarmManager = (AlarmManager) activity.getSystemService(Context.ALARM_SERVICE); 43 alarmManager.set(AlarmManager.ELAPSED_REALTIME, 0, PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); 53 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)) [all...] |
ActivityGroupTest.java | 3 import android.app.Activity; 19 Activity activity = new Activity(); local 20 shadowOf(activityGroup).setCurrentActivity(activity); 22 assertThat(activityGroup.getCurrentActivity(), is(activity));
|
/cts/tests/tests/view/src/android/view/cts/ |
View_IdsTest.java | 22 import android.app.Activity; 37 Activity activity = getActivity(); local 39 EditText editText = (EditText) activity.findViewById(R.id.entry); 40 Button buttonOk = (Button) activity.findViewById(R.id.ok); 41 Button buttonCancel = (Button) activity.findViewById(R.id.cancel); 42 TextView symbol = (TextView) activity.findViewById(R.id.symbolball); 43 TextView warning = (TextView) activity.findViewById(R.id.warning); 51 assertEquals(activity.getString(R.string.id_ok), buttonOk.getText().toString()); 52 assertEquals(activity.getString(R.string.id_cancel), buttonCancel.getText().toString()) [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
IncludeTest.java | 39 final Include activity = getActivity(); local 41 final View button1 = activity.findViewById(R.id.included_button); 44 final View button2 = activity.findViewById(R.id.included_button_overriden); 50 final Include activity = getActivity(); local 52 final View button1 = activity.findViewById(R.id.included_button); 53 final View button2 = activity.findViewById(R.id.included_button_overriden); 63 final Include activity = getActivity(); local 64 final View button1 = activity.findViewById(R.id.included_button_visibility); 72 final Include activity = getActivity(); local 73 final View button1 = activity.findViewById(R.id.included_button_with_size) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowFragment.java | 20 protected FragmentActivity activity; field in class:ShadowFragment 34 public void setActivity(FragmentActivity activity) { 35 this.activity = activity; 45 return activity; 55 activity.startActivityForResult(intent, requestCode); 60 return activity.getSupportFragmentManager(); 77 if (activity == null) { 78 throw new IllegalStateException("Fragment " + this + " not attached to Activity"); 80 return activity.getResources() [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
LocalSampleInstrumentation.java | 19 import android.app.Activity; 33 public final Activity activity; field in class:LocalSampleInstrumentation.ActivityRunnable 34 public ActivityRunnable(Activity _activity) { 35 activity = _activity; 52 // First start the activity we are instrumenting -- the save/restore 58 SaveRestoreState activity = (SaveRestoreState)startActivitySync(intent); local 60 // This is the Activity object that was started, to do with as we want. 62 "Initial text: " + activity.getSavedText()); 65 runOnMainSync(new ActivityRunnable(activity) { [all...] |
/development/samples/ApiDemos/tests/src/com/example/android/apis/app/ |
ForwardingTest.java | 29 * This demonstrates completely isolated "unit test" of an Activity class. 31 * <p>This model for testing creates the entire Activity (like {@link Focus2ActivityTest}) but does 32 * not attach it to the system (for example, it cannot launch another Activity). It allows you to 36 * It also allows you to more carefully test your Activity's performance 40 * <p>Because ActivityUnitTestCase creates the Activity under test completely outside of 43 * underlying data model, internal business logic, or exercising your Activity's life cycle. 62 // into your Activity. But do not call startActivity() until the actual test methods. 82 * This test demonstrates examining the way that activity calls startActivity() to launch 87 Forwarding activity = startActivity(mStartIntent, null, null); local 88 mButton = (Button) activity.findViewById(R.id.go) 103 Forwarding activity = startActivity(mStartIntent, null, null); local [all...] |
/external/deqp/framework/platform/android/ |
tcuAndroidTestActivity.cpp | 21 * \brief Android test activity. 41 TestThread::TestThread (NativeActivity& activity, const CommandLine& cmdLine) 42 : RenderThread (activity) 44 , m_archive (activity.getNativeActivity()->assetManager) 86 TestActivity::TestActivity (ANativeActivity* activity) 87 : RenderActivity (activity) 88 , m_cmdLine (getIntentStringExtra(activity, "cmdLine")) 96 ANativeActivity_setWindowFlags(activity, AWINDOW_FLAG_KEEP_SCREEN_ON |
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
RadioGroupPreCheckedTest.java | 36 final RadioGroupActivity activity = getActivity(); local 38 RadioButton radio = (RadioButton) activity.findViewById(R.id.value_one); 41 RadioGroup group = (RadioGroup) activity.findViewById(R.id.group); 48 final RadioGroupActivity activity = getActivity(); local 50 RadioButton radio = (RadioButton) activity.findViewById(R.id.value_two); 53 RadioButton old = (RadioButton) activity.findViewById(R.id.value_one); 58 RadioGroup group = (RadioGroup) activity.findViewById(R.id.group);
|
/frameworks/support/v4/jellybean-mr2/android/support/v4/app/ |
ActionBarDrawerToggleJellybeanMR2.java | 22 import android.app.Activity; 35 public static Object setActionBarUpIndicator(Object info, Activity activity, 37 final ActionBar actionBar = activity.getActionBar(); 45 public static Object setActionBarDescription(Object info, Activity activity, 47 final ActionBar actionBar = activity.getActionBar(); 54 public static Drawable getThemeUpIndicator(Activity activity) { 55 final ActionBar actionBar = activity.getActionBar() [all...] |
/frameworks/base/core/java/android/nfc/ |
NfcActivityManager.java | 19 import android.app.Activity; 34 * Manages NFC API's that are coupled to the life-cycle of an Activity. 37 * into activity life-cycle events such as onPause() and onResume(). 106 * NFC state associated with an {@link Activity} 110 Activity activity; field in class:NfcActivityManager.NfcActivityState 122 public NfcActivityState(Activity activity) { 123 if (activity.getWindow().isDestroyed()) { 124 throw new IllegalStateException("activity is already destroyed") 331 Activity activity; local [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
TestResult.java | 19 import android.app.Activity; 23 * Object representing the result of a test activity like whether it succeeded or failed. 24 * Use {@link #setPassedResult(Activity, String, String)} or 25 * {@link #setFailedResult(Activity, String, String)} from a test activity like you would 26 * {@link Activity#setResult(int)} so that {@link TestListActivity} 43 /** Sets the test activity's result to pass. */ 44 public static void setPassedResult(Activity activity, String testId, String testDetails) { 45 activity.setResult(Activity.RESULT_OK, createResult(activity, TEST_RESULT_PASSED, testId [all...] |
PassFailButtons.java | 37 * {@link Activity}s to handle clicks to the pass and fail buttons of the pass fail buttons layout. 45 * <li>Make sure to call setResult(RESULT_CANCEL) in your Activity initially.</li> 64 * Call from {@link Activity#onCreate} after {@link Activity #setContentView(int)}. 69 * Adds an initial informational dialog that appears when entering the test activity for 73 * Call from {@link Activity#onCreate} after {@link Activity #setContentView(int)}. 91 * Set the result of the test and finish the activity. 98 public static class Activity extends android.app.Activity implements PassFailActivity [all...] |
/cts/tests/tests/app/src/android/app/cts/ |
Instrumentation_ActivityMonitorTest.java | 19 import android.app.Activity; 39 ActivityResult result = new ActivityResult(Activity.RESULT_OK, new Intent()); 47 Activity lastActivity = am.getLastActivity(); 54 Activity activity = am.waitForActivity(); local 55 assertSame(activity, lastActivity); 57 assertTrue(activity instanceof InstrumentationTestActivity); 58 activity.finish(); 62 activity = null; 63 while (activity == null && System.currentTimeMillis() < timeout) [all...] |
/cts/tests/tests/graphics/src/android/opengl/cts/ |
CompressedTextureTest.java | 33 CompressedTextureCtsActivity activity = launchActivity("com.android.cts.graphics", local 35 activity.finish(); 36 assertTrue(activity.getPassed());
|
/external/chromium_org/mojo/shell/ |
context.h | 39 jobject activity() const { return activity_.obj(); } function in class:mojo::shell::Context 40 void set_activity(jobject activity) { activity_.Reset(NULL, activity); }
|
/external/chromium_org/ui/android/java/src/org/chromium/ui/base/ |
ActivityWindowAndroid.java | 7 import android.app.Activity; 17 * Activity Instance. 26 private final WeakReference<Activity> mActivityRef; 29 public ActivityWindowAndroid(Activity activity) { 30 super(activity.getApplicationContext()); 31 mActivityRef = new WeakReference<Activity>(activity); 36 Activity activity = mActivityRef.get() local 54 Activity activity = mActivityRef.get(); local 71 Activity activity = mActivityRef.get(); local [all...] |
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/inject/ |
Injector.java | 19 import android.app.Activity; 27 * Usage is very simple. In your Activity, define some fields as follows: 38 * Then, inside your Activity's onCreate() method, perform the injection like this: 50 private final Activity mActivity; 52 private Injector(Activity activity) { 53 mActivity = activity; 57 * Gets an {@link Injector} capable of injecting fields for the given Activity. 59 public static Injector get(Activity activity) { [all...] |
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ |
ExternalFeedbackReporter.java | 7 import android.app.Activity; 16 * @param activity the activity to take a screenshot of. 20 void reportFeedback(Activity activity, String url, boolean good);
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
SearchableActivity.java | 17 package android.app.activity; 19 import android.app.Activity; 22 public class SearchableActivity extends Activity {
|
/packages/apps/Gallery2/src_pd/com/android/gallery3d/util/ |
PanoramaViewHelper.java | 18 import android.app.Activity; 23 public PanoramaViewHelper(Activity activity) {
|
/external/chromium_org/third_party/libjingle/source/talk/examples/android/src/org/appspot/apprtc/ |
GAEChannelClient.java | 31 import android.app.Activity; 55 * Methods are guaranteed to be invoked on the UI thread of |activity| passed 68 Activity activity, String token, MessageHandler handler) { 69 webView = new WebView(activity); 87 new ProxyingMessageHandler(activity, handler, token); 105 // (private, background) thread to the Activity's UI thread. 107 private final Activity activity; field in class:GAEChannelClient.ProxyingMessageHandler 113 ProxyingMessageHandler(Activity activity, MessageHandler handler [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/matchers/ |
StartedMatcherTest.java | 3 import android.app.Activity; 24 private Activity activity; field in class:StartedMatcherTest 32 activity = new Activity(); 39 givesFailureMessage((Context) activity, "to start " + createIntent(ActivityGroup.class) + ", but didn't start anything")); 42 givesFailureMessage((Context) activity, "to start " + createIntent(ActivityGroup.class, "view") + ", but didn't start anything")); 45 givesFailureMessage((Context) activity, "to start " + intentWithExtra + ", but didn't start anything")); 52 activity.startActivity(actualIntent); 54 givesFailureMessage((Context) activity, "to start " + createIntent(ActivityGroup.class) + ", but started " + actualIntent)) [all...] |
/external/chromium_org/chrome/browser/performance_monitor/ |
key_builder.h | 23 const std::string activity; member in struct:performance_monitor::RecentKey 30 activity(max_value_activity) {} 34 const std::string activity; member in struct:performance_monitor::MaxValueKey 45 const std::string activity; member in struct:performance_monitor::MetricKey 62 // Key Schema: <Metric>-<Time>-<Activity> 65 const std::string& activity); 70 // Key Schema: <Time>-<Metric>-<Activity> 73 const std::string& activity); 75 // Key Schema: <Activity>-<Metric> 77 const std::string& activity); [all...] |