/packages/apps/Browser/src/com/android/browser/ |
NfcHandler.java | 19 import android.app.Activity; 32 * when the activity is in the foreground and resumed. 45 public static void register(Activity activity, Controller controller) { 46 NfcAdapter adapter = NfcAdapter.getDefaultAdapter(activity.getApplicationContext()); 55 adapter.setNdefPushMessageCallback(handler, activity); 58 public static void unregister(Activity activity) { 60 // the callback and release the ref to out activity. 61 register(activity, null) [all...] |
DownloadHandler.java | 19 import android.app.Activity; 50 * @param activity Activity requesting the download. 58 public static void onDownloadStart(Activity activity, String url, 70 ResolveInfo info = activity.getPackageManager().resolveActivity(intent, 73 ComponentName myName = activity.getComponentName(); 83 activity.startActivity(intent); 87 Log.d(LOGTAG, "activity not found for " + mimetype 97 onDownloadStartNoStream(activity, url, userAgent, contentDisposition [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
MenuHelper.java | 21 import android.app.Activity; 101 /** Activity result code used to report crop results. 219 private static void setLatLngDetails(final View d, Activity context, 262 final Activity activity) { 282 Toast.makeText(activity, 296 activity.startActivity(new Intent( 315 Activity activity) { 343 setLatLngDetails(d, activity, exif) [all...] |
/external/zxing/qr_scanner/src/com/google/zxing/client/android/ |
DecodeHandler.java | 38 private final CaptureActivity activity; field in class:DecodeHandler 42 DecodeHandler(CaptureActivity activity, Hashtable<DecodeHintType,Object> hints) { 45 this.activity = activity; 72 PlanarYUVLuminanceSource source = activity.getCameraManager().buildLuminanceSource(data, width, height); 84 Handler handler = activity.getHandler();
|
/frameworks/base/location/lib/java/com/android/location/provider/ |
ActivityRecognitionProvider.java | 53 * Used to receive Activity-Recognition events. 70 public boolean isActivitySupported(String activity) throws RemoteException { 71 return mService.isActivitySupported(activity); 90 public boolean enableActivityEvent(String activity, int eventType, long reportLatencyNs) 92 return mService.enableActivityEvent(activity, eventType, reportLatencyNs); 95 public boolean disableActivityEvent(String activity, int eventType) throws RemoteException { 96 return mService.disableActivityEvent(activity, eventType);
|
/cts/tests/tests/content/src/android/content/cts/ |
BroadcastReceiverTest.java | 131 final MockActivity activity = getActivity(); local 136 activity.registerReceiver(internalReceiver, filter); 142 activity.sendBroadcast(new Intent(ACTION_BROADCAST_INTERNAL)); 145 activity.unregisterReceiver(internalReceiver); 206 final MockActivity activity = getActivity(); local 211 activity.registerReceiver(internalReceiver, filter); 213 activity.sendBroadcast(new Intent(ACTION_BROADCAST_INTERNAL)); 217 Intent intent = new Intent(activity, MockService.class); 219 assertTrue(activity.bindService(intent, msc, Service.BIND_AUTO_CREATE)); 223 activity.sendBroadcast(new Intent(ACTION_BROADCAST_INTERNAL)) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
EditorPanel.java | 19 import android.app.Activity; 49 public void onAttach(Activity activity) { 50 super.onAttach(activity); 51 FilterShowActivity filterShowActivity = (FilterShowActivity) activity; 67 FilterShowActivity activity = (FilterShowActivity) getActivity(); local 73 showImageStatePanel(activity.isShowingImageStatePanel()); 87 FilterShowActivity activity = (FilterShowActivity) getActivity(); 88 activity.backToMain(); 93 mEditor = activity.getEditor(mEditorID) 127 FilterShowActivity activity = (FilterShowActivity) getActivity(); local [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/adapter/ |
DrawerItem.java | 74 /** The parent activity */ 126 * @param activity the underlying activity 137 private DrawerItem(int type, ControllableActivity activity, Folder folder, int folderType, 140 mActivity = activity; 146 mInflater = LayoutInflater.from(activity.getActivityContext()); 156 * @param activity the underlying activity 162 public static DrawerItem ofFolder(ControllableActivity activity, Folder folder, 164 return new DrawerItem(VIEW_FOLDER, activity, folder, folderType, null, -1, false [all...] |
/cts/tests/tests/security/src/android/security/cts/activity/ |
SecureRandomService.java | 17 package android.security.cts.activity; 22 import android.security.cts.activity.ISecureRandomService;
|
/developers/build/prebuilts/androidtv/visual-game-controller/src/com/example/android/visualgamecontroller/util/ |
SystemUiHiderBase.java | 19 import android.app.Activity; 38 protected SystemUiHiderBase(Activity activity, View anchorView, int flags) { 39 super(activity, anchorView, flags);
|
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/ |
CompatTab.java | 32 protected CompatTab(FragmentActivity activity, String tag) { 33 mActivity = activity;
|
/external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/ |
UiUtils.java | 7 import android.app.Activity; 27 * @param activity The activity on which the runnable must run. 30 public static void runOnUiThread(Activity activity, final Runnable runnable) { 32 activity.runOnUiThread(new Runnable() {
|
/external/glide/library/src/main/java/com/bumptech/glide/manager/ |
RequestManagerRetriever.java | 4 import android.app.Activity; 21 } else if (context instanceof Activity) { 22 return get((Activity) context); 32 public static RequestManager get(FragmentActivity activity) { 33 if (Build.VERSION.SDK_INT >= 11 && activity.isDestroyed()) { 34 throw new IllegalArgumentException("You cannot start a load for a destroyed activity"); 36 FragmentManager fm = activity.getSupportFragmentManager(); 37 return supportFragmentGet(activity, fm); 52 public static RequestManager get(Activity activity) { [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
UninstallManager.java | 19 import android.app.Activity; 28 private final Activity mActivity; 31 UninstallManager(Activity activity, AppInfo appInfo) { 32 mActivity = activity;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
UserDictionaryList.java | 19 import android.app.Activity; 55 public static TreeSet<String> getUserDictionaryLocalesSet(Activity activity) { 56 final Cursor cursor = activity.getContentResolver().query(UserDictionary.Words.CONTENT_URI, 82 (InputMethodManager)activity.getSystemService(Context.INPUT_METHOD_SERVICE); 112 final Activity activity = getActivity(); local 115 UserDictionaryList.getUserDictionaryLocalesSet(activity); 124 userDictGroup.addPreference(createUserDictionaryPreference(null, activity)); 127 userDictGroup.addPreference(createUserDictionaryPreference(locale, activity)); [all...] |
/cts/libs/wrappedgtest/src/ |
WrappedGTestActivity.java | 19 import android.app.Activity; 23 public class WrappedGTestActivity extends Activity { 41 protected static native int runTests(WrappedGTestActivity activity);
|
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/ |
TestListFragment.java | 18 import android.app.Activity; 62 public void onAttach(Activity activity) { 63 super.onAttach(activity); 64 if (!(activity instanceof Callbacks)) { 65 throw new IllegalStateException("Activity must implement fragment's callbacks."); 68 mCallbacks = (Callbacks) activity;
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/infobar/ |
AutoLoginAccountDelegate.java | 11 import android.app.Activity; 23 private final Activity mActivity; 30 public AutoLoginAccountDelegate(Activity activity, AutoLoginProcessor autoLoginProcessor, 32 mActivity = activity; 34 mAccountManager = AccountManager.get(activity); 35 mAccount = ChromeSigninController.get(activity).getSignedInUser();
|
/external/chromium_org/components/cronet/android/sample/javatests/src/org/chromium/cronet_sample_apk/ |
CronetSampleTestBase.java | 39 * Starts the CronetSample activity and loads the given URL. The URL can be 48 * Starts the CronetSample activity appending the provided command line 73 // starting the activity (launch* and start*) should be merged into one. 75 * Starts the content shell activity with the provided test url. The url is 88 * Starts the content shell activity with the provided test url and optional 93 * launching the activity. 115 final CronetSampleActivity activity = getActivity(); local 126 if (activity != null) { 134 isLoaded.set(!activity.isLoading() && !TextUtils 135 .isEmpty(activity.getUrl())) [all...] |
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
ActivityTests.java | 17 package android.app.activity;
|
ResultReceiver.java | 17 package android.app.activity;
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/ |
BaselineAlignmentCenterGravityTest.java | 19 import android.app.Activity; 42 final Activity activity = getActivity(); local 43 mButton1 = (Button) activity.findViewById(R.id.button1); 44 mButton2 = (Button) activity.findViewById(R.id.button2); 45 mButton3 = (Button) activity.findViewById(R.id.button3);
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
DocActivity.java | 17 package com.google.android.test.activity; 19 import android.app.Activity; 23 public class DocActivity extends Activity {
|
SingleUserReceiver.java | 17 package com.google.android.test.activity;
|
/packages/apps/Camera/tests/src/com/android/camera/functional/ |
CameraTest.java | 21 import android.app.Activity; 62 ArrayList<WeakReference<Activity>> refs = 63 new ArrayList<WeakReference<Activity>>(); 65 Activity activity = getInstrumentation().startActivitySync(intent); local 66 refs.add(new WeakReference<Activity>(activity)); 67 activity.finish(); 69 activity = null; 75 for (WeakReference<Activity> c: refs) [all...] |