/development/samples/browseable/LNotifications/src/com.example.android.lnotifications/ |
OtherMetadataFragment.java | 110 mNotificationManager = (NotificationManager) getActivity().getSystemService(Context 135 ArrayAdapter<Category> categoryArrayAdapter = new ArrayAdapter<Category>(getActivity(), 141 ArrayAdapter<Priority> priorityArrayAdapter = new ArrayAdapter<Priority>(getActivity(), 182 Notification.Builder notificationBuilder = new Notification.Builder(getActivity()) 213 Toast.makeText(getActivity(), "Show Notification clicked", Toast.LENGTH_SHORT).show(); 232 Cursor cursor = getActivity().getContentResolver().query(contactUri, null, null, null, 241 result = MediaStore.Images.Media.getBitmap(getActivity().getContentResolver() 247 Drawable defaultContactDrawable = getActivity().getResources().getDrawable(R 261 Cursor cursor = getActivity().getContentResolver().query(contactUri, null, null, null, 271 ImageView contactPhoto = (ImageView) getActivity().findViewById(R.id.contact_photo) [all...] |
/developers/build/prebuilts/gradle/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/ |
AdvertiserFragment.java | 90 Toast.makeText(getActivity(), errorMessage, Toast.LENGTH_LONG).show(); 122 getActivity().registerReceiver(advertisingFailureReceiver, failureFilter); 133 getActivity().unregisterReceiver(advertisingFailureReceiver); 162 Context c = getActivity(); 170 Context c = getActivity();
|
/developers/samples/android/connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/ |
AdvertiserFragment.java | 90 Toast.makeText(getActivity(), errorMessage, Toast.LENGTH_LONG).show(); 122 getActivity().registerReceiver(advertisingFailureReceiver, failureFilter); 133 getActivity().unregisterReceiver(advertisingFailureReceiver); 162 Context c = getActivity(); 170 Context c = getActivity();
|
/development/samples/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/ |
AdvertiserFragment.java | 90 Toast.makeText(getActivity(), errorMessage, Toast.LENGTH_LONG).show(); 122 getActivity().registerReceiver(advertisingFailureReceiver, failureFilter); 133 getActivity().unregisterReceiver(advertisingFailureReceiver); 162 Context c = getActivity(); 170 Context c = getActivity();
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
HorizontalFocusSearchTest.java | 57 mLayout = getActivity().getLayout(); 58 mLeftTall = getActivity().getLeftTall(); 59 mMidShort1Top = getActivity().getMidShort1Top(); 60 mMidShort2Bottom = getActivity().getMidShort2Bottom(); 61 mRightTall = getActivity().getRightTall();
|
VerticalFocusSearchTest.java | 70 mLayout = getActivity().getLayout(); 71 mTopWide = getActivity().getTopWide(); 72 mMidSkinny1Left = getActivity().getMidSkinny1Left(); 73 mMidSkinny2Right = getActivity().getMidSkinny2Right(); 74 mBottomWide = getActivity().getBottomWide();
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTest/java/android/databinding/testapp/ |
BaseDataBinderTest.java | 47 getActivity().setRequestedOrientation(mOrientation); 68 getActivity(); 77 getActivity();// ensure activity is created 89 mBinder = (T) method[0].invoke(null, getActivity().getLayoutInflater()); 90 getActivity().setContentView(mBinder.getRoot());
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
BrowseFragment.java | 67 setBadgeDrawable(getActivity().getResources().getDrawable(R.drawable.ic_title)); 73 Intent intent = new Intent(getActivity(), SearchActivity.class); 86 mBackgroundHelper.setBackground(getActivity(), null); 89 getActivity(), ((PhotoItem) item).getImageResourceId()); 206 intent = new Intent(getActivity(), BrowseActivity.class); 207 bundle = ActivityOptionsCompat.makeSceneTransitionAnimation(getActivity()) 210 intent = new Intent(getActivity(), RowsActivity.class); 211 bundle = ActivityOptionsCompat.makeSceneTransitionAnimation(getActivity()) 214 intent = new Intent(getActivity(), DetailsActivity.class); 217 getActivity(), [all...] |
BrowseSupportFragment.java | 69 setBadgeDrawable(getActivity().getResources().getDrawable(R.drawable.ic_title)); 75 Intent intent = new Intent(getActivity(), SearchSupportActivity.class); 88 mBackgroundHelper.setBackground(getActivity(), null); 91 getActivity(), ((PhotoItem) item).getImageResourceId()); 208 intent = new Intent(getActivity(), BrowseSupportActivity.class); 209 bundle = ActivityOptionsCompat.makeSceneTransitionAnimation(getActivity()) 212 intent = new Intent(getActivity(), RowsSupportActivity.class); 213 bundle = ActivityOptionsCompat.makeSceneTransitionAnimation(getActivity()) 216 intent = new Intent(getActivity(), DetailsSupportActivity.class); 219 getActivity(), [all...] |
DetailsFragment.java | 70 setBadgeDrawable(getActivity().getResources().getDrawable(R.drawable.ic_title)); 75 Intent intent = new Intent(getActivity(), SearchActivity.class); 91 Toast.makeText(getActivity(), action.toString(), Toast.LENGTH_SHORT).show(); 110 Intent intent = new Intent(getActivity(), PlaybackOverlayActivity.class); 111 getActivity().startActivity(intent); 133 Intent intent = new Intent(getActivity(), DetailsActivity.class); 137 getActivity(), 140 getActivity().startActivity(intent, bundle); 153 dorPresenter.setSharedElementEnterTransition(getActivity(), 176 Resources res = getActivity().getResources() [all...] |
DetailsSupportFragment.java | 72 setBadgeDrawable(getActivity().getResources().getDrawable(R.drawable.ic_title)); 77 Intent intent = new Intent(getActivity(), SearchSupportActivity.class); 93 Toast.makeText(getActivity(), action.toString(), Toast.LENGTH_SHORT).show(); 112 Intent intent = new Intent(getActivity(), PlaybackOverlaySupportActivity.class); 113 getActivity().startActivity(intent); 135 Intent intent = new Intent(getActivity(), DetailsSupportActivity.class); 139 getActivity(), 142 getActivity().startActivity(intent, bundle); 155 dorPresenter.setSharedElementEnterTransition(getActivity(), 178 Resources res = getActivity().getResources() [all...] |
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/ |
CellBroadcastAlertDialogTest.java | 97 getActivity().getResources().getText(R.string.cmas_extreme_alert); 98 assertEquals(etremeAlertString, getActivity().getTitle()); 100 ((TextView) getActivity().findViewById(R.id.alertTitle)).getText()); 103 (String) ((TextView) getActivity().findViewById(R.id.message)).getText()); 119 assertEquals(getActivity().getTitle(), b.getCharSequence(Notification.EXTRA_TITLE));
|
/packages/apps/Contacts/src/com/android/contacts/ |
NonPhoneActivity.java | 78 alertDialog = new AlertDialog.Builder(getActivity(), R.style.NonPhoneDialogTheme) 83 getActivity().getString(R.string.non_phone_add_to_contacts), this); 85 getActivity().getString(R.string.non_phone_close), this); 95 ImplicitIntentsUtil.startActivityInApp(getActivity(), intent); 107 // During screen rotation, getActivity returns null. In this case we do not 109 final Activity activity = getActivity();
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
ClearCallLogDialog.java | 52 final ContentResolver resolver = getActivity().getContentResolver(); 53 final Context context = getActivity().getApplicationContext(); 57 final ProgressDialog progressDialog = ProgressDialog.show(getActivity(), 60 progressDialog.setOwnerActivity(getActivity()); 89 return new AlertDialog.Builder(getActivity())
|
CallLogFragment.java | 201 final Activity activity = getActivity(); 216 if (getActivity() == null || getActivity().isFinishing()) { 224 getActivity().invalidateOptionsMenu(); 246 if (getActivity() == null || getActivity().isFinishing()) { 265 Activity activity = getActivity(); 298 mLayoutManager = new LinearLayoutManager(getActivity()); 306 String currentCountryIso = GeoUtil.getCurrentCountryIso(getActivity()); 308 getActivity(), [all...] |
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/ |
MainFragment.java | 79 PresenterSelector presenterSelector = new CardPresenterSelector(getActivity()); 110 intent = new Intent(getActivity().getBaseContext(), 115 intent = new Intent(getActivity().getBaseContext(), 119 intent = new Intent(getActivity().getBaseContext(), 124 intent = new Intent(getActivity().getBaseContext(), 129 intent = new Intent(getActivity().getBaseContext(), 134 intent = new Intent(getActivity().getBaseContext(), 142 intent = new Intent(getActivity().getBaseContext(), 158 intent = new Intent(getActivity().getBaseContext(), 164 intent = new Intent(getActivity().getBaseContext() [all...] |
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/handheld/ |
ManagePermissionsFragment.java | 67 final ActionBar ab = getActivity().getActionBar(); 72 mPermissions = new PermissionGroups(getActivity(), getLoaderManager(), this); 85 getActivity().finish(); 103 getActivity().startActivity(intent); 119 bindPermissionUi(getActivity(), getView()); 129 Context context = getActivity(); 137 screen = getPreferenceManager().createPreferenceScreen(getActivity()); 175 if (getActivity() == null) { 221 getActivity().setTitle(R.string.additional_permissions); 230 getActivity().setTitle(R.string.app_permissions) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
SetupChooseLockGeneric.java | 91 if (getActivity() != null) { 92 getActivity().setTitle(titleResource); 118 LockPatternUtils lockPatternUtils = new LockPatternUtils(getActivity()); 173 SetupSkipDialog dialog = SetupSkipDialog.newInstance(getActivity().getIntent() 187 SetupWizardUtils.copySetupExtras(getActivity().getIntent(), intent); 197 SetupWizardUtils.copySetupExtras(getActivity().getIntent(), intent); 206 SetupWizardUtils.copySetupExtras(getActivity().getIntent(), intent); 215 SetupWizardUtils.copySetupExtras(getActivity().getIntent(), intent); 224 SetupWizardUtils.copySetupExtras(getActivity().getIntent(), intent); 233 SetupWizardUtils.copySetupExtras(getActivity().getIntent(), intent) [all...] |
DeviceInfoSettings.java | 101 mUm = UserManager.get(getActivity()); 144 if (Utils.isWifiOnly(getActivity())) { 149 if (TextUtils.isEmpty(DeviceInfoUtils.getFeedbackReporterPackage(getActivity()))) { 157 final Activity act = getActivity(); 189 mDevHitCountdown = getActivity().getSharedPreferences(DevelopmentSettings.PREF_FILE, 194 getActivity(), UserManager.DISALLOW_FUN, UserHandle.myUserId()); 196 getActivity(), UserManager.DISALLOW_FUN, UserHandle.myUserId()); 198 getActivity(), UserManager.DISALLOW_DEBUGGING_FEATURES, UserHandle.myUserId()); 200 getActivity(), UserManager.DISALLOW_DEBUGGING_FEATURES, UserHandle.myUserId()); 211 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(getActivity(), [all...] |
DateTimeSettings.java | 105 EnforcedAdmin admin = RestrictedLockUtils.checkIfAutoTimeRequired(getActivity()); 108 Intent intent = getActivity().getIntent(); 120 if (Utils.isWifiOnly(getActivity()) || isFirstRun) { 150 getActivity().registerReceiver(mIntentReceiver, filter, null, null); 152 updateTimeAndDateDisplay(getActivity()); 158 getActivity().unregisterReceiver(mIntentReceiver); 169 mTimePref.setSummary(DateFormat.getTimeFormat(getActivity()).format(now.getTime())); 171 mTime24Pref.setSummary(DateFormat.getTimeFormat(getActivity()).format(dummyDate)); 176 final Activity activity = getActivity(); 185 final Activity activity = getActivity(); [all...] |
/frameworks/support/transition/tests/src/android/support/transition/ |
SceneTest.java | 37 TransitionActivity activity = rule.getActivity(); 46 TransitionActivity activity = rule.getActivity(); 66 TransitionActivity activity = rule.getActivity(); 85 TransitionActivity activity = rule.getActivity(); 96 TransitionActivity activity = rule.getActivity(); 108 TransitionActivity activity = rule.getActivity(); 119 TransitionActivity activity = rule.getActivity();
|
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
WifiP2pSettings.java | 168 final Activity activity = getActivity(); 171 mChannel = mWifiP2pManager.initialize(activity, getActivity().getMainLooper(), null); 183 mSelectedWifiPeer = new WifiP2pPeer(getActivity(), device); 203 Toast.makeText(getActivity(), 217 Toast.makeText(getActivity(), 323 getActivity().registerReceiver(mReceiver, mIntentFilter); 335 getActivity().unregisterReceiver(mReceiver); 416 Toast.makeText(getActivity(), 437 msg = getActivity().getString(R.string.wifi_p2p_disconnect_multiple_message, 440 msg = getActivity().getString(R.string.wifi_p2p_disconnect_message, deviceName) [all...] |
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/media/ |
MusicConsumptionExampleFragment.java | 56 mGlue = new MediaPlayerGlue(getActivity(), this) { 72 Resources res = getActivity().getResources(); 82 getActivity().getTheme()), 84 getActivity().getTheme())}; 92 getActivity().getTheme()), 94 getActivity().getTheme())}; 104 metaData.setCover(getResources().getDrawable(song.getImageResource(getActivity()), null)); 105 Uri uri = Utils.getResourceUri(getActivity(), song.getFileResource(getActivity())); 211 .setSongPresenterRegular(new SongPresenter(getActivity(), [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ |
ImportExportDialogFragment.java | 97 return getActivity(); 109 final Resources res = getActivity().getResources(); 110 final LayoutInflater dialogInflater = (LayoutInflater)getActivity() 117 final ArrayAdapter<AdapterEntry> adapter = new ArrayAdapter<AdapterEntry>(getActivity(), 130 (TelephonyManager) getActivity().getSystemService(Context.TELEPHONY_SERVICE); 137 mSubscriptionManager = SubscriptionManager.from(getActivity()); 197 getActivity(), ExportVCardActivity.class); 200 getActivity().startActivity(exportIntent); 207 getActivity(), ShareVCardActivity.class); 210 getActivity().startActivity(exportIntent) [all...] |
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/ui/ |
MovieDetailsFragment.java | 92 mSelectedMovie = (Movie) getActivity().getIntent() 95 removeNotification(getActivity().getIntent() 105 Intent intent = new Intent(getActivity(), MainActivity.class); 112 NotificationManager notificationManager = (NotificationManager) getActivity() 127 Intent intent = getActivity().getIntent(); 154 mBackgroundManager = BackgroundManager.getInstance(getActivity()); 155 mBackgroundManager.attach(getActivity().getWindow()); 158 getActivity().getWindowManager().getDefaultDisplay().getMetrics(mMetrics); 162 Glide.with(getActivity()) 184 int width = Utils.convertDpToPixel(getActivity() [all...] |