Home
last modified time | relevance | path

Searched refs:mActivity (Results 1 – 25 of 101) sorted by relevance

12345

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityRecordTests.java89 private ActivityRecord mActivity; field in ActivityRecordTests
95 mActivity = mTask.getTopActivity(); in setUp()
103 mActivity.setTask(null); in testStackCleanupOnClearingTask()
109 mTask.removeActivity(mActivity); in testStackCleanupOnActivityRemoval()
124 mActivity.reparent(newTask, 0, null /*reason*/); in testNoCleanupMovingActivityInSameStack()
137 }).when(mActivity.app.getThread()).scheduleTransaction(any()); in testPausingWhenVisibleFromStopped()
139 mActivity.setState(STOPPED, "testPausingWhenVisibleFromStopped"); in testPausingWhenVisibleFromStopped()
142 mActivity.makeVisibleIfNeeded(null /* starting */, true /* reportToClient */); in testPausingWhenVisibleFromStopped()
143 assertTrue(mActivity.isState(RESUMED)); in testPausingWhenVisibleFromStopped()
147 mActivity.setState(STOPPED, "testPausingWhenVisibleFromStopped"); in testPausingWhenVisibleFromStopped()
[all …]
DTaskLaunchParamsModifierTests.java69 private ActivityRecord mActivity; field in TaskLaunchParamsModifierTests
78 mActivity = new ActivityBuilder(mService).build(); in setUp()
79 mActivity.appInfo.targetSdkVersion = Build.VERSION_CODES.N_MR1; in setUp()
80 mActivity.info.applicationInfo.flags |= ApplicationInfo.FLAG_SUPPORTS_SCREEN_DENSITIES; in setUp()
105 mActivity, /* source */ null, /* options */ null, mCurrent, mResult)); in testDefaultToPrimaryDisplay()
115 mActivity, /* source */ null, /* options */ null, mCurrent, mResult)); in testUsesDefaultDisplayIfPreviousDisplayNotExists()
128 mActivity, /* source */ null, /* options */ null, mCurrent, mResult)); in testUsesPreviousDisplayIdIfSet()
145 mActivity, source, /* options */ null, mCurrent, mResult)); in testUsesSourcesDisplayIdIfSet()
164 mActivity, source, options, mCurrent, mResult)); in testUsesOptionsDisplayIdIfSet()
181 /* layout */ null, mActivity, source, /* options */ null, mCurrent, mResult)); in testUsesTasksDisplayIdPriorToSourceIfSet()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListEmptyViewTest.java30 private ListWithEmptyView mActivity; field in ListEmptyViewTest
42 mActivity = getActivity(); in setUp()
48 assertNotNull(mActivity); in testPreconditions()
58 inst.invokeMenuActionSync(mActivity, mActivity.MENU_ADD, 0); in testZeroToOne()
60 assertTrue("Empty view still shown", mActivity.getEmptyView().getVisibility() == View.GONE); in testZeroToOne()
61 assertTrue("List not shown", mActivity.getListView().getVisibility() == View.VISIBLE); in testZeroToOne()
68 inst.invokeMenuActionSync(mActivity, mActivity.MENU_ADD, 0); in testZeroToOneForwardBack()
70 assertTrue("Empty view still shown", mActivity.getEmptyView().getVisibility() == View.GONE); in testZeroToOneForwardBack()
71 assertTrue("List not shown", mActivity.getListView().getVisibility() == View.VISIBLE); in testZeroToOneForwardBack()
75 intent.setClass(mActivity, ListWithEmptyView.class); in testZeroToOneForwardBack()
[all …]
DListViewHeightTest.java29 private ListViewHeight mActivity; field in ListViewHeightTest
40 mActivity = getActivity(); in setUp()
45 assertNotNull(mActivity); in testPreconditions()
51 final Button button1 = (Button) mActivity.findViewById(R.id.button1); in testButtons()
52 final Button button2 = (Button) mActivity.findViewById(R.id.button2); in testButtons()
53 final Button button3 = (Button) mActivity.findViewById(R.id.button3); in testButtons()
56 ListView list = (ListView) mActivity.findViewById(R.id.inner_list); in testButtons()
60 mActivity.runOnUiThread(new Runnable() { in testButtons()
69 mActivity.runOnUiThread(new Runnable() { in testButtons()
77 mActivity.runOnUiThread(new Runnable() { in testButtons()
DListFocusableTest.java27 private ListTopGravity mActivity; field in ListFocusableTest
38 mActivity = getActivity(); in setUp()
44 assertNotNull(mActivity); in testPreconditions()
179 return new ArrayAdapter<String>(mActivity, android.R.layout.simple_list_item_1, in createFullAdapter()
184 return new ArrayAdapter<String>(mActivity, android.R.layout.simple_list_item_1, in createEmptyAdapter()
190 mActivity.runOnUiThread(new Runnable() { in setFullAdapter()
199 mActivity.runOnUiThread(new Runnable() { in setEmptyAdapter()
208 mActivity.runOnUiThread(new Runnable() { in setNullAdapter()
217 mActivity.runOnUiThread(new Runnable() { in setFocusable()
226 mActivity.runOnUiThread(new Runnable() { in setNonFocusable()
DListHeterogeneousTest.java28 private ListHeterogeneous mActivity; field in ListHeterogeneousTest
40 mActivity = getActivity(); in setUp()
46 assertNotNull(mActivity); in testPreconditions()
61 int convertMissesBefore = mActivity.getConvertMisses(); in testKeyScrolling()
69 int convertMissesAfter = mActivity.getConvertMisses(); in testKeyScrolling()
DListUnspecifiedMeasure.java28 private T mActivity; field in ListUnspecifiedMeasure
39 mActivity = getActivity(); in setUp()
40 mListView = (ListView) mActivity.findViewById(R.id.list); in setUp()
45 assertNotNull(mActivity); in testPreconditions()
/frameworks/base/core/tests/coretests/src/android/view/menu/
DMenuLayoutLandscapeTest.java29 private MenuLayout mActivity; field in MenuLayoutLandscapeTest
38 mActivity = getActivity(); in setUp()
42 assertNotNull(mActivity); in testPreconditions()
78 mActivity.setParams(new MenuScenario.Params() in test1ShortItem()
85 mActivity.setParams(new MenuScenario.Params() in test1LongItem()
92 mActivity.setParams(new MenuScenario.Params() in test2LongItems()
100 mActivity.setParams(new MenuScenario.Params() in test2ShortItems()
108 mActivity.setParams(new MenuScenario.Params() in test3ShortItems()
117 mActivity.setParams(new MenuScenario.Params() in test3VarietyItems()
126 mActivity.setParams(new MenuScenario.Params() in test3VarietyItems2()
[all …]
DMenuLayoutPortraitTest.java29 private MenuLayout mActivity; field in MenuLayoutPortraitTest
38 mActivity = getActivity(); in setUp()
42 assertNotNull(mActivity); in testPreconditions()
77 mActivity.setParams(new MenuScenario.Params() in test1ShortItem()
84 mActivity.setParams(new MenuScenario.Params() in test1LongItem()
91 mActivity.setParams(new MenuScenario.Params() in test2LongItems()
99 mActivity.setParams(new MenuScenario.Params() in test2ShortItems()
107 mActivity.setParams(new MenuScenario.Params() in test3ShortItems()
116 mActivity.setParams(new MenuScenario.Params() in test3VarietyItems()
126 mActivity.setParams(new MenuScenario.Params() in test3VarietyItems2()
[all …]
DMenuWith1ItemTest.java27 private MenuWith1Item mActivity; field in MenuWith1ItemTest
36 mActivity = getActivity(); in setUp()
41 assertNotNull(mActivity); in testPreconditions()
42 assertFalse(mActivity.getButton().isInTouchMode()); in testPreconditions()
51 assertFalse("Item seems to have been clicked before we clicked on it", mActivity in testItemClick()
54 assertTrue("Item doesn't seem to have registered our click", mActivity.wasItemClicked(0)); in testItemClick()
/frameworks/base/core/tests/coretests/src/android/widget/touchmode/
DTouchModeFocusChangeTest.java37 private LLOfButtons1 mActivity; field in TouchModeFocusChangeTest
49 mActivity = getActivity(); in setUp()
50 mFirstButton = mActivity.getFirstButton(); in setUp()
55 assertFalse("we should not be in touch mode", mActivity.isInTouchMode()); in testPreconditions()
62 assertTrue("should be in touch mode", mActivity.isInTouchMode()); in testTouchButtonNotTakeFocus()
67 assertNull("activity shouldn't have focus", mActivity.getCurrentFocus()); in testTouchButtonNotTakeFocus()
69 mActivity.getLayout().hasFocus()); in testTouchButtonNotTakeFocus()
72 mActivity.buttonClickListenerFired()); in testTouchButtonNotTakeFocus()
79 assertTrue("should be in touch mode", mActivity.isInTouchMode()); in DISABLE_testLeaveTouchModeWithDpadEvent()
84 assertFalse("should be out of touch mode", mActivity.isInTouchMode()); in DISABLE_testLeaveTouchModeWithDpadEvent()
/frameworks/base/core/tests/coretests/src/android/view/
DGlobalFocusChangeTest.java31 private GlobalFocusChange mActivity; field in GlobalFocusChangeTest
42 mActivity = getActivity(); in setUp()
43 mLeft = mActivity.findViewById(R.id.left); in setUp()
44 mRight = mActivity.findViewById(R.id.right); in setUp()
49 mActivity.reset(); in tearDown()
61 assertSame(mLeft, mActivity.mOldFocus); in testFocusChange()
62 assertSame(mRight, mActivity.mNewFocus); in testFocusChange()
72 assertSame(mLeft, mActivity.mOldFocus); in testEnterTouchMode()
73 assertSame(null, mActivity.mNewFocus); in testEnterTouchMode()
86 assertSame(null, mActivity.mOldFocus); in testLeaveTouchMode()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DScrollingThroughListOfFocusablesTest.java36 private ListOfInternalSelectionViews mActivity; field in ScrollingThroughListOfFocusablesTest
45 mActivity = launchActivity( in setUp()
52 mListView = mActivity.getListView(); in setUp()
59 mActivity.runOnUiThread(() -> mListView.requestFocus()); in setUp()
65 mActivity.finish(); in tearDown()
71 assertNotNull(mActivity); in testPreconditions()
73 assertEquals(mNumItems, mActivity.getNumItems()); in testPreconditions()
74 assertEquals(mNumRowsPerItem, mActivity.getNumRowsPerItem()); in testPreconditions()
83 InternalSelectionView view = mActivity.getSelectedView(); in testScrollingDownInFirstItem()
114 mActivity.getLabelForPosition(1), peekingChild.getLabel()); in testScrollingDownInFirstItem()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListTouchManyTest.java34 private ListTopGravityMany mActivity; field in ListTouchManyTest
45 mActivity = getActivity(); in setUp()
51 assertNotNull(mActivity); in testPreconditions()
101 mActivity.setClickedPosition(-1); in testPress()
102 mActivity.setLongClickedPosition(-1); in testPress()
112 mActivity.getClickedPosition()); in testPress()
114 mActivity.getLongClickedPosition()); in testPress()
128 mActivity.enableLongPress(); in testLongPress()
129 mActivity.setClickedPosition(-1); in testLongPress()
130 mActivity.setLongClickedPosition(-1); in testLongPress()
[all …]
DListSetSelectionTest.java34 private ListSimple mActivity; field in ListSetSelectionTest
45 mActivity = getActivity(); in setUp()
51 assertNotNull(mActivity); in testPreconditions()
66 mActivity.runOnUiThread(new Runnable() { in testSetSelection()
96 mActivity.runOnUiThread(new Runnable() { in testSetSelectionFromTop()
132 mActivity.runOnUiThread(new Runnable() { in testSetSelection0()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityServiceConnectionsHolder.java39 private final ActivityRecord mActivity; field in ActivityServiceConnectionsHolder
51 mActivity = activity; in ActivityServiceConnectionsHolder()
76 return mActivity.visible || mActivity.isState(RESUMED, PAUSING); in isActivityVisible()
82 return mActivity.hasProcess() ? mActivity.app.getPid() : -1; in getActivityPid()
115 pw.println(prefix + "activity=" + mActivity); in dump()
/frameworks/base/core/tests/coretests/src/android/os/
DSetPersistentVrThreadTest.java34 private TestVrActivity mActivity; field in SetPersistentVrThreadTest
63 mActivity = getActivity(); in setUp()
88 if (!mActivity.getPackageManager().hasSystemFeature( in testSetPersistentVrThreadAPISuccess()
108 mActivity.setVrModeEnabled(true, mRequestedComponent); in testSetPersistentVrThreadAPISuccess()
115 mActivity.setVrModeEnabled(false, mRequestedComponent); in testSetPersistentVrThreadAPISuccess()
125 if (!mActivity.getPackageManager().hasSystemFeature( in testSetPersistentVrThreadAPIFailure()
138 if (!mActivity.getPackageManager().hasSystemFeature( in testSetVrThreadAPIFailsInPersistentMode()
143 mActivity.setVrModeEnabled(true, mRequestedComponent); in testSetVrThreadAPIFailsInPersistentMode()
153 mActivity.setVrModeEnabled(true, mRequestedComponent); in testSetVrThreadAPIFailsInPersistentMode()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DWorkLockActivityTest.java59 private WorkLockActivity mActivity; field in WorkLockActivityTest
80 mActivity = new WorkLockActivityTestable(mContext); in setUp()
95 mActivity.setIntent(new Intent() in testBackgroundAlwaysOpaque()
98 assertEquals(opaqueColor, mActivity.getPrimaryColor()); in testBackgroundAlwaysOpaque()
102 mActivity.setIntent(new Intent() in testBackgroundAlwaysOpaque()
105 assertEquals(orgColor, mActivity.getPrimaryColor()); in testBackgroundAlwaysOpaque()
109 mActivity.setIntent(new Intent() in testBackgroundAlwaysOpaque()
111 assertEquals(orgColor, mActivity.getPrimaryColor()); in testBackgroundAlwaysOpaque()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerListHelper.java32 private ListActivity mActivity; field in TrackerListHelper
39 mActivity = activity; in TrackerListHelper()
50 Cursor cursor = mActivity.managedQuery(TrackerProvider.CONTENT_URI, in bindListUI()
53 TrackerAdapter adapter = new TrackerAdapter(mActivity, layout, cursor); in bindListUI()
54 mActivity.setListAdapter(adapter); in bindListUI()
55 cursor.setNotificationUri(mActivity.getContentResolver(), in bindListUI()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridSetSelectionBaseTest.java27 private T mActivity; field in GridSetSelectionBaseTest
38 mActivity = getActivity(); in setUp()
44 assertNotNull(mActivity); in testPreconditions()
59 mActivity.runOnUiThread(new Runnable() { in testSetSelectionToTheEnd()
75 mActivity.runOnUiThread(new Runnable() { in testSetSelectionToMiddle()
90 mActivity.runOnUiThread(new Runnable() { in testSetSelectionToTheTop()
/frameworks/base/core/java/android/hardware/location/
DActivityRecognitionEvent.java28 private final String mActivity; field in ActivityRecognitionEvent
33 mActivity = activity; in ActivityRecognitionEvent()
39 return mActivity; in getActivity()
74 parcel.writeString(mActivity); in writeToParcel()
83 mActivity, in toString()
/frameworks/base/location/lib/java/com/android/location/provider/
DActivityRecognitionEvent.java24 private final String mActivity; field in ActivityRecognitionEvent
29 mActivity = activity; in ActivityRecognitionEvent()
35 return mActivity; in getActivity()
66 mActivity, in toString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbDisconnectedReceiver.java31 private final Activity mActivity; field in UsbDisconnectedReceiver
36 mActivity = activity; in UsbDisconnectedReceiver()
44 mActivity = activity; in UsbDisconnectedReceiver()
57 mActivity.finish(); in onReceive()
63 mActivity.finish(); in onReceive()
/frameworks/base/core/java/android/app/
DExitTransitionCoordinator.java56 private Activity mActivity; field in ExitTransitionCoordinator
74 mActivity = activity; in ExitTransitionCoordinator()
216 if (mActivity != null) { in startExit()
250 ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(mActivity, this, in startExit()
252 mActivity.convertToTranslucent(new Activity.TranslucentConversionListener() { in startExit()
270 if (mIsReturning && mActivity != null) { in stop()
274 mActivity.convertToTranslucent(null, null); in stop()
437 if (!mActivity.isTopOfTask()) { in notifyComplete()
477 if (mIsReturning && mExitNotified && mActivity != null && (mSharedElements.isEmpty() || in finishIfNecessary()
482 mActivity = null; // don't need it anymore in finishIfNecessary()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewTest.java62 private Activity mActivity; field in TextViewTest
67 mActivity = mActivityRule.getActivity(); in setup()
75 mTextView = new TextView(mActivity); in testArray()
105 mActivityRule.runOnUiThread(() -> mTextView = new TextView(mActivity)); in testProcessTextActivityResultNonEditable()
129 mActivityRule.runOnUiThread(() -> mTextView = new EditText(mActivity)); in testProcessTextActivityResultEditable()
147 mActivityRule.runOnUiThread(() -> mTextView = new EditText(mActivity)); in testProcessTextActivityResultCancel()
166 mActivityRule.runOnUiThread(() -> mTextView = new EditText(mActivity)); in testProcessTextActivityNoData()
182 mTextView = new TextView(mActivity); in testHyphenationWidth()
234 mTextView = new TextView(mActivity); in testCopyShouldNotThrowException()
244 mTextView = new TextView(mActivity); in testCutShouldNotThrowException()
[all …]

12345