Home
last modified time | relevance | path

Searched refs:Factory (Results 1 – 25 of 35) sorted by relevance

12

/cts/tests/tests/text/src/android/text/cts/
DSpannable_FactoryTest.java25 import android.text.Spannable.Factory;
40 Factory factory = Spannable.Factory.getInstance(); in testNewSpannable()
50 Factory factory = Spannable.Factory.getInstance(); in testNewSpannableNull()
56 Spannable.Factory factory = Spannable.Factory.getInstance(); in testGetInstance()
58 assertSame(factory, Spannable.Factory.getInstance()); in testGetInstance()
DEditable_FactoryTest.java23 import android.text.Editable.Factory;
35 private Factory mFactory;
43 mFactory = new Editable.Factory(); in testNewEditable()
51 mFactory = Factory.getInstance(); in testGetInstance()
52 assertTrue(mFactory instanceof Editable.Factory); in testGetInstance()
/cts/tests/tests/content/src/android/content/pm/cts/
DIncrementalDeviceConnection.java157 static class Factory implements IDeviceConnection.Factory { class in IncrementalDeviceConnection
161 static Factory reliable() { in reliable()
162 return new Factory(ConnectionType.RELIABLE, true); in reliable()
165 static Factory ureliable() { in ureliable()
166 return new Factory(ConnectionType.UNRELIABLE, false); in ureliable()
169 static Factory reliableExpectInstallationFailure() { in reliableExpectInstallationFailure()
170 return new Factory(ConnectionType.RELIABLE, false); in reliableExpectInstallationFailure()
173 private Factory(ConnectionType connectionType, boolean expectInstallationSuccess) { in Factory() method in IncrementalDeviceConnection.Factory
DPackageManagerShellCommandIncrementalTest.java285 IncrementalDeviceConnection.Factory.reliable()); in testSpaceAllocatedForPackage()
364 IncrementalDeviceConnection.Factory.reliable()); in testInstallWithStreaming()
426 IncrementalDeviceConnection.Factory.reliableExpectInstallationFailure()); in installWithBlockFilter()
513 IncrementalDeviceConnection.Factory.reliable()); in testInstallWithStreamingAndCompression()
535 IncrementalDeviceConnection.Factory.ureliable()); in testInstallWithStreamingUnreliableConnection()
843 IncrementalDeviceConnection.Factory.reliable()); in testInstallWithIdSigNoDigesting()
980 IncrementalDeviceConnection.Factory.reliable()); in testInstallWithIdSigStreamPerUidTimeoutsIncompleteData()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/notifications/
DNotificationListenerQuerySubject.kt21 import com.google.common.truth.Subject.Factory in <lambda>()
66 …fun notificationListenerQuery(): Factory<NotificationListenerQuerySubject, NotificationListenerQue… in <lambda>()
67 return Factory { metadata: FailureMetadata, actual: NotificationListenerQuery -> in <lambda>()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DInMatcher.java20 import org.hamcrest.Factory;
61 @Factory
66 @Factory
/cts/hostsidetests/inputmethodservice/deviceside/provider/src/android/inputmethodservice/cts/provider/
DUriHelper.java42 static final class Factory { class in UriHelper
50 private Factory(FactoryBuilder builder) { in Factory() method in UriHelper.Factory
91 Factory build() { in build()
95 return new Factory(this); in build()
DEventProvider.java50 private UriHelper.Factory mUriFactory;
55 mUriFactory = UriHelper.Factory.builder() in onCreate()
/cts/tests/tests/text/src/android/text/method/cts/
DCharacterPickerDialogTest.java68 final Editable content = Editable.Factory.getInstance().newEditable(str); in testConstructor()
77 final Editable content = Editable.Factory.getInstance().newEditable(str); in testConstructorNullContext()
87 Editable text = Editable.Factory.getInstance().newEditable(str); in testOnItemClick()
112 text = Editable.Factory.getInstance().newEditable(str); in testOnItemClick()
129 final Editable content = Editable.Factory.getInstance().newEditable(str); in testOnClick()
DBaseKeyListenerTest.java59 Editable content = Editable.Factory.getInstance().newEditable(TEST_STRING); in verifyBackspace()
80 content = Editable.Factory.getInstance().newEditable(testText); in verifyBackspace()
98 content = Editable.Factory.getInstance().newEditable(testText); in verifyBackspace()
129 Editable content = Editable.Factory.getInstance().newEditable(LONG_TEXT_FOR_ALT_BACKSPACE); in testBackspace_withAlt()
150 Editable content = Editable.Factory.getInstance().newEditable(LONG_TEXT_FOR_ALT_BACKSPACE); in testForwardDelete_withAlt()
208 Editable content = Editable.Factory.getInstance().newEditable(testText); in testBackspace_withCtrl()
216 content = Editable.Factory.getInstance().newEditable(testText); in testBackspace_withCtrl()
251 content = Editable.Factory.getInstance().newEditable(testText); in testBackspace_withCtrl()
274 content = Editable.Factory.getInstance().newEditable(testText); in testBackspace_withCtrl()
300 content = Editable.Factory.getInstance().newEditable(testText); in testBackspace_withCtrl()
[all …]
DMetaKeyKeyListenerTest.java56 final Editable content = Editable.Factory.getInstance().newEditable(str); in testPressKey()
82 final Editable content = Editable.Factory.getInstance().newEditable(str); in testReleaseKey()
106 Spannable content = Editable.Factory.getInstance().newEditable(str); in testAdjustMetaAfterKeypress()
115 content = Editable.Factory.getInstance().newEditable(str); in testAdjustMetaAfterKeypress()
124 content = Editable.Factory.getInstance().newEditable(str); in testAdjustMetaAfterKeypress()
151 Spannable text = Editable.Factory.getInstance().newEditable(str); in testResetMetaState()
159 text = Editable.Factory.getInstance().newEditable(str); in testResetMetaState()
167 text = Editable.Factory.getInstance().newEditable(str); in testResetMetaState()
313 Editable text = Editable.Factory.getInstance().newEditable(str); in testClearMetaKeyState()
321 text = Editable.Factory.getInstance().newEditable(str); in testClearMetaKeyState()
[all …]
DEditorState.java175 mText = Editable.Factory.getInstance().newEditable(spannable); in setByString()
/cts/libs/rollback/src/com/android/cts/rollback/lib/
DRollbackInfoSubject.java48 public static Subject.Factory<RollbackInfoSubject, RollbackInfo> rollbacks() { in rollbacks()
52 private static final Subject.Factory<RollbackInfoSubject, RollbackInfo> SUBJECT_FACTORY =
53 new Subject.Factory<RollbackInfoSubject, RollbackInfo>() {
/cts/libs/install/src/com/android/cts/install/lib/
DPackageInstallerSessionInfoSubject.java36 private static Subject.Factory<PackageInstallerSessionInfoSubject,
38 return new Subject.Factory<PackageInstallerSessionInfoSubject, in sessions()
/cts/tests/tests/car/src/android/car/cts/utils/watchdog/
DResourceOveruseConfigurationSubject.java34 private static final Subject.Factory<
47 public static Subject.Factory<ResourceOveruseConfigurationSubject,
DIoOveruseConfigurationSubject.java39 private static final Subject.Factory<
67 public static Subject.Factory<IoOveruseConfigurationSubject,
/cts/hostsidetests/car/app/src/android/car/cts/app/watchdog/
DResourceOveruseConfigurationSubject.java35 private static final Subject.Factory<
54 public static Subject.Factory<ResourceOveruseConfigurationSubject,
DIoOveruseConfigurationSubject.java39 private static final Subject.Factory<
67 public static Subject.Factory<IoOveruseConfigurationSubject,
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DPhoneNumberUtilsTest.java259 Editable jpEditNumber = Editable.Factory.getInstance().newEditable("0377777777"); in testFormatMethods()
262 jpEditNumber = Editable.Factory.getInstance().newEditable("09077777777"); in testFormatMethods()
265 jpEditNumber = Editable.Factory.getInstance().newEditable("0120777777"); in testFormatMethods()
268 jpEditNumber = Editable.Factory.getInstance().newEditable("+81377777777"); in testFormatMethods()
271 jpEditNumber = Editable.Factory.getInstance().newEditable("+819077777777"); in testFormatMethods()
278 Editable editNumber = Editable.Factory.getInstance().newEditable("0377777777"); in testFormatMethods()
281 editNumber = Editable.Factory.getInstance().newEditable("+177777777"); in testFormatMethods()
284 editNumber = Editable.Factory.getInstance().newEditable("+8177777777"); in testFormatMethods()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/controls/
DControlsPanelTestUtils.java32 Spannable spannable = Spannable.Factory.getInstance().newSpannable(text); in addImage()
/cts/common/device-side/bedstead/metricsrecorder/src/main/java/com/android/bedstead/metricsrecorder/truth/
DMetricQueryBuilderSubject.java36 public static Factory<MetricQueryBuilderSubject, MetricQueryBuilder> MetricQueryBuilder() { in MetricQueryBuilder()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/truth/
DEventLogsSubject.java38 public static <F extends Event> Factory<EventLogsSubject<F>, EventLogs<F>> eventLogs() { in eventLogs()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DInputConnectionTestUtils.java124 final Editable editable = Editable.Factory.getInstance().newEditable(source);
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvTrackInfoSubject.java51 public static Factory<TvTrackInfoSubject, TvTrackInfo> tvTrackInfos() { in tvTrackInfos()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DBaseInputConnectionTest.java134 Editable inputText = Editable.Factory.getInstance().newEditable(str); in testOpTextMethods()
172 Editable inputText = Editable.Factory.getInstance().newEditable(str); in testFinishComposingText()
601 Editable.Factory.getInstance().newEditable("test")); in testTakeSnapshotForNoSelection()

12