Home
last modified time | relevance | path

Searched refs:activity (Results 1 – 25 of 892) sorted by relevance

12345678910>>...36

/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/
DVoicemailChangePinActivity.java117 public void onEnter(VoicemailChangePinActivity activity) { in onEnter() argument
118 activity.setHeader(R.string.change_pin_enter_old_pin_header); in onEnter()
119 activity.hintText.setText(R.string.change_pin_enter_old_pin_hint); in onEnter()
120 activity.nextButton.setText(R.string.change_pin_continue_label); in onEnter()
121 activity.errorText.setText(null); in onEnter()
125 public void onInputChanged(VoicemailChangePinActivity activity) { in onInputChanged() argument
126 activity.setNextEnabled(activity.getCurrentPasswordInput().length() > 0); in onInputChanged()
130 public void handleNext(VoicemailChangePinActivity activity) { in handleNext() argument
131 activity.oldPin = activity.getCurrentPasswordInput(); in handleNext()
132 activity.verifyOldPin(); in handleNext()
[all …]
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/provisioning/
DProvisioningActivityRoboTest.java119 final ProvisioningActivity activity = in error_noFactoryReset_showsDialogue() local
122 activity.error(R.string.cant_set_up_device, ERROR_MESSAGE_ID, /* resetRequired= */ false); in error_noFactoryReset_showsDialogue()
124 final Fragment dialog = activity.getFragmentManager().findFragmentByTag(ERROR_DIALOG_OK); in error_noFactoryReset_showsDialogue()
130 final ProvisioningActivity activity = in error_noFactoryReset_doesNotReset() local
132 activity.error(R.string.cant_set_up_device, ERROR_MESSAGE_ID, /* resetRequired= */ false); in error_noFactoryReset_doesNotReset()
134 final Fragment dialog = activity.getFragmentManager().findFragmentByTag(ERROR_DIALOG_OK); in error_noFactoryReset_doesNotReset()
135 clickOnPositiveButton(activity, (DialogFragment) dialog); in error_noFactoryReset_doesNotReset()
143 final ProvisioningActivity activity = in error_factoryReset_showsDialogue() local
146 activity.error(R.string.cant_set_up_device, ERROR_MESSAGE_ID, /* resetRequired= */ true); in error_factoryReset_showsDialogue()
148 final Fragment dialog = activity.getFragmentManager().findFragmentByTag(ERROR_DIALOG_RESET); in error_factoryReset_showsDialogue()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DTransitionHelper.java67 public void applyContentScreenTransitions(Activity activity) { in applyContentScreenTransitions() argument
68 requireNonNull(activity); in applyContentScreenTransitions()
72 activity.getWindow().requestFeature(Window.FEATURE_ACTIVITY_TRANSITIONS); in applyContentScreenTransitions()
73 com.google.android.setupdesign.transition.TransitionHelper.applyForwardTransition(activity); in applyContentScreenTransitions()
75 .applyBackwardTransition(activity); in applyContentScreenTransitions()
86 public void applyWaitingScreenTransitions(Activity activity) { in applyWaitingScreenTransitions() argument
87 requireNonNull(activity); in applyWaitingScreenTransitions()
89 .applyForwardTransition(activity, TRANSITION_FADE); in applyWaitingScreenTransitions()
95 public void startActivityWithTransition(Activity activity, Intent intent) { in startActivityWithTransition() argument
96 requireNonNull(activity); in startActivityWithTransition()
[all …]
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DSendTestMessages.java430 private static void sendBroadcast(Activity activity, int serialNumber, int category, in sendBroadcast() argument
433 intent.putExtra("message", createFromPdu(activity, pdu, serialNumber, category)); in sendBroadcast()
435 activity.getApplicationContext())); in sendBroadcast()
436 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, in sendBroadcast()
440 public static void testSendMessage7bit(Activity activity, int serialNumber, in testSendMessage7bit() argument
442 sendBroadcast(activity, serialNumber, category, gsm7BitTest); in testSendMessage7bit()
445 public static void testSendMessage7bitUmts(Activity activity, int serialNumber, in testSendMessage7bitUmts() argument
447 sendBroadcast(activity, serialNumber, category, gsm7BitTestUmts); in testSendMessage7bitUmts()
450 public static void testSendMessage7bitNoPadding(Activity activity, int serialNumber, in testSendMessage7bitNoPadding() argument
452 sendBroadcast(activity, serialNumber, category, gsm7BitTestNoPadding); in testSendMessage7bitNoPadding()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiDialogActivityTest.java125 WifiDialogActivity activity = Robolectric.setupActivity(WifiDialogActivity.class); in onSubmit_shouldConnectToNetwork() local
131 activity.onSubmit(dialog); in onSubmit_shouldConnectToNetwork()
138 WifiDialogActivity activity = spy(Robolectric.setupActivity(WifiDialogActivity.class)); in onSubmit_noPermissionForResult_setResultWithoutData() local
139 when(activity.hasPermissionForResult()).thenReturn(false); in onSubmit_noPermissionForResult_setResultWithoutData()
140 when(activity.getSystemService(WifiManager.class)).thenReturn(mWifiManager); in onSubmit_noPermissionForResult_setResultWithoutData()
142 activity.onSubmit(mWifiDialog); in onSubmit_noPermissionForResult_setResultWithoutData()
144 verify(activity).setResult(RESULT_CONNECTED, null); in onSubmit_noPermissionForResult_setResultWithoutData()
149 WifiDialogActivity activity = spy(Robolectric.setupActivity(WifiDialogActivity.class)); in onSubmit_hasPermissionForResult_setResultWithData() local
150 when(activity.hasPermissionForResult()).thenReturn(true); in onSubmit_hasPermissionForResult_setResultWithData()
151 when(activity.createResultData(any(), any())).thenReturn(mResultData); in onSubmit_hasPermissionForResult_setResultWithData()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
DSnackbars.java37 public static final void showDocumentsClipped(Activity activity, int docCount) { in showDocumentsClipped() argument
39 activity, R.plurals.clipboard_files_clipped, docCount); in showDocumentsClipped()
40 Snackbars.makeSnackbar(activity, msg, Snackbar.LENGTH_LONG).show(); in showDocumentsClipped()
43 public static final void showMove(Activity activity, int docCount) { in showMove() argument
44 CharSequence message = Shared.getQuantityString(activity, R.plurals.move_begin, docCount); in showMove()
45 makeSnackbar(activity, message, Snackbar.LENGTH_LONG).show(); in showMove()
48 public static final void showCopy(Activity activity, int docCount) { in showCopy() argument
49 CharSequence message = Shared.getQuantityString(activity, R.plurals.copy_begin, docCount); in showCopy()
50 makeSnackbar(activity, message, Snackbar.LENGTH_LONG).show(); in showCopy()
53 public static final void showCompress(Activity activity, int docCount) { in showCompress() argument
[all …]
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastListActivityTest.java115 CellBroadcastListActivity activity = startActivity(); in testOnListItemClick() local
116 assertNotNull(activity.mListFragment); in testOnListItemClick()
121 activity.mListFragment.onListItemClick(null, view, 0, 0); in testOnListItemClick()
131 CellBroadcastListActivity activity = startActivity(); in testOnActivityCreatedLoaderHistoryFromCbs() local
132 assertNotNull(activity.mListFragment); in testOnActivityCreatedLoaderHistoryFromCbs()
141 activity.mListFragment.onActivityCreated(savedInstanceState); in testOnActivityCreatedLoaderHistoryFromCbs()
142 assertNotNull(activity.mListFragment.getLoaderManager()); in testOnActivityCreatedLoaderHistoryFromCbs()
147 CellBroadcastListActivity activity = startActivity(); in testOnLoadFinishedWithData() local
148 assertNotNull(activity.mListFragment); in testOnLoadFinishedWithData()
182 activity.mListFragment.onLoadFinished(null, data); in testOnLoadFinishedWithData()
[all …]
DCellBroadcastAlertDialogTest.java180 CellBroadcastAlertDialog activity = startActivity(); in testDismiss() local
182 activity.dismiss(); in testDismiss()
193 CellBroadcastAlertDialog activity = startActivity(intent, null, null); in testOnNewIntent() local
202 activity.onNewIntent(intent); in testOnNewIntent()
209 CellBroadcastAlertDialog activity = startActivity(); in testAnimationHandler() local
211 activity.mAnimationHandler.startIconAnimation(mSubId); in testAnimationHandler()
213 assertTrue(activity.mAnimationHandler.mWarningIconVisible); in testAnimationHandler()
216 m.what = activity.mAnimationHandler.mCount.get(); in testAnimationHandler()
217 activity.mAnimationHandler.handleMessage(m); in testAnimationHandler()
220 assertEquals(m.what + 1, activity.mAnimationHandler.mCount.get()); in testAnimationHandler()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DSizeCalculator.java98 public static int getNumCategoryColumns(@NonNull Activity activity) { in getNumCategoryColumns() argument
99 int windowWidthPx = getActivityWindowWidthPx(activity); in getNumCategoryColumns()
100 return getNumCategoryColumns(activity, windowWidthPx); in getNumCategoryColumns()
107 public static int getNumIndividualColumns(@NonNull Activity activity) { in getNumIndividualColumns() argument
108 int windowWidthPx = getActivityWindowWidthPx(activity); in getNumIndividualColumns()
109 return getNumIndividualColumns(activity, windowWidthPx); in getNumIndividualColumns()
116 public static int getNumFeaturedIndividualColumns(@NonNull Activity activity) { in getNumFeaturedIndividualColumns() argument
117 int windowWidthPx = getActivityWindowWidthPx(activity); in getNumFeaturedIndividualColumns()
118 return getNumFeaturedIndividualColumns(activity, windowWidthPx); in getNumFeaturedIndividualColumns()
121 private static int getNumCategoryColumns(Activity activity, int windowWidthPx) { in getNumCategoryColumns() argument
[all …]
/packages/apps/TV/tests/robotests/src/com/android/tv/
DSetupPassthroughActivityTest.java111 SetupPassthroughActivity activity = in create_emptyIntent() local
116 shadowOf(activity).getNextStartedActivityForResult(); in create_emptyIntent()
119 assertThat(activity.isFinishing()).isTrue(); in create_emptyIntent()
124 SetupPassthroughActivity activity = createSetupActivityFor("com.example/.Input"); in create_noInputs() local
126 shadowOf(activity).getNextStartedActivityForResult(); in create_noInputs()
129 assertThat(activity.isFinishing()).isTrue(); in create_noInputs()
137 SetupPassthroughActivity activity = createSetupActivityFor("com.example/.Other"); in create_inputNotFound() local
139 shadowOf(activity).getNextStartedActivityForResult(); in create_inputNotFound()
142 assertThat(activity.isFinishing()).isTrue(); in create_inputNotFound()
149 SetupPassthroughActivity activity = createSetupActivityFor(testInput.getId()); in create_validInput() local
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrUiHelper.java100 Activity activity, String inputId, Runnable recordingRequestRunnable) { in checkStorageStatusAndShowErrorMessage() argument
102 switch (TvSingletons.getSingletons(activity) in checkStorageStatusAndShowErrorMessage()
106 showDvrSmallSizedStorageErrorDialog(activity); in checkStorageStatusAndShowErrorMessage()
109 showDvrMissingStorageErrorDialog(activity); in checkStorageStatusAndShowErrorMessage()
112 showDvrNoFreeSpaceErrorDialog(activity, recordingRequestRunnable); in checkStorageStatusAndShowErrorMessage()
122 Activity activity, Program program, boolean addCurrentProgramToSeries) { in showScheduleDialog() argument
130 showDialogFragment(activity, new DvrScheduleDialogFragment(), args, true, true); in showScheduleDialog()
134 public static void showChannelRecordDurationOptions(Activity activity, Channel channel) { in showChannelRecordDurationOptions() argument
140 showDialogFragment(activity, new DvrChannelRecordDurationOptionDialogFragment(), args); in showChannelRecordDurationOptions()
144 public static void showScheduleConflictDialog(Activity activity, Program program) { in showScheduleConflictDialog() argument
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskShortcutFactory.java64 SystemShortcut getShortcut(BaseDraggingActivity activity, TaskView view); in getShortcut() argument
66 TaskShortcutFactory APP_INFO = (activity, view) -> new AppInfo(activity, view.getItemInfo());
80 protected abstract boolean isAvailable(BaseDraggingActivity activity, int displayId); in isAvailable() argument
81 protected abstract ActivityOptions makeLaunchOptions(Activity activity); in makeLaunchOptions() argument
82 protected abstract boolean onActivityStarted(BaseDraggingActivity activity); in onActivityStarted() argument
85 public SystemShortcut getShortcut(BaseDraggingActivity activity, TaskView taskView) { in getShortcut() argument
90 if (!isAvailable(activity, task.key.displayId)) { in getShortcut()
93 return new MultiWindowSystemShortcut(mIconRes, mTextRes, activity, taskView, this, in getShortcut()
125 public MultiWindowSystemShortcut(int iconRes, int textRes, BaseDraggingActivity activity, in MultiWindowSystemShortcut() argument
127 super(iconRes, textRes, activity, taskView.getItemInfo()); in MultiWindowSystemShortcut()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DProvisioningActivityBridgeImpl.java68 public void initiateUi(Activity activity) { in initiateUi() argument
77 CustomizationParams.createInstance(getParams(), activity, getUtils()); in initiateUi()
80 activity.setTitle(titleResId); in initiateUi()
82 GlifLayout layout = activity.findViewById(R.id.setup_wizard_layout); in initiateUi()
84 layout, activity, getShouldSkipEducationScreens(), getProgressLabelResId()); in initiateUi()
96 ViewGroup root = activity.findViewById(R.id.sud_layout_template_content); in initiateUi()
103 activity, in initiateUi()
109 Activity activity, in onContainerMeasured() argument
115 getProvisioningProgressLabelContainer(activity).setLayoutParams( in onContainerMeasured()
123 public void onStart(Activity activity) { in onStart() argument
[all …]
/packages/apps/Dialer/java/com/android/dialer/main/impl/
DOldMainActivityPeer.java155 private final TransactionSafeActivity activity; field in OldMainActivityPeer
228 public OldMainActivityPeer(TransactionSafeActivity activity) { in OldMainActivityPeer() argument
229 this.activity = activity; in OldMainActivityPeer()
236 activity.setContentView(R.layout.main_activity); in onActivityCreate()
239 SmartDialPrefix.initializeNanpSettings(activity); in onActivityCreate()
244 @Theme.Type int theme = ThemeComponent.get(activity).theme().getTheme(); in setTheme()
247 activity.setTheme(R.style.MainActivityTheme_Dark); in setTheme()
251 activity.setTheme(R.style.MainActivityTheme); in setTheme()
261 DialerExecutorComponent.get(activity) in initUiListeners()
262 .createUiListener(activity.getFragmentManager(), "Query last phone number"); in initUiListeners()
[all …]
DMainSearchController.java82 private final TransactionSafeActivity activity; field in MainSearchController
106 TransactionSafeActivity activity, in MainSearchController() argument
112 this.activity = activity; in MainSearchController()
120 (DialpadFragment) activity.getFragmentManager().findFragmentByTag(DIALPAD_FRAGMENT_TAG); in MainSearchController()
122 (NewSearchFragment) activity.getFragmentManager().findFragmentByTag(SEARCH_FRAGMENT_TAG); in MainSearchController()
152 Logger.get(activity).logScreenView(ScreenEvent.Type.MAIN_DIALPAD, activity); in showDialpad()
159 activity.setTitle(R.string.dialpad_activity_title); in showDialpad()
161 FragmentTransaction transaction = activity.getFragmentManager().beginTransaction(); in showDialpad()
221 activity.setTitle(R.string.main_activity_label); in hideDialpad()
232 if (activity.isSafeToCommitTransactions() in hideDialpad()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/
DSettingsHomepageActivityTest.java71 final SettingsHomepageActivity activity = Robolectric.buildActivity( in launch_shouldHaveAnimationForIaFragment() local
73 final FrameLayout frameLayout = activity.findViewById(R.id.main_content); in launch_shouldHaveAnimationForIaFragment()
80 final SettingsHomepageActivity activity = Robolectric.buildActivity( in launch_configDisabled_shouldHideAvatar() local
83 final View avatarView = activity.findViewById(R.id.account_avatar); in launch_configDisabled_shouldHideAvatar()
90 final SettingsHomepageActivity activity = Robolectric.buildActivity( in launch_configEnabled_shouldShowAvatar() local
93 final View avatarView = activity.findViewById(R.id.account_avatar); in launch_configEnabled_shouldShowAvatar()
104 final SettingsHomepageActivity activity = Robolectric.buildActivity( in launch_LowRamDevice_shouldHideAvatar() local
107 final View avatarView = activity.findViewById(R.id.account_avatar); in launch_LowRamDevice_shouldHideAvatar()
113 final SettingsHomepageActivity activity = Robolectric.buildActivity( in showHomepageWithSuggestion_showSuggestion() local
115 final View viewRoot = activity.findViewById(R.id.settings_homepage_container); in showHomepageWithSuggestion_showSuggestion()
[all …]
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/view/
DViewInfoActivityTest.java87 ViewInfoActivity activity = startViewInfoActivity(); in testInitialState() local
89 assertThat(activity.getFragments()).isEmpty(); in testInitialState()
90 assertThat(activity.findViewById(R.id.name_and_dob_linear_layout).getVisibility()) in testInitialState()
92 assertThat(activity.getTabLayout().getVisibility()).isEqualTo(View.GONE); in testInitialState()
94 ViewFlipper viewFlipper = (ViewFlipper) activity.findViewById(R.id.view_flipper); in testInitialState()
95 int noInfoIndex = viewFlipper.indexOfChild(activity.findViewById(R.id.no_info)); in testInitialState()
105 ViewInfoActivity activity = startViewInfoActivity(); in testNameSet() local
107 assertThat(activity.getFragments()).isEmpty(); in testNameSet()
108 assertThat(activity.getTabLayout().getVisibility()).isEqualTo(View.GONE); in testNameSet()
109 assertThat(activity.findViewById(R.id.no_info).getVisibility()) in testNameSet()
[all …]
/packages/apps/Dialer/java/com/android/dialer/postcall/
DPostCall.java54 public static void promptUserForMessageIfNecessary(Activity activity, View rootView) { in promptUserForMessageIfNecessary() argument
55 if (isEnabled(activity)) { in promptUserForMessageIfNecessary()
56 if (shouldPromptUserToViewSentMessage(activity)) { in promptUserForMessageIfNecessary()
57 promptUserToViewSentMessage(activity, rootView); in promptUserForMessageIfNecessary()
58 } else if (shouldPromptUserToSendMessage(activity)) { in promptUserForMessageIfNecessary()
59 promptUserToSendMessage(activity, rootView); in promptUserForMessageIfNecessary()
61 clear(activity); in promptUserForMessageIfNecessary()
73 private static void promptUserToSendMessage(Activity activity, View rootView) { in promptUserToSendMessage() argument
75 String number = Assert.isNotNull(getPhoneNumber(activity)); in promptUserToSendMessage()
76 String message = activity.getString(R.string.post_call_message); in promptUserToSendMessage()
[all …]
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/toolbar/
DToolbarMenuItemsTest.java92 runWithActivityAndToolbar((activity, toolbar) -> { in menuItems_findMenuItemById_shouldWork() argument
93 menuItem[0] = MenuItem.builder(activity) in menuItems_findMenuItemById_shouldWork()
108 runWithActivityAndToolbar((activity, toolbar) -> { in menuItems_text_shouldShow() argument
109 menuItem[0] = MenuItem.builder(activity) in menuItems_text_shouldShow()
127 runWithActivityAndToolbar((activity, toolbar) -> { in menuItems_icon_shouldShow() argument
128 menuItem[0] = MenuItem.builder(activity) in menuItems_icon_shouldShow()
154 runWithActivityAndToolbar((activity, toolbar) -> { in menuItems_textAndIcon_shouldShow() argument
155 menuItem[0] = MenuItem.builder(activity) in menuItems_textAndIcon_shouldShow()
169 runWithActivityAndToolbar((activity, toolbar) -> { in menuItems_textAndIcon_shouldShow() argument
181 runWithActivityAndToolbar((activity, toolbar) -> { in menuItems_removeIcon_shouldShowText() argument
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DMenuHelper.java80 private static void startCameraActivity(Activity activity, Intent intent, in startCameraActivity() argument
84 intent.setClassName(activity.getPackageName(), className); in startCameraActivity()
91 activity.startActivity(intent); in startCameraActivity()
94 activity.startActivity(intent); in startCameraActivity()
96 activity.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); in startCameraActivity()
99 public static void gotoMode(int mode, Activity activity) { in gotoMode() argument
118 startCameraActivity(activity, new Intent(action), className); in gotoMode()
121 public static void gotoVideoMode(Activity activity, boolean resetEffect) { in gotoVideoMode() argument
124 startCameraActivity(activity, intent, VIDEO_CAMERA_CLASS); in gotoVideoMode()
127 public static void gotoCameraMode(Activity activity) { in gotoCameraMode() argument
[all …]
/packages/apps/Gallery/src/com/android/camera/
DMenuHelper.java262 final Activity activity) { in onShowMapClicked() argument
282 Toast.makeText(activity, in onShowMapClicked()
296 activity.startActivity(new Intent( in onShowMapClicked()
315 Activity activity) { in showExifInformation() argument
343 setLatLngDetails(d, activity, exif); in showExifInformation()
368 final Activity activity) { in onDetailsClicked() argument
376 new AlertDialog.Builder(activity); in onDetailsClicked()
378 final View d = View.inflate(activity, R.layout.detailsview, in onDetailsClicked()
392 : Formatter.formatFileSize(activity, length); in onDetailsClicked()
419 activity.getString(R.string.details_dimension_x), in onDetailsClicked()
[all …]
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/core/
DCarUiInstaller.java85 public void onActivityCreated(Activity activity, Bundle savedInstanceState) { in onCreate()
86 injectLayoutInflaterFactory(activity); in onCreate()
89 activity.getClassLoader(), in onCreate()
93 activity); in onCreate()
107 public void onActivityPostStarted(Activity activity) { in onCreate()
109 activity.getClassLoader(), in onCreate()
113 activity); in onCreate()
117 activity.getClassLoader(), in onCreate()
121 changeInsetsClassLoader(activity.getClassLoader(), mInsets)); in onCreate()
127 public void onActivityStarted(Activity activity) { in onCreate()
[all …]
DBaseLayoutController.java54 /* package */ static BaseLayoutController getBaseLayoutController(@Nullable Activity activity) { in getBaseLayoutController() argument
55 return sBaseLayoutMap.get(activity); in getBaseLayoutController()
61 private BaseLayoutController(Activity activity) { in BaseLayoutController() argument
62 installBaseLayout(activity); in BaseLayoutController()
71 static void build(Activity activity) { in build() argument
72 if (getThemeBoolean(activity, R.attr.carUiBaseLayout)) { in build()
73 sBaseLayoutMap.put(activity, new BaseLayoutController(activity)); in build()
81 static void destroy(Activity activity) { in destroy() argument
82 sBaseLayoutMap.remove(activity); in destroy()
113 private void installBaseLayout(Activity activity) { in installBaseLayout() argument
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionarySettingsFragment.java99 final Activity activity = getActivity(); in onActivityCreated() local
100 mClientId = activity.getIntent().getStringExtra(DICT_SETTINGS_FRAGMENT_CLIENT_ID_ARGUMENT); in onActivityCreated()
102 (ConnectivityManager)activity.getSystemService(Context.CONNECTIVITY_SERVICE); in onActivityCreated()
138 final Activity activity = getActivity(); in onResume() local
147 if (!MetadataDbHelper.isClientKnown(activity, mClientId)) { in onResume()
154 activity.sendBroadcast(unknownClientBroadcast); in onResume()
163 final Activity activity = getActivity(); in onPause() local
165 activity.unregisterReceiver(mConnectivityChangedReceiver); in onPause()
169 activity.sendBroadcast(newDictBroadcast); in onPause()
191 final Activity activity = getActivity(); in wordListDownloadFinished()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/
DReviewPermissionsWearFragment.java78 Activity activity = getActivity(); in onCreatePreferences() local
79 if (activity == null) { in onCreatePreferences()
85 activity.finish(); in onCreatePreferences()
89 mAppPermissions = new AppPermissions(activity, packageInfo, false, in onCreatePreferences()
93 activity.finish(); in onCreatePreferences()
106 activity.finish(); in onCreatePreferences()
118 Activity activity = getActivity(); in loadPreferences() local
119 if (activity == null) { in loadPreferences()
175 mNewPermissionsCategory = new PreferenceCategory(activity); in loadPreferences()
184 currentPermissionsCategory = new PreferenceCategory(activity); in loadPreferences()
[all …]

12345678910>>...36