Home
last modified time | relevance | path

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

12345678910>>...35

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DInputLogicTests.java48 type(WORD_TO_TYPE); in testTypeWord()
55 type(WORD_TO_TYPE); in testPickSuggestionThenBackspace()
58 type(Constants.CODE_DELETE); in testPickSuggestionThenBackspace()
67 type(WORD_TO_TYPE); in testPickAutoCorrectionThenBackspace()
73 type(Constants.CODE_DELETE); in testPickAutoCorrectionThenBackspace()
81 type(WORD_TO_TYPE); in testPickTypedWordOverAutoCorrectionThenBackspace()
87 type(Constants.CODE_DELETE); in testPickTypedWordOverAutoCorrectionThenBackspace()
96 type(WORD_TO_TYPE); in testPickDifferentSuggestionThenBackspace()
102 type(Constants.CODE_DELETE); in testPickDifferentSuggestionThenBackspace()
113 type(STRING_TO_TYPE); in testDeleteSelection()
[all …]
DShiftModeTests.java42 type("Test"); in testTypicalSentence()
44 type(" "); in testTypicalSentence()
46 type("some,"); in testTypicalSentence()
48 type(" "); in testTypicalSentence()
50 type("words."); in testTypicalSentence()
52 type(" "); in testTypicalSentence()
58 type("A"); in testBackspace()
60 type(Constants.CODE_DELETE); in testBackspace()
69 type(SENTENCE_TO_TYPE); in testRepeatingBackspace()
71 type(Constants.CODE_DELETE); in testRepeatingBackspace()
[all …]
DPunctuationTests.java40 type(WORD_TO_TYPE); in testWordThenSpaceThenPunctuationFromStripTwice()
58 type(WORD_TO_TYPE); in testWordThenSpaceThenPunctuationFromKeyboardTwice()
68 type(WORD1_TO_TYPE); in testManualPickThenPunctuationFromStripTwiceThenType()
72 type(WORD2_TO_TYPE); in testManualPickThenPunctuationFromStripTwiceThenType()
81 type(WORD1_TO_TYPE); in testManualPickThenManualPickWithPunctAtStart()
92 type(WORD_TO_TYPE); in testManuallyPickedWordThenColon()
94 type(PUNCTUATION); in testManuallyPickedWordThenColon()
103 type(WORD_TO_TYPE); in testManuallyPickedWordThenOpenParen()
105 type(PUNCTUATION); in testManuallyPickedWordThenOpenParen()
114 type(WORD_TO_TYPE); in testManuallyPickedWordThenCloseParen()
[all …]
/packages/services/Car/tools/emulator/
Ddiagjson.example4 "type": "live",
48 "type": "live",
92 "type": "live",
136 "type": "live",
180 "type": "live",
224 "type": "live",
268 "type": "live",
312 "type": "live",
356 "type": "live",
400 "type": "live",
[all …]
DVehicleHalProto_pb2.py28 type=None),
32 type=None),
36 type=None),
40 type=None),
44 type=None),
48 type=None),
52 type=None),
56 type=None),
60 type=None),
64 type=None),
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/account/
DBaseAccountType.java127 protected static EditType buildPhoneType(int type) { in buildPhoneType() argument
128 return new EditType(type, Phone.getTypeLabelResource(type)); in buildPhoneType()
131 protected static EditType buildEmailType(int type) { in buildEmailType() argument
132 return new EditType(type, Email.getTypeLabelResource(type)); in buildEmailType()
135 protected static EditType buildPostalType(int type) { in buildPostalType() argument
136 return new EditType(type, StructuredPostal.getTypeLabelResource(type)); in buildPostalType()
139 protected static EditType buildImType(int type) { in buildImType() argument
140 return new EditType(type, Im.getProtocolLabelResource(type)); in buildImType()
143 protected static EditType buildEventType(int type, boolean yearOptional) { in buildEventType() argument
144 return new EventEditType(type, Event.getTypeResource(type)).setYearOptional(yearOptional); in buildEventType()
[all …]
DAccountTypeProvider.java87 AccountType type = mLocalAccountTypeFactory.getAccountType(accountType); in getAccountTypes() local
89 if (type == null) { in getAccountTypes()
90 type = new FallbackAccountType(mContext); in getAccountTypes()
92 return Collections.singletonList(type); in getAccountTypes()
107 public boolean hasTypeWithDataset(String type, String dataSet) { in hasTypeWithDataset() argument
109 final List<AccountType> accountTypes = getAccountTypes(type); in hasTypeWithDataset()
122 public AccountType getType(String type, String dataSet) { in getType() argument
123 final List<AccountType> accountTypes = getAccountTypes(type); in getType()
137 return getType(account.type, account.dataSet); in getTypeForAccount()
146 if (!deepEquals(mAuthTypes.get(auth.type), auth)) { in shouldUpdate()
[all …]
DAccountWithDataSet.java53 public final String type; field in AccountWithDataSet
65 public AccountWithDataSet(String name, String type, String dataSet) { in AccountWithDataSet() argument
67 this.type = emptyToNull(type); in AccountWithDataSet()
69 mAccountTypeWithDataSet = AccountTypeWithDataSet.get(type, dataSet); in AccountWithDataSet()
78 this.type = in.readString(); in AccountWithDataSet()
80 mAccountTypeWithDataSet = AccountTypeWithDataSet.get(type, dataSet); in AccountWithDataSet()
84 return name == null && type == null && dataSet == null; in isNullAccount()
92 if (name != null && type != null) { in getAccountOrNull()
93 return new Account(name, type); in getAccountOrNull()
104 dest.writeString(type); in writeToParcel()
[all …]
DAccountDisplayInfoFactory.java63 final AccountType type = mAccountTypeManager.getAccountTypeForAccount(account); in getAccountDisplayInfo() local
65 ? type.getDisplayLabel(mContext) in getAccountDisplayInfo()
67 return new AccountDisplayInfo(account, name, type.getDisplayLabel(mContext), in getAccountDisplayInfo()
68 type.getDisplayIcon(mContext), in getAccountDisplayInfo()
70 type.accountType)); in getAccountDisplayInfo()
93 final int type = mDeviceAccountTypeFactory.classifyAccount(account.type); in shouldUseTypeLabelForName() local
94 return (type == DeviceLocalAccountTypeFactory.TYPE_SIM && mSimAccountCount == 1) in shouldUseTypeLabelForName()
95 || (type == DeviceLocalAccountTypeFactory.TYPE_DEVICE && mDeviceAccountCount == 1) in shouldUseTypeLabelForName()
100 private int countOfType(@DeviceLocalAccountTypeFactory.LocalAccountType int type, in countOfType() argument
104 if (mDeviceAccountTypeFactory.classifyAccount(account.type) == type) { in countOfType()
/packages/apps/Dialer/java/com/android/contacts/common/model/account/
DBaseAccountType.java122 protected static EditType buildPhoneType(int type) { in buildPhoneType() argument
123 return new EditType(type, Phone.getTypeLabelResource(type)); in buildPhoneType()
126 protected static EditType buildEmailType(int type) { in buildEmailType() argument
127 return new EditType(type, Email.getTypeLabelResource(type)); in buildEmailType()
130 protected static EditType buildPostalType(int type) { in buildPostalType() argument
131 return new EditType(type, StructuredPostal.getTypeLabelResource(type)); in buildPostalType()
134 protected static EditType buildImType(int type) { in buildImType() argument
135 return new EditType(type, Im.getProtocolLabelResource(type)); in buildImType()
138 protected static EditType buildEventType(int type, boolean yearOptional) { in buildEventType() argument
139 return new EventEditType(type, Event.getTypeResource(type)).setYearOptional(yearOptional); in buildEventType()
[all …]
DAccountWithDataSet.java61 public final String type; field in AccountWithDataSet
65 public AccountWithDataSet(String name, String type, String dataSet) { in AccountWithDataSet() argument
67 this.type = emptyToNull(type); in AccountWithDataSet()
69 mAccountTypeWithDataSet = AccountTypeWithDataSet.get(type, dataSet); in AccountWithDataSet()
74 this.type = in.readString(); in AccountWithDataSet()
76 mAccountTypeWithDataSet = AccountTypeWithDataSet.get(type, dataSet); in AccountWithDataSet()
88 if (!TextUtils.isEmpty(account.type)) { in addStringified()
89 sb.append(account.type); in addStringified()
148 return name == null && type == null; in isLocalAccount()
152 if (name != null && type != null) { in getAccountOrNull()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/account/
DExternalAccountTypeTest.java91 … final ExternalAccountType type = new ExternalAccountType(getInstrumentation().getTargetContext(), in testNoPackage() local
93 assertTrue(type.isInitialized()); in testNoPackage()
101 … final ExternalAccountType type = new ExternalAccountType(getInstrumentation().getTargetContext(), in testEditSchema() local
104 assertTrue(type.isInitialized()); in testEditSchema()
107 assertNotNull(type.getKindForMimetype(StructuredName.CONTENT_ITEM_TYPE)); in testEditSchema()
108 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_NAME)); in testEditSchema()
109 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME)); in testEditSchema()
110 assertNotNull(type.getKindForMimetype(Email.CONTENT_ITEM_TYPE)); in testEditSchema()
111 assertNotNull(type.getKindForMimetype(StructuredPostal.CONTENT_ITEM_TYPE)); in testEditSchema()
112 assertNotNull(type.getKindForMimetype(Im.CONTENT_ITEM_TYPE)); in testEditSchema()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DRoles.java151 int type; in parseXml() local
154 while ((type = parser.next()) != XmlResourceParser.END_DOCUMENT in parseXml()
156 || type != XmlResourceParser.END_TAG)) { in parseXml()
157 if (depth > innerDepth || type != XmlResourceParser.START_TAG) { in parseXml()
186 int type; in parseRoles() local
189 while ((type = parser.next()) != XmlResourceParser.END_DOCUMENT in parseRoles()
191 || type != XmlResourceParser.END_TAG)) { in parseRoles()
192 if (depth > innerDepth || type != XmlResourceParser.START_TAG) { in parseRoles()
236 int type; in parsePermissionSet() local
239 while ((type = parser.next()) != XmlResourceParser.END_DOCUMENT in parsePermissionSet()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DIsoInterface.java65 private static boolean isBoxParent(int type) { in isBoxParent() argument
66 switch (type) { in isBoxParent()
98 public final int type; field in IsoInterface.Box
104 public Box(int type, long[] range) { in Box() argument
105 this.type = type; in Box()
110 private static String typeToString(int type) { in typeToString() argument
112 Memory.pokeInt(buf, 0, type, ByteOrder.BIG_ENDIAN); in typeToString()
148 final int type = readInt(fd); in parseNextBox() local
149 if (type == BOX_META) { in parseNextBox()
153 final Box box = new Box(type, new long[] { pos, len }); in parseNextBox()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/model/
DAccountTypeManager.java149 public DataKind getKindOrFallback(AccountType type, String mimeType) { in getKindOrFallback() argument
150 return type == null ? null : type.getKindForMimetype(mimeType); in getKindOrFallback()
195 && Objects.equals(a.type, b.type)
198 } else if (b.name == null || b.type == null) {
200 } else if (a.name == null || a.type == null) {
207 diff = a.type.compareTo(b.type);
320 if (accountType.equals(auth.type)) { in findAuthenticator()
339 AccountType type = accountTypesByTypeAndDataSet.get(accountTypeWithDataSet); in findAllInvitableAccountTypes() local
340 if (type == null) { in findAllInvitableAccountTypes()
353 + type.getInviteContactActivityClassName()); in findAllInvitableAccountTypes()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DFakeDeviceAccountTypeFactory.java42 final AccountType type = mDeviceAccountTypes.get(accountType); in getAccountType() local
43 return type == null ? mSimAccountTypes.get(accountType) : type; in getAccountType()
47 for (String type : types) { in withSimTypes()
48 mSimAccountTypes.put(type, new FakeAccountType(type)); in withSimTypes()
54 for (AccountType type : types) { in withSimTypes()
55 mSimAccountTypes.put(type.accountType, type); in withSimTypes()
61 for (String type : types) { in withDeviceTypes()
62 mDeviceAccountTypes.put(type, new FakeAccountType(type)); in withDeviceTypes()
68 for (AccountType type : types) { in withDeviceTypes()
69 mDeviceAccountTypes.put(type.accountType, type); in withDeviceTypes()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStackEvent.java49 public final int type; field in HeadsetStackEvent
62 public HeadsetStackEvent(int type, BluetoothDevice device) { in HeadsetStackEvent() argument
63 this(type, 0, 0, null, null, device); in HeadsetStackEvent()
73 public HeadsetStackEvent(int type, int valueInt, BluetoothDevice device) { in HeadsetStackEvent() argument
74 this(type, valueInt, 0, null, null, device); in HeadsetStackEvent()
85 public HeadsetStackEvent(int type, int valueInt, int valueInt2, BluetoothDevice device) { in HeadsetStackEvent() argument
86 this(type, valueInt, valueInt2, null, null, device); in HeadsetStackEvent()
96 public HeadsetStackEvent(int type, String valueString, BluetoothDevice device) { in HeadsetStackEvent() argument
97 this(type, 0, 0, valueString, null, device); in HeadsetStackEvent()
107 public HeadsetStackEvent(int type, HeadsetMessageObject valueObject, BluetoothDevice device) { in HeadsetStackEvent() argument
[all …]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHTML.java53 private final int type; field in HTML.Element
68 public Element(String name, int type, boolean empty, in Element() argument
73 this.type = type; in Element()
83 public Element(String name, int type, boolean empty, in Element() argument
85 this(name, type, empty, optionalEndTag, breaksFlow, Flow.NONE); in Element()
95 return type; in getType()
162 private final int type; field in HTML.Attribute
171 public Attribute(String name, int type) { in Attribute() argument
172 this(name, type, null); in Attribute()
180 public Attribute(String name, int type, Set<String> values) { in Attribute() argument
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DUriSource.java51 String type = URLDecoder.decode(segment[2], CHARSET_UTF_8); in createMediaObject() local
52 return new UriImage(mApplication, path, Uri.parse(uri), type); in createMediaObject()
62 String type = MimeTypeMap.getSingleton() in getMimeType() local
64 if (type != null) return type; in getMimeType()
68 String type = mApplication.getContentResolver().getType(uri); in getMimeType() local
69 if (type == null) type = "image/*"; in getMimeType()
70 return type; in getMimeType()
74 public Path findPathByUri(Uri uri, String type) { in findPathByUri() argument
78 if ((type == null) || (IMAGE_TYPE_ANY.equals(type) in findPathByUri()
80 type = mimeType; in findPathByUri()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DRenderingRequest.java51 int type, RenderingRequestCaller caller) { in post() argument
52 RenderingRequest.post(context, source, preset, type, caller, null, null); in post()
55 public static void post(Context context, Bitmap source, ImagePreset preset, int type, in post() argument
57 if (((type != PARTIAL_RENDERING && type != HIGHRES_RENDERING in post()
58 && type != GEOMETRY_RENDERING && type != FILTERS_RENDERING) && source == null) in post()
66 if (type == FULL_RENDERING in post()
67 || type == ICON_RENDERING in post()
68 || type == STYLE_ICON_RENDERING) { in post()
72 } else if (type != PARTIAL_RENDERING && type != HIGHRES_RENDERING in post()
73 && type != GEOMETRY_RENDERING && type != FILTERS_RENDERING) { in post()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DHanziToPinyinTest.java49 tokens.get(0).type, Token.UNKNOWN); in test()
56 tokens.get(0).type, Token.PINYIN); in test()
70 assertEquals(tokens.get(0).type, Token.PINYIN); in testGetToken()
75 assertEquals(tokens.get(0).type, Token.PINYIN); in testGetToken()
76 assertEquals(tokens.get(1).type, Token.PINYIN); in testGetToken()
82 assertEquals(tokens.get(0).type, Token.LATIN); in testGetToken()
86 assertEquals(tokens.get(0).type, Token.UNKNOWN); in testGetToken()
90 assertEquals(tokens.get(0).type, Token.LATIN); in testGetToken()
91 assertEquals(tokens.get(1).type, Token.PINYIN); in testGetToken()
92 assertEquals(tokens.get(2).type, Token.LATIN); in testGetToken()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DAccountTypeManager.java262 && TextUtils.equals(accountWithDataSet.type, accounts[i].type)) {
290 public DataKind getKindOrFallback(AccountType type, String mimeType) {
291 return type == null ? null : type.getKindForMimetype(mimeType);
583 AccountType type = mTypeProvider.getTypeForAccount(account);
584 if (type == null) {
585 type = mFallbackAccountType;
587 return type.wrapAccount(mContext, account);
594 final List<AccountType> types = typeProvider.getAccountTypes(account.type);
595 for (AccountType type : types) {
597 account.name, account.type, type.dataSet));
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStackEvent.java44 public int type = EVENT_TYPE_NONE; field in A2dpStackEvent
49 A2dpStackEvent(int type) { in A2dpStackEvent() argument
50 this.type = type; in A2dpStackEvent()
57 result.append("A2dpStackEvent {type:" + eventTypeToString(type)); in toString()
59 result.append(", value1:" + eventTypeValueIntToString(type, valueInt)); in toString()
67 private static String eventTypeToString(int type) { in eventTypeToString() argument
68 switch (type) { in eventTypeToString()
78 return "EVENT_TYPE_UNKNOWN:" + type; in eventTypeToString()
82 private static String eventTypeValueIntToString(int type, int value) { in eventTypeValueIntToString() argument
83 switch (type) { in eventTypeValueIntToString()
/packages/apps/Launcher3/src/com/android/launcher3/logging/
DEventLogArray.java63 private void addLog(int type, String event, float extras) { in addLog() argument
67 if (isEntrySame(logs[last], type, event) && isEntrySame(logs[secondLast], type, event)) { in addLog()
68 logs[last].update(type, event, extras); in addLog()
76 logs[nextIndex].update(type, event, extras); in addLog()
98 switch (log.type) { in dump()
120 private boolean isEntrySame(EventEntry entry, int type, String event) { in isEntrySame() argument
121 return entry != null && entry.type == type && entry.event.equals(event); in isEntrySame()
127 private int type; field in EventLogArray.EventEntry
133 public void update(int type, String event, float extras) { in update() argument
134 this.type = type; in update()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactDropdownLayouter.java72 final int position, AdapterType type, final String substring, in bindView() argument
74 if (type != AdapterType.BASE_RECIPIENT) { in bindView()
75 if (type == AdapterType.SINGLE_RECIPIENT) { in bindView()
79 type = AdapterType.RECIPIENT_ALTERNATES; in bindView()
81 return super.bindView(convertView, parent, entry, position, type, substring, in bindView()
94 final View itemView = reuseOrInflateView(convertView, parent, type); in bindView()
105 mClivHostInterface, (type == AdapterType.SINGLE_RECIPIENT), isWorkContact); in bindView()
111 AdapterType type) { in bindIconToView() argument
120 super.bindIconToView(showImage, entry, view, type); in bindIconToView()
125 protected int getItemLayoutResId(AdapterType type) { in getItemLayoutResId() argument
[all …]

12345678910>>...35