Home
last modified time | relevance | path

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

12345678910>>...16

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DStartDpcInsideSuwServiceConnectionTest.java64 @Mock private Activity mActivity; field in StartDpcInsideSuwServiceConnectionTest
90 mActivity, mParams, TEST_DPC_INTENT_CATEGORY, TEST_REQUEST_CODE, mUtils, in setUp()
97 when(mActivity.bindService(any(Intent.class), any(ServiceConnection.class), anyInt())) in testBindingSucceeds_serviceConnects()
101 mStartDpcInsideSuwServiceConnection.triggerDpcStart(mActivity, mDpcIntentSender); in testBindingSucceeds_serviceConnects()
104 verifyBindServiceCalled(mActivity, mStartDpcInsideSuwServiceConnection); in testBindingSucceeds_serviceConnects()
110 verifyDpcLaunched(mActivity); in testBindingSucceeds_serviceConnects()
114 mStartDpcInsideSuwServiceConnection.unbind(mActivity); in testBindingSucceeds_serviceConnects()
117 verify(mActivity).unbindService(eq(mStartDpcInsideSuwServiceConnection)); in testBindingSucceeds_serviceConnects()
123 when(mActivity.bindService(any(Intent.class), any(ServiceConnection.class), anyInt())) in testBindingSucceeds_instanceStateSavedAndRestoredBeforeServiceConnected()
127 mStartDpcInsideSuwServiceConnection.triggerDpcStart(mActivity, mDpcIntentSender); in testBindingSucceeds_instanceStateSavedAndRestoredBeforeServiceConnected()
[all …]
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/storage/
DFormatActivityFormatReceiverTest.java41 private FormatActivity mActivity; field in FormatActivityFormatReceiverTest
45 mActivity = spy(buildActivity(FormatActivity.class).get()); in setUp()
47 doReturn("resource string").when(mActivity).getString(anyInt()); in setUp()
48 doReturn("resource string").when(mActivity).getString(anyInt(), any()); in setUp()
53 doReturn(true).when(mActivity).isResumed(); in testFormatAsPrivate_successResumed()
54 doNothing().when(mActivity).handleFormatAsPrivateComplete(anyFloat(), anyFloat()); in testFormatAsPrivate_successResumed()
55 mActivity.mFormatAsPrivateDiskId = "asdf"; in testFormatAsPrivate_successResumed()
63 new FormatActivity.FormatReceiver(mActivity).onReceive(mActivity, intent); in testFormatAsPrivate_successResumed()
65 verify(mActivity, atLeastOnce()).handleFormatAsPrivateComplete(123L, 456L); in testFormatAsPrivate_successResumed()
70 doReturn(false).when(mActivity).isResumed(); in testFormatAsPrivate_successNotResumed()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DActionHandlerTest.java78 private TestActivity mActivity; field in ActionHandlerTest
87 mActivity = TestActivity.create(mEnv); in setUp()
88 mEnv.providers.configurePm(mActivity.packageMgr); in setUp()
95 mActivity, in setUp()
131 mActivity, mInjector.pickResult, pickCountRecordStorage); in TestableActionHandler()
150 mHandler.initLocation(mActivity.getIntent()); in testInitLocation_RestoresIfStackIsLoaded()
151 mActivity.restoreRootAndDirectory.assertCalled(); in testInitLocation_RestoresIfStackIsLoaded()
158 mHandler.initLocation(mActivity.getIntent()); in testInitLocation_LoadsRootDocIfStackOnlyHasRoot()
164 Intent intent = mActivity.getIntent(); in testInitLocation_CopyDestination_DefaultsToDownloads()
166 mHandler.initLocation(mActivity.getIntent()); in testInitLocation_CopyDestination_DefaultsToDownloads()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DActionHandlerTest.java87 private TestActivity mActivity; field in ActionHandlerTest
100 mActivity = TestActivity.create(mEnv); in setUp()
101 mActivity.userManager = UserManagers.create(); in setUp()
107 mEnv.providers.configurePm(mActivity.packageMgr); in setUp()
122 Intent expected = LauncherActivity.createLaunchIntent(mActivity); in testOpenSelectedInNewWindow()
125 Intent actual = mActivity.startActivity.getLastValue(); in testOpenSelectedInNewWindow()
171 mActivity.startService.assertNotCalled(); in testShowDeleteDialog_NoSelection()
186 mActivity.startService.assertCalled(); in testDeleteSelectedDocuments()
192 mActivity.resources.strings.put(R.string.share_via, "Sharezilla!"); in testShareSelectedDocuments_ShowsChooser()
195 mActivity.assertActivityStarted(Intent.ACTION_CHOOSER); in testShareSelectedDocuments_ShowsChooser()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationDetailsFragmentTest.java93 private TestActivity mActivity; field in ApplicationDetailsFragmentTest
109 mActivity = new TestActivity(); in setUp()
110 mController = ActivityController.of(mActivity); in setUp()
131 mActivity.launchFragment(mFragment); in onStart_packageNotExplicitlyStopped_enablesForceStopButton()
135 assertThat(findForceStopButton(mActivity).isEnabled()).isTrue(); in onStart_packageNotExplicitlyStopped_enablesForceStopButton()
141 mActivity.launchFragment(mFragment); in onStart_packageHasActiveAdmins_disablesForceStopButton()
147 assertThat(findForceStopButton(mActivity).isEnabled()).isFalse(); in onStart_packageHasActiveAdmins_disablesForceStopButton()
153 mActivity.launchFragment(mFragment); in onStart_appsControlUserRestriction_disablesForceStopButton()
159 assertThat(findForceStopButton(mActivity).isEnabled()).isFalse(); in onStart_appsControlUserRestriction_disablesForceStopButton()
168 mActivity.launchFragment(mFragment); in onStart_packageExplicitlyStopped_queriesPackageRestart()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivityTest.java58 private BluetoothRequestPermissionActivity mActivity; field in BluetoothRequestPermissionActivityTest
66 mActivity = mActivityController.get(); in setUp()
86 mActivity.setIntent(intent); in onCreate_requestDisableIntent_hasDisableRequestType()
89 assertThat(mActivity.getRequestType()).isEqualTo( in onCreate_requestDisableIntent_hasDisableRequestType()
96 mActivity.setIntent(intent); in onCreate_requestDiscoverableIntent_hasDiscoverableRequestType()
99 assertThat(mActivity.getRequestType()).isEqualTo( in onCreate_requestDiscoverableIntent_hasDiscoverableRequestType()
106 mActivity.setIntent(intent); in onCreate_requestDiscoverableIntent_noTimeoutSpecified_hasDefaultTimeout()
109 assertThat(mActivity.getTimeout()).isEqualTo( in onCreate_requestDiscoverableIntent_noTimeoutSpecified_hasDefaultTimeout()
118 mActivity.setIntent(intent); in onCreate_requestDiscoverableIntent_timeoutSpecified_hasTimeout()
121 assertThat(mActivity.getTimeout()).isEqualTo( in onCreate_requestDiscoverableIntent_timeoutSpecified_hasTimeout()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoPage.java256 mActionBar = mActivity.getGalleryActionBar(); in onCreate()
257 mSelectionManager = new SelectionManager(mActivity, false); in onCreate()
258 mMenuExecutor = new MenuExecutor(mActivity, mSelectionManager); in onCreate()
260 mPhotoView = new PhotoView(mActivity); in onCreate()
263 mApplication = (GalleryApp) ((Activity) mActivity).getApplication(); in onCreate()
264 mOrientationManager = mActivity.getOrientationManager(); in onCreate()
265 mActivity.getGLRoot().setOrientationSource(mOrientationManager); in onCreate()
267 mHandler = new SynchronizedHandler(mActivity.getGLRoot()) { in onCreate()
298 mActivity.getGLRoot().unfreeze(); in onCreate()
407 mScreenNailSet = (SnailAlbum) mActivity.getDataManager() in onCreate()
[all …]
DAlbumPage.java155 int slotViewTop = mActivity.getGalleryActionBar().getHeight();
211 mActivity.getTransitionStore().putIfNotPresent( in onBackPressed()
227 GalleryUtils.startGalleryActivity(mActivity); in onUpPressed()
228 } else if (mActivity.getStateManager().getStateCount() > 1) { in onUpPressed()
233 mActivity.getStateManager().switchState( in onUpPressed()
277 mActivity.getGLRoot().setLightsOutMode(true); in pickPhoto()
285 TransitionStore transitions = mActivity.getTransitionStore(); in pickPhoto()
308 mActivity.getStateManager().switchState(this, FilmstripPage.class, data); in pickPhoto()
310 mActivity.getStateManager().startStateForResult( in pickPhoto()
317 DataManager dm = mActivity.getDataManager(); in onGetContent()
[all …]
DActivityState.java50 protected AbstractGalleryActivity mActivity; field in ActivityState
84 mActivity.getGLRoot().setContentPane(mContentPane); in setContentPane()
88 mActivity = activity; in initialize()
97 mActivity.getStateManager().finishState(this); in onBackPressed()
127 mActivity.getResources().getColor(getBackgroundColorId())); in onCreate()
149 final Window win = mActivity.getWindow(); in setScreenFlags()
182 mActivity.getWindow().getDecorView().performHapticFeedback(feedbackConstant, in performHapticFeedback()
188 ((Activity) mActivity).unregisterReceiver(mPowerIntentReceiver); in onPause()
191 mActivity.getTransitionStore().put(KEY_TRANSITION_IN, mNextTransition); in onPause()
192 PreparePageFadeoutTexture.prepareFadeOutTexture(mActivity, mContentPane); in onPause()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DEntityHeaderControllerTest.java64 private FragmentActivity mActivity; field in EntityHeaderControllerTest
77 when(mActivity.getApplicationContext()).thenReturn(mShadowContext); in setUp()
87 mController = EntityHeaderController.newInstance(mActivity, mFragment, null); in testBuildView_constructedWithoutView_shouldCreateNewView()
88 View view = mController.done(mActivity); in testBuildView_constructedWithoutView_shouldCreateNewView()
95 mController = EntityHeaderController.newInstance(mActivity, mFragment, null); in testBuildView_withContext_shouldBuildPreferenceAllowedBelowDivider()
96 Preference preference = mController.done(mActivity, mShadowContext); in testBuildView_withContext_shouldBuildPreferenceAllowedBelowDivider()
105 mController = EntityHeaderController.newInstance(mActivity, mFragment, inputView); in testBuildView_constructedWithView_shouldReturnSameView()
106 View view = mController.done(mActivity); in testBuildView_constructedWithView_shouldReturnSameView()
120 mController = EntityHeaderController.newInstance(mActivity, mFragment, header); in bindViews_shouldBindAllData()
125 mController.done(mActivity); in bindViews_shouldBindAllData()
[all …]
/packages/apps/Car/libs/car-ui-lib/tests/unit/src/com/android/car/ui/recyclerview/
DCarUiRecyclerViewTest.java93 private TestActivity mActivity; field in CarUiRecyclerViewTest
99 mActivity = mActivityRule.getActivity(); in setUp()
100 mTestableContext = spy(mActivity); in setUp()
101 mTestableResources = spy(mActivity.getResources()); in setUp()
116 ViewGroup container = mActivity.findViewById(R.id.test_container); in testIsScrollbarPresent_scrollbarEnabled()
129 ViewGroup container = mActivity.findViewById(R.id.test_container); in testIsScrollbarPresent_scrollbarDisabled()
140 TypedArray typedArray = spy(mActivity.getBaseContext().obtainStyledAttributes( in testGridLayout()
154 ViewGroup container = mActivity.findViewById(R.id.test_container); in testGridLayout()
186 TypedArray typedArray = spy(mActivity.getBaseContext().obtainStyledAttributes( in testLinearLayout()
198 ViewGroup container = mActivity.findViewById(R.id.test_container); in testLinearLayout()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/consent/
DLegacyConsentUiHelper.java68 private final Activity mActivity; field in LegacyConsentUiHelper
78 mActivity = checkNotNull(activity); in LegacyConsentUiHelper()
83 mClickableSpanFactory = new ClickableSpanFactory(mActivity.getColor(R.color.blue_text)); in LegacyConsentUiHelper()
107 mActivity.findViewById(R.id.intro_device_owner_app_info_container) in setDpcIconAndLabel()
111 orgName = mActivity.getString(R.string.your_organization_beginning); in setDpcIconAndLabel()
113 String message = mActivity.getString(R.string.your_org_app_used, orgName); in setDpcIconAndLabel()
114 TextView appInfoText = mActivity.findViewById(R.id.device_owner_app_info_text); in setDpcIconAndLabel()
117 ImageView imageView = mActivity.findViewById(R.id.device_manager_icon_view); in setDpcIconAndLabel()
120 mActivity.getResources().getString(R.string.mdm_icon_label, appName)); in setDpcIconAndLabel()
122 TextView deviceManagerName = mActivity.findViewById(R.id.device_manager_name); in setDpcIconAndLabel()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DSearchFeatureProviderImplTest.java49 private Activity mActivity; field in SearchFeatureProviderImplTest
55 mActivity = Robolectric.setupActivity(Activity.class); in setUp()
57 mPackageManager = Shadows.shadowOf(mActivity.getPackageManager()); in setUp()
58 Settings.Global.putInt(mActivity.getContentResolver(), in setUp()
66 .setPackage(mActivity.getString(R.string.config_settingsintelligence_package_name)); in initSearchToolbar_hasResolvedInfo_shouldStartCorrectIntent()
72 mProvider.initSearchToolbar(mActivity, null, SettingsEnums.TESTING); in initSearchToolbar_hasResolvedInfo_shouldStartCorrectIntent()
74 final Toolbar toolbar = new Toolbar(mActivity); in initSearchToolbar_hasResolvedInfo_shouldStartCorrectIntent()
77 mProvider.initSearchToolbar(mActivity, toolbar, SettingsEnums.TESTING); in initSearchToolbar_hasResolvedInfo_shouldStartCorrectIntent()
81 final Intent launchIntent = Shadows.shadowOf(mActivity).getNextStartedActivity(); in initSearchToolbar_hasResolvedInfo_shouldStartCorrectIntent()
89 final Toolbar toolbar = new Toolbar(mActivity); in initSearchToolbar_noResolvedInfo_shouldNotStartActivity()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DFinalizationPostSuwControllerTest.java79 @Mock private Activity mActivity; field in FinalizationPostSuwControllerTest
97 when(mActivity.getFilesDir()).thenReturn(getContext().getFilesDir()); in setUp()
101 mActivity, mUtils, mSettingsFacade, mHelper, in setUp()
104 mActivity, in setUp()
106 mActivity, mUtils, new SendDpcBroadcastServiceUtils(), in setUp()
173 when(mSettingsFacade.isUserSetupCompleted(mActivity)).thenReturn(true); in testManagedProfileAfterSuw()
174 when(mSettingsFacade.isDuringSetupWizard(mActivity)).thenReturn(false); in testManagedProfileAfterSuw()
175 when(mUtils.getManagedProfile(mActivity)) in testManagedProfileAfterSuw()
198 when(mSettingsFacade.isUserSetupCompleted(mActivity)).thenReturn(false); in testManagedProfileDuringSuw()
199 when(mSettingsFacade.isDuringSetupWizard(mActivity)).thenReturn(true); in testManagedProfileDuringSuw()
[all …]
DFinalizationInsideSuwControllerTest.java83 @Mock private Activity mActivity; field in FinalizationInsideSuwControllerTest
101 when(mActivity.getFilesDir()).thenReturn(getContext().getFilesDir()); in setUp()
102 when(mActivity.getIntent()).thenReturn(ACTIVITY_INTENT); in setUp()
103 when(mActivity.bindService(any(Intent.class), any(ServiceConnection.class), anyInt())) in setUp()
108 mActivity, mUtils, mSettingsFacade, mHelper, in setUp()
111 mActivity, in setUp()
113 mActivity, mUtils, new PolicyComplianceUtils(), in setUp()
164 when(mSettingsFacade.isUserSetupCompleted(mActivity)).thenReturn(false); in testManagedProfileFinalizationDuringSuw()
165 when(mSettingsFacade.isDuringSetupWizard(mActivity)).thenReturn(true); in testManagedProfileFinalizationDuringSuw()
166 when(mUtils.getManagedProfile(mActivity)).thenReturn(MANAGED_PROFILE_USER_HANDLE); in testManagedProfileFinalizationDuringSuw()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/anim/
DBenefitsAnimation.java74 private final Activity mActivity; field in BenefitsAnimation
88 mActivity = checkNotNull(activity); in BenefitsAnimation()
97 mActivity.findViewById(android.R.id.content).post(this::adjustToScreenSize); in BenefitsAnimation()
98 mActivity.findViewById(android.R.id.content).post(this::prepareAnimations); in BenefitsAnimation()
108 int swiperTheme = new SwiperThemeMatcher(mActivity, new ColorMatcher()) in setTopInfoDrawable()
111 ContextThemeWrapper wrapper = new ContextThemeWrapper(mActivity, swiperTheme); in setTopInfoDrawable()
113 mActivity.getResources().getDrawable( in setTopInfoDrawable()
116 ImageView imageView = mActivity.findViewById(ID_ANIMATED_GRAPHIC); in setTopInfoDrawable()
136 if (mActivity.isDestroyed()) { in adjustToScreenSize()
142 ImageView animatedInfo = mActivity.findViewById(R.id.animated_info); in adjustToScreenSize()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/legacysuggestion/
DLegacySuggestionContextualCardRendererTest.java51 private Activity mActivity; field in LegacySuggestionContextualCardRendererTest
60 mActivity = activityController.get(); in setUp()
61 mActivity.setTheme(R.style.Theme_Settings_Home); in setUp()
64 mRenderer = new LegacySuggestionContextualCardRenderer(mActivity, mControllerRendererPool); in setUp()
69 final RecyclerView recyclerView = new RecyclerView(mActivity); in bindView_shouldSetListener()
70 recyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in bindView_shouldSetListener()
72 final View cardView = LayoutInflater.from(mActivity).inflate(card.getViewType(), in bindView_shouldSetListener()
76 when(mControllerRendererPool.getController(mActivity, in bindView_shouldSetListener()
87 final RecyclerView recyclerView = new RecyclerView(mActivity); in bindView_closeButton_shouldSetListener()
88 recyclerView.setLayoutManager(new LinearLayoutManager(mActivity)); in bindView_closeButton_shouldSetListener()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DAbstractActionHandler.java98 protected final T mActivity; field in AbstractActionHandler
143 mActivity = activity; in AbstractActionHandler()
161 mActivity.getContentResolver(), in ejectRoot()
170 mActivity.startIntentSenderForResult(intent.getIntentSender(), CODE_AUTHENTICATION, in startAuthentication()
179 new RequestQuietModeDisabledTask(mActivity, userId).execute(); in requestQuietModeDisabled()
194 mActivity.refreshCurrentRootAndDirectory(AnimationView.ANIM_NONE); in onAuthenticationResult()
202 mActivity, in getRootDocument()
217 mActivity.getApplicationContext(), in refreshDocument()
218 mActivity::isDestroyed, in refreshDocument()
232 Intent intent = LauncherActivity.createLaunchIntent(mActivity); in openInNewWindow()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DSetupSkipDialogTest.java39 private FragmentActivity mActivity; field in SetupSkipDialogTest
43 mActivity = Robolectric.setupActivity(FragmentActivity.class); in setUp()
50 setupSkipDialog.show(mActivity.getSupportFragmentManager()); in frpMessages_areShownCorrectly_whenNotSupported()
55 assertThat(mActivity.getString(R.string.lock_screen_intro_skip_title)).isEqualTo( in frpMessages_areShownCorrectly_whenNotSupported()
57 assertThat(mActivity.getString(R.string.lock_screen_intro_skip_dialog_text)).isEqualTo( in frpMessages_areShownCorrectly_whenNotSupported()
65 setupSkipDialog.show(mActivity.getSupportFragmentManager()); in frpMessages_areShownCorrectly_whenSupported()
70 assertThat(mActivity.getString(R.string.lock_screen_intro_skip_title)).isEqualTo( in frpMessages_areShownCorrectly_whenSupported()
72 assertThat(mActivity.getString(R.string.lock_screen_intro_skip_dialog_text_frp)).isEqualTo( in frpMessages_areShownCorrectly_whenSupported()
80 setupSkipDialog.show(mActivity.getSupportFragmentManager()); in dialogMessage_whenSkipPinSetupForFace_shouldShownCorrectly()
85 assertThat(mActivity.getString(R.string.lock_screen_pin_skip_title)).isEqualTo( in dialogMessage_whenSkipPinSetupForFace_shouldShownCorrectly()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserDetailsSettingsTest.java105 private FragmentActivity mActivity; field in UserDetailsSettingsTest
116 mActivity = spy(ActivityController.of(new FragmentActivity()).get()); in setUp()
127 doReturn(mTelephonyManager).when(mActivity).getSystemService(Context.TELEPHONY_SERVICE); in setUp()
131 doReturn(mActivity).when(mFragment).getActivity(); in setUp()
132 doReturn(mActivity).when(mFragment).getContext(); in setUp()
150 mFragment.initialize(mActivity, null); in initialize_nullArguments_shouldThrowException()
155 mFragment.initialize(mActivity, new Bundle()); in initialize_emptyArguments_shouldThrowException()
162 .when(mActivity).getString(anyInt(), anyString()); in initialize_userSelected_shouldSetupSwitchPref()
164 mFragment.initialize(mActivity, mArguments); in initialize_userSelected_shouldSetupSwitchPref()
166 verify(mActivity).getString(com.android.settingslib.R.string.user_switch_to_user, in initialize_userSelected_shouldSetupSwitchPref()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DPhotoModule.java128 private CameraActivity mActivity; field in PhotoModule
262 mActivity.notifyNewMedia(uri);
341 if (mActivity != null && mGcamModeIndex != 0) { in switchToGcamCapture()
342 SettingsManager settingsManager = mActivity.getSettingsManager(); in switchToGcamCapture()
350 ButtonManager buttonManager = mActivity.getButtonManager(); in switchToGcamCapture()
358 mActivity.onModeSelected(mGcamModeIndex); in switchToGcamCapture()
381 mActivity = activity; in init()
384 mAppController = mActivity; in init()
386 mUI = new PhotoUI(mActivity, this, mActivity.getModuleLayoutRoot()); in init()
387 mActivity.setPreviewStatusListener(mUI); in init()
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DLauncherRecentsView.java76 mRecentsExtraCardPlugin.setupView(context, mRecentsExtraViewContainer, mActivity);
97 mActivity.getStateManager().addStateListener(this); in LauncherRecentsView()
111 () -> mActivity.getStateManager().goToState(NORMAL))); in startHome()
113 mActivity.getStateManager().goToState(NORMAL); in startHome()
121 LauncherState state = mActivity.getStateManager().getState(); in setTranslationY()
135 if (!SysUINavigationMode.getMode(mActivity).hasGestures) { in createAdjacentPageAnimForTaskLaunch()
142 LauncherState state = mActivity.getStateManager().getState(); in createAdjacentPageAnimForTaskLaunch()
143 if ((state.getVisibleElements(mActivity) & ALL_APPS_HEADER_EXTRA) != 0) { in createAdjacentPageAnimForTaskLaunch()
144 float maxShiftRange = mActivity.getDeviceProfile().heightPx; in createAdjacentPageAnimForTaskLaunch()
145 float currShiftRange = mActivity.getAllAppsController().getShiftRange(); in createAdjacentPageAnimForTaskLaunch()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelperTest.java71 private Activity mActivity; field in ActionDisabledByAdminDialogHelperTest
76 mActivity = Robolectric.setupActivity(CustomActivity.class); in setUp()
77 mActivityShadow = Shadow.extract(mActivity); in setUp()
78 mHelper = new ActionDisabledByAdminDialogHelper(mActivity); in setUp()
88 mHelper.showAdminPolicies(admin, mActivity); in testShowAdminPoliciesWithComponent()
101 mHelper.showAdminPolicies(admin, mActivity); in testShowAdminPoliciesWithoutComponent()
103 assertEquals(intent.getComponent(), new ComponentName(mActivity, in testShowAdminPoliciesWithoutComponent()
109 final ViewGroup view = new FrameLayout(mActivity); in testSetAdminSupportTitle()
110 final TextView textView = new TextView(mActivity); in testSetAdminSupportTitle()
116 mActivity.getString(R.string.disabled_by_policy_title_adjust_volume)); in testSetAdminSupportTitle()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
DDialogController.java62 private final Activity mActivity; field in DialogController.RuntimeDialogController
68 mActivity = activity; in RuntimeDialogController()
78 Snackbars.showOperationFailed(mActivity); in showFileOperationStatus()
95 Snackbars.showMove(mActivity, docCount); in showFileOperationStatus()
98 Snackbars.showCopy(mActivity, docCount); in showFileOperationStatus()
101 Snackbars.showCompress(mActivity, docCount); in showFileOperationStatus()
104 Snackbars.showExtract(mActivity, docCount); in showFileOperationStatus()
107 Snackbars.showDelete(mActivity, docCount); in showFileOperationStatus()
135 mCurrentProgressDialog = OperationProgressDialog.create(mActivity, jobId, operation); in showProgressDialog()
143 mActivity, R.string.toast_action_not_allowed, Snackbar.LENGTH_LONG).show(); in showActionNotAllowed()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DDashboardFeatureProviderImplTest.java99 private FragmentActivity mActivity; field in DashboardFeatureProviderImplTest
117 doReturn(RuntimeEnvironment.application).when(mActivity).getApplicationContext(); in setUp()
157 mImpl.bindPreferenceToTileAndGetObservers(mActivity, mForceRoundedIcon, in bindPreference_shouldBindAllData()
178 mActivity, mForceRoundedIcon, MetricsEvent.SETTINGS_GESTURES, preference, tile, in bindPreference_shouldBindAllSwitchData()
196 mImpl.bindPreferenceToTileAndGetObservers(mActivity, mForceRoundedIcon, in bindPreference_noFragmentMetadata_shouldBindIntent()
212 mImpl.bindPreferenceToTileAndGetObservers(mActivity, mForceRoundedIcon, in bindPreference_noFragmentMetadata_shouldBindToProfileSelector()
216 verify(mActivity).getSupportFragmentManager(); in bindPreference_noFragmentMetadata_shouldBindToProfileSelector()
226 when(mActivity.getSystemService(Context.USER_SERVICE)) in bindPreference_noFragmentMetadataSingleUser_shouldBindToDirectLaunchIntent()
229 mImpl.bindPreferenceToTileAndGetObservers(mActivity, mForceRoundedIcon, in bindPreference_noFragmentMetadataSingleUser_shouldBindToDirectLaunchIntent()
236 verify(mActivity) in bindPreference_noFragmentMetadataSingleUser_shouldBindToDirectLaunchIntent()
[all …]

12345678910>>...16