Home
last modified time | relevance | path

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

123

/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowTextViewTest.java60 private TextView textView; field in ShadowTextViewTest
67 textView = new TextView(activity); in setUp()
68 activity.setContentView(textView); in setUp()
75 textView.setOnEditorActionListener(actionListener); in shouldTriggerTheImeListener()
77 textView.onEditorAction(EditorInfo.IME_ACTION_GO); in shouldTriggerTheImeListener()
79 assertThat(actionListener.textView).isSameInstanceAs(textView); in shouldTriggerTheImeListener()
87 textView.setOnEditorActionListener(actionListener); in shouldCreateGetterForEditorActionListener()
89 assertThat(shadowOf(textView).getOnEditorActionListener()).isSameInstanceAs(actionListener); in shouldCreateGetterForEditorActionListener()
95 textView.setAutoLinkMask(Linkify.ALL); in testGetUrls()
96 textView.setText("here's some text http://google.com/\nblah\thttp://another.com/123?456 blah"); in testGetUrls()
[all …]
DViewInnerTextTest.java28 top.addView(textView("blah")); in testInnerText()
30 top.addView(textView("a b c")); in testInnerText()
35 innerLayout.addView(textView("d e f")); in testInnerText()
36 innerLayout.addView(textView("g h i")); in testInnerText()
37 innerLayout.addView(textView("")); in testInnerText()
38 innerLayout.addView(textView(null)); in testInnerText()
39 innerLayout.addView(textView("jkl!")); in testInnerText()
41 top.addView(textView("mnop")); in testInnerText()
49 top.addView(textView("blah", View.VISIBLE)); in shouldOnlyIncludeViewTextViewsText()
50 top.addView(textView("blarg", View.GONE)); in shouldOnlyIncludeViewTextViewsText()
[all …]
DShadowCountingAdapter.java38 TextView textView = new TextView(ApplicationProvider.getApplicationContext()); in getView() local
39 textView.setText("Item " + position); in getView()
40 return textView; in getView()
/external/setupdesign/main/src/com/google/android/setupdesign/util/
DTextViewPartnerStyler.java47 @NonNull TextView textView, @NonNull TextPartnerConfigs textPartnerConfigs) { in applyPartnerCustomizationStyle()
49 if (textView == null || textPartnerConfigs == null) { in applyPartnerCustomizationStyle()
53 Context context = textView.getContext(); in applyPartnerCustomizationStyle()
61 textView.setTextColor(textColor); in applyPartnerCustomizationStyle()
68 && !PartnerStyleHelper.useDynamicColor(textView)) { in applyPartnerCustomizationStyle()
73 textView.setLinkTextColor(linkTextColor); in applyPartnerCustomizationStyle()
84 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize); in applyPartnerCustomizationStyle()
127 fontFamily = textView.getTypeface(); in applyPartnerCustomizationStyle()
135 textView.setTypeface(font); in applyPartnerCustomizationStyle()
138 if (textView != null && isFontVariationSupported(fontVariationSettings)) { in applyPartnerCustomizationStyle()
[all …]
/external/robolectric/integration_tests/androidx_test/src/sharedTest/java/org/robolectric/integrationtests/axt/
DEspressoTest.java143 public void textView() { in textView() method in EspressoTest
158 TextView textView = (TextView) view; in textViewWithPositiveScaleX() local
160 assertThat(textView.getTextScaleX()).isEqualTo(expectedTextScaleX); in textViewWithPositiveScaleX()
161 float scaledWidth = textView.getPaint().measureText(textView.getText().toString()); in textViewWithPositiveScaleX()
162 textView.setTextScaleX(1f); in textViewWithPositiveScaleX()
163 float unscaledWidth = textView.getPaint().measureText(textView.getText().toString()); in textViewWithPositiveScaleX()
173 TextView textView = (TextView) view; in textViewWithNegativeScaleX() local
174 assertThat(textView.getTextScaleX()).isEqualTo(-1.5f); in textViewWithNegativeScaleX()
175 float scaledWidth = textView.getPaint().measureText(textView.getText().toString()); in textViewWithNegativeScaleX()
176 textView.setTextScaleX(1f); in textViewWithNegativeScaleX()
[all …]
/external/zxing/android/src/com/google/zxing/client/android/result/supplement/
DSupplementalInfoRetriever.java56 public static void maybeInvokeRetrieval(TextView textView, in maybeInvokeRetrieval() argument
63 new URIResultInfoRetriever(textView, (URIParsedResult) result, historyManager, context); in maybeInvokeRetrieval()
66 new TitleRetriever(textView, (URIParsedResult) result, historyManager); in maybeInvokeRetrieval()
72 new ProductResultInfoRetriever(textView, productID, historyManager, context); in maybeInvokeRetrieval()
77 new ProductResultInfoRetriever(textView, isbn, historyManager, context); in maybeInvokeRetrieval()
80 new BookResultInfoRetriever(textView, isbn, historyManager, context); in maybeInvokeRetrieval()
88 SupplementalInfoRetriever(TextView textView, HistoryManager historyManager) { in SupplementalInfoRetriever() argument
89 textViewRef = new WeakReference<>(textView); in SupplementalInfoRetriever()
107 TextView textView = textViewRef.get(); in onPostExecute() local
108 if (textView != null) { in onPostExecute()
[all …]
/external/pytorch/ios/TestApp/TestApp/
DViewController.mm9 @property(nonatomic, strong) UITextView* textView;
18 self.textView = [[UITextView alloc] initWithFrame:self.view.bounds];
19 …self.textView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeigh…
20 [self.view addSubview:self.textView];
44 self.textView.text = @"Start benchmarking...\n";
48 self.textView.text = [self.textView.text stringByAppendingString:text];
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/util/
DDebugTextViewHelper.java36 private final TextView textView; field in DebugTextViewHelper
46 public DebugTextViewHelper(ExoPlayer player, TextView textView) { in DebugTextViewHelper() argument
49 this.textView = textView; in DebugTextViewHelper()
75 textView.removeCallbacks(this); in stop()
110 textView.setText(getDebugString()); in updateAndPost()
111 textView.removeCallbacks(this); in updateAndPost()
112 textView.postDelayed(this, REFRESH_INTERVAL_MS); in updateAndPost()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/util/
DDebugTextViewHelper.java36 private final TextView textView; field in DebugTextViewHelper
46 public DebugTextViewHelper(ExoPlayer player, TextView textView) { in DebugTextViewHelper() argument
49 this.textView = textView; in DebugTextViewHelper()
75 textView.removeCallbacks(this); in stop()
110 textView.setText(getDebugString()); in updateAndPost()
111 textView.removeCallbacks(this); in updateAndPost()
112 textView.postDelayed(this, REFRESH_INTERVAL_MS); in updateAndPost()
/external/libchrome/base/android/java/src/org/chromium/base/
DApiCompatibilityUtils.java194 public static Drawable[] getCompoundDrawablesRelative(TextView textView) { in getCompoundDrawablesRelative() argument
196 return textView.getCompoundDrawablesRelative(); in getCompoundDrawablesRelative()
198 return textView.getCompoundDrawables(); in getCompoundDrawablesRelative()
206 public static void setCompoundDrawablesRelative(TextView textView, Drawable start, Drawable top, in setCompoundDrawablesRelative() argument
212 boolean isRtl = isLayoutRtl(textView); in setCompoundDrawablesRelative()
213 textView.setCompoundDrawables(isRtl ? end : start, top, isRtl ? start : end, bottom); in setCompoundDrawablesRelative()
215 textView.setCompoundDrawablesRelative(start, top, end, bottom); in setCompoundDrawablesRelative()
217 textView.setCompoundDrawables(start, top, end, bottom); in setCompoundDrawablesRelative()
225 public static void setCompoundDrawablesRelativeWithIntrinsicBounds(TextView textView, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
229 boolean isRtl = isLayoutRtl(textView); in setCompoundDrawablesRelativeWithIntrinsicBounds()
[all …]
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DLogFragment.java41 TextView textView; field in LogFragment
69 textView = (TextView) activity.findViewById(R.id.txt_log); in onResume()
70 textView.setMovementMethod(new ScrollingMovementMethod()); in onResume()
71 textView.setText(logger.getLogText()); in onResume()
82 textView.append(msg + "\n"); in appendLogText()
DMidiFragment.java37 private TextView textView; field in MidiFragment
55 textView = (TextView) view.findViewById(R.id.txt_box_midi); in onCreateView()
59 textView.setMovementMethod(new ScrollingMovementMethod()); in onCreateView()
71 textView.setText(logger.getLogText()); in onResume()
112 textView.append(msg + "\n");
/external/accessibility-test-framework/src/main/java/com/google/android/apps/common/testing/accessibility/framework/uielement/
DAccessibilityNodeInfoExtraDataExtractor.java86 ImmutableList<Rect> getTextCharacterLocations(TextView textView) { in getTextCharacterLocations() argument
87 return getTextCharacterLocations(textView, characterLocationArgMaxLength); in getTextCharacterLocations()
93 TextView textView, @Nullable Integer characterLocationArgMaxLength) { in getTextCharacterLocations() argument
95 ? getTextCharacterLocationsAux(textView, characterLocationArgMaxLength) in getTextCharacterLocations()
101 TextView textView, @Nullable Integer maxCharacterLocationLength) { in getTextCharacterLocationsAux() argument
102 CharSequence text = textView.getText(); in getTextCharacterLocationsAux()
103 if (TextUtils.isEmpty(text) || (textView.getLayout() == null)) { in getTextCharacterLocationsAux()
109 textView.addExtraDataToAccessibilityNodeInfo( in getTextCharacterLocationsAux()
DViewHierarchyElementAndroid.java502 TextView textView = (TextView) view; in Builder() local
503 this.textColor = textView.getCurrentTextColor(); in Builder()
505 (textView.getTypeface() != null) ? textView.getTypeface().getStyle() : null; in Builder()
557 TextView textView = (TextView) fromView; in Builder() local
558 CharSequence text = textView.getText(); in Builder()
571 this.textSize = textView.getTextSize(); in Builder()
572 this.textSizeUnit = AT_30 ? textView.getTextSizeUnit() : null; in Builder()
573 this.textColor = textView.getCurrentTextColor(); in Builder()
575 (textView.getTypeface() != null) ? textView.getTypeface().getStyle() : null; in Builder()
576 this.hintText = SpannableStringAndroid.valueOf(textView.getHint()); in Builder()
[all …]
/external/accessibility-test-framework/src/main/java/com/google/android/apps/common/testing/accessibility/framework/checks/
DTextSizeCheck.java466 ViewHierarchyElement textView, in checkTextViewWithScalingText() argument
469 LayoutParams layoutParams = textView.getLayoutParams(); in checkTextViewWithScalingText()
474 ResultMetadata metadata = metadataWithOrigin(textView); in checkTextViewWithScalingText()
475 if (textView.isAgainstScrollableEdge()) { in checkTextViewWithScalingText()
480 metadata, textView.getBoundsInScreen(), union(textView.getTextCharacterLocations())); in checkTextViewWithScalingText()
483 textView.getWindow().getAccessibilityHierarchy().getDeviceState().getFontScale(); in checkTextViewWithScalingText()
500 (!textView.isAgainstScrollableEdge() in checkTextViewWithScalingText()
507 CHECK_CLASS, resultType, textView, resultId, metadata); in checkTextViewWithScalingText()
510 checkViewGroupWithTextViewWithScalingText(textView.getParentView(), textView, collector); in checkTextViewWithScalingText() local
520 ViewHierarchyElement textView, in checkViewGroupWithTextViewWithScalingText() argument
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DConversationDialogActivity.java85 private void formatPages(Conversation conversation, TextView textView) { in formatPages() argument
87 final int maxWidth = textView.getWidth(); in formatPages()
88 final int maxHeight = textView.getHeight(); in formatPages()
89 paint.setTextSize(textView.getTextSize()); in formatPages()
90 paint.setTypeface(textView.getTypeface()); in formatPages()
204 TextView textView = (TextView)findViewById(R.id.typewritertext); in processText() local
205 formatPages(mConversation, textView); in processText()
/external/robolectric/integration_tests/mockito-experimental/src/test/java/org/robolectric/integrationtests/mockito/experimental/
DMockitoMockFinalsTest.java22 @Mock TextView textView; field in MockitoMockFinalsTest
27 when(textView.getLayout()).thenReturn(layout); in testInjection()
28 assertThat(textView.getLayout()).isSameInstanceAs(layout); in testInjection()
/external/cronet/tot/components/cronet/android/sample/src/org/chromium/cronet_sample_apk/
DCronetSampleActivity.java66 TextView textView = (TextView) view; in updateNavigationBarUi() local
70 textView.setTextAppearance( in updateNavigationBarUi()
71 textView.getContext(), in updateNavigationBarUi()
79 for (Drawable drawable : textView.getCompoundDrawables()) { in updateNavigationBarUi()
/external/cronet/stable/components/cronet/android/sample/src/org/chromium/cronet_sample_apk/
DCronetSampleActivity.java66 TextView textView = (TextView) view; in updateNavigationBarUi() local
70 textView.setTextAppearance( in updateNavigationBarUi()
71 textView.getContext(), in updateNavigationBarUi()
79 for (Drawable drawable : textView.getCompoundDrawables()) { in updateNavigationBarUi()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/
DMainActivity.java204 TextView view = holder.textView; in onBindViewHolder()
274 public final TextView textView; field in MainActivity.QueueItemViewHolder
277 public QueueItemViewHolder(TextView textView) { in QueueItemViewHolder() argument
278 super(textView); in QueueItemViewHolder()
279 this.textView = textView; in QueueItemViewHolder()
280 textView.setOnClickListener(this); in QueueItemViewHolder()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/
DMainActivity.java204 TextView view = holder.textView; in onBindViewHolder()
274 public final TextView textView; field in MainActivity.QueueItemViewHolder
277 public QueueItemViewHolder(TextView textView) { in QueueItemViewHolder() argument
278 super(textView); in QueueItemViewHolder()
279 this.textView = textView; in QueueItemViewHolder()
280 textView.setOnClickListener(this); in QueueItemViewHolder()
/external/executorch/examples/demo-apps/android/ExecuTorchDemo/app/src/main/java/com/example/executorchdemo/
DClassificationActivity.java91 TextView textView = findViewById(R.id.text); in run() local
92 textView.setText(className); in run()
112 TextView textView = findViewById(R.id.text); in onCreate()
113 textView.setText("Running"); in onCreate()
/external/tensorflow/tensorflow/lite/java/ovic/demo/app/
DOvicBenchmarkerActivity.java70 private TextView textView = null; field in OvicBenchmarkerActivity
80 textView = (TextView) findViewById(R.id.textView); in onCreate()
193 if (textView != null) { in benchmarkSession()
195 textView.setText( in benchmarkSession()
204 textView.setText("Benchmarker failed to run on more than one images."); in benchmarkSession()
/external/lottie/sample/src/main/kotlin/com/airbnb/lottie/samples/views/
DControlBarItemToggleView.kt35 binding.textView.text = getText(textRes) in <lambda>()
59 fun getText() = binding.textView.text.toString() in getText()
62 binding.textView.text = text in getText()
/external/robolectric/robolectric/src/test/java/org/robolectric/
DQualifiersTest.java93 TextView textView = view.findViewById(R.id.text1); in inflateLayout_defaultsTo_sw320dp() local
94 assertThat(textView.getText().toString()).isEqualTo("320"); in inflateLayout_defaultsTo_sw320dp()
106 TextView textView = view.findViewById(R.id.text1); in inflateLayout_overridesTo_sw720dp() local
107 assertThat(textView.getText().toString()).isEqualTo("720"); in inflateLayout_overridesTo_sw720dp()

123