Home
last modified time | relevance | path

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

12345678910>>...30

/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/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.java87 mController = EntityHeaderController.newInstance(mActivity, mFragment, null); in testBuildView_constructedWithoutView_shouldCreateNewView()
95 mController = EntityHeaderController.newInstance(mActivity, mFragment, null); in testBuildView_withContext_shouldBuildPreferenceAllowedBelowDivider()
105 mController = EntityHeaderController.newInstance(mActivity, mFragment, inputView); in testBuildView_constructedWithView_shouldReturnSameView()
120 mController = EntityHeaderController.newInstance(mActivity, mFragment, header); in bindViews_shouldBindAllData()
145 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in bindButton_hasEditClickListener_shouldShowButton()
172 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in bindButton_noEditClickListener_shouldNotShowButton()
190 mController = EntityHeaderController.newInstance(mActivity, mFragment, appLinks); in bindButton_noAppInfo_shouldNotAttachClickListener()
216 mController = EntityHeaderController.newInstance(mActivity, mFragment, appLinks); in bindButton_hasAppInfo_shouldAttachClickListener()
235 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in iconContentDescription_shouldWorkWithSetIcon()
249 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in iconContentDescription_shouldWorkWithoutSetIcon()
[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/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/contact/
DContactListViewHolderTest.java101 PhoneNumber phoneNumber = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withOnlyOneNumber_showLabel()
111 PhoneNumber phoneNumber = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, TYPE, null, in testLabel_withOneNumberAndNumberHasNullLabel_showTypeLabel()
135 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withMultipleNumbersAndNoPrimaryNumber_showMultipleLabel()
137 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, 0, LABEL_2, in testLabel_withMultipleNumbersAndNoPrimaryNumber_showMultipleLabel()
149 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withMultipleNumbersAndHasPrimaryNumber_showPrimaryNumberLabel()
151 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, 0, LABEL_2, in testLabel_withMultipleNumbersAndHasPrimaryNumber_showPrimaryNumberLabel()
164 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_HasPrimaryNumberAndPrimaryNumberHasNullLabel_showPrimaryNumberLabel()
166 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, TYPE, null, in testLabel_HasPrimaryNumberAndPrimaryNumberHasNullLabel_showPrimaryNumberLabel()
199 PhoneNumber phoneNumber = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testClickCallActionButton_ContactHasOneNumber_placeCall()
217 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testClickCallActionButton_HasMultipleNumbersAndNoPrimaryNumber_showAlertDialog()
[all …]
/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/PermissionController/src/com/android/permissioncontroller/permission/ui/
DManagePermissionsActivity.java130 androidXFragment = AutoManageStandardPermissionsFragment.newInstance(); in onCreate()
134 .ManagePermissionsFragment.newInstance(); in onCreate()
153 androidXFragment = PermissionUsageFragment.newInstance(groupName, Long.MAX_VALUE); in onCreate()
223 androidXFragment = AutoAllAppPermissionsFragment.newInstance(packageName, in onCreate()
226 androidXFragment = AutoAppPermissionsFragment.newInstance(packageName, in onCreate()
230 androidXFragment = AppPermissionsFragmentWear.newInstance(packageName); in onCreate()
233 .AppPermissionsFragment.newInstance(packageName, userHandle); in onCreate()
264 androidXFragment = AutoPermissionAppsFragment.newInstance(permissionName); in onCreate()
267 .PermissionAppsFragment.newInstance(permissionName); in onCreate()
285 .AutoRevokeFragment.newInstance(); in onCreate()
/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/src/com/android/settings/sim/
DSimDialogActivity.java95 return SimListDialogFragment.newInstance(dialogType, R.string.select_sim_for_data, in createFragment()
98 return CallsSimListDialogFragment.newInstance(dialogType, in createFragment()
102 return SimListDialogFragment.newInstance(dialogType, R.string.select_sim_for_sms, in createFragment()
108 return PreferredSimDialogFragment.newInstance(); in createFragment()
110 return SimListDialogFragment.newInstance(dialogType, R.string.select_sim_for_sms, in createFragment()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipDialogFragmentTest.java130 mDialogFragment = BatteryTipDialogFragment.newInstance(mHighUsageTip, METRICS_KEY); in testOnCreateDialog_highUsageTip_fireHighUsageDialog()
146 mDialogFragment = BatteryTipDialogFragment.newInstance(mRestrictedOneAppTip, METRICS_KEY); in testOnCreateDialog_restrictOneAppTip_fireRestrictOneAppDialog()
165 mDialogFragment = BatteryTipDialogFragment.newInstance(mRestrictTwoAppsTip, METRICS_KEY); in testOnCreateDialog_restrictTwoAppsTip_fireRestrictTwoAppsDialog()
196 mDialogFragment = BatteryTipDialogFragment.newInstance(restrictSixAppsTip, METRICS_KEY); in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog()
216 mDialogFragment = BatteryTipDialogFragment.newInstance(mUnrestrictAppTip, METRICS_KEY); in testOnCreateDialog_unRestrictAppTip_fireUnRestrictDialog()
233 mDialogFragment = BatteryTipDialogFragment.newInstance(mSummaryTip, METRICS_KEY); in testOnCreateDialog_summaryTip_fireDialog()
/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/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/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
DResetActivity.java51 GuidedStepFragment.addAsRoot(this, ResetFragment.newInstance(), android.R.id.content); in onCreate()
57 public static ResetFragment newInstance() { in newInstance() method in ResetActivity.ResetFragment
91 add(getFragmentManager(), ResetConfirmFragment.newInstance()); in onGuidedActionClicked()
102 public static ResetConfirmFragment newInstance() { in newInstance() method in ResetActivity.ResetConfirmFragment
/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
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DDevelopmentActivity.java28 return SettingsFragment.newInstance(); in createSettingsFragment()
33 public static SettingsFragment newInstance() { in newInstance() method in DevelopmentActivity.SettingsFragment
39 final DevelopmentFragment fragment = DevelopmentFragment.newInstance(); in onPreferenceStartInitialScreen()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/
DSimListDialogFragmentTest.java55 mFragment = spy(SimListDialogFragment.newInstance(dialogType, R.string.select_sim_for_data, in onCreateDialog_noSubscriptions_dismissed()
66 mFragment = spy(SimListDialogFragment.newInstance(dialogType, R.string.select_sim_for_data, in onCreateDialog_twoSubscriptionsNoAskEveryTime_twoSubsForDisplay()
86 mFragment = spy(SimListDialogFragment.newInstance(dialogType, R.string.select_sim_for_data, in onSubscriptionsChanged_dialogUpdates()
103 mFragment = spy(SimListDialogFragment.newInstance(dialogType, R.string.select_sim_for_sms, in onCreateDialog_twoSubscriptionsAskEveryTime_threeSubsForDisplay()

12345678910>>...30