Home
last modified time | relevance | path

Searched refs:newInstance (Results 1 – 25 of 782) sorted by relevance

12345678910>>...32

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
DExpectedKey.java30 static ExpectedKey EMPTY_KEY = newInstance("");
33 static ExpectedKey newInstance(final String label, final ExpectedKey... moreKeys) { in newInstance() method in ExpectedKey
34 return newInstance(label, label, moreKeys); in newInstance()
38 static ExpectedKey newInstance(final String label, final String outputText, in newInstance() method in ExpectedKey
40 return newInstance(ExpectedKeyVisual.newInstance(label), in newInstance()
41 ExpectedKeyOutput.newInstance(outputText), moreKeys); in newInstance()
45 static ExpectedKey newInstance(final String label, final int code, in newInstance() method in ExpectedKey
47 return newInstance(ExpectedKeyVisual.newInstance(label), in newInstance()
48 ExpectedKeyOutput.newInstance(code), moreKeys); in newInstance()
52 static ExpectedKey newInstance(final int iconId, final String outputText, in newInstance() method in ExpectedKey
[all …]
DAbstractLayoutBase.java32 return ExpectedKey.newInstance(label, moreKeys); in key()
38 return ExpectedKey.newInstance(label, outputText, moreKeys); in key()
44 return ExpectedKey.newInstance(label, code, moreKeys); in key()
50 return ExpectedKey.newInstance(iconId, outputText, moreKeys); in key()
56 return ExpectedKey.newInstance(iconId, code, moreKeys); in key()
61 return ExpectedKey.newInstance(key.getVisual(), key.getOutput(), moreKeys); in key()
70 return ExpectedAdditionalMoreKey.newInstance(label); in additionalMoreKey()
75 return ExpectedKey.newInstance(label); in moreKey()
81 return ExpectedKey.newInstance(label, outputText); in moreKey()
87 return ExpectedKey.newInstance(label, code); in moreKey()
[all …]
DExpectedKeyboardBuilder.java124 list.add(ExpectedKey.newInstance((String)key)); in joinKeys()
152 setMoreKeysOf(ExpectedKeyVisual.newInstance(label), joinKeys(moreKeys)); in setMoreKeysOf()
164 setMoreKeysOf(ExpectedKeyVisual.newInstance(iconId), joinKeys(moreKeys)); in setMoreKeysOf()
195 final ExpectedKeyVisual visual = ExpectedKeyVisual.newInstance(label); in setAdditionalMoreKeysPositionOf()
271 final ExpectedKeyVisual visual = ExpectedKeyVisual.newInstance(label); in replaceKeyOfLabel()
DExpectedKeyOutput.java32 static ExpectedKeyOutput newInstance(final int code) { in newInstance() method in ExpectedKeyOutput
36 static ExpectedKeyOutput newInstance(final String outputText) { in newInstance() method in ExpectedKeyOutput
66 return newInstance(StringUtils.toTitleCaseOfKeyLabel(codeString, locale)); in toUpperCase()
124 return newInstance(mText.toUpperCase(locale)); in toUpperCase()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/
DPumpActivity.java63 new Page(HomeFragment::newInstance, "Home")
66 new Page(MovieFragment::newInstance, "Movies"),
67 new Page(SeriesFragment::newInstance, "TV Shows"),
68 new Page(OtherFragment::newInstance, "Personal"),
69 new Page(HomeFragment::newInstance, "All videos")
72 new Page(AudioFragment::newInstance, "All audios"),
73 new Page(PlaylistFragment::newInstance, "Playlists"),
74 new Page(AlbumFragment::newInstance, "Albums"),
75 new Page(GenreFragment::newInstance, "Genres"),
76 new Page(ArtistFragment::newInstance, "Artists")
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/
DManagePermissionsActivity.java79 androidXFragment = AutoManageStandardPermissionsFragment.newInstance(); in onCreate()
83 .ManagePermissionsFragment.newInstance(); in onCreate()
85 androidXFragment = ManageStandardPermissionsFragment.newInstance(sessionId); in onCreate()
111 androidXFragment = AutoAllAppPermissionsFragment.newInstance(packageName, in onCreate()
114 androidXFragment = AutoAppPermissionsFragment.newInstance(packageName, in onCreate()
118 androidXFragment = AppPermissionsFragmentWear.newInstance(packageName); in onCreate()
121 .AppPermissionsFragment.newInstance(packageName); in onCreate()
125 .AllAppPermissionsFragment.newInstance(packageName, userHandle); in onCreate()
128 .AppPermissionsFragment.newInstance( in onCreate()
143 androidXFragment = AutoPermissionAppsFragment.newInstance(permissionName); in onCreate()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DContentFragment.java44 public static ContentFragment newInstance(String title) { in newInstance() method in ContentFragment
45 return newInstance(title, null, null, 0, Color.TRANSPARENT); in newInstance()
48 public static ContentFragment newInstance(String title, String breadcrumb, in newInstance() method in ContentFragment
50 return newInstance(title, breadcrumb, description, 0, Color.TRANSPARENT); in newInstance()
53 public static ContentFragment newInstance(String title, String breadcrumb, String description, in newInstance() method in ContentFragment
55 return newInstance(title, breadcrumb, description, iconResourceId, Color.TRANSPARENT); in newInstance()
58 public static ContentFragment newInstance(String title, String breadcrumb, String description, in newInstance() method in ContentFragment
67 public static ContentFragment newInstance(String title, String breadcrumb, String description, in newInstance() method in ContentFragment
69 return newInstance(title, breadcrumb, description, iconResourceUri, Color.TRANSPARENT); in newInstance()
72 public static ContentFragment newInstance(String title, String breadcrumb, String description, in newInstance() method in ContentFragment
[all …]
DActionFragment.java35 public static ActionFragment newInstance(ArrayList<Action> actions) { in newInstance() method in ActionFragment
36 return newInstance(actions, null); in newInstance()
39 public static ActionFragment newInstance(ArrayList<Action> actions, String name) { in newInstance() method in ActionFragment
45 public static ActionFragment newInstance(ArrayList<Action> actions, int index) { in newInstance() method in ActionFragment
51 public static ActionFragment newInstance(ArrayList<Action> actions, String name, int index) { in newInstance() method in ActionFragment
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmUpdateHandler.java119 final AlarmInstance newInstance = new AlarmInstance(instance); in asyncUpdateAlarm()
122 newInstance.mVibrate = alarm.vibrate; in asyncUpdateAlarm()
123 newInstance.mRingtone = alarm.alert; in asyncUpdateAlarm()
124 newInstance.mLabel = alarm.label; in asyncUpdateAlarm()
128 AlarmInstance.updateInstance(cr, newInstance); in asyncUpdateAlarm()
130 AlarmNotifications.updateNotification(mAppContext, newInstance); in asyncUpdateAlarm()
216 AlarmInstance newInstance = alarm.createInstanceAfter(Calendar.getInstance()); in setupAlarmInstance() local
217 newInstance = AlarmInstance.addInstance(cr, newInstance); in setupAlarmInstance()
219 AlarmStateManager.registerInstance(mAppContext, newInstance, true); in setupAlarmInstance()
220 return newInstance; in setupAlarmInstance()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DEntityHeaderControllerTest.java90 mController = EntityHeaderController.newInstance(mActivity, mFragment, null); in testBuildView_constructedWithoutView_shouldCreateNewView()
98 mController = EntityHeaderController.newInstance(mActivity, mFragment, null); in testBuildView_withContext_shouldBuildPreferenceAllowedBelowDivider()
108 mController = EntityHeaderController.newInstance(mActivity, mFragment, inputView); in testBuildView_constructedWithView_shouldReturnSameView()
123 mController = EntityHeaderController.newInstance(mActivity, mFragment, header); in bindViews_shouldBindAllData()
148 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in bindButton_hasEditClickListener_shouldShowButton()
175 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in bindButton_noEditClickListener_shouldNotShowButton()
193 mController = EntityHeaderController.newInstance(mActivity, mFragment, appLinks); in bindButton_noAppInfo_shouldNotAttachClickListener()
219 mController = EntityHeaderController.newInstance(mActivity, mFragment, appLinks); in bindButton_hasAppInfo_shouldAttachClickListener()
238 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in iconContentDescription_shouldWorkWithSetIcon()
252 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in iconContentDescription_shouldWorkWithoutSetIcon()
[all …]
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/contact/
DContactListViewHolderTest.java90 PhoneNumber phoneNumber = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withOnlyOneNumber_showLabel()
100 PhoneNumber phoneNumber = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, TYPE, null, in testLabel_withOneNumberAndNumberHasNullLabel_showTypeLabel()
124 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withMultipleNumbersAndNoPrimaryNumber_showMultipleLabel()
126 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, 0, LABEL_2, in testLabel_withMultipleNumbersAndNoPrimaryNumber_showMultipleLabel()
138 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withMultipleNumbersAndHasPrimaryNumber_showPrimaryNumberLabel()
140 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, 0, LABEL_2, in testLabel_withMultipleNumbersAndHasPrimaryNumber_showPrimaryNumberLabel()
153 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_HasPrimaryNumberAndPrimaryNumberHasNullLabel_showPrimaryNumberLabel()
155 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, TYPE, null, in testLabel_HasPrimaryNumberAndPrimaryNumberHasNullLabel_showPrimaryNumberLabel()
188 PhoneNumber phoneNumber = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testClickCallActionButton_ContactHasOneNumber_placeCall()
206 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testClickCallActionButton_HasMultipleNumbersAndNoPrimaryNumber_showAlertDialog()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DNoNullCursorAsyncQueryHandlerTest.java60 final ObjectHolder<Cursor> cursorHolder = ObjectHolder.newInstance(); in testCursorIsNotNull()
61 final ObjectHolder<Boolean> ranHolder = ObjectHolder.newInstance(false); in testCursorIsNotNull()
88 final ObjectHolder<Boolean> ranHolder = ObjectHolder.newInstance(false); in testCursorContainsCorrectCookies()
90 final ObjectHolder<Object> cookieHolder = ObjectHolder.newInstance(); in testCursorContainsCorrectCookies()
115 final ObjectHolder<Boolean> ranHolder = ObjectHolder.newInstance(false); in testCursorContainsCorrectColumns()
117 final ObjectHolder<Cursor> cursorHolder = ObjectHolder.newInstance(); in testCursorContainsCorrectColumns()
144 public static <E> ObjectHolder<E> newInstance() { in newInstance() method in NoNullCursorAsyncQueryHandlerTest.ObjectHolder
148 public static <E> ObjectHolder<E> newInstance(E value) { in newInstance() method in NoNullCursorAsyncQueryHandlerTest.ObjectHolder
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DSetupSkipDialogTest.java49 SetupSkipDialog.newInstance(false, false, false, false, false); in frpMessages_areShownCorrectly_whenNotSupported()
64 SetupSkipDialog.newInstance(true, false, false, false, false); in frpMessages_areShownCorrectly_whenSupported()
79 SetupSkipDialog.newInstance(true, false, false, false, true); in dialogMessage_whenSkipPinSetupForFace_shouldShownCorrectly()
94 SetupSkipDialog.newInstance(true, false, true, false, true); in dialogMessage_whenSkipPasswordSetupForFace_shouldShownCorrectly()
109 SetupSkipDialog.newInstance(true, true, false, false, true); in dialogMessage_whenSkipPatternSetupForFace_shouldShownCorrectly()
124 SetupSkipDialog.newInstance(true, false, false, true, false); in dialogMessage_whenSkipPinSetupForFingerprint_shouldShownCorrectly()
139 SetupSkipDialog.newInstance(true, false, true, true, false); in dialogMessage_whenSkipPasswordSetupForFingerprint_shouldShownCorrectly()
154 SetupSkipDialog.newInstance(true, true, false, true, false); in dialogMessage_whenSkipPatternSetupForFingerprint_shouldShownCorrectly()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupFinal.java479 f = AccountSetupBasicsFragment.newInstance(); in updateContentFragment()
482 f = AccountSetupTypeFragment.newInstance(); in updateContentFragment()
485 f = AccountSetupABFragment.newInstance(mSetupData.getEmail(), in updateContentFragment()
489 f = AccountSetupCredentialsFragment.newInstance(mSetupData.getEmail(), in updateContentFragment()
495 f = AccountSetupIncomingFragment.newInstance(false); in updateContentFragment()
498 f = AccountSetupOutgoingFragment.newInstance(false); in updateContentFragment()
501 f = AccountSetupOptionsFragment.newInstance(); in updateContentFragment()
504 f = AccountSetupNamesFragment.newInstance(); in updateContentFragment()
787 AccountSetupNoteDialogFragment.newInstance(mProvider.note); in onBasicsComplete()
810 DuplicateAccountDialogFragment.newInstance(existingAccountName); in showDuplicateAccountDialog()
[all …]
DAccountServerSettingsActivity.java83 f = AccountSetupOutgoingFragment.newInstance(true); in onCreate()
85 f = AccountSetupIncomingFragment.newInstance(true); in onCreate()
139 final Fragment checkerDialog = CheckSettingsProgressDialogFragment.newInstance(checkMode); in onAccountServerUIComplete()
140 final Fragment checkerFragment = AccountCheckSettingsFragment.newInstance(checkMode); in onAccountServerUIComplete()
168 SecurityRequiredDialogFragment.newInstance(hostName) in onCheckSettingsSecurityRequired()
175 CheckSettingsErrorDialogFragment.newInstance(reason, message) in onCheckSettingsError()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DStringTexture.java53 public static StringTexture newInstance( in newInstance() method in StringTexture
55 return newInstance(text, getDefaultPaint(textSize, color)); in newInstance()
58 public static StringTexture newInstance( in newInstance() method in StringTexture
69 return newInstance(text, paint); in newInstance()
72 private static StringTexture newInstance(String text, TextPaint paint) { in newInstance() method in StringTexture
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DUsageBytesThresholdPickerDialogTest.java58 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in dialogInit_validValue_showsCurrentValue()
66 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in dialogInit_lowInvalidValue_showsLowestPossibleValue()
75 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in positiveButtonClick_noChangeInValue_dialogListenerNotCalled()
89 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in positiveButtonClick_changeInValue_dialogListenerCalled()
106 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in getCurrentThreshold_aboveLimit_returnLimit()
DUsageCycleResetDayOfMonthPickerDialogTest.java56 UsageCycleResetDayOfMonthPickerDialog.newInstance(setDate); in dialogInit_validValue_showsCurrentValue()
64 UsageCycleResetDayOfMonthPickerDialog.newInstance(0); in dialogInit_lowInvalidValue_showsLowestPossibleValue()
72 UsageCycleResetDayOfMonthPickerDialog.newInstance(32); in dialogInit_highInvalidValue_showsHighestPossibleValue()
81 UsageCycleResetDayOfMonthPickerDialog.newInstance(setDate); in dialogListenerCalled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipDialogFragmentTest.java106 mDialogFragment = BatteryTipDialogFragment.newInstance(mHighUsageTip, METRICS_KEY); in testOnCreateDialog_highUsageTip_fireHighUsageDialog()
122 mDialogFragment = BatteryTipDialogFragment.newInstance(mRestrictedOneAppTip, METRICS_KEY); in testOnCreateDialog_restrictOneAppTip_fireRestrictOneAppDialog()
141 mDialogFragment = BatteryTipDialogFragment.newInstance(mRestrictTwoAppsTip, METRICS_KEY); in testOnCreateDialog_restrictTwoAppsTip_fireRestrictTwoAppsDialog()
172 mDialogFragment = BatteryTipDialogFragment.newInstance(restrictSixAppsTip, METRICS_KEY); in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog()
192 mDialogFragment = BatteryTipDialogFragment.newInstance(mUnrestrictAppTip, METRICS_KEY); in testOnCreateDialog_unRestrictAppTip_fireUnRestrictDialog()
209 mDialogFragment = BatteryTipDialogFragment.newInstance(mSummaryTip, METRICS_KEY); in testOnCreateDialog_summaryTip_fireDialog()
/packages/apps/Settings/src/com/android/settings/sim/
DSimDialogActivity.java88 return SimListDialogFragment.newInstance(dialogType, R.string.select_sim_for_data, in createFragment()
91 return CallsSimListDialogFragment.newInstance(dialogType, in createFragment()
95 return SimListDialogFragment.newInstance(dialogType, R.string.select_sim_for_sms, in createFragment()
101 return PreferredSimDialogFragment.newInstance(); in createFragment()
103 return SimListDialogFragment.newInstance(dialogType, R.string.select_sim_for_sms, in createFragment()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DMigrateStorageActivity.java101 MigrateConfirmationStepFragment.newInstance(mTargetVolumeDesc)) in onCreate()
112 ChooseStorageStepFragment.newInstance(mVolumeInfo)) in onCreate()
152 MigrateProgressFragment.newInstance(mTargetVolumeDesc)) in startMigrationInternal()
192 public static MigrateConfirmationStepFragment newInstance(String volumeDescription) { in newInstance() method in MigrateStorageActivity.MigrateConfirmationStepFragment
242 public static ChooseStorageStepFragment newInstance(VolumeInfo currentVolumeInfo) { in newInstance() method in MigrateStorageActivity.ChooseStorageStepFragment
295 public static MigrateProgressFragment newInstance(String volumeDescription) { in newInstance() method in MigrateStorageActivity.MigrateProgressFragment
/packages/apps/Dialer/java/com/android/dialer/blockreportspam/
DBlockReportSpamDialogs.java137 public static DialogFragment newInstance( in newInstance() method in DialogFragmentForBlockingNumberAndOptionallyReportingAsSpam
192 public static DialogFragment newInstance( in newInstance() method in DialogFragmentForBlockingNumberAndReportingAsSpam
235 public static DialogFragment newInstance( in newInstance() method in DialogFragmentForBlockingNumber
276 public static DialogFragment newInstance( in newInstance() method in DialogFragmentForUnblockingNumberAndReportingAsNotSpam
321 public static DialogFragment newInstance( in newInstance() method in DialogFragmentForUnblockingNumber
353 public static DialogFragment newInstance( in newInstance() method in DialogFragmentForReportingNotSpam
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DDeletionHelperSettingsTest.java80 spy(DeletionHelperSettings.newInstance(AppsAsyncLoader.NO_THRESHOLD)); in downloadsNotDeletedInNoThresholdMode()
95 DeletionHelperSettings.newInstance(AppsAsyncLoader.NO_THRESHOLD); in onFreeableChangeChecksForNull()
106 spy(DeletionHelperSettings.newInstance(AppsAsyncLoader.NORMAL_THRESHOLD)); in requestingSpecificBytesToClearSetsOkResultCodeOnSufficientClear()
125 spy(DeletionHelperSettings.newInstance(AppsAsyncLoader.NORMAL_THRESHOLD)); in requestingSpecificBytesToClearSetsNegativeResultCodeOnSufficientClear()
144 spy(DeletionHelperSettings.newInstance(AppsAsyncLoader.NORMAL_THRESHOLD)); in requestingSpecificBytesToClearSetsNegativeResultCodeOnNoClear()
/packages/apps/Car/Dialer/src/com/android/car/dialer/livedata/
DCallHistoryLiveData.java62 public static CallHistoryLiveData newInstance(Context context) { in newInstance() method in CallHistoryLiveData
63 return newInstance(context, CALL_TYPE_ALL, DEFAULT_CALL_LOG_LIMIT); in newInstance()
70 return newInstance(context, CALL_TYPE_ALL, 1); in newLastCallLiveData()
73 private static CallHistoryLiveData newInstance(Context context, int callType, int limit) { in newInstance() method in CallHistoryLiveData
/packages/apps/Messaging/src/com/android/messaging/ui/
DSmsStorageLowWarningFragment.java53 public static SmsStorageLowWarningFragment newInstance() { in newInstance() method in SmsStorageLowWarningFragment
61 final ChooseActionDialogFragment dialog = ChooseActionDialogFragment.newInstance(); in onCreate()
73 final ConfirmationDialog dialog = ConfirmationDialog.newInstance(actionIndex); in confirm()
89 public static ChooseActionDialogFragment newInstance() { in newInstance() method in SmsStorageLowWarningFragment.ChooseActionDialogFragment
164 public static ConfirmationDialog newInstance(final int actionIndex) { in newInstance() method in SmsStorageLowWarningFragment.ConfirmationDialog

12345678910>>...32