/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | InputLogicTests.java | 27 type(WORD_TO_TYPE); in testTypeWord() 34 type(WORD_TO_TYPE); in testPickSuggestionThenBackspace() 37 type(Constants.CODE_DELETE); in testPickSuggestionThenBackspace() 46 type(WORD_TO_TYPE); in testPickAutoCorrectionThenBackspace() 53 type(Constants.CODE_DELETE); in testPickAutoCorrectionThenBackspace() 61 type(WORD_TO_TYPE); in testPickTypedWordOverAutoCorrectionThenBackspace() 68 type(Constants.CODE_DELETE); in testPickTypedWordOverAutoCorrectionThenBackspace() 77 type(WORD_TO_TYPE); in testPickDifferentSuggestionThenBackspace() 84 type(Constants.CODE_DELETE); in testPickDifferentSuggestionThenBackspace() 95 type(STRING_TO_TYPE); in testDeleteSelection() [all …]
|
D | PunctuationTests.java | 39 type(WORD_TO_TYPE); in testWordThenSpaceThenPunctuationFromStripTwice() 57 type(WORD_TO_TYPE); in testWordThenSpaceThenPunctuationFromKeyboardTwice() 67 type(WORD1_TO_TYPE); in testManualPickThenPunctuationFromStripTwiceThenType() 71 type(WORD2_TO_TYPE); in testManualPickThenPunctuationFromStripTwiceThenType() 80 type(WORD1_TO_TYPE); in testManualPickThenManualPickWithPunctAtStart() 91 type(WORD_TO_TYPE); in testManuallyPickedWordThenColon() 93 type(PUNCTUATION); in testManuallyPickedWordThenColon() 102 type(WORD_TO_TYPE); in testManuallyPickedWordThenOpenParen() 104 type(PUNCTUATION); in testManuallyPickedWordThenOpenParen() 113 type(WORD_TO_TYPE); in testManuallyPickedWordThenCloseParen() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
D | BaseAccountType.java | 125 protected static EditType buildPhoneType(int type) { in buildPhoneType() argument 126 return new EditType(type, Phone.getTypeLabelResource(type)); in buildPhoneType() 129 protected static EditType buildEmailType(int type) { in buildEmailType() argument 130 return new EditType(type, Email.getTypeLabelResource(type)); in buildEmailType() 133 protected static EditType buildPostalType(int type) { in buildPostalType() argument 134 return new EditType(type, StructuredPostal.getTypeLabelResource(type)); in buildPostalType() 137 protected static EditType buildImType(int type) { in buildImType() argument 138 return new EditType(type, Im.getProtocolLabelResource(type)); in buildImType() 141 protected static EditType buildEventType(int type, boolean yearOptional) { in buildEventType() argument 142 return new EventEditType(type, Event.getTypeResource(type)).setYearOptional(yearOptional); in buildEventType() [all …]
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/account/ |
D | ExternalAccountTypeTest.java | 75 final ExternalAccountType type = new ExternalAccountType(getContext(), in testNoPackage() local 77 assertFalse(type.isInitialized()); in testNoPackage() 98 final ExternalAccountType type = new ExternalAccountType(getContext(), in testEditSchema() local 101 assertTrue(type.isInitialized()); in testEditSchema() 104 assertNotNull(type.getKindForMimetype(StructuredName.CONTENT_ITEM_TYPE)); in testEditSchema() 105 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME)); in testEditSchema() 106 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME)); in testEditSchema() 107 assertNotNull(type.getKindForMimetype(Email.CONTENT_ITEM_TYPE)); in testEditSchema() 108 assertNotNull(type.getKindForMimetype(StructuredPostal.CONTENT_ITEM_TYPE)); in testEditSchema() 109 assertNotNull(type.getKindForMimetype(Im.CONTENT_ITEM_TYPE)); in testEditSchema() [all …]
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | FallbackSource.java | 85 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/ContactsCommon/src/com/android/contacts/common/model/ |
D | AccountTypeManager.java | 153 public DataKind getKindOrFallback(AccountType type, String mimeType) { in getKindOrFallback() argument 154 return type == null ? null : type.getKindForMimetype(mimeType); in getKindOrFallback() 259 if (Objects.equal(a.name, b.name) && Objects.equal(a.type, b.type) 262 } else if (b.name == null || b.type == null) { 264 } else if (a.name == null || a.type == null) { 271 diff = a.type.compareTo(b.type); 410 final String type = sync.accountType; in loadAccountsInBackground() local 411 final AuthenticatorDescription auth = findAuthenticator(auths, type); in loadAccountsInBackground() 413 Log.w(TAG, "No authenticator found for type=" + type + ", ignoring it."); in loadAccountsInBackground() 418 if (GoogleAccountType.ACCOUNT_TYPE.equals(type)) { in loadAccountsInBackground() [all …]
|
D | RawContactModifier.java | 185 for (EditType type : kind.typeList) { in getValidTypes() 188 final boolean validSpecific = (type.specificMax == -1 ? true : typeCount in getValidTypes() 189 .get(type.rawValue) < type.specificMax); in getValidTypes() 190 final boolean validSecondary = (includeSecondary ? true : !type.secondary); in getValidTypes() 191 final boolean forcedInclude = type.equals(forceInclude); in getValidTypes() 194 validTypes.add(type); in getValidTypes() 222 final EditType type = getCurrentType(entry, kind); in getTypeFrequencies() local 223 if (type != null) { in getTypeFrequencies() 224 final int count = typeCount.get(type.rawValue); in getTypeFrequencies() 225 typeCount.put(type.rawValue, count + 1); in getTypeFrequencies() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapContentObserver.java | 231 int type; field in BluetoothMapContentObserver.Msg 233 public Msg(long id, int type) { in Msg() argument 235 this.type = type; in Msg() 290 int type = c.getInt(c.getColumnIndex(Sms.TYPE)); in initMsgList() local 292 Msg msg = new Msg(id, type); in initMsgList() 308 int type = c.getInt(c.getColumnIndex(Mms.MESSAGE_BOX)); in initMsgList() local 310 Msg msg = new Msg(id, type); in initMsgList() 331 int type = c.getInt(c.getColumnIndex(Sms.TYPE)); in handleMsgListChangesSms() local 337 msg = new Msg(id, type); in handleMsgListChangesSms() 340 if (folderSms[type].equals("inbox")) { in handleMsgListChangesSms() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaDocumentsProvider.java | 123 static void onMediaStoreInsert(Context context, String volumeName, int type, long id) { in onMediaStoreInsert() argument 126 if (type == FileColumns.MEDIA_TYPE_IMAGE && sReturnedImagesEmpty) { in onMediaStoreInsert() 129 } else if (type == FileColumns.MEDIA_TYPE_VIDEO && sReturnedVideosEmpty) { in onMediaStoreInsert() 132 } else if (type == FileColumns.MEDIA_TYPE_AUDIO && sReturnedAudioEmpty) { in onMediaStoreInsert() 141 static void onMediaStoreDelete(Context context, String volumeName, int type, long id) { in onMediaStoreDelete() argument 144 if (type == FileColumns.MEDIA_TYPE_IMAGE) { in onMediaStoreDelete() 148 } else if (type == FileColumns.MEDIA_TYPE_VIDEO) { in onMediaStoreDelete() 152 } else if (type == FileColumns.MEDIA_TYPE_AUDIO) { in onMediaStoreDelete() 160 public String type; field in MediaDocumentsProvider.Ident 168 ident.type = docId; in getIdentForDocId() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
D | RenderingRequest.java | 51 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/UnifiedEmail/src/com/google/android/mail/common/html/parser/ |
D | HTML.java | 53 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/UnifiedEmail/src/com/android/mail/lib/html/parser/ |
D | HTML.java | 52 private final int type; field in HTML.Element 67 public Element(String name, int type, boolean empty, in Element() argument 72 this.type = type; in Element() 82 public Element(String name, int type, boolean empty, in Element() argument 84 this(name, type, empty, optionalEndTag, breaksFlow, Flow.NONE); in Element() 94 return type; in getType() 161 private final int type; field in HTML.Attribute 170 public Attribute(String name, int type) { in Attribute() argument 171 this(name, type, null); in Attribute() 179 public Attribute(String name, int type, Set<String> values) { in Attribute() argument [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | UriSource.java | 51 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/Exchange/src/com/android/exchange/service/ |
D | EasAutoDiscover.java | 249 final int type = parser.next(); in parseServer() local 250 if (type == XmlPullParser.END_TAG && parser.getName().equals(ELEMENT_NAME_SERVER)) { in parseServer() 252 } else if (type == XmlPullParser.START_TAG) { in parseServer() 279 final int type = parser.next(); in parseSettings() local 280 if (type == XmlPullParser.END_TAG && parser.getName().equals(ELEMENT_NAME_SETTINGS)) { in parseSettings() 282 } else if (type == XmlPullParser.START_TAG) { in parseSettings() 301 final int type = parser.next(); in parseAction() local 302 if (type == XmlPullParser.END_TAG && parser.getName().equals(ELEMENT_NAME_ACTION)) { in parseAction() 304 } else if (type == XmlPullParser.START_TAG) { in parseAction() 327 int type = parser.next(); in parseUser() local [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | HanziToPinyinTest.java | 49 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/Exchange/src/com/android/exchange/adapter/ |
D | Parser.java | 92 public int type; field in Parser 243 if (type == END) { in getValue() 254 if (type != END) { in getValue() 270 if (type == END) { in getValueInt() 278 if (type != END) { in getValueInt() 300 if (type == START) { in nextTag() 304 } else if (type == END && startTag == endTag) { in nextTag() 328 if (type == END && startTag == thisTag) { in skipTag() 345 return type; in nextToken() 436 type = END; in getNext() [all …]
|
D | ContactsSyncParser.java | 692 public boolean isSameAs(int type, String value); in isSameAs() argument 719 public boolean isSameAs(int type, String value) { in isSameAs() argument 737 public boolean isSameAs(int type, String value) { in isSameAs() argument 744 int type; field in ContactsSyncParser.PhoneRow 748 type = _type; in PhoneRow() 754 builder.withValue(Phone.TYPE, type); in addValues() 759 return type == _type && phone.equalsIgnoreCase(value); in isSameAs() 857 String contentItemType, int type, String stringType) { in findTypedData() argument 875 } else if (type < 0 || !cv.containsKey(Email.TYPE) || in findTypedData() 876 cv.getAsInteger(Email.TYPE) == type) { in findTypedData() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | RawContactReadOnlyEditorView.java | 115 public void setState(RawContactDelta state, AccountType type, ViewIdGenerator vig, in setState() argument 121 if (state == null || type == null) return; in setState() 124 RawContactModifier.ensureKindExists(state, type, StructuredName.CONTENT_ITEM_TYPE); in setState() 136 CharSequence accountType = type.getDisplayLabel(mContext); in setState() 142 CharSequence accountType = type.getDisplayLabel(mContext); in setState() 162 mAccountIcon.setImageDrawable(type.getDisplayIcon(mContext)); in setState() 169 DataKind kind = type.getKindForMimetype(Photo.CONTENT_ITEM_TYPE); in setState() 171 RawContactModifier.ensureKindExists(state, type, Photo.CONTENT_ITEM_TYPE); in setState() 172 boolean hasPhotoEditor = type.getKindForMimetype(Photo.CONTENT_ITEM_TYPE) != null; in setState() 175 getPhotoEditor().setValues(kind, primary, state, !type.areContactsWritable(), vig); in setState() [all …]
|
/packages/providers/ContactsProvider/tests/assets/testUnsynced/ |
D | legacy_contacts.sql | 10 …TEGER PRIMARY KEY AUTOINCREMENT,number TEXT,date INTEGER,duration INTEGER,type INTEGER,new INTEGER… field 11 …EGER REFERENCES people(_id),kind INTEGER NOT NULL,data TEXT,aux_data TEXT,type INTEGER NOT NULL,la… field 32 …UTOINCREMENT,company TEXT,title TEXT,isprimary INTEGER NOT NULL DEFAULT 0,type INTEGER NOT NULL,la… field 55 …d INTEGER PRIMARY KEY AUTOINCREMENT,person INTEGER REFERENCES people(_id),type INTEGER NOT NULL,nu… field 91 …bel AFTER INSERT ON contact_methods WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N… 92 …bel AFTER UPDATE ON contact_methods WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N… 104 …Label AFTER INSERT ON organizations WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N… 105 …Label AFTER UPDATE ON organizations WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N… 115 …typeAndLabel AFTER INSERT ON phones WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N… 116 …typeAndLabel AFTER UPDATE ON phones WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N…
|
/packages/providers/ContactsProvider/tests/assets/testSynced/ |
D | legacy_contacts.sql | 11 …TEGER PRIMARY KEY AUTOINCREMENT,number TEXT,date INTEGER,duration INTEGER,type INTEGER,new INTEGER… field 12 …EGER REFERENCES people(_id),kind INTEGER NOT NULL,data TEXT,aux_data TEXT,type INTEGER NOT NULL,la… field 42 …UTOINCREMENT,company TEXT,title TEXT,isprimary INTEGER NOT NULL DEFAULT 0,type INTEGER NOT NULL,la… field 100 …d INTEGER PRIMARY KEY AUTOINCREMENT,person INTEGER REFERENCES people(_id),type INTEGER NOT NULL,nu… field 147 …bel AFTER INSERT ON contact_methods WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N… 148 …bel AFTER UPDATE ON contact_methods WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N… 160 …Label AFTER INSERT ON organizations WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N… 161 …Label AFTER UPDATE ON organizations WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N… 171 …typeAndLabel AFTER INSERT ON phones WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N… 172 …typeAndLabel AFTER UPDATE ON phones WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N…
|
/packages/providers/ContactsProvider/tests/assets/test1/ |
D | legacy_contacts.sql | 12 …TEGER PRIMARY KEY AUTOINCREMENT,number TEXT,date INTEGER,duration INTEGER,type INTEGER,new INTEGER… field 14 …EGER REFERENCES people(_id),kind INTEGER NOT NULL,data TEXT,aux_data TEXT,type INTEGER NOT NULL,la… field 51 …UTOINCREMENT,company TEXT,title TEXT,isprimary INTEGER NOT NULL DEFAULT 0,type INTEGER NOT NULL,la… field 78 …d INTEGER PRIMARY KEY AUTOINCREMENT,person INTEGER REFERENCES people(_id),type INTEGER NOT NULL,nu… field 123 …bel AFTER INSERT ON contact_methods WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N… 124 …bel AFTER UPDATE ON contact_methods WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N… 136 …Label AFTER INSERT ON organizations WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N… 137 …Label AFTER UPDATE ON organizations WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N… 147 …typeAndLabel AFTER INSERT ON phones WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N… 148 …typeAndLabel AFTER UPDATE ON phones WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (N…
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
D | ContactDisplayUtils.java | 43 public static boolean isCustomPhoneType(Integer type) { in isCustomPhoneType() argument 44 return type == Phone.TYPE_CUSTOM || type == Phone.TYPE_ASSISTANT; in isCustomPhoneType() 58 public static CharSequence getLabelForCallOrSms(Integer type, CharSequence customLabel, in getLabelForCallOrSms() argument 62 if (isCustomPhoneType(type)) { in getLabelForCallOrSms() 67 resId = getSmsLabelResourceId(type); in getLabelForCallOrSms() 69 resId = getPhoneLabelResourceId(type); in getLabelForCallOrSms() 86 public static int getPhoneLabelResourceId(Integer type) { in getPhoneLabelResourceId() argument 87 if (type == null) return R.string.call_other; in getPhoneLabelResourceId() 88 switch (type) { in getPhoneLabelResourceId() 141 public static int getSmsLabelResourceId(Integer type) { in getSmsLabelResourceId() argument [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | EntrySchema.java | 108 switch (column.type) { in cursorToObject() 159 switch (column.type) { in valuesToObject() 197 switch (column.type) { in objectToValues() 309 sql.append(SQLITE_TYPES[column.type]); in createTables() 482 int type; in parseColumnInfo() local 485 type = TYPE_STRING; in parseColumnInfo() 487 type = TYPE_BOOLEAN; in parseColumnInfo() 489 type = TYPE_SHORT; in parseColumnInfo() 491 type = TYPE_INT; in parseColumnInfo() 493 type = TYPE_LONG; in parseColumnInfo() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | HandleMap.java | 37 int type = TYPE_UNDEFINED; field in HandleMap.Entry 49 this.type = TYPE_SERVICE; in Entry() 59 this.type = TYPE_SERVICE; in Entry() 67 Entry(int serverIf, int type, int handle, UUID uuid, int serviceHandle) { in Entry() argument 69 this.type = type; in Entry() 76 Entry(int serverIf, int type, int handle, UUID uuid, int serviceHandle, int charHandle) { in Entry() argument 78 this.type = type; in Entry() 117 if (entry.type != TYPE_SERVICE || in setStarted() 138 if (entry.type == TYPE_SERVICE && in getServiceHandle() 151 if (entry.type == TYPE_CHARACTERISTIC && in getCharacteristicHandle() [all …]
|
/packages/apps/Browser/src/com/android/browser/provider/ |
D | BrowserProvider.java | 546 int type = -1; // 0: web search; 1: history; 2: suggestion in getString() local 549 type = 0; in getString() 552 type = 1; in getString() 554 type = 0; in getString() 557 if (type == -1) type = (mPos - 1) < mHistoryCount ? 1 : 2; in getString() 559 type = mPos < mHistoryCount ? 1 : 2; in getString() 564 if (type == 1) { in getString() 571 if (type == 1) { in getString() 578 if (type == 0) { in getString() 580 } else if (type == 1) { in getString() [all …]
|