Home
last modified time | relevance | path

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

12345678910>>...29

/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/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 …]
/packages/services/Car/tools/emulator/
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/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/DocumentsUI/src/com/android/documentsui/selection/
DRange.java42 void snapSelection(int position, @RangeType int type) { in snapSelection() argument
48 establishRange(position, type); in snapSelection()
50 reviseRange(position, type); in snapSelection()
54 private void establishRange(int position, @RangeType int type) { in establishRange() argument
62 updateRange(mBegin + 1, position, true, type); in establishRange()
64 updateRange(position, mBegin - 1, true, type); in establishRange()
70 private void reviseRange(int position, @RangeType int type) { in reviseRange() argument
79 reviseAscendingRange(position, type); in reviseRange()
81 reviseDescendingRange(position, type); in reviseRange()
92 private void reviseAscendingRange(int position, @RangeType int type) { in reviseAscendingRange() argument
[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/experimental/LoaderApp/src/com/android/loaderapp/model/
DFallbackSource.java85 protected EditType buildPhoneType(int type) { in buildPhoneType() argument
86 return new EditType(type, Phone.getTypeLabelResource(type)); in buildPhoneType()
89 protected EditType buildEmailType(int type) { in buildEmailType() argument
90 return new EditType(type, Email.getTypeLabelResource(type)); in buildEmailType()
93 protected EditType buildPostalType(int type) { in buildPostalType() argument
94 return new EditType(type, StructuredPostal.getTypeLabelResource(type)); in buildPostalType()
97 protected EditType buildImType(int type) { in buildImType() argument
98 return new EditType(type, Im.getProtocolLabelResource(type)); in buildImType()
101 protected EditType buildOrgType(int type) { in buildOrgType() argument
102 return new EditType(type, Organization.getTypeLabelResource(type)); in buildOrgType()
[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/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/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/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/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 …]
DRawContactModifier.java168 for (EditType type : kind.typeList) { in getValidTypes()
169 final boolean validSpecific = (type.specificMax == -1 ? true : typeCount in getValidTypes()
170 .get(type.rawValue) < type.specificMax); in getValidTypes()
171 final boolean validSecondary = (includeSecondary ? true : !type.secondary); in getValidTypes()
172 final boolean forcedInclude = type.equals(forceInclude); in getValidTypes()
175 validTypes.add(type); in getValidTypes()
203 final EditType type = getCurrentType(entry, kind); in getTypeFrequencies() local
204 if (type != null) { in getTypeFrequencies()
205 final int count = typeCount.get(type.rawValue); in getTypeFrequencies()
206 typeCount.put(type.rawValue, count + 1); in getTypeFrequencies()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DScanFilterQueue.java53 public byte type; field in ScanFilterQueue.Entry
64 return Objects.hash(address, addr_type, type, uuid, uuid_mask, in hashCode()
80 addr_type == other.addr_type && type == other.type && in equals()
92 void addDeviceAddress(String address, byte type) { in addDeviceAddress() argument
94 entry.type = TYPE_DEVICE_ADDRESS; in addDeviceAddress()
96 entry.addr_type = type; in addDeviceAddress()
102 entry.type = TYPE_SERVICE_DATA_CHANGED; in addServiceChanged()
108 entry.type = TYPE_SERVICE_UUID; in addUuid()
116 entry.type = TYPE_SERVICE_UUID; in addUuid()
124 entry.type = TYPE_SOLICIT_UUID; in addSolicitUuid()
[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/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java124 static void onMediaStoreInsert(Context context, String volumeName, int type, long id) { in onMediaStoreInsert() argument
127 if (type == FileColumns.MEDIA_TYPE_IMAGE && sReturnedImagesEmpty) { in onMediaStoreInsert()
130 } else if (type == FileColumns.MEDIA_TYPE_VIDEO && sReturnedVideosEmpty) { in onMediaStoreInsert()
133 } else if (type == FileColumns.MEDIA_TYPE_AUDIO && sReturnedAudioEmpty) { in onMediaStoreInsert()
142 static void onMediaStoreDelete(Context context, String volumeName, int type, long id) { in onMediaStoreDelete() argument
145 if (type == FileColumns.MEDIA_TYPE_IMAGE) { in onMediaStoreDelete()
149 } else if (type == FileColumns.MEDIA_TYPE_VIDEO) { in onMediaStoreDelete()
153 } else if (type == FileColumns.MEDIA_TYPE_AUDIO) { in onMediaStoreDelete()
161 public String type; field in MediaDocumentsProvider.Ident
169 ident.type = docId; in getIdentForDocId()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContentObserver.java514 private static String getSmsFolderName(int type) { in getSmsFolderName() argument
515 String name = FOLDER_SMS_MAP.get(type); in getSmsFolderName()
626 private void setFolderPath(String name, TYPE type) { in setFolderPath() argument
628 if(type == TYPE.EMAIL || type == TYPE.IM) { in setFolderPath()
838 int type; // Used as folder for SMS/MMS field in BluetoothMapContentObserver.Msg
846 public Msg(long id, int type, int threadId, int readFlag) { in Msg() argument
848 this.type = type; in Msg()
1212 int type = c.getInt(c.getColumnIndex(Sms.TYPE)); in initMsgList() local
1216 Msg msg = new Msg(id, type, threadId, read); in initMsgList()
1236 int type = c.getInt(c.getColumnIndex(Mms.MESSAGE_BOX)); in initMsgList() local
[all …]
/packages/apps/Settings/tests/app/src/com/android/settings/vpn2/
DVpnProfileParser.java45 boolean type;
77 type = true;
129 mVpnPool.put(profile.type, vpnInfo);
140 if (type) {
145 profile.type = t;
147 type = false;
211 private int getVpnProfileType(String type) {
212 if (type.equalsIgnoreCase("TYPE_PPTP")) {
214 } else if (type.equalsIgnoreCase("TYPE_L2TP_IPSEC_PSK")) {
216 } else if (type.equalsIgnoreCase("TYPE_L2TP_IPSEC_RSA")) {
[all …]
/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>>...29