/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListFocusableTest.java | 26 private ListTopGravity mActivity; 37 mActivity = getActivity(); 43 assertNotNull(mActivity); 178 return new ArrayAdapter<String>(mActivity, android.R.layout.simple_list_item_1, 183 return new ArrayAdapter<String>(mActivity, android.R.layout.simple_list_item_1, 189 mActivity.runOnUiThread(new Runnable() { 198 mActivity.runOnUiThread(new Runnable() { 207 mActivity.runOnUiThread(new Runnable() { 216 mActivity.runOnUiThread(new Runnable() { 225 mActivity.runOnUiThread(new Runnable() [all...] |
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
FullScreenVideoTestAwContentsClient.java | 30 private Activity mActivity; 35 mActivity = activity; 42 mActivity.getWindow().setFlags( 46 mActivity.getWindow().addContentView(view, 56 mActivity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
/packages/apps/Browser/src/com/android/browser/ |
NetworkStateHandler.java | 35 Activity mActivity; 44 mActivity = activity; 47 ConnectivityManager cm = (ConnectivityManager) mActivity 86 mActivity.unregisterReceiver(mNetworkStateIntentReceiver); 90 mActivity.registerReceiver(mNetworkStateIntentReceiver,
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
DialogManager.java | 45 private final Activity mActivity; 59 mActivity = activity; 78 mActivity.showDialog(dialogId, bundle); 97 final View view = mActivity.findViewById(viewId); 109 mActivity.removeDialog(id);
|
/packages/apps/Mms/src/com/android/mms/ui/ |
AsyncDialog.java | 33 private final Activity mActivity; 37 mActivity = activity; 97 mProgressDialog.setMessage(mActivity.getText(dialogStringId)); 104 ProgressDialog dialog = new ProgressDialog(mActivity); 151 if (mActivity.isFinishing()) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/ |
ActivityLaunchAction.java | 33 private final String mActivity; 43 mActivity = activity; 53 + mActivity.replaceAll("\\$", "\\\\\\$") //$NON-NLS-1$ //$NON-NLS-2$ 57 String msg = String.format("Starting activity %1$s on device %2$s", mActivity, 122 return String.format("%1$s activity launch", mActivity);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
FrameLayoutTest.java | 54 private Activity mActivity; 66 mActivity = getActivity(); 68 mFrameLayout = (FrameLayout) mActivity.findViewById(R.id.framelayout); 69 assertNotNull(mActivity); 77 new FrameLayout(mActivity); 78 new FrameLayout(mActivity, attrs); 79 new FrameLayout(mActivity, attrs, 0); 84 = (BitmapDrawable) mActivity.getResources().getDrawable(R.drawable.size_48x48); 91 mActivity.runOnUiThread(new Runnable() { 112 = (BitmapDrawable) mActivity.getResources().getDrawable(R.drawable.size_48x48) [all...] |
HorizontalScrollViewTest.java | 54 private Activity mActivity; 63 mActivity = getActivity(); 64 mScrollView = (MyHorizontalScrollView) mActivity.findViewById(R.id.horizontal_scroll_view); 68 XmlPullParser parser = mActivity.getResources().getLayout(R.layout.horizontal_scrollview); 70 new HorizontalScrollView(mActivity); 72 new HorizontalScrollView(mActivity, attrs); 74 new HorizontalScrollView(mActivity, attrs, 0); 78 HorizontalScrollView scrollView = new HorizontalScrollView(mActivity); 87 HorizontalScrollView scrollView = new HorizontalScrollView(mActivity); 88 TextView child0 = new TextView(mActivity); [all...] |
ScrollViewTest.java | 61 private Activity mActivity; 70 mActivity = getActivity(); 71 mScrollView = (MyScrollView) mActivity.findViewById(R.id.scroll_view); 85 XmlPullParser parser = mActivity.getResources().getLayout(R.layout.scrollview_layout); 87 new ScrollView(mActivity); 89 new ScrollView(mActivity, attrs); 91 new ScrollView(mActivity, attrs, 0); 96 ScrollView scrollView = new ScrollView(mActivity); 105 ScrollView scrollView = new ScrollView(mActivity); 106 TextView child0 = new TextView(mActivity); [all...] |
ToastTest.java | 41 private Activity mActivity; 54 mActivity = getActivity(); 66 new Toast(mActivity); 117 mActivity.runOnUiThread(new Runnable() { 119 mToast = Toast.makeText(mActivity, TEST_TOAST_TEXT, Toast.LENGTH_LONG); 134 mActivity.runOnUiThread(new Runnable() { 148 Toast toast = new Toast(mActivity); 166 mActivity.runOnUiThread(new Runnable() { 181 final ImageView imageView = new ImageView(mActivity); 182 Drawable drawable = mActivity.getResources().getDrawable(R.drawable.pass) [all...] |
ChronometerTest.java | 29 private ChronometerCtsActivity mActivity; 37 mActivity = getActivity(); 42 new Chronometer(mActivity); 44 new Chronometer(mActivity, null); 46 new Chronometer(mActivity, null, 0); 51 Chronometer chronometer = mActivity.getChronometer(); 80 Chronometer chronometer = mActivity.getChronometer(); 99 final Chronometer chronometer = mActivity.getChronometer(); 135 final Chronometer chronometer = mActivity.getChronometer();
|
ImageViewTest.java | 59 private Activity mActivity; 72 return (ImageView) mActivity.findViewById(id); 80 source = mActivity.getResources().openRawResource(resid); 107 mActivity = getActivity(); 111 new ImageView(mActivity); 113 new ImageView(mActivity, null); 115 new ImageView(mActivity, null, 0); 117 XmlPullParser parser = mActivity.getResources().getXml(R.layout.imageview_layout); 119 new ImageView(mActivity, attrs); 120 new ImageView(mActivity, attrs, 0) [all...] |
RemoteViewsTest.java | 71 private Activity mActivity; 80 mActivity = getActivity(); 85 mResult = mRemoteViews.apply(mActivity, null); 121 mRemoteViews.reapply(mActivity, mResult); 125 mRemoteViews.reapply(mActivity, mResult); 129 mRemoteViews.reapply(mActivity, mResult); 139 mRemoteViews.reapply(mActivity, mResult); 143 mRemoteViews.reapply(mActivity, mResult); 148 mRemoteViews.reapply(mActivity, mResult); 160 mRemoteViews.reapply(mActivity, mResult) [all...] |
SeekBarTest.java | 36 private Activity mActivity; 48 mActivity = getActivity(); 49 mSeekBar = (SeekBar) mActivity.findViewById(R.id.seekBar); 53 new SeekBar(mActivity); 55 new SeekBar(mActivity, null); 57 new SeekBar(mActivity, null, com.android.internal.R.attr.seekBarStyle);
|
/packages/apps/Camera/src/com/android/camera/ |
VideoModule.java | 124 private CameraActivity mActivity; 249 mActivity.mCameraDevice = Util.openCamera(mActivity, mCameraId); 250 mParameters = mActivity.mCameraDevice.getParameters(); 252 mActivity.mOpenCameraFail = true; 254 mActivity.mCameraDisabled = true; 270 mActivity.getWindow().clearFlags( 286 if ((Util.getDisplayRotation(mActivity) != mDisplayRotation) 307 ((CameraScreenNail) mActivity.mCameraScreenNail).animateSwitchCamera(); 335 Toast.makeText(mActivity, [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
PhotoPage.java | 256 mActionBar = mActivity.getGalleryActionBar(); 257 mSelectionManager = new SelectionManager(mActivity, false); 258 mMenuExecutor = new MenuExecutor(mActivity, mSelectionManager); 260 mPhotoView = new PhotoView(mActivity); 263 mApplication = (GalleryApp) ((Activity) mActivity).getApplication(); 264 mOrientationManager = mActivity.getOrientationManager(); 265 mActivity.getGLRoot().setOrientationSource(mOrientationManager); 267 mHandler = new SynchronizedHandler(mActivity.getGLRoot()) { 298 mActivity.getGLRoot().unfreeze(); 407 mScreenNailSet = (SnailAlbum) mActivity.getDataManager( [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
ViewTest.java | 99 private ViewTestCtsActivity mActivity; 109 mActivity = getActivity(); 113 return mActivity.hasWindowFocus(); 116 mResources = mActivity.getResources(); 117 mMockParent = new MockViewParent(mActivity); 118 assertTrue(mActivity.waitForWindowFocus(5 * DateUtils.SECOND_IN_MILLIS)); 122 new View(mActivity); 126 new View(mActivity, attrs); 128 new View(mActivity, null); 136 new View(mActivity, attrs, 0) [all...] |
View_AnimationTest.java | 38 private Activity mActivity; 49 mActivity = getActivity(); 55 final View view = mActivity.findViewById(R.id.mock_view); 71 final View view = mActivity.findViewById(R.id.mock_view); 90 final View view = mActivity.findViewById(R.id.mock_view); 110 final View view = mActivity.findViewById(R.id.mock_view);
|
/cts/tests/tests/graphics/src/android/opengl/cts/ |
OpenGlEsVersionTest.java | 48 private OpenGlEsVersionCtsActivity mActivity; 57 mActivity = getActivity(); 62 int reportedVersion = getVersionFromActivityManager(mActivity); 69 reportedVersion, getVersionFromPackageManager(mActivity)); 82 int reportedVersion = getVersionFromActivityManager(mActivity); 89 String extensions = mActivity.getExtensionsString(); 115 int reportedVersion = getVersionFromActivityManager(mActivity); 116 boolean hasAepFeature = mActivity.getPackageManager().hasSystemFeature( 127 String extensions = mActivity.getExtensionsString(); 135 mActivity.getAepEs31Support()) [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
ActionBarActivityDelegate.java | 57 final ActionBarActivity mActivity; 74 return mActivity.onMenuItemSelected(featureId, menuItem); 79 return mActivity.superOnCreatePanelMenu(featureId, menu); 84 return mActivity.superOnPreparePanel(featureId, menuView, menu); 89 mActivity.onPanelClosed(featureId, menu); 94 return mActivity.onMenuOpened(featureId, menu); 112 mActivity = activity; 143 TypedArray a = mActivity.obtainStyledAttributes(R.styleable.Theme); 192 return mActivity.onPrepareOptionsMenu(menu); 194 return mActivity.superOnPrepareOptionsPanel(view, menu) [all...] |
/cts/tests/tests/animation/src/android/animation/cts/ |
ValueAnimatorTest.java | 25 private AnimationActivity mActivity; 37 mActivity = getActivity(); 38 mValueAnimator = mActivity.createAnimatorWithDuration(mDuration); 43 ValueAnimator valueAnimatorLocal = mActivity.createAnimatorWithDuration(duration); 51 ValueAnimator valueAnimatorReturned = mActivity.view.bounceYAnimator; 66 ValueAnimator mValueAnimator = mActivity.createAnimatorWithRepeatMode( 74 ValueAnimator mValueAnimator = mActivity.createAnimatorWithRepeatCount(repeatCount); 103 ValueAnimator mValueAnimator = mActivity.createAnimatorWithInterpolator(interpolator); 116 Object object = mActivity.view.newBall; 118 float startY = mActivity.mStartY [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
CharacterPickerDialogTest.java | 35 private Activity mActivity; 44 mActivity = getActivity(); 51 final View view = new TextView(mActivity); 68 final Gallery parent = new Gallery(mActivity); 71 final View view = new TextView(mActivity); 112 final View view = new TextView(mActivity);
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
AccelerateDecelerateInterpolatorTest.java | 38 private Activity mActivity; 50 mActivity = getActivity(); 56 XmlResourceParser parser = mActivity.getResources().getAnimation( 59 new AccelerateDecelerateInterpolator(mActivity, attrs); 63 final View animWindow = mActivity.findViewById(R.id.anim_window); 71 final Animation anim = AnimationUtils.loadAnimation(mActivity,
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
FragmentNestingTabs.java | 71 private final Activity mActivity; 82 mActivity = activity; 90 mFragment = mActivity.getFragmentManager().findFragmentByTag(mTag); 92 FragmentTransaction ft = mActivity.getFragmentManager().beginTransaction(); 100 mFragment = Fragment.instantiate(mActivity, mClass.getName(), mArgs); 114 Toast.makeText(mActivity, "Reselected!", Toast.LENGTH_SHORT).show();
|
FragmentTabs.java | 71 private final Activity mActivity; 82 mActivity = activity; 90 mFragment = mActivity.getFragmentManager().findFragmentByTag(mTag); 92 FragmentTransaction ft = mActivity.getFragmentManager().beginTransaction(); 100 mFragment = Fragment.instantiate(mActivity, mClass.getName(), mArgs); 114 Toast.makeText(mActivity, "Reselected!", Toast.LENGTH_SHORT).show();
|