Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/view/inputmethod/
DEditorInfo.java45 public int inputType = TYPE_NULL; field in EditorInfo
397 switch (inputType&(TYPE_MASK_CLASS|TYPE_MASK_VARIATION)) { in makeCompatible()
399 inputType = TYPE_CLASS_TEXT|TYPE_TEXT_VARIATION_EMAIL_ADDRESS in makeCompatible()
400 | (inputType&TYPE_MASK_FLAGS); in makeCompatible()
403 inputType = TYPE_CLASS_TEXT|TYPE_TEXT_VARIATION_PASSWORD in makeCompatible()
404 | (inputType&TYPE_MASK_FLAGS); in makeCompatible()
408 inputType = TYPE_CLASS_NUMBER in makeCompatible()
409 | (inputType&TYPE_MASK_FLAGS); in makeCompatible()
419 pw.println(prefix + "inputType=0x" + Integer.toHexString(inputType) in dump()
445 dest.writeInt(inputType); in writeToParcel()
[all …]
/frameworks/base/docs/html/training/keyboard-input/
Dstyle.jd42 the <a href="{@docRoot}reference/android/widget/TextView.html#attr_android:inputType"
43 >{@code android:inputType}</a> attribute to the {@link android.widget.EditText
59 android:inputType="phone" />
73 android:inputType="textPassword"
78 <a href="{@docRoot}reference/android/widget/TextView.html#attr_android:inputType"
79 >{@code android:inputType}</a> attribute and
93 <p>The <a href="{@docRoot}reference/android/widget/TextView.html#attr_android:inputType"
94 >{@code android:inputType}</a> attribute allows you to specify various behaviors for the
100 <a href="{@docRoot}reference/android/widget/TextView.html#attr_android:inputType"
101 >{@code android:inputType}</a> attribute. For example,
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGuidedAction.java406 public B inputType(int inputType) { in inputType() argument
407 mInputType = inputType; in inputType()
416 public B descriptionInputType(int inputType) { in descriptionInputType() argument
417 mDescriptionInputType = inputType; in descriptionInputType()
427 public B editInputType(int inputType) { in editInputType() argument
428 mEditInputType = inputType; in editInputType()
437 public B descriptionEditInputType(int inputType) { in descriptionEditInputType() argument
438 mDescriptionEditInputType = inputType; in descriptionEditInputType()
940 final static boolean isPasswordVariant(int inputType) { in isPasswordVariant() argument
941 final int variation = inputType & InputType.TYPE_MASK_VARIATION; in isPasswordVariant()
/frameworks/support/compat/java/android/support/v4/widget/
DSearchViewCompat.java36 void setInputType(View searchView, int inputType); in setInputType() argument
69 public void setInputType(View searchView, int inputType) { in setInputType() argument
266 public void setInputType(View searchView, int inputType) {
268 SearchViewCompatIcs.setInputType(searchView, inputType);
335 public static void setInputType(View searchView, int inputType) {
336 IMPL.setInputType(searchView, inputType);
/frameworks/support/compat/ics/android/support/v4/widget/
DSearchViewCompatIcs.java50 public static void setInputType(View searchView, int inputType) { in setInputType() argument
51 ((SearchView) searchView).setInputType(inputType); in setInputType()
/frameworks/base/docs/html/guide/topics/ui/controls/
Dtext.jd67 with the <a href="{@docRoot}reference/android/widget/TextView.html#attr_android:inputType">{@code
68 android:inputType}</a> attribute. For example, if you want the user to input an email address, you
77 android:inputType="textEmailAddress" />
83 <a href="{@docRoot}reference/android/widget/TextView.html#attr_android:inputType"
84 >{@code android:inputType}</a>:</p>
102 <p>The <a href="{@docRoot}reference/android/widget/TextView.html#attr_android:inputType">{@code
103 android:inputType}</a> also allows you to specify certain keyboard behaviors, such as whether to
106 <p>The <a href="{@docRoot}reference/android/widget/TextView.html#attr_android:inputType">{@code
107 android:inputType}</a> attribute allows bitwise combinations so you can specify both a keyboard
135 android:inputType="textPostalAddress|
[all …]
/frameworks/rs/
DrsProgramFragment.cpp112 ObjectBaseRef<Type> inputType = Type::getTypeRef(rsc, constInput.get(), 1); in init() local
116 tmp[1] = (uintptr_t)inputType.get(); in init()
118 Allocation *constAlloc = Allocation::createAllocation(rsc, inputType.get(), in init()
DrsProgramVertex.cpp186 ObjectBaseRef<Type> inputType = Type::getTypeRef(rsc, constInput.get(), 1); in init() local
201 tmp[1] = (uintptr_t)inputType.get(); in init()
207 Allocation *alloc = Allocation::createAllocation(rsc, inputType.get(), in init()
DrsFont.cpp515 ObjectBaseRef<Type> inputType = Type::getTypeRef(mRSC, constInput.get(), 1); in initRenderState() local
519 tmp[1] = (uintptr_t)inputType.get(); in initRenderState()
523 mFontShaderFConstant.set(Allocation::createAllocation(mRSC, inputType.get(), in initRenderState()
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
DTextViewBindingAdapter.java89 int inputType = listener != null ? listener.getInputType() : 0; in setAutoText() local
90 if ((inputType & InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS) != 0) { in setAutoText()
92 } else if ((inputType & InputType.TYPE_TEXT_FLAG_CAP_WORDS) != 0) { in setAutoText()
94 } else if ((inputType & InputType.TYPE_TEXT_FLAG_CAP_SENTENCES) != 0) { in setAutoText()
104 int inputType = listener.getInputType(); in setCapitalize() local
105 boolean autoText = (inputType & InputType.TYPE_TEXT_FLAG_AUTO_CORRECT) != 0; in setCapitalize()
/frameworks/base/core/java/android/app/
DSearchDialog.java396 int inputType = mSearchable.getInputType(); in updateUI() local
399 if ((inputType & InputType.TYPE_MASK_CLASS) == InputType.TYPE_CLASS_TEXT) { in updateUI()
402 inputType &= ~InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE; in updateUI()
404 inputType |= InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE; in updateUI()
407 mSearchAutoComplete.setInputType(inputType); in updateUI()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DTextViewBindingAdapterTest.java199 int inputType = keyListener.getInputType(); in getCapitalization() local
200 if ((inputType & InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS) != 0) { in getCapitalization()
202 } else if ((inputType & InputType.TYPE_TEXT_FLAG_CAP_WORDS) != 0) { in getCapitalization()
204 } else if ((inputType & InputType.TYPE_TEXT_FLAG_CAP_SENTENCES) != 0) { in getCapitalization()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSearchView.java372 final int inputType = a.getInt(R.styleable.SearchView_android_inputType, -1); in SearchView() local
373 if (inputType != -1) { in SearchView()
374 setInputType(inputType); in SearchView()
500 public void setInputType(int inputType) { in setInputType() argument
501 mSearchSrcTextView.setInputType(inputType); in setInputType()
1167 int inputType = mSearchable.getInputType(); in updateSearchAutoComplete() local
1170 if ((inputType & InputType.TYPE_MASK_CLASS) == InputType.TYPE_CLASS_TEXT) { in updateSearchAutoComplete()
1173 inputType &= ~InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE; in updateSearchAutoComplete()
1175 inputType |= InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE; in updateSearchAutoComplete()
1182 inputType |= InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS; in updateSearchAutoComplete()
[all …]
/frameworks/base/core/java/android/widget/
DSearchView.java355 final int inputType = a.getInt(R.styleable.SearchView_inputType, -1); in SearchView() local
356 if (inputType != -1) { in SearchView()
357 setInputType(inputType); in SearchView()
463 public void setInputType(int inputType) { in setInputType() argument
464 mSearchSrcTextView.setInputType(inputType); in setInputType()
1207 int inputType = mSearchable.getInputType(); in updateSearchAutoComplete() local
1210 if ((inputType & InputType.TYPE_MASK_CLASS) == InputType.TYPE_CLASS_TEXT) { in updateSearchAutoComplete()
1213 inputType &= ~InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE; in updateSearchAutoComplete()
1215 inputType |= InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE; in updateSearchAutoComplete()
1222 inputType |= InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS; in updateSearchAutoComplete()
[all …]
DAutoCompleteTextView.java289 int inputType = getInputType(); in AutoCompleteTextView() local
290 if ((inputType & EditorInfo.TYPE_MASK_CLASS) == EditorInfo.TYPE_CLASS_TEXT) { in AutoCompleteTextView()
291 inputType |= EditorInfo.TYPE_TEXT_FLAG_AUTO_COMPLETE; in AutoCompleteTextView()
292 setRawInputType(inputType); in AutoCompleteTextView()
DTextView.java859 int inputType = EditorInfo.TYPE_NULL; in TextView() local
1117 inputType = a.getInt(attr, EditorInfo.TYPE_NULL); in TextView()
1221 inputType & (EditorInfo.TYPE_MASK_CLASS | EditorInfo.TYPE_MASK_VARIATION); in TextView()
1247 mEditor.mInputType = inputType != EditorInfo.TYPE_NULL in TextView()
1248 ? inputType in TextView()
1259 mEditor.mInputType = inputType != EditorInfo.TYPE_NULL in TextView()
1260 ? inputType : EditorInfo.TYPE_CLASS_TEXT; in TextView()
1261 } else if (inputType != EditorInfo.TYPE_NULL) { in TextView()
1262 setInputType(inputType, true); in TextView()
1264 singleLine = !isMultilineInputType(inputType); in TextView()
[all …]
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/
DInputTypeActivity.java142 private View buildEntryView(int inputType, int label) { in buildEntryView() argument
148 editText.setInputType(inputType); in buildEntryView()
/frameworks/support/compat/kitkat/android/support/v4/view/accessibility/
DAccessibilityNodeInfoCompatKitKat.java116 public static void setInputType(Object info, int inputType) { in setInputType() argument
117 ((AccessibilityNodeInfo) info).setInputType(inputType); in setInputType()
/frameworks/base/core/java/android/inputmethodservice/
DInputMethodService.java2444 if (ei.inputType == InputType.TYPE_NULL || in onUpdateExtractingVisibility()
2480 ei.inputType != InputType.TYPE_NULL); in onUpdateExtractingViews()
2516 if (ei.inputType == InputType.TYPE_NULL) { in onExtractingInputChanged()
2544 int inputType = ei.inputType; in startExtractingText() local
2545 if ((inputType&EditorInfo.TYPE_MASK_CLASS) in startExtractingText()
2547 if ((inputType&EditorInfo.TYPE_TEXT_FLAG_IME_MULTI_LINE) != 0) { in startExtractingText()
2548 inputType |= EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE; in startExtractingText()
2551 eet.setInputType(inputType); in startExtractingText()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImpl.cpp285 AudioPolicyInterface::input_type_t inputType; in getInputForAttr() local
310 &inputType); in getInputForAttr()
315 switch (inputType) { in getInputForAttr()
335 (int)inputType); in getInputForAttr()
/frameworks/base/docs/html/guide/topics/ui/
Dthemes.jd183 href="{@docRoot}reference/android/widget/TextView.html#attr_android:inputType">{@code
184 android:inputType}</a>, so where you might normally place the <a
185 href="{@docRoot}reference/android/widget/TextView.html#attr_android:inputType">{@code
186 android:inputType}</a>
190 android:inputType="number"
197 &lt;item name="android:inputType">number&lt;/item>
230 {@code <item name="android:inputType">}.</p>
/frameworks/base/docs/html/guide/topics/search/
Dsearchable-config.jd39 android:<a href="#inputType">inputType</a>="<em>{@link android.R.attr#inputType}</em>"
118 <dt><a name="inputType"></a><code>android:inputType</code></dt>
121 need this attribute. See {@link android.R.attr#inputType} for a list of suitable values for this
/frameworks/base/media/java/android/media/tv/
DTvInputInfo.java927 private void parseServiceMetadata(int inputType) { in parseServiceMetadata() argument
955 if (inputType == TYPE_TUNER && TextUtils.isEmpty(mSetupActivity)) { in parseServiceMetadata()
964 if (mTunerCount == null && inputType == TYPE_TUNER) { in parseServiceMetadata()
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h140 input_type_t *inputType) = 0;
/frameworks/support/compat/java/android/support/v4/view/accessibility/
DAccessibilityNodeInfoCompat.java841 void setInputType(Object info, int inputType); in setInputType() argument
1429 public void setInputType(Object info, int inputType) { in setInputType() argument
2106 public void setInputType(Object info, int inputType) { in setInputType() argument
2107 AccessibilityNodeInfoCompatKitKat.setInputType(info, inputType); in setInputType()
4087 public void setInputType(int inputType) { in setInputType() argument
4088 IMPL.setInputType(mInfo, inputType); in setInputType()

12