Home
last modified time | relevance | path

Searched refs:newInstance (Results 1 – 25 of 789) 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 …]
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/DeskClock/src/com/android/deskclock/alarms/
DAlarmUpdateHandler.kt112 val newInstance = AlarmInstance(instance) in <lambda>() constant
115 newInstance.mVibrate = alarm.vibrate in <lambda>()
116 newInstance.mRingtone = alarm.alert in <lambda>()
117 newInstance.mLabel = alarm.label in <lambda>()
121 AlarmInstance.updateInstance(cr, newInstance) in <lambda>()
123 AlarmNotifications.updateNotification(mAppContext, newInstance) in <lambda>()
202 var newInstance = alarm.createInstanceAfter(Calendar.getInstance()) in <lambda>() variable
203 newInstance = AlarmInstance.addInstance(cr, newInstance) in <lambda>()
205 AlarmStateManager.registerInstance(mAppContext, newInstance, true) in <lambda>()
206 return newInstance in <lambda>()
/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/Settings/tests/robotests/src/com/android/settings/password/
DSetupSkipDialogTest.java59 SetupSkipDialog.newInstance(false, false, false, false, false, false); in frpMessages_areShownCorrectly_whenNotSupported()
72 SetupSkipDialog.newInstance(true, false, false, false, false, false); in frpMessages_areShownCorrectly_whenSupported()
85 SetupSkipDialog.newInstance(true, false, false, false, true, false); in dialogMessage_whenSkipPinSetupForFace_shouldShownCorrectly()
98 SetupSkipDialog.newInstance(true, false, true, false, true, false); in dialogMessage_whenSkipPasswordSetupForFace_shouldShownCorrectly()
111 SetupSkipDialog.newInstance(true, true, false, false, true, false); in dialogMessage_whenSkipPatternSetupForFace_shouldShownCorrectly()
124 SetupSkipDialog.newInstance(true, false, false, true, false, false); in dialogMessage_whenSkipPinSetupForFingerprint_shouldShownCorrectly()
137 SetupSkipDialog.newInstance(true, false, true, true, false, false); in dialogMessage_whenSkipPasswordSetupForFingerprint_shouldShownCorrectly()
150 SetupSkipDialog.newInstance(true, true, false, true, false, false); in dialogMessage_whenSkipPatternSetupForFingerprint_shouldShownCorrectly()
163 SetupSkipDialog.newInstance(true, false, false, false, false, true); in dialogMessage_whenSkipPinSetupForBiometrics_shouldShownCorrectly()
176 SetupSkipDialog.newInstance(true, false, true, false, false, true); in dialogMessage_whenSkipPasswordSetupForBiometrics_shouldShownCorrectly()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/nsd/
DWifiP2pDnsSdServiceRequestTest.java39 request = WifiP2pDnsSdServiceRequest.newInstance(); in testNewInstance()
42 request = WifiP2pDnsSdServiceRequest.newInstance(SERVICE_TYPE); in testNewInstance()
45 request = WifiP2pDnsSdServiceRequest.newInstance(SERVICE_NAME, SERVICE_TYPE); in testNewInstance()
49 request = WifiP2pDnsSdServiceRequest.newInstance(null); in testNewInstance()
57 request = WifiP2pDnsSdServiceRequest.newInstance(SERVICE_NAME, null); in testNewInstance()
65 request = WifiP2pDnsSdServiceRequest.newInstance(null, SERVICE_TYPE); in testNewInstance()
DWifiP2pUpnpServiceInfoTest.java53 info = WifiP2pUpnpServiceInfo.newInstance( in testNewInstance()
57 info = WifiP2pUpnpServiceInfo.newInstance( in testNewInstance()
62 info = WifiP2pUpnpServiceInfo.newInstance( in testNewInstance()
71 info = WifiP2pUpnpServiceInfo.newInstance( in testNewInstance()
DWifiP2pDnsSdServiceInfoTest.java55 info = WifiP2pDnsSdServiceInfo.newInstance( in testNewInstance()
61 info = WifiP2pDnsSdServiceInfo.newInstance( in testNewInstance()
68 info = WifiP2pDnsSdServiceInfo.newInstance( in testNewInstance()
79 info = WifiP2pDnsSdServiceInfo.newInstance( in testNewInstance()
DWifiP2pUpnpServiceRequestTest.java36 request = WifiP2pUpnpServiceRequest.newInstance(); in testNewInstance()
39 request = WifiP2pUpnpServiceRequest.newInstance("ssdp:all"); in testNewInstance()
43 request = WifiP2pUpnpServiceRequest.newInstance(null); in testNewInstance()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DEntityHeaderControllerTest.java85 mController = EntityHeaderController.newInstance(mActivity, mFragment, null); in testBuildView_constructedWithoutView_shouldCreateNewView()
93 mController = EntityHeaderController.newInstance(mActivity, mFragment, null); in testBuildView_withContext_shouldBuildPreferenceAllowedBelowDivider()
103 mController = EntityHeaderController.newInstance(mActivity, mFragment, inputView); in testBuildView_constructedWithView_shouldReturnSameView()
118 mController = EntityHeaderController.newInstance(mActivity, mFragment, header); in bindViews_shouldBindAllData()
143 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in bindButton_hasEditClickListener_shouldShowButton()
170 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in bindButton_noEditClickListener_shouldNotShowButton()
188 mController = EntityHeaderController.newInstance(mActivity, mFragment, appLinks); in bindButton_noAppInfo_shouldNotAttachClickListener()
214 mController = EntityHeaderController.newInstance(mActivity, mFragment, appLinks); in bindButton_hasAppInfo_shouldAttachClickListener()
233 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in iconContentDescription_shouldWorkWithSetIcon()
247 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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/
DManagePermissionsActivity.java170 androidXFragment = AutoManageStandardPermissionsFragment.newInstance(); in onCreate()
175 .ManagePermissionsFragment.newInstance(); in onCreate()
196 androidXFragment = PermissionUsageV2WrapperFragment.newInstance( in onCreate()
214 androidXFragment = AutoPermissionUsageDetailsFragment.Companion.newInstance( in onCreate()
218 .newInstance(groupName, Long.MAX_VALUE, showSystem, sessionId, in onCreate()
317 androidXFragment = AutoAllAppPermissionsFragment.newInstance(packageName, in onCreate()
320 androidXFragment = AutoAppPermissionsFragment.newInstance(packageName, in onCreate()
324 androidXFragment = AppPermissionsFragmentWear.newInstance(packageName); in onCreate()
327 .AppPermissionsFragment.newInstance(packageName, userHandle); in onCreate()
372 AutoPermissionAppsFragment.newInstance(permissionGroupName, sessionId); in onCreate()
[all …]
/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/Settings/src/com/android/settings/sim/
DSimDialogActivity.java127 return CallsSimListDialogFragment.newInstance(dialogType, in createFragment()
132 return SimListDialogFragment.newInstance(dialogType, R.string.select_sim_for_sms, in createFragment()
139 return PreferredSimDialogFragment.newInstance(); in createFragment()
141 return SimListDialogFragment.newInstance(dialogType, R.string.select_sim_for_sms, in createFragment()
152 return SimListDialogFragment.newInstance(DATA_PICK, R.string.select_sim_for_data, in getDataPickDialogFramgent()
156 return SelectSpecificDataSimDialogFragment.newInstance(); in getDataPickDialogFramgent()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DUsageBytesThresholdPickerDialogTest.java64 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in dialogInit_validValue_showsCurrentValue()
76 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in dialogInit_lowInvalidValue_showsLowestPossibleValue()
88 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in positiveButtonClick_noChangeInValue_dialogListenerNotCalled()
105 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in positiveButtonClick_changeInValue_dialogListenerCalled()
128 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in getCurrentThreshold_aboveLimit_returnLimit()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/
DApplicationListFragment.java77 public static AdminGrantedPermissionCamera newInstance() { in newInstance() method in ApplicationListFragment.AdminGrantedPermissionCamera
88 public static AdminGrantedPermissionLocation newInstance() { in newInstance() method in ApplicationListFragment.AdminGrantedPermissionLocation
100 public static AdminGrantedPermissionMicrophone newInstance() { in newInstance() method in ApplicationListFragment.AdminGrantedPermissionMicrophone
111 public static EnterpriseInstalledPackages newInstance() { in newInstance() method in ApplicationListFragment.EnterpriseInstalledPackages
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DButtonActionDialogFragmentTest.java65 mFragment = spy(ButtonActionDialogFragment.newInstance(FORCE_STOP_ID)); in setUp()
80 spy(ButtonActionDialogFragment.newInstance(FORCE_STOP_ID)); in testOnClick_forceStop_dismissDialog()
94 ButtonActionDialogFragment fragment = ButtonActionDialogFragment.newInstance(FORCE_STOP_ID); in testOnCreateDialog_forceStopDialog()
115 ButtonActionDialogFragment fragment = ButtonActionDialogFragment.newInstance(DISABLE_ID); in testOnCreateDialog_disableDialog()
135 ButtonActionDialogFragment.newInstance(SPECIAL_DISABLE_ID); in testOnCreateDialog_specialDisableDialog()
/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
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipDialogFragmentTest.java133 mDialogFragment = BatteryTipDialogFragment.newInstance(mHighUsageTip, METRICS_KEY); in testOnCreateDialog_highUsageTip_fireHighUsageDialog()
149 mDialogFragment = BatteryTipDialogFragment.newInstance(mRestrictedOneAppTip, METRICS_KEY); in testOnCreateDialog_restrictOneAppTip_fireRestrictOneAppDialog()
168 mDialogFragment = BatteryTipDialogFragment.newInstance(mRestrictTwoAppsTip, METRICS_KEY); in testOnCreateDialog_restrictTwoAppsTip_fireRestrictTwoAppsDialog()
199 mDialogFragment = BatteryTipDialogFragment.newInstance(restrictSixAppsTip, METRICS_KEY); in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog()
219 mDialogFragment = BatteryTipDialogFragment.newInstance(mUnrestrictAppTip, METRICS_KEY); in testOnCreateDialog_unRestrictAppTip_fireUnRestrictDialog()
236 mDialogFragment = BatteryTipDialogFragment.newInstance(mSummaryTip, METRICS_KEY); in testOnCreateDialog_summaryTip_fireDialog()
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/nsd/
DWifiP2pServiceResponse.java194 public static List<WifiP2pServiceResponse> newInstance(String srcAddr, byte[] tlvsBin) { in newInstance() method in WifiP2pServiceResponse
241 resp = WifiP2pDnsSdServiceResponse.newInstance(status, in newInstance()
244 resp = WifiP2pUpnpServiceResponse.newInstance(status, in newInstance()
368 return WifiP2pDnsSdServiceResponse.newInstance(status,
371 return WifiP2pUpnpServiceResponse.newInstance(status,

12345678910>>...32