Home
last modified time | relevance | path

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

/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()
DStaticLayoutTest.java570 Editable editable = Editable.Factory.getInstance().newEditable("123\t\n555"); in testImmutableStaticLayout()
/cts/tests/tests/content/src/android/content/pm/cts/
DIncrementalDeviceConnection.java159 static class Factory implements IDeviceConnection.Factory { class in IncrementalDeviceConnection
163 static Factory reliable() { in reliable()
164 return new Factory(ConnectionType.RELIABLE, true); in reliable()
167 static Factory ureliable() { in ureliable()
168 return new Factory(ConnectionType.UNRELIABLE, false); in ureliable()
171 static Factory reliableExpectInstallationFailure() { in reliableExpectInstallationFailure()
172 return new Factory(ConnectionType.RELIABLE, false); in reliableExpectInstallationFailure()
175 private Factory(ConnectionType connectionType, boolean expectInstallationSuccess) { in Factory() method in IncrementalDeviceConnection.Factory
DPackageManagerShellCommandIncrementalTest.java234 IncrementalDeviceConnection.Factory.reliable()); in testSpaceAllocatedForPackage()
311 IncrementalDeviceConnection.Factory.reliable()); in testInstallWithStreaming()
372 IncrementalDeviceConnection.Factory.reliableExpectInstallationFailure()); in installWithBlockFilter()
459 IncrementalDeviceConnection.Factory.reliable()); in testInstallWithStreamingAndCompression()
481 IncrementalDeviceConnection.Factory.ureliable()); in testInstallWithStreamingUnreliableConnection()
770 IncrementalDeviceConnection.Factory.reliable()); in testInstallWithIdSigStreamPerUidTimeoutsIncompleteData()
DResourcesHardeningTest.java387 IncrementalDeviceConnection.Factory.reliable()); in startInstallSession()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DInMatcher.java20 import org.hamcrest.Factory;
61 @Factory
66 @Factory
/cts/tests/tests/text/src/android/text/method/cts/
DCharacterPickerDialogTest.java57 final Editable content = Editable.Factory.getInstance().newEditable(str); in testConstructor()
66 final Editable content = Editable.Factory.getInstance().newEditable(str); in testConstructorNullContext()
76 Editable text = Editable.Factory.getInstance().newEditable(str); in testOnItemClick()
101 text = Editable.Factory.getInstance().newEditable(str); in testOnItemClick()
118 final Editable content = Editable.Factory.getInstance().newEditable(str); in testOnClick()
DBaseKeyListenerTest.java58 Editable content = Editable.Factory.getInstance().newEditable(TEST_STRING); in verifyBackspace()
79 content = Editable.Factory.getInstance().newEditable(testText); in verifyBackspace()
97 content = Editable.Factory.getInstance().newEditable(testText); in verifyBackspace()
121 Editable content = Editable.Factory.getInstance().newEditable(TEST_STRING); in testBackspace_withAlt()
129 content = Editable.Factory.getInstance().newEditable(TEST_STRING); in testBackspace_withAlt()
136 content = Editable.Factory.getInstance().newEditable(TEST_STRING); in testBackspace_withAlt()
186 Editable content = Editable.Factory.getInstance().newEditable(testText); in testBackspace_withCtrl()
194 content = Editable.Factory.getInstance().newEditable(testText); in testBackspace_withCtrl()
229 content = Editable.Factory.getInstance().newEditable(testText); in testBackspace_withCtrl()
252 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/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/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/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DPackageInstallerSessionInfoSubject.java36 private static Subject.Factory<PackageInstallerSessionInfoSubject,
38 return new Subject.Factory<PackageInstallerSessionInfoSubject, in sessions()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DPhoneNumberUtilsTest.java241 Editable jpEditNumber = Editable.Factory.getInstance().newEditable("0377777777"); in testFormatMethods()
244 jpEditNumber = Editable.Factory.getInstance().newEditable("09077777777"); in testFormatMethods()
247 jpEditNumber = Editable.Factory.getInstance().newEditable("0120777777"); in testFormatMethods()
250 jpEditNumber = Editable.Factory.getInstance().newEditable("+81377777777"); in testFormatMethods()
253 jpEditNumber = Editable.Factory.getInstance().newEditable("+819077777777"); in testFormatMethods()
260 Editable editNumber = Editable.Factory.getInstance().newEditable("0377777777"); in testFormatMethods()
263 editNumber = Editable.Factory.getInstance().newEditable("+177777777"); in testFormatMethods()
266 editNumber = Editable.Factory.getInstance().newEditable("+8177777777"); in testFormatMethods()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/notifications/
DNotificationListenerQuerySubject.java44 …public static Factory<NotificationListenerQuerySubject, NotificationListenerQuery> notificationLis… in notificationListenerQuery()
/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/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.java125 Editable inputText = Editable.Factory.getInstance().newEditable(str); in testOpTextMethods()
163 Editable inputText = Editable.Factory.getInstance().newEditable(str); in testFinishComposingText()
202 final Editable editable = Editable.Factory.getInstance().newEditable(source); in createConnectionWithSelection()
/cts/tests/tests/view/src/android/view/cts/
DLayoutInflaterTest.java43 import android.view.LayoutInflater.Factory;
69 private final Factory mFactory = (String name, Context context, AttributeSet attrs) -> null;
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DLoginActivityTest.java675 Editable newEditable = Editable.Factory.getInstance().newEditable(s); in appendText()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java1399 final Editable.Factory mockEditableFactory = spy(new Editable.Factory()); in testSetEditableFactory()
1436 final Spannable.Factory mockSpannableFactory = spy(new Spannable.Factory()); in testSetSpannableFactory()
/cts/tools/release-parser/tests/resources/
DShell.apk.pb.txt5551 return_type: "android.view.LayoutInflater.Factory"