/packages/apps/Email/tests/src/com/android/email/activity/ |
WelcomeTests.java | 17 package com.android.email.activity;
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
AndroidBeam.java | 20 import android.app.Activity; 46 Activity activity = getActivity(); local 48 mActionBarSwitch = new Switch(activity); 50 if (activity instanceof PreferenceActivity) { 51 PreferenceActivity preferenceActivity = (PreferenceActivity) activity; 53 final int padding = activity.getResources().getDimensionPixelSize( 56 activity.getActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM, 58 activity.getActionBar().setCustomView(mActionBarSwitch, new ActionBar.LayoutParams( 62 activity.getActionBar().setTitle(R.string.android_beam_settings_title) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
ActivityState.java | 20 import android.app.Activity; 57 public int resultCode = Activity.RESULT_CANCELED; 72 void initialize(GalleryActivity activity, Bundle data) { 73 mActivity = activity; 119 final Window win = ((Activity) mActivity).getWindow(); 132 ((Activity) mActivity).unregisterReceiver(mPowerIntentReceiver); 138 Activity activity = (Activity) mActivity; local 139 ActionBar actionBar = activity.getActionBar() [all...] |
/sdk/sdkmanager/libs/sdklib/tests/src/com/android/sdklib/xml/ |
AndroidManifestParserTest.java | 92 ManifestData.Activity activity = mManifestTestApp.getActivities()[0]; local 93 assertEquals(ACTIVITY_NAME, activity.getName()); 94 assertTrue(activity.hasAction()); 95 assertTrue(activity.isHomeActivity()); 96 assertTrue(activity.hasAction()); 97 assertEquals(activity, mManifestTestApp.getActivities()[0]); 101 ManifestData.Activity activity = mManifestTestApp.getLauncherActivity(); local 102 assertEquals(ACTIVITY_NAME, activity.getName()) [all...] |
/packages/apps/Camera/tests/src/com/android/camera/activity/ |
CameraTestCase.java | 17 package com.android.camera.activity; 19 import android.app.Activity; 54 public class CameraTestCase<T extends Activity> extends ActivityInstrumentationTestCase2<T> { 212 Activity activity = getActivity(); local 214 assertNotNull(activity.findViewById(id)); 235 Activity activity = getActivity(); local 237 assertNull(activity.findViewById(id)); 241 Activity activity = getActivity() local [all...] |
CameraActivityTest.java | 17 package com.android.camera.activity; 85 // Force the activity to finish.
|
/cts/tests/tests/app/src/android/app/cts/ |
ActivityManagerMemoryClassTest.java | 18 import android.app.Activity; 108 ActivityManagerMemoryClassLaunchActivity activity = getActivity(); local 110 + " specified by the memory class.", Activity.RESULT_OK, activity.getResult());
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
NativeMediaTest.java | 62 final NativeMediaActivity activity = getActivity(); local 64 waitForNativeMediaLifeCycle(activity, true); 67 instrumentation.callActivityOnPause(activity); 69 waitForNativeMediaLifeCycle(activity, false); 70 instrumentation.callActivityOnResume(activity); 71 waitForNativeMediaLifeCycle(activity, true); 78 * @param activity 82 private void waitForNativeMediaLifeCycle(NativeMediaActivity activity, boolean expectAlive) 84 Boolean status = activity.waitForNativeMediaLifeCycle();
|
/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...] |
/development/samples/SampleSyncAdapter/tests/src/com/example/android/samplesync/authenticator/ |
AuthenticatorActivityTest.java | 18 import android.app.Activity; 73 Activity activity = mInstrumentation.waitForMonitorWithTimeout(monitor, ACTIVITY_WAIT); local 74 View loginbutton = activity.findViewById(R.id.ok_button);
|
/external/bluetooth/bluez/tools/ |
csr_bcsp.c | 52 uint8_t delay, activity = 0x00; local 119 delay = ubcsp_poll(&activity); 121 if (activity & UBCSP_PACKET_RECEIVED) 154 uint8_t delay, activity = 0x00; local 189 delay = ubcsp_poll(&activity); 191 if (activity & UBCSP_PACKET_SENT) { 204 if (activity & UBCSP_PACKET_RECEIVED) {
|
/external/jmonkeyengine/engine/src/android/com/jme3/system/android/ |
JmeAndroidSystem.java | 3 import android.app.Activity;
25 private static Activity activity;
field in class:JmeAndroidSystem 52 return new AndroidAudioRenderer(activity);
109 storageFolder = activity.getApplicationContext().getExternalFilesDir(null);
127 public static void setActivity(Activity activity) {
128 JmeAndroidSystem.activity = activity;
131 public static Activity getActivity() { [all...] |
/external/zxing/qr_scanner/src/com/google/zxing/client/android/ |
DecodeThread.java | 39 private final CaptureActivity activity; field in class:DecodeThread 44 DecodeThread(CaptureActivity activity, 48 this.activity = activity; 74 handler = new DecodeHandler(activity, hints);
|
/frameworks/base/core/java/android/app/ |
Instrumentation.java | 104 * begin the appropriate first activity of the application. 144 * Application, Activity, BroadcastReceiver, Service, or null. 343 * Start a new activity and wait for it to begin running before returning. 346 * activity component is resolved before talking with the activity manager 351 * select an activity, an exception will be thrown. 353 * <p>The function returns as soon as the activity goes idle following the 354 * call to its {@link Activity#onCreate}. Generally this means it has gone 355 * through the full initialization including {@link Activity#onResume} and 358 * @param intent Description of the activity to start 686 Activity activity = monitor.waitForActivity(); local 705 Activity activity = monitor.waitForActivityWithTimeout(timeOut); local 738 private final Activity activity; field in class:Instrumentation.MenuRunnable 801 private final Activity activity; field in class:Instrumentation.ContextMenuRunnable 1028 Activity activity = (Activity)clazz.newInstance(); local 1623 public Activity activity; field in class:Instrumentation.ActivityWaiter [all...] |
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
LocalReceiver.java | 17 package android.app.activity;
|
TestedScreen.java | 17 package android.app.activity; 19 import android.app.Activity; 29 public class TestedScreen extends Activity
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/frame/ |
FrameLayoutMarginTest.java | 22 import android.app.Activity; 43 final Activity activity = getActivity(); local 45 mParent = activity.findViewById(R.id.parent); 47 mLeftView = activity.findViewById(R.id.left); 48 mRightView = activity.findViewById(R.id.right); 49 mTopView = activity.findViewById(R.id.top); 50 mBottomView = activity.findViewById(R.id.bottom);
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/ |
HorizontalGravityTest.java | 45 final HorizontalGravity activity = getActivity(); local 46 mReference = activity.findViewById(R.id.reference); 47 mCenter = activity.findViewById(R.id.center); 48 mBottomRight = activity.findViewById(R.id.bottomRight); 49 mLeft = activity.findViewById(R.id.left);
|
VerticalGravityTest.java | 48 final VerticalGravity activity = getActivity(); local 49 mReference1 = activity.findViewById(R.id.reference1); 50 mReference2 = activity.findViewById(R.id.reference2); 51 mReference3 = activity.findViewById(R.id.reference3); 52 mTop = activity.findViewById(R.id.cell_top); 53 mCenter = activity.findViewById(R.id.cell_center); 54 mBottom = activity.findViewById(R.id.cell_bottom);
|
/frameworks/base/tests/WebViewTests/src/com/android/webviewtests/ |
JavaBridgeTestBase.java | 84 // This starts the activity, so must be called on the test thread. 85 final WebViewStubActivity activity = getActivity(); local 92 WebView webView = activity.getWebView();
|
/packages/apps/Browser/tests/src/com/android/browser/ |
IntentHandlerTests.java | 18 import android.app.Activity; 144 final Activity activity = getActivity(); local 148 getInstrumentation().callActivityOnNewIntent(activity, intent);
|
/packages/apps/Calendar/src/com/android/calendar/ |
QuickResponseSettings.java | 19 import android.app.Activity; 70 public void onAttach(Activity activity) { 71 super.onAttach(activity); 72 ((CalendarSettingsActivity) activity).hideMenuButtons(); 78 CalendarSettingsActivity activity = (CalendarSettingsActivity) getActivity(); local 79 if (!activity.isMultiPane()) { 80 activity.setTitle(R.string.quick_response_settings_title);
|
/packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/ |
SendCdmaCmasMessages.java | 19 import android.app.Activity; 65 public static void testSendCmasPresAlert(Activity activity) { 74 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); 77 public static void testSendCmasExtremeAlert(Activity activity) { 86 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); 89 public static void testSendCmasSevereAlert(Activity activity) { 98 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS") [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
AccountPromptUtils.java | 28 import android.app.Activity; 95 public static void launchAccountPrompt(Activity activity) { 97 options.putCharSequence(KEY_INTRO_MESSAGE, activity.getString(R.string.no_account_prompt)); 99 AccountManager.get(activity).addAccount(GoogleAccountType.ACCOUNT_TYPE, null, null, options, 100 activity, getAccountManagerCallback(activity), null); 104 final Activity activity) { 110 activity.finish() 116 AccountPromptUtils.neverShowAccountPromptAgain(activity); typedefs [all...] |