Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/view/inputmethod/
DEditorInfo.java41 public int inputType = TYPE_NULL; field in EditorInfo
359 switch (inputType&(TYPE_MASK_CLASS|TYPE_MASK_VARIATION)) { in makeCompatible()
361 inputType = TYPE_CLASS_TEXT|TYPE_TEXT_VARIATION_EMAIL_ADDRESS in makeCompatible()
362 | (inputType&TYPE_MASK_FLAGS); in makeCompatible()
365 inputType = TYPE_CLASS_TEXT|TYPE_TEXT_VARIATION_PASSWORD in makeCompatible()
366 | (inputType&TYPE_MASK_FLAGS); in makeCompatible()
370 inputType = TYPE_CLASS_NUMBER in makeCompatible()
371 | (inputType&TYPE_MASK_FLAGS); in makeCompatible()
381 pw.println(prefix + "inputType=0x" + Integer.toHexString(inputType) in dump()
405 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/v4/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/support/v4/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
247 public void setInputType(View searchView, int inputType) {
248 SearchViewCompatIcs.setInputType(searchView, inputType);
315 public static void setInputType(View searchView, int inputType) {
316 IMPL.setInputType(searchView, inputType);
/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/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/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
DTextViewBindingAdapter.java66 int inputType = listener != null ? listener.getInputType() : 0; in setAutoText() local
67 if ((inputType & InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS) != 0) { in setAutoText()
69 } else if ((inputType & InputType.TYPE_TEXT_FLAG_CAP_WORDS) != 0) { in setAutoText()
71 } else if ((inputType & InputType.TYPE_TEXT_FLAG_CAP_SENTENCES) != 0) { in setAutoText()
81 int inputType = listener.getInputType(); in setCapitalize() local
82 boolean autoText = (inputType & InputType.TYPE_TEXT_FLAG_AUTO_CORRECT) != 0; in setCapitalize()
/frameworks/base/media/java/android/media/tv/
DTvInputInfo.java235 int inputType = sHardwareTypeToTvInputType.get(hardwareInfo.getType(), TYPE_TUNER); in createTvInputInfo() local
238 hardwareInfo), null, inputType, true, 0, label, null, iconUri, false); in createTvInputInfo()
257 int inputType = sHardwareTypeToTvInputType.get(hardwareInfo.getType(), TYPE_TUNER); in createTvInputInfo() local
260 hardwareInfo), null, inputType, true, labelRes, null, icon, null, false); in createTvInputInfo()
264 String parentId, int inputType, boolean isHardwareInput, int labelRes, String label, in createTvInputInfo() argument
291 TvInputInfo input = new TvInputInfo(service, id, parentId, inputType, isHardwareInput); in createTvInputInfo()
299 if (inputType == TYPE_TUNER && TextUtils.isEmpty(input.mSetupActivity)) { in createTvInputInfo()
/frameworks/base/core/java/android/widget/
DSearchView.java343 final int inputType = a.getInt(R.styleable.SearchView_inputType, -1); in SearchView() local
344 if (inputType != -1) { in SearchView()
345 setInputType(inputType); in SearchView()
451 public void setInputType(int inputType) { in setInputType() argument
452 mSearchSrcTextView.setInputType(inputType); in setInputType()
1140 int inputType = mSearchable.getInputType(); in updateSearchAutoComplete() local
1143 if ((inputType & InputType.TYPE_MASK_CLASS) == InputType.TYPE_CLASS_TEXT) { in updateSearchAutoComplete()
1146 inputType &= ~InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE; in updateSearchAutoComplete()
1148 inputType |= InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE; in updateSearchAutoComplete()
1155 inputType |= InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS; in updateSearchAutoComplete()
[all …]
DAutoCompleteTextView.java177 int inputType = getInputType(); in AutoCompleteTextView() local
178 if ((inputType&EditorInfo.TYPE_MASK_CLASS) in AutoCompleteTextView()
180 inputType |= EditorInfo.TYPE_TEXT_FLAG_AUTO_COMPLETE; in AutoCompleteTextView()
181 setRawInputType(inputType); in AutoCompleteTextView()
DTextView.java826 int inputType = EditorInfo.TYPE_NULL; in TextView() local
1084 inputType = a.getInt(attr, EditorInfo.TYPE_NULL); in TextView()
1180 inputType & (EditorInfo.TYPE_MASK_CLASS | EditorInfo.TYPE_MASK_VARIATION); in TextView()
1206 mEditor.mInputType = inputType != EditorInfo.TYPE_NULL in TextView()
1207 ? inputType in TextView()
1218 mEditor.mInputType = inputType != EditorInfo.TYPE_NULL in TextView()
1219 ? inputType : EditorInfo.TYPE_CLASS_TEXT; in TextView()
1220 } else if (inputType != EditorInfo.TYPE_NULL) { in TextView()
1221 setInputType(inputType, true); in TextView()
1223 singleLine = !isMultilineInputType(inputType); in TextView()
[all …]
/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/support/v4/kitkat/android/support/v4/view/accessibility/
DAccessibilityNodeInfoCompatKitKat.java95 public static void setInputType(Object info, int inputType) { in setInputType() argument
96 ((AccessibilityNodeInfo) info).setInputType(inputType); in setInputType()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSearchView.java355 final int inputType = a.getInt(R.styleable.SearchView_android_inputType, -1); in SearchView() local
356 if (inputType != -1) { in SearchView()
357 setInputType(inputType); in SearchView()
478 public void setInputType(int inputType) { in setInputType() argument
479 mSearchSrcTextView.setInputType(inputType); in setInputType()
1074 int inputType = mSearchable.getInputType(); in updateSearchAutoComplete() local
1077 if ((inputType & InputType.TYPE_MASK_CLASS) == InputType.TYPE_CLASS_TEXT) { in updateSearchAutoComplete()
1080 inputType &= ~InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE; in updateSearchAutoComplete()
1082 inputType |= InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE; in updateSearchAutoComplete()
1089 inputType |= InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS; in updateSearchAutoComplete()
[all …]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DTextViewBindingAdapterTest.java198 int inputType = keyListener.getInputType(); in getCapitalization() local
199 if ((inputType & InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS) != 0) { in getCapitalization()
201 } else if ((inputType & InputType.TYPE_TEXT_FLAG_CAP_WORDS) != 0) { in getCapitalization()
203 } else if ((inputType & InputType.TYPE_TEXT_FLAG_CAP_SENTENCES) != 0) { in getCapitalization()
/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/base/core/java/android/inputmethodservice/
DInputMethodService.java2278 if (ei.inputType == InputType.TYPE_NULL || in onUpdateExtractingVisibility()
2314 ei.inputType != InputType.TYPE_NULL); in onUpdateExtractingViews()
2340 if (ei.inputType == InputType.TYPE_NULL) { in onExtractingInputChanged()
2368 int inputType = ei.inputType; in startExtractingText() local
2369 if ((inputType&EditorInfo.TYPE_MASK_CLASS) in startExtractingText()
2371 if ((inputType&EditorInfo.TYPE_TEXT_FLAG_IME_MULTI_LINE) != 0) { in startExtractingText()
2372 inputType |= EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE; in startExtractingText()
2375 eet.setInputType(inputType); in startExtractingText()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImpl.cpp282 AudioPolicyInterface::input_type_t inputType; in getInputForAttr() local
298 &inputType); in getInputForAttr()
303 switch (inputType) { in getInputForAttr()
323 (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 &lt;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/support/v4/java/android/support/v4/view/accessibility/
DAccessibilityNodeInfoCompat.java600 public void setInputType(Object info, int inputType); in setInputType() argument
1156 public void setInputType(Object info, int inputType) { in setInputType() argument
1733 public void setInputType(Object info, int inputType) { in setInputType() argument
1734 AccessibilityNodeInfoCompatKitKat.setInputType(info, inputType); in setInputType()
3496 public void setInputType(int inputType) { in setInputType() argument
3497 IMPL.setInputType(mInfo, inputType); in setInputType()
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h140 input_type_t *inputType) = 0;
/frameworks/base/docs/html/guide/topics/text/
Dcreating-input-method.jd236 {@link android.view.inputmethod.EditorInfo#inputType} field contains the text field's input
240 The {@link android.view.inputmethod.EditorInfo#inputType} field is an <code>int</code>
246 inputType &amp; InputType.TYPE_MASK_CLASS
275 The {@link android.view.inputmethod.EditorInfo#inputType} field can contain other bits that
296 Remember to mask {@link android.view.inputmethod.EditorInfo#inputType} with the appropriate

12