/packages/apps/Calendar/src/com/android/calendar/ |
AboutPreferences.java | 19 import android.app.Activity; 33 final Activity activity = getActivity(); local 36 activity.getPackageManager().getPackageInfo(activity.getPackageName(), 0);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
PassFailButtons.java | 34 * {@link Activity}s to handle clicks to the pass and fail buttons of the pass fail buttons layout. 42 * <li>Make sure to call setResult(RESULT_CANCEL) in your Activity initially.</li> 61 * Call from {@link Activity#onCreate} after {@link Activity #setContentView(int)}. 66 * Adds an initial informational dialog that appears when entering the test activity for 70 * Call from {@link Activity#onCreate} after {@link Activity #setContentView(int)}. 88 public static class Activity extends android.app.Activity implements PassFailActivity { 188 private static <T extends android.app.Activity & PassFailActivity [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...] |
/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/Email/src/com/android/email/activity/ |
FragmentInstallable.java | 17 package com.android.email.activity; 19 import android.app.Activity; 23 * Interface for {@link Activity} that can "install" fragments. 27 * Called when a {@link Fragment} wants to be installed to the host activity. 32 * This means a host {@link Activity} can safely assume a passed {@link Fragment} is already 38 * Called when a {@link Fragment} wants to be uninstalled from the host activity.
|
ActivityHelper.java | 17 package com.android.email.activity; 19 import android.app.Activity; 30 import com.android.email.activity.setup.AccountSecurity; 55 * @param activity parent activity 62 public static boolean openUrlInMessage(Activity activity, String url, long senderAccountId) { 65 return MessageCompose.actionCompose(activity, url, senderAccountId); 72 intent.putExtra(Browser.EXTRA_APPLICATION_ID, activity.getPackageName()); 75 activity.startActivity(intent) [all...] |
NfcHandler.java | 17 package com.android.email.activity; 19 import android.app.Activity; 34 * enabled when the activity is in the foreground and resumed. 41 final Activity mActivity; 45 public static NfcHandler register(UIControllerBase controller, Activity activity) { 46 NfcAdapter adapter = NfcAdapter.getDefaultAdapter(activity); 50 NfcHandler nfcHandler = new NfcHandler(controller, activity); 51 adapter.setNdefPushMessageCallback(nfcHandler, activity); 55 public NfcHandler(UIControllerBase controller, Activity activity) [all...] |
/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();
|
/frameworks/base/core/tests/coretests/src/android/view/ |
MergeTest.java | 37 final Merge activity = getActivity(); local 38 final ViewGroup layout = activity.getLayout();
|
ViewStubTest.java | 40 final StubbedView activity = getActivity(); local 42 final View stub = activity.findViewById(R.id.viewStub); 49 final StubbedView activity = getActivity(); local 51 final ViewStub stub = (ViewStub) activity.findViewById(R.id.viewStub); 60 final StubbedView activity = getActivity(); local 62 final ViewStub stub = (ViewStub) activity.findViewById(R.id.viewStubWithId); 73 final StubbedView activity = getActivity(); local 75 final ViewStub stub = (ViewStub) activity.findViewById(R.id.viewStubWithId);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/ |
TraceOptions.java | 23 /** Activity to trace. */ 38 public TraceOptions(String device, String activity, String destinationPath, 41 this.activityToTrace = activity;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
UsbDisconnectedReceiver.java | 19 import android.app.Activity; 31 private final Activity mActivity; 35 public UsbDisconnectedReceiver(Activity activity, UsbDevice device) { 36 mActivity = activity; 40 activity.registerReceiver(this, filter); 43 public UsbDisconnectedReceiver(Activity activity, UsbAccessory accessory) { 44 mActivity = activity; 48 activity.registerReceiver(this, filter) [all...] |
/external/zxing/qr_scanner/src/com/google/zxing/client/android/ |
InactivityTimer.java | 19 import android.app.Activity; 33 * Finishes an activity after a period of inactivity if the device is on battery power. 41 private final Activity activity; field in class:InactivityTimer 45 InactivityTimer(Activity activity) { 46 this.activity = activity; 54 inactivityFuture = inactivityTimer.schedule(new FinishListener(activity), 66 activity.unregisterReceiver(powerStatusReceiver) [all...] |
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/tests/coretests/src/android/widget/layout/table/ |
CellSpanTest.java | 46 final CellSpan activity = getActivity(); local 47 mA = activity.findViewById(R.id.a); 48 mB = activity.findViewById(R.id.b); 49 mC = activity.findViewById(R.id.c); 50 mSpanThenCell = activity.findViewById(R.id.spanThenCell); 51 mCellThenSpan = activity.findViewById(R.id.cellThenSpan); 52 mSpan = activity.findViewById(R.id.span);
|
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);
|
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);
|
WeightTest.java | 44 final Weight activity = getActivity(); local 45 mCell1 = activity.findViewById(R.id.cell1); 46 mCell3 = activity.findViewById(R.id.cell2); 47 mCell2 = activity.findViewById(R.id.cell3); 48 mRow = activity.findViewById(R.id.row);
|
/frameworks/base/tests/BrowserPowerTest/src/com/android/browserpowertest/ |
PowerMeasurement.java | 47 PowerTestActivity activity = (PowerTestActivity)mInst.startActivitySync( local 49 activity.reset(); 51 Handler handler = activity.getHandler(); 58 boolean timeoutFlag = activity.waitUntilDone(); 61 boolean pageErrorFlag = activity.getPageError(); 64 Log.v(LOGTAG, "Page is loaded in " + activity.getPageLoadTime() + " ms."); 84 activity.finish();
|
/frameworks/base/core/java/android/nfc/ |
NfcAdapter.java | 23 import android.app.Activity; 57 * Intent to start an activity when a tag with NDEF payload is discovered. 64 * most specific intent filters possible to avoid the activity chooser dialog, which can 78 * Intent to start an activity when a tag is discovered and activities are registered for the 81 * <p>To receive this intent an activity must include an intent filter 85 * <activity android:name=".nfc.TechFilter" android:label="NFC/TechFilter"> 94 * </activity></pre> 103 * activity is considered a match is any single <code>tech-list</code> matches the tag that was 134 * Intent to start an activity when a tag is discovered. 143 * Broadcast to only the activity that handles ACTION_TAG_DISCOVERE [all...] |
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
WiFiDirectBroadcastReceiver.java | 20 import android.app.Activity; 38 private Activity activity; field in class:WiFiDirectBroadcastReceiver 43 * @param activity activity associated with the receiver 46 Activity activity) { 50 this.activity = activity; 78 (ConnectionInfoListener) activity); [all...] |
/cts/tests/tests/app/src/android/app/cts/ |
ApplicationTest.java | 20 import android.app.Activity; 39 final Activity activity = instrumentation.startActivitySync(intent); local 40 final MockApplication mockApp = (MockApplication) activity.getApplication(); 46 OrientationTestUtils.toggleOrientation(activity);
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/ |
BaselineAlignmentSpinnerButton.java | 19 import android.app.Activity; 40 final Activity activity = getActivity(); local 41 mSpinner = activity.findViewById(R.id.reminder_value); 42 mButton = activity.findViewById(R.id.reminder_remove);
|
FillInWrapTest.java | 19 import android.app.Activity; 38 final Activity activity = getActivity(); local 39 mChild = activity.findViewById(R.id.data); 40 mContainer = activity.findViewById(R.id.layout);
|
LinearLayoutEditTextsTest.java | 25 import android.app.Activity; 39 final Activity activity = getActivity(); local 40 mChild = activity.findViewById(R.id.editText1); 41 mContainer = activity.findViewById(R.id.layout);
|