Home
last modified time | relevance | path

Searched refs:getActivity (Results 1 – 25 of 1198) sorted by relevance

12345678910>>...48

/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java64 ContentResolver resolver = getActivity().getContentResolver(); in tearDown()
88 getActivity(); in testNoExtraOutput()
93 Intent resultData = getActivity().getResultData(); in testNoExtraOutput()
96 verify(getActivity(), mVideoUri); in testNoExtraOutput()
106 getActivity(); in testExtraOutput()
111 verify(getActivity(), uri); in testExtraOutput()
117 getActivity(); in testRetake()
124 Intent resultData = getActivity().getResultData(); in testRetake()
127 verify(getActivity(), mVideoUri); in testRetake()
133 getActivity(); in testCancel()
[all …]
DImageCaptureIntentTest.java58 getActivity(); in testNoExtraOutput()
63 assertTrue(getActivity().isFinishing()); in testNoExtraOutput()
64 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testNoExtraOutput()
65 Intent resultData = getActivity().getResultData(); in testNoExtraOutput()
82 getActivity(); in testExtraOutput()
87 assertTrue(getActivity().isFinishing()); in testExtraOutput()
88 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testExtraOutput()
109 getActivity(); in testRetake()
116 assertTrue(getActivity().isFinishing()); in testRetake()
117 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testRetake()
[all …]
/packages/apps/Camera2/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java57 ContentResolver resolver = getActivity().getContentResolver(); in tearDown()
81 getActivity(); in testNoExtraOutput()
86 Intent resultData = getActivity().getResultData(); in testNoExtraOutput()
89 verify(getActivity(), mVideoUri); in testNoExtraOutput()
99 getActivity(); in testExtraOutput()
104 verify(getActivity(), uri); in testExtraOutput()
110 getActivity(); in testCancel()
114 assertTrue(getActivity().isFinishing()); in testCancel()
115 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode()); in testCancel()
121 getActivity(); in testRecordCancel()
[all …]
DImageCaptureIntentTest.java53 getActivity(); in testNoExtraOutput()
58 assertTrue(getActivity().isFinishing()); in testNoExtraOutput()
59 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testNoExtraOutput()
60 Intent resultData = getActivity().getResultData(); in testNoExtraOutput()
77 getActivity(); in testExtraOutput()
82 assertTrue(getActivity().isFinishing()); in testExtraOutput()
83 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testExtraOutput()
104 getActivity(); in testCancel()
108 assertTrue(getActivity().isFinishing()); in testCancel()
109 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode()); in testCancel()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DConfirmDeviceCredentialBaseFragment.java92 return (getActivity() instanceof ConfirmLockPassword.InternalActivity) in isInternalActivity()
93 || (getActivity() instanceof ConfirmLockPattern.InternalActivity); in isInternalActivity()
99 mFrpAlternateButtonText = getActivity().getIntent().getCharSequenceExtra( in onCreate()
101 mReturnCredentials = getActivity().getIntent().getBooleanExtra( in onCreate()
104 Intent intent = getActivity().getIntent(); in onCreate()
105 mUserId = Utils.getUserIdFromBundle(getActivity(), intent.getExtras(), in onCreate()
108 mUserManager = UserManager.get(getActivity()); in onCreate()
110 mLockPatternUtils = new LockPatternUtils(getActivity()); in onCreate()
111 mDevicePolicyManager = (DevicePolicyManager) getActivity().getSystemService( in onCreate()
113 mBiometricManager = getActivity().getSystemService(BiometricManager.class); in onCreate()
[all …]
DChooseLockGeneric.java184 final Activity activity = getActivity(); in onCreate()
191 String chooseLockAction = getActivity().getIntent().getAction(); in onCreate()
192 mFingerprintManager = Utils.getFingerprintManagerOrNull(getActivity()); in onCreate()
193 mFaceManager = Utils.getFaceManagerOrNull(getActivity()); in onCreate()
195 mChooseLockSettingsHelper = new ChooseLockSettingsHelper(this.getActivity()); in onCreate()
196 mLockPatternUtils = new LockPatternUtils(getActivity()); in onCreate()
201 final boolean confirmCredentials = getActivity().getIntent() in onCreate()
203 if (getActivity() instanceof ChooseLockGeneric.InternalActivity) { in onCreate()
205 mUserPassword = getActivity().getIntent().getByteArrayExtra( in onCreate()
209 mHasChallenge = getActivity().getIntent().getBooleanExtra( in onCreate()
[all …]
/packages/apps/Settings/src/com/android/settings/password/
DConfirmDeviceCredentialBaseFragment.java92 return (getActivity() instanceof ConfirmLockPassword.InternalActivity) in isInternalActivity()
93 || (getActivity() instanceof ConfirmLockPattern.InternalActivity); in isInternalActivity()
99 mFrpAlternateButtonText = getActivity().getIntent().getCharSequenceExtra( in onCreate()
101 mReturnCredentials = getActivity().getIntent().getBooleanExtra( in onCreate()
104 Intent intent = getActivity().getIntent(); in onCreate()
105 mUserId = Utils.getUserIdFromBundle(getActivity(), intent.getExtras(), in onCreate()
108 mUserManager = UserManager.get(getActivity()); in onCreate()
110 mLockPatternUtils = new LockPatternUtils(getActivity()); in onCreate()
111 mDevicePolicyManager = (DevicePolicyManager) getActivity().getSystemService( in onCreate()
113 mBiometricManager = getActivity().getSystemService(BiometricManager.class); in onCreate()
[all …]
DChooseLockGeneric.java190 final Activity activity = getActivity(); in onCreate()
197 String chooseLockAction = getActivity().getIntent().getAction(); in onCreate()
198 mFingerprintManager = Utils.getFingerprintManagerOrNull(getActivity()); in onCreate()
199 mFaceManager = Utils.getFaceManagerOrNull(getActivity()); in onCreate()
201 mChooseLockSettingsHelper = new ChooseLockSettingsHelper(this.getActivity()); in onCreate()
202 mLockPatternUtils = new LockPatternUtils(getActivity()); in onCreate()
207 final boolean confirmCredentials = getActivity().getIntent() in onCreate()
209 if (getActivity() instanceof ChooseLockGeneric.InternalActivity) { in onCreate()
211 mUserPassword = getActivity().getIntent().getByteArrayExtra( in onCreate()
215 mHasChallenge = getActivity().getIntent().getBooleanExtra( in onCreate()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DMasterClearConfirm.java84 getActivity().getSystemService(Context.PERSISTENT_DATA_BLOCK_SERVICE);
86 getActivity().getSystemService(Context.OEM_LOCK_SERVICE);
89 Utils.isDeviceProvisioned(getActivity())) {
106 if (getActivity() != null) {
107 getActivity().setRequestedOrientation(mOldOrientation);
120 mOldOrientation = getActivity().getRequestedOrientation();
121 getActivity().setRequestedOrientation(
131 final ProgressDialog progressDialog = new ProgressDialog(getActivity());
135 getActivity().getString(R.string.master_clear_progress_title));
137 getActivity().getString(R.string.master_clear_progress_text));
[all …]
/packages/apps/Settings/src/com/android/settings/
DMasterClearConfirm.java84 getActivity().getSystemService(Context.PERSISTENT_DATA_BLOCK_SERVICE);
86 getActivity().getSystemService(Context.OEM_LOCK_SERVICE);
89 Utils.isDeviceProvisioned(getActivity())) {
106 if (getActivity() != null) {
107 getActivity().setRequestedOrientation(mOldOrientation);
120 mOldOrientation = getActivity().getRequestedOrientation();
121 getActivity().setRequestedOrientation(
131 final ProgressDialog progressDialog = new ProgressDialog(getActivity());
135 getActivity().getString(R.string.master_clear_progress_title));
137 getActivity().getString(R.string.master_clear_progress_text));
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlaybackOverlayFragment.java124 getActivity() in onCreate()
128 getActivity() in onCreate()
133 getActivity() in onCreate()
143 if (handleIntent(getActivity().getIntent(), true)) { in onCreate()
145 preparePlayback(getActivity().getIntent()); in onCreate()
149 } else if (!handleIntent(getActivity().getIntent(), true)) { in onCreate()
173 mTvView = getActivity().findViewById(R.id.dvr_tv_view); in onActivityCreated()
176 mBlockScreenView = getActivity().findViewById(R.id.block_screen); in onActivityCreated()
177 mDvrPlayer = new DvrPlayer(mTvView, getActivity()); in onActivityCreated()
180 getActivity(), MEDIA_SESSION_TAG, mDvrPlayer, this); in onActivityCreated()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrRecordingSettingsFragment.java91 getActivity().finish(); in onAttach()
118 new GuidedAction.Builder(getActivity()) in onCreateActions()
127 new GuidedAction.Builder(getActivity()) in onCreateActions()
139 new GuidedAction.Builder(getActivity()) in onCreateButtonActions()
143 new GuidedAction.Builder(getActivity()) in onCreateButtonActions()
177 DvrUiHelper.showScheduleConflictDialog(getActivity(), customizedProgram); in onGuidedActionClicked()
264 new GuidedAction.Builder(getActivity()) in buildChannelSubActionStart()
269 new GuidedAction.Builder(getActivity()) in buildChannelSubActionStart()
274 new GuidedAction.Builder(getActivity()) in buildChannelSubActionStart()
279 new GuidedAction.Builder(getActivity()) in buildChannelSubActionStart()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DVisualVoicemailCallLogFragment.java68 VoicemailPlaybackPresenter.getInstance(getActivity(), savedInstanceState); in onActivityCreated()
71 getActivity() in onActivityCreated()
86 getActivity().getFragmentManager(), in onActivityCreated()
97 getActivity() in onActivityCreated()
142 getActivity() in onDestroy()
147 getActivity().getContentResolver().unregisterContentObserver(voicemailStatusObserver); in onDestroy()
172 if (getActivity() != null && preSyncVoicemailStatusCheckExecutor != null) { in onVisible()
173 preSyncVoicemailStatusCheckExecutor.executeParallel(getActivity()); in onVisible()
174 Logger.get(getActivity()).logImpression(DialerImpression.Type.VVM_TAB_VIEWED); in onVisible()
175 getActivity().setVolumeControlStream(VoicemailAudioManager.PLAYBACK_STREAM); in onVisible()
[all …]
DCallLogFragment.java222 final Activity activity = getActivity(); in onCreate()
231 if (getActivity() == null || getActivity().isFinishing()) { in onCallsFetched()
239 getActivity().invalidateOptionsMenu(); in onCallsFetched()
270 if (getActivity() == null || getActivity().isFinishing()) { in onCallsFetched()
309 layoutManager = new LinearLayoutManager(getActivity()); in setupView()
332 String currentCountryIso = GeoUtil.getCurrentCountryIso(getActivity()); in setupData()
336 ExpirableCacheHeadlessFragment.attach((AppCompatActivity) getActivity()) in setupData()
338 new ContactInfoHelper(getActivity(), currentCountryIso), in setupData()
341 Bindings.getLegacy(getActivity()) in setupData()
343 getActivity(), in setupData()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DCategoryFragment.java150 mTileSizePx = TileSizeCalculator.getCategoryTileSize(getActivity()); in onCreateView()
159 GridLayoutManager gridLayoutManager = new GridLayoutManager(getActivity(), getNumColumns()); in onCreateView()
175 … WallpaperPreferences preferences = InjectorProvider.getInjector().getPreferences(getActivity()); in onResume()
180 Glide.get(getActivity()).setMemoryCategory(MemoryCategory.NORMAL); in onResume()
284 Activity activity = getActivity(); in canShowCurrentWallpaper()
295 return (CategoryFragmentHost) getActivity(); in getFragmentHost()
306 .getCurrentWallpaperFactory(getActivity().getApplicationContext()); in refreshCurrentWallpapers()
324 if (getActivity() == null) { in refreshCurrentWallpapers()
345 Activity activity = getActivity(); in getNumColumns()
354 .getScreenSize(getActivity().getWindowManager().getDefaultDisplay()); in getSingleWallpaperImageWidth()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calldetails/
DCallDetailsActivityCommon.java294 getActivity() in showRttTranscript()
296 RttTranscriptActivity.getIntent(getActivity(), transcriptId, primaryText, photoInfo)); in showRttTranscript()
299 private CallDetailsActivityCommon getActivity() { in getActivity() method in CallDetailsActivityCommon.CallDetailsEntryListener
314 Logger.get(getActivity()) in placeImsVideoCall()
317 getActivity(), in placeImsVideoCall()
324 Logger.get(getActivity()) in placeDuoVideoCall()
327 getActivity(), in placeDuoVideoCall()
335 Logger.get(getActivity()).logImpression(DialerImpression.Type.CALL_DETAILS_VOICE_CALL_BACK); in placeVoiceCall()
338 getActivity() in placeVoiceCall()
348 PreCall.start(getActivity(), callIntentBuilder); in placeVoiceCall()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/dpp/
DWifiDppConfiguratorActivityTest.java64 assertThat(mActivityRule.getActivity().isFinishing()).isEqualTo(false); in launchActivity_qrCodeScanner_shouldNotAutoFinish()
77 assertThat(mActivityRule.getActivity().isFinishing()).isEqualTo(false); in launchActivity_qrCodeGenerator_shouldNotAutoFinish()
87 assertThat(mActivityRule.getActivity().isFinishing()).isEqualTo(false); in launchActivity_chooseSavedWifiNetwork_shouldNotAutoFinish()
92 WifiDppConfiguratorActivity activity = mActivityRule.getActivity(); in testActivity_shouldImplementsWifiNetworkConfigRetriever()
99 WifiDppConfiguratorActivity activity = mActivityRule.getActivity(); in testActivity_shouldImplementsQrCodeGeneratorFragmentCallback()
107 WifiDppConfiguratorActivity activity = mActivityRule.getActivity(); in testActivity_shouldImplementsOnScanWifiDppSuccessCallback()
115 WifiDppConfiguratorActivity activity = mActivityRule.getActivity(); in testActivity_shouldImplementsOnClickChooseDifferentNetworkCallback()
131 mActivityRule.getActivity().setWifiDppQrCode(wifiQrCode); in rotateScreen_shouldGetCorrectWifiDppQrCode()
142 WifiQrCode restoredWifiDppQrCode = mActivityRule.getActivity().getWifiDppQrCode(); in rotateScreen_shouldGetCorrectWifiDppQrCode()
156 mActivityRule.getActivity().setWifiNetworkConfig(wifiNetworkConfig); in rotateScreen_shouldGetCorrectWifiNetworkConfig()
[all …]
/packages/apps/Dialer/java/com/android/dialer/common/
DFragmentUtils.java54 } else if (callbackInterface.isInstance(fragment.getActivity())) { in getParent()
56 T parent = (T) fragment.getActivity(); in getParent()
58 } else if (fragment.getActivity() instanceof FragmentUtilListener) { in getParent()
60 T parent = ((FragmentUtilListener) fragment.getActivity()).getImpl(callbackInterface); in getParent()
62 } else if (fragment.getActivity() instanceof MainActivityPeer.PeerSupplier) { in getParent()
63 MainActivityPeer peer = ((MainActivityPeer.PeerSupplier) fragment.getActivity()).getPeer(); in getParent()
90 } else if (callbackInterface.isInstance(fragment.getActivity())) { in getParent()
92 T parent = (T) fragment.getActivity(); in getParent()
94 } else if (fragment.getActivity() instanceof FragmentUtilListener) { in getParent()
96 T parent = ((FragmentUtilListener) fragment.getActivity()).getImpl(callbackInterface); in getParent()
[all …]
/packages/apps/Contacts/src/com/android/contacts/interactions/
DExportDialogFragment.java78 return getActivity(); in getContext()
89 final Resources res = getActivity().getResources(); in onCreateDialog()
90 final LayoutInflater dialogInflater = (LayoutInflater)getActivity() in onCreateDialog()
96 final ArrayAdapter<AdapterEntry> adapter = new ArrayAdapter<AdapterEntry>(getActivity(), in onCreateDialog()
138 getActivity(), ExportVCardActivity.class); in onCreateDialog()
141 getActivity().startActivity(exportIntent); in onCreateDialog()
148 getActivity(), ShareVCardActivity.class); in onCreateDialog()
151 getActivity().startActivity(exportIntent); in onCreateDialog()
156 + getActivity().getResources().getResourceEntryName(resId)); in onCreateDialog()
163 final TextView title = (TextView) View.inflate(getActivity(), R.layout.dialog_title, null); in onCreateDialog()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/p2p/
DWifiP2pSettings.java194 final Activity activity = getActivity(); in onActivityCreated()
198 getActivity().getMainLooper(), null); in onActivityCreated()
230 Toast.makeText(getActivity(), in onActivityCreated()
244 Toast.makeText(getActivity(), in onActivityCreated()
340 getActivity().registerReceiver(mReceiver, mIntentFilter); in onResume()
375 getActivity().unregisterReceiver(mReceiver); in onPause()
454 Toast.makeText(getActivity(), in onPreferenceTreeClick()
475 msg = getActivity().getString(R.string.wifi_p2p_disconnect_multiple_message, in onCreateDialog()
478 msg = getActivity().getString(R.string.wifi_p2p_disconnect_message, deviceName); in onCreateDialog()
480 AlertDialog dialog = new AlertDialog.Builder(getActivity()) in onCreateDialog()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pSettings.java197 final Activity activity = getActivity(); in onActivityCreated()
201 getActivity().getMainLooper(), null); in onActivityCreated()
233 Toast.makeText(getActivity(), in onActivityCreated()
247 Toast.makeText(getActivity(), in onActivityCreated()
343 getActivity().registerReceiver(mReceiver, mIntentFilter); in onResume()
372 getActivity().unregisterReceiver(mReceiver); in onPause()
451 Toast.makeText(getActivity(), in onPreferenceTreeClick()
472 msg = getActivity().getString(R.string.wifi_p2p_disconnect_multiple_message, in onCreateDialog()
475 msg = getActivity().getString(R.string.wifi_p2p_disconnect_message, deviceName); in onCreateDialog()
477 AlertDialog dialog = new AlertDialog.Builder(getActivity()) in onCreateDialog()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DRunningServiceDetails.java103 getActivity().stopService(new Intent().setComponent(si.mRunningService.service)); in stopActiveService()
137 File filename = getActivity().getFileStreamPath("service_dump.txt"); in onClick()
172 getActivity().startIntentSender(mManageIntent.getIntentSender(), null, in onClick()
291 description.setText(getActivity().getPackageManager().getText( in addServiceDetailsView()
299 … Resources clientr = getActivity().getPackageManager().getResourcesForApplication( in addServiceDetailsView()
302 … description.setText(getActivity().getString(R.string.service_manage_description, in addServiceDetailsView()
307 description.setText(getActivity().getText(si != null in addServiceDetailsView()
314 detail.mStopButton.setText(getActivity().getText(detail.mManageIntent != null in addServiceDetailsView()
319 int enabled = Settings.Global.getInt(getActivity().getContentResolver(), in addServiceDetailsView()
323 getActivity(), si.mServiceInfo.packageName, in addServiceDetailsView()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DRunningServiceDetails.java103 getActivity().stopService(new Intent().setComponent(si.mRunningService.service)); in stopActiveService()
137 File filename = getActivity().getFileStreamPath("service_dump.txt"); in onClick()
172 getActivity().startIntentSender(mManageIntent.getIntentSender(), null, in onClick()
291 description.setText(getActivity().getPackageManager().getText( in addServiceDetailsView()
299 … Resources clientr = getActivity().getPackageManager().getResourcesForApplication( in addServiceDetailsView()
302 … description.setText(getActivity().getString(R.string.service_manage_description, in addServiceDetailsView()
307 description.setText(getActivity().getText(si != null in addServiceDetailsView()
314 detail.mStopButton.setText(getActivity().getText(detail.mManageIntent != null in addServiceDetailsView()
319 int enabled = Settings.Global.getInt(getActivity().getContentResolver(), in addServiceDetailsView()
323 getActivity(), si.mServiceInfo.packageName, in addServiceDetailsView()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DIndividualPickerFragment.java223 getActivity()); in updateDesktopDailyRotationThumbnail()
227 if (getActivity() == null) { in updateDesktopDailyRotationThumbnail()
280 getActivity().finish(); in onCreate()
308 mCategory.fetchWallpapers(getActivity().getApplicationContext(), new WallpaperReceiver() { in fetchWallpapers()
327 Activity activity = getActivity(); in fetchWallpapers()
350 mTileSizePx = TileSizeCalculator.getIndividualTileSize(getActivity()); in onCreateView()
407 mImageGrid.setLayoutManager(new GridLayoutManager(getActivity(), getNumColumns())); in setUpImageGrid()
444 .getPreferences(getActivity()); in onResume()
449 Glide.get(getActivity()).setMemoryCategory(MemoryCategory.NORMAL); in onResume()
551 if (getActivity() == null) { in refreshRotationHolder()
[all …]
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/individual/
DIndividualPickerActivityTest.java135 private IndividualPickerActivity getActivity() { in getActivity() method in IndividualPickerActivityTest
136 return mActivityRule.getActivity(); in getActivity()
141 getActivity().getSupportFragmentManager().findFragmentById(R.id.fragment_container); in setUpFragmentForTesting()
174 IndividualPickerActivity activity = getActivity(); in testDrawsTilesForProvidedWallpapers()
192 getActivity(); in testClickTile_Mobile_LaunchesPreviewActivityWithWallpaper()
216 getActivity(); in testRotationEnabled_StaticDailyRotationTile()
222 FrameLayout rotationTile = getActivity().findViewById(R.id.daily_refresh); in testRotationEnabled_StaticDailyRotationTile()
224 assertEquals(getActivity().getResources().getColor(R.color.accent_color), in testRotationEnabled_StaticDailyRotationTile()
238 getActivity(); in testRotationEnabled_RotationInitializedHomeAndLock()
255 getActivity(); in testRotationEnabled_RotationInitializedHomeScreenOnly()
[all …]

12345678910>>...48