Home
last modified time | relevance | path

Searched refs:Activity (Results 1 – 25 of 545) sorted by relevance

12345678910>>...22

/cts/tests/app/src/android/app/cts/
DInstrumentation_ActivityResultTest.java19 import android.app.Activity;
29 ActivityResult result = new ActivityResult(Activity.RESULT_OK, intent); in testActivityResultOp()
30 assertEquals(Activity.RESULT_OK, result.getResultCode()); in testActivityResultOp()
33 result = new ActivityResult(Activity.RESULT_CANCELED, intent); in testActivityResultOp()
34 assertEquals(Activity.RESULT_CANCELED, result.getResultCode()); in testActivityResultOp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResult.java21 import android.app.Activity;
48 public static void setPassedResult(Activity activity, String testId, String testDetails) { in setPassedResult()
53 public static void setPassedResult(Activity activity, String testId, String testDetails, in setPassedResult()
55 activity.setResult(Activity.RESULT_OK, createResult(activity, TEST_RESULT_PASSED, testId, in setPassedResult()
60 public static void setFailedResult(Activity activity, String testId, String testDetails) { in setFailedResult()
65 public static void setFailedResult(Activity activity, String testId, String testDetails, in setFailedResult()
67 activity.setResult(Activity.RESULT_OK, createResult(activity, TEST_RESULT_FAILED, testId, in setFailedResult()
71 private static Intent createResult(Activity activity, int testResult, String testName, in createResult()
DPassFailButtons.java104 public static class Activity extends android.app.Activity implements PassFailActivity { class in PassFailButtons
108 public Activity() { in Activity() method in PassFailButtons.Activity
271 protected static <T extends android.app.Activity & PassFailActivity>
302 protected static void setInfo(final android.app.Activity activity, final int titleId, in setInfo()
327 protected static boolean hasSeenInfoDialog(android.app.Activity activity) { in hasSeenInfoDialog()
341 protected static void showInfoDialog(final android.app.Activity activity, int titleId, in showInfoDialog()
350 protected static Dialog createDialog(final android.app.Activity activity, int id, Bundle args) { in createDialog()
359 protected static Dialog createInfoDialog(final android.app.Activity activity, int id, in createInfoDialog()
388 protected static void markSeenInfoDialog(android.app.Activity activity) { in markSeenInfoDialog()
401 protected static void setTestResultAndFinish(android.app.Activity activity, String testId, in setTestResultAndFinish()
[all …]
/cts/tests/app/app/src/android/app/stubs/
DOrientationTestUtils.java19 import android.app.Activity;
31 public static void toggleOrientation(Activity activity) { in toggleOrientation()
42 public static void toggleOrientationSync(final Activity activity, in toggleOrientationSync()
52 private static void changeOrientation(final Activity activity, in changeOrientation()
DActivityTestsBase.java19 import android.app.Activity;
106 finishWithResult(Activity.RESULT_OK, null); in finishGood()
110 finishWithResult(Activity.RESULT_CANCELED, new Intent().setAction(error)); in finishBad()
152 if (res == Activity.RESULT_CANCELED) { in waitForResultOrThrow()
188 mResultCode = Activity.RESULT_CANCELED; in waitForResult()
209 finishWithResult(Activity.RESULT_CANCELED, new Intent().setAction(msg)); in onTimeout()
DMockActivity.java19 import android.app.Activity;
21 public class MockActivity extends Activity {
DPipActivity.java19 import android.app.Activity;
21 public class PipActivity extends Activity {
DPipNotResizeableActivity.java19 import android.app.Activity;
21 public class PipNotResizeableActivity extends Activity {
DPipNotSupportedActivity.java19 import android.app.Activity;
21 public class PipNotSupportedActivity extends Activity {
DChildTabActivity.java19 import android.app.Activity;
24 public class ChildTabActivity extends Activity {
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/
DGetContentActivity.java19 import android.app.Activity;
23 public class GetContentActivity extends Activity {
28 setResult(Activity.RESULT_OK, new Intent("ReSuLt")); in onCreate()
/cts/tests/admin/src/android/admin/cts/
DDeviceAdminActivationTest.java19 import android.app.Activity;
100 assertWithTimeoutOnActivityResultInvokedWithResultCode(Activity.RESULT_CANCELED); in testActivateGoodReceiverDisplaysActivationUi()
111 assertWithTimeoutOnActivityResultInvokedWithResultCode(Activity.RESULT_CANCELED); in testActivateBrokenReceiverFails()
122 assertWithTimeoutOnActivityResultInvokedWithResultCode(Activity.RESULT_CANCELED); in testActivateBrokenReceiver2Fails()
133 assertWithTimeoutOnActivityResultInvokedWithResultCode(Activity.RESULT_CANCELED); in testActivateBrokenReceiver3Fails()
144 assertWithTimeoutOnActivityResultInvokedWithResultCode(Activity.RESULT_CANCELED); in testActivateBrokenReceiver4Fails()
155 assertWithTimeoutOnActivityResultInvokedWithResultCode(Activity.RESULT_CANCELED); in testActivateBrokenReceiver5Fails()
/cts/hostsidetests/services/activitymanager/app/src/android/server/app/
DAlwaysFocusablePipActivity.java22 import android.app.Activity;
27 public class AlwaysFocusablePipActivity extends Activity {
29 static void launchAlwaysFocusablePipActivity(Activity caller) { in launchAlwaysFocusablePipActivity()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DIntentReceiverActivity.java18 import android.app.Activity;
36 public class IntentReceiverActivity extends Activity {
73 setResult(Activity.RESULT_OK); in onCreate()
87 setResult(Activity.RESULT_OK, result); in onCreate()
92 setResult(Activity.RESULT_OK); in onCreate()
105 setResult(Activity.RESULT_OK, result); in onCreate()
DSimpleIntentReceiverActivity.java20 import android.app.Activity;
31 public class SimpleIntentReceiverActivity extends Activity {
49 setResult(Activity.RESULT_OK, result); in onCreate()
/cts/tests/tests/os/src/android/os/cts/
DActivityTestsBase.java19 import android.app.Activity;
106 finishWithResult(Activity.RESULT_OK, null); in finishGood()
110 finishWithResult(Activity.RESULT_CANCELED, new Intent().setAction(error)); in finishBad()
152 if (res == Activity.RESULT_CANCELED) { in waitForResultOrThrow()
188 mResultCode = Activity.RESULT_CANCELED; in waitForResult()
209 finishWithResult(Activity.RESULT_CANCELED, new Intent().setAction(msg)); in onTimeout()
/cts/tools/cts-reference-app-lib/src/android/cts/refapp/
DReferenceAppTestCase.java19 import android.app.Activity;
29 public class ReferenceAppTestCase<T extends Activity> extends ActivityInstrumentationTestCase2<T> {
63 Activity activity = getActivity(); in testActivityStartupTime()
/cts/tests/tests/telephony/src/android/telephony/cts/
DComposeSmsActivity.java19 import android.app.Activity;
27 public class ComposeSmsActivity extends Activity {
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountDummyActivity.java19 import android.app.Activity;
24 public class AccountDummyActivity extends Activity {
/cts/libs/deviceutil/src/android/cts/util/
DDummyActivity.java20 import android.app.Activity;
22 public class DummyActivity extends Activity {
/cts/tests/tests/media/src/android/media/cts/
DRingtonePickerActivity.java18 import android.app.Activity;
23 public class RingtonePickerActivity extends Activity {
/cts/tests/tests/content/src/android/content/cts/
DMockActivity.java19 import android.app.Activity;
21 public class MockActivity extends Activity {
/cts/tests/vr/src/android/vr/cts/
DCtsActivity.java18 import android.app.Activity;
20 public class CtsActivity extends Activity {
/cts/tests/tests/widget/src/android/widget/cts/
DCtsActivity.java19 import android.app.Activity;
24 public class CtsActivity extends Activity {
/cts/tests/tests/view/src/android/view/cts/
DCtsActivity.java19 import android.app.Activity;
24 public class CtsActivity extends Activity {

12345678910>>...22