HomeSort by relevance Sort by last modified time
    Searched refs:activity (Results 176 - 200 of 1098) sorted by null

1 2 3 4 5 6 78 91011>>

  /developers/build/prebuilts/gradle/CardReader/Application/src/main/java/com/example/android/cardreader/
CardReaderFragment.java 19 import android.app.Activity;
37 // activity is interested in NFC-A devices (including other Android devices), and that the
82 Activity activity = getActivity(); local
83 NfcAdapter nfc = NfcAdapter.getDefaultAdapter(activity);
85 nfc.enableReaderMode(activity, mLoyaltyCardReader, READER_FLAGS, null);
91 Activity activity = getActivity(); local
92 NfcAdapter nfc = NfcAdapter.getDefaultAdapter(activity);
94 nfc.disableReaderMode(activity);
    [all...]
  /developers/samples/android/admin/BasicManagedProfile/Application/src/main/java/com/example/android/basicmanagedprofile/
SetupProfileFragment.java 19 import android.app.Activity;
71 Activity activity = getActivity(); local
72 if (null == activity) {
77 activity.getApplicationContext().getPackageName());
78 if (intent.resolveActivity(activity.getPackageManager()) != null) {
80 activity.finish();
82 Toast.makeText(activity, "Device provisioning is not enabled. Stopping.",
90 if (resultCode == Activity.RESULT_OK) {
  /developers/samples/android/connectivity/nfc/CardReader/Application/src/main/java/com/example/android/cardreader/
CardReaderFragment.java 19 import android.app.Activity;
37 // activity is interested in NFC-A devices (including other Android devices), and that the
82 Activity activity = getActivity(); local
83 NfcAdapter nfc = NfcAdapter.getDefaultAdapter(activity);
85 nfc.enableReaderMode(activity, mLoyaltyCardReader, READER_FLAGS, null);
91 Activity activity = getActivity(); local
92 NfcAdapter nfc = NfcAdapter.getDefaultAdapter(activity);
94 nfc.disableReaderMode(activity);
    [all...]
  /development/samples/browseable/BasicManagedProfile/src/com.example.android.basicmanagedprofile/
SetupProfileFragment.java 19 import android.app.Activity;
71 Activity activity = getActivity(); local
72 if (null == activity) {
77 activity.getApplicationContext().getPackageName());
78 if (intent.resolveActivity(activity.getPackageManager()) != null) {
80 activity.finish();
82 Toast.makeText(activity, "Device provisioning is not enabled. Stopping.",
90 if (resultCode == Activity.RESULT_OK) {
  /development/samples/browseable/CardReader/src/com.example.android.cardreader/
CardReaderFragment.java 19 import android.app.Activity;
37 // activity is interested in NFC-A devices (including other Android devices), and that the
82 Activity activity = getActivity(); local
83 NfcAdapter nfc = NfcAdapter.getDefaultAdapter(activity);
85 nfc.enableReaderMode(activity, mLoyaltyCardReader, READER_FLAGS, null);
91 Activity activity = getActivity(); local
92 NfcAdapter nfc = NfcAdapter.getDefaultAdapter(activity);
94 nfc.disableReaderMode(activity);
    [all...]
  /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);
FrameLayoutGravityTest.java 22 import android.app.Activity;
47 final Activity activity = getActivity(); local
49 mParent = activity.findViewById(R.id.parent);
51 mLeftView = activity.findViewById(R.id.left);
52 mRightView = activity.findViewById(R.id.right);
53 mCenterHorizontalView = activity.findViewById(R.id.center_horizontal);
55 mLeftCenterVerticalView = activity.findViewById(R.id.left_center_vertical);
56 mRighCenterVerticalView = activity.findViewById(R.id.right_center_vertical);
57 mCenterView = activity.findViewById(R.id.center)
    [all...]
  /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/Gallery2/src/com/android/gallery3d/filtershow/presets/
PresetManagementDialog.java 39 FilterShowActivity activity = (FilterShowActivity) getActivity(); local
40 mAdapter = activity.getUserPresetsAdapter();
50 FilterShowActivity activity = (FilterShowActivity) getActivity(); local
55 activity.updateUserPresetsFromAdapter(mAdapter);
60 activity.saveCurrentImagePreset(text);
62 activity.updateUserPresetsFromAdapter(mAdapter);
  /packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/settings/
GeneralPrefsFragmentTest.java 52 final MailPreferenceActivity activity = getActivity(); local
57 activity.getFragmentManager().executePendingTransactions();
60 final GeneralPrefsFragment fragment = activity.getGeneralPrefsFragment();
61 fragment.mMailPrefs = new MailPrefs(activity, PREFS_NAME_TEST);
67 final MailPreferenceActivity activity = getActivity(); local
68 final GeneralPrefsFragment fragment = activity.getGeneralPrefsFragment();
  /cts/tests/tests/mediastress/src/android/mediastress/cts/
NativeMediaTest.java 96 final NativeMediaActivity activity = getActivity(); local
98 waitForNativeMediaLifeCycle(activity, true);
101 instrumentation.callActivityOnPause(activity);
103 waitForNativeMediaLifeCycle(activity, false);
104 instrumentation.callActivityOnResume(activity);
105 waitForNativeMediaLifeCycle(activity, true);
112 * @param activity
116 private void waitForNativeMediaLifeCycle(NativeMediaActivity activity, boolean expectAlive)
118 Boolean status = activity.waitForNativeMediaLifeCycle();
  /developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
SampleMediaButtonReceiver.java 29 * to main app activity MainActivity.
35 public static void setActivity(MainActivity activity) {
36 mActivity = activity;
  /developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
SampleMediaButtonReceiver.java 29 * to main app activity MainActivity.
35 public static void setActivity(MainActivity activity) {
36 mActivity = activity;
  /development/samples/Support7Demos/src/com/example/android/supportv7/media/
SampleMediaButtonReceiver.java 32 * to main app activity SampleMediaRouterActivity.
38 public static void setActivity(SampleMediaRouterActivity activity) {
39 mActivity = activity;
  /development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
SampleMediaButtonReceiver.java 29 * to main app activity MainActivity.
35 public static void setActivity(MainActivity activity) {
36 mActivity = activity;
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
ViewInnerTextTest.java 3 import android.app.Activity;
18 private Context activity; field in class:ViewInnerTextTest
22 activity = new Activity();
27 LinearLayout top = new LinearLayout(activity);
29 top.addView(new View(activity));
32 LinearLayout innerLayout = new LinearLayout(activity);
48 LinearLayout top = new LinearLayout(activity);
58 LinearLayout top = new LinearLayout(activity);
71 TextView textView = new TextView(activity);
    [all...]
  /frameworks/base/location/lib/java/com/android/location/provider/
ActivityRecognitionEvent.java 20 * A class that represents an Activity Recognition Event.
27 public ActivityRecognitionEvent(String activity, int eventType, long timestampNs) {
28 mActivity = activity;
64 "Activity='%s', EventType=%s(%s), TimestampNs=%s",
  /packages/apps/Camera2/src/com/android/camera/one/
OneCameraManager.java 70 public static OneCameraManager get(CameraActivity activity) {
71 return create(activity);
78 private static OneCameraManager create(CameraActivity activity) {
79 DisplayMetrics displayMetrics = getDisplayMetrics(activity);
80 CameraManager cameraManager = (CameraManager) activity
82 int maxMemoryMB = activity.getServices().getMemoryManager()
86 activity.getApplicationContext(), cameraManager, maxMemoryMB,
87 displayMetrics, activity.getSoundPlayer());
  /packages/apps/Contacts/src/com/android/contacts/util/
AccountPromptUtils.java 25 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...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/
TraceOptions.java 26 /** Activity to trace. */
43 public TraceOptions(String device, String appPackage, String activity,
48 this.activityToTrace = activity;
  /frameworks/base/core/java/android/app/
Instrumentation.java 109 * begin the appropriate first activity of the application.
149 * Application, Activity, BroadcastReceiver, Service, or null.
355 * Start a new activity and wait for it to begin running before returning.
358 * activity component is resolved before talking with the activity manager
363 * select an activity, an exception will be thrown.
365 * <p>The function returns as soon as the activity goes idle following the
366 * call to its {@link Activity#onCreate}. Generally this means it has gone
367 * through the full initialization including {@link Activity#onResume} and
370 * @param intent Description of the activity to start
698 Activity activity = monitor.waitForActivity(); local
717 Activity activity = monitor.waitForActivityWithTimeout(timeOut); local
750 private final Activity activity; field in class:Instrumentation.MenuRunnable
813 private final Activity activity; field in class:Instrumentation.ContextMenuRunnable
1040 Activity activity = (Activity)clazz.newInstance(); local
1876 public Activity activity; field in class:Instrumentation.ActivityWaiter
    [all...]
  /external/zxing/qr_scanner/src/com/google/zxing/client/android/
CaptureActivityHandler.java 22 import android.app.Activity;
40 private final CaptureActivity activity; field in class:CaptureActivityHandler
51 CaptureActivityHandler(CaptureActivity activity,
54 this.activity = activity;
55 decodeThread = new DecodeThread(activity, characterSet,
56 new ViewfinderResultPointCallback(activity.getViewfinderView()));
84 activity.handleDecode((Result) message.obj, barcode);
91 activity.setResult(Activity.RESULT_OK, (Intent) message.obj)
    [all...]
  /frameworks/base/core/java/android/hardware/location/
ActivityRecognitionHardware.java 27 * A class that implements an {@link IActivityRecognitionHardware} backed up by the Activity
49 public int activity; field in class:ActivityRecognitionHardware.Event
82 public boolean isActivitySupported(String activity) {
84 int activityType = getActivityType(activity);
101 public boolean enableActivityEvent(String activity, int eventType, long reportLatencyNs) {
104 int activityType = getActivityType(activity);
114 public boolean disableActivityEvent(String activity, int eventType) {
117 int activityType = getActivityType(activity);
134 * Called by the Activity-Recognition HAL.
147 String activityName = getActivityName(event.activity);
    [all...]
  /packages/apps/Tag/src/com/android/apps/tag/record/
RecordUtils.java 22 import android.app.Activity;
50 public Activity activity; field in class:RecordUtils.ClickInfo
53 public ClickInfo(Activity activity, Intent intent) {
54 this.activity = activity;
63 public static View getViewsForIntent(Activity activity, LayoutInflater inflater,
66 PackageManager pm = activity.getPackageManager()
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DictionarySettingsFragment.java 19 import android.app.Activity;
97 final Activity activity = getActivity(); local
98 mClientId = activity.getIntent().getStringExtra(DICT_SETTINGS_FRAGMENT_CLIENT_ID_ARGUMENT);
100 (ConnectivityManager)activity.getSystemService(Context.CONNECTIVITY_SERVICE);
125 final Activity activity = getActivity(); local
126 if (!MetadataDbHelper.isClientKnown(activity, mClientId)) {
132 activity.sendBroadcast(unknownClientBroadcast);
143 final Activity activity = getActivity() local
213 final Activity activity = getActivity(); local
278 final Activity activity = getActivity(); local
370 final Activity activity = getActivity(); local
401 final Activity activity = getActivity(); local
    [all...]

Completed in 801 milliseconds

1 2 3 4 5 6 78 91011>>