/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | InputLogicTests.java | 25 type(WORD_TO_TYPE); in testTypeWord() 32 type(WORD_TO_TYPE); in testPickSuggestionThenBackspace() 35 type(Keyboard.CODE_DELETE); in testPickSuggestionThenBackspace() 44 type(WORD_TO_TYPE); in testPickAutoCorrectionThenBackspace() 51 type(Keyboard.CODE_DELETE); in testPickAutoCorrectionThenBackspace() 59 type(WORD_TO_TYPE); in testPickTypedWordOverAutoCorrectionThenBackspace() 66 type(Keyboard.CODE_DELETE); in testPickTypedWordOverAutoCorrectionThenBackspace() 75 type(WORD_TO_TYPE); in testPickDifferentSuggestionThenBackspace() 82 type(Keyboard.CODE_DELETE); in testPickDifferentSuggestionThenBackspace() 92 type(STRING_TO_TYPE); in testDeleteSelection() [all …]
|
D | PunctuationTests.java | 36 type(WORD_TO_TYPE); in testWordThenSpaceThenPunctuationFromStripTwice() 54 type(WORD_TO_TYPE); in testWordThenSpaceThenPunctuationFromKeyboardTwice() 64 type(WORD1_TO_TYPE); in testManualPickThenPunctuationFromStripTwiceThenType() 68 type(WORD2_TO_TYPE); in testManualPickThenPunctuationFromStripTwiceThenType() 77 type(WORD1_TO_TYPE); in testManualPickThenManualPickWithPunctAtStart() 88 type(WORD_TO_TYPE); in testManuallyPickedWordThenColon() 90 type(PUNCTUATION); in testManuallyPickedWordThenColon() 99 type(WORD_TO_TYPE); in testManuallyPickedWordThenOpenParen() 101 type(PUNCTUATION); in testManuallyPickedWordThenOpenParen() 110 type(WORD_TO_TYPE); in testManuallyPickedWordThenCloseParen() [all …]
|
D | BlueUnderlineTests.java | 30 type(STRING_TO_TYPE); in testBlueUnderline() 44 type(STRING_1_TO_TYPE); in testBlueUnderlineDisappears() 47 type(STRING_2_TO_TYPE); in testBlueUnderlineDisappears() 67 type(STRING_TO_TYPE); in testBlueUnderlineOnBackspace() 70 type(Keyboard.CODE_SPACE); in testBlueUnderlineOnBackspace() 73 type(Keyboard.CODE_DELETE); in testBlueUnderlineOnBackspace() 76 type(Keyboard.CODE_DELETE); in testBlueUnderlineOnBackspace() 92 type(STRING_TO_TYPE); in testBlueUnderlineDisappearsWhenCursorMoved()
|
D | InputLogicTestsNonEnglish.java | 25 type(STRING_TO_TYPE); in testAutoCorrectForFrench() 35 type(WORD1_TO_TYPE); in testManualPickThenSeparatorForFrench() 37 type(WORD2_TO_TYPE); in testManualPickThenSeparatorForFrench() 47 type(WORD_TO_TYPE); in testWordThenSpaceThenPunctuationFromStripTwiceForFrench() 62 type(STRING_TO_TYPE); in testAutoCorrectForGerman() 71 type(STRING_TO_TYPE); in testAutoCorrectWithUmlautForGerman()
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | ExternalAccountTypeTest.java | 74 final ExternalAccountType type = new ExternalAccountType(getContext(), in testNoPackage() local 76 assertFalse(type.isInitialized()); in testNoPackage() 85 final ExternalAccountType type = new ExternalAccountType(getContext(), in testNoMetadata() local 87 assertTrue(type.isInitialized()); in testNoMetadata() 94 final ExternalAccountType type = new ExternalAccountType(getContext(), in testEditSchema() local 97 assertTrue(type.isInitialized()); in testEditSchema() 100 assertNotNull(type.getKindForMimetype(StructuredName.CONTENT_ITEM_TYPE)); in testEditSchema() 101 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME)); in testEditSchema() 102 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME)); in testEditSchema() 103 assertNotNull(type.getKindForMimetype(Email.CONTENT_ITEM_TYPE)); in testEditSchema() [all …]
|
D | AccountTypeManagerTest.java | 126 private static AccountWithDataSet createAccountWithDataSet(String name, AccountType type) { in createAccountWithDataSet() argument 127 return new AccountWithDataSet(name, type.accountType, type.dataSet); in createAccountWithDataSet() 135 for (AccountType type : types) { in buildAccountTypes() 136 result.put(type.getAccountTypeAndDataSet(), type); in buildAccountTypes() local 163 for (AccountType type : expectedInvitableTypes) { in verifyAccountTypes() 164 assertTrue("Result doesn't contain type=" + type.getAccountTypeAndDataSet(), in verifyAccountTypes() 165 result.containsKey(type.getAccountTypeAndDataSet())); in verifyAccountTypes() 174 public MockAccountType(String type, String dataSet, String inviteContactActivityClassName) { in MockAccountType() argument 175 accountType = type; in MockAccountType()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | UriSource.java | 48 String type = URLDecoder.decode(segment[2]); in createMediaObject() local 49 return new UriImage(mApplication, path, Uri.parse(uri), type); in createMediaObject() 56 String type = MimeTypeMap.getSingleton() in getMimeType() local 58 if (type != null) return type; in getMimeType() 62 String type = mApplication.getContentResolver().getType(uri); in getMimeType() local 63 if (type == null) type = "image/*"; in getMimeType() 64 return type; in getMimeType() 68 public Path findPathByUri(Uri uri, String type) { in findPathByUri() argument 72 if ((type == null) || (IMAGE_TYPE_ANY.equals(type) in findPathByUri() 74 type = mimeType; in findPathByUri() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | HanziToPinyinTest.java | 45 assertEquals(tokens.get(0).type, Token.PINYIN); in testGetToken() 50 assertEquals(tokens.get(0).type, Token.PINYIN); in testGetToken() 51 assertEquals(tokens.get(1).type, Token.PINYIN); in testGetToken() 57 assertEquals(tokens.get(0).type, Token.LATIN); in testGetToken() 61 assertEquals(tokens.get(0).type, Token.UNKNOWN); in testGetToken() 65 assertEquals(tokens.get(0).type, Token.LATIN); in testGetToken() 66 assertEquals(tokens.get(1).type, Token.PINYIN); in testGetToken() 67 assertEquals(tokens.get(2).type, Token.LATIN); in testGetToken() 68 assertEquals(tokens.get(3).type, Token.LATIN); in testGetToken() 69 assertEquals(tokens.get(4).type, Token.LATIN); in testGetToken() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | BaseAccountType.java | 123 protected static EditType buildPhoneType(int type) { in buildPhoneType() argument 124 return new EditType(type, Phone.getTypeLabelResource(type)); in buildPhoneType() 127 protected static EditType buildEmailType(int type) { in buildEmailType() argument 128 return new EditType(type, Email.getTypeLabelResource(type)); in buildEmailType() 131 protected static EditType buildPostalType(int type) { in buildPostalType() argument 132 return new EditType(type, StructuredPostal.getTypeLabelResource(type)); in buildPostalType() 135 protected static EditType buildImType(int type) { in buildImType() argument 136 return new EditType(type, Im.getProtocolLabelResource(type)); in buildImType() 139 protected static EditType buildEventType(int type, boolean yearOptional) { in buildEventType() argument 140 return new EventEditType(type, Event.getTypeResource(type)).setYearOptional(yearOptional); in buildEventType() [all …]
|
D | AccountTypeManager.java | 138 final AccountType type = getAccountType(accountType, dataSet); in getKindOrFallback() local 139 return type == null ? null : type.getKindForMimetype(mimeType); in getKindOrFallback() 244 if (Objects.equal(a.name, b.name) && Objects.equal(a.type, b.type) 247 } else if (b.name == null || b.type == null) { 249 } else if (a.name == null || a.type == null) { 256 diff = a.type.compareTo(b.type); 397 final String type = sync.accountType; in loadAccountsInBackground() local 398 final AuthenticatorDescription auth = findAuthenticator(auths, type); in loadAccountsInBackground() 400 Log.w(TAG, "No authenticator found for type=" + type + ", ignoring it."); in loadAccountsInBackground() 405 if (GoogleAccountType.ACCOUNT_TYPE.equals(type)) { in loadAccountsInBackground() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | HanziToPinyin.java | 264 public Token(int type, String source, String target) { in Token() argument 265 this.type = type; in Token() 273 public int type; field in HanziToPinyin.Token 343 token.type = Token.LATIN; in getToken() 347 token.type = Token.UNKNOWN; in getToken() 353 token.type = Token.UNKNOWN; in getToken() 357 token.type = Token.PINYIN; in getToken() 362 token.type = Token.UNKNOWN; in getToken() 366 token.type = Token.PINYIN; in getToken() 372 token.type = Token.PINYIN; in getToken() [all …]
|
D | PhotoPriorityResolver.java | 96 if (accountType.equals(auth.type)) { in resolvePhotoPriority() 130 int type; in loadPhotoPriorityFromXml() local 131 while ((type = parser.next()) != XmlPullParser.START_TAG in loadPhotoPriorityFromXml() 132 && type != XmlPullParser.END_DOCUMENT) { in loadPhotoPriorityFromXml() 136 if (type != XmlPullParser.START_TAG) { in loadPhotoPriorityFromXml() 141 while (((type = parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth) in loadPhotoPriorityFromXml() 142 && type != XmlPullParser.END_DOCUMENT) { in loadPhotoPriorityFromXml() 144 if (type == XmlPullParser.START_TAG && PICTURE_TAG.equals(name)) { in loadPhotoPriorityFromXml()
|
/packages/apps/Mms/src/com/android/mms/dom/events/ |
D | EventTargetImpl.java | 40 EventListenerEntry(String type, EventListener listener, boolean useCapture) in EventListenerEntry() argument 42 mType = type; in EventListenerEntry() 52 public void addEventListener(String type, EventListener listener, boolean useCapture) { in addEventListener() argument 53 if ((type == null) || type.equals("") || (listener == null)) { in addEventListener() 58 removeEventListener(type, listener, useCapture); in addEventListener() 63 mListenerEntries.add(new EventListenerEntry(type, listener, useCapture)); in addEventListener() 115 public void removeEventListener(String type, EventListener listener, in removeEventListener() argument 124 && listenerEntry.mType.equals(type)) { in removeEventListener()
|
/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/Exchange/exchange2/src/com/android/exchange/adapter/ |
D | Parser.java | 90 public int type; field in Parser 249 if (type == END) { in getValue() 260 if (type != END) { in getValue() 276 if (type == END) { in getValueInt() 284 if (type != END) { in getValueInt() 306 if (type == START) { in nextTag() 310 } else if (type == END && startTag == endTag) { in nextTag() 334 if (type == END && startTag == thisTag) { in skipTag() 351 return type; in nextToken() 442 type = END; in getNext() [all …]
|
/packages/apps/Browser/src/com/android/browser/ |
D | AccountsChangedReceiver.java | 60 String type = c.getString(1); in run() local 61 if (!contains(accounts, name, type)) { in run() 62 delete(cr, name, type); in run() 69 void delete(ContentResolver cr, String name, String type) { in delete() argument 77 cr.delete(uri, DELETE_SELECTION, new String[] { name, type }); in delete() 80 boolean contains(Account[] accounts, String name, String type) { in contains() argument 83 && TextUtils.equals(a.type, type)) { in contains()
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/mocks/ |
D | MockAccountTypeManager.java | 47 for (AccountType type : mTypes) { in getAccountType() 48 if (Objects.equal(accountTypeWithDataSet.accountType, type.accountType) in getAccountType() 49 && Objects.equal(accountTypeWithDataSet.dataSet, type.dataSet)) { in getAccountType() 50 return type; in getAccountType() 75 for (AccountType type : mTypes) { in getAccountTypes() 76 if (!writableOnly || type.areContactsWritable()) { in getAccountTypes() 77 ret.add(type); in getAccountTypes()
|
/packages/apps/Mms/src/com/android/mms/layout/ |
D | HVGALayoutParameters.java | 37 public HVGALayoutParameters(Context context, int type) { in HVGALayoutParameters() argument 38 if ((type != HVGA_LANDSCAPE) && (type != HVGA_PORTRAIT)) { in HVGALayoutParameters() 40 "Bad layout type detected: " + type); in HVGALayoutParameters() 44 Log.v(TAG, "HVGALayoutParameters.<init>(" + type + ")."); in HVGALayoutParameters() 46 mType = type; in HVGALayoutParameters()
|
/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/apps/Tag/src/com/android/apps/tag/record/ |
D | SmartPoster.java | 105 @Nullable String type) { in SmartPoster() argument 110 mType = type; in SmartPoster() 142 String type = parseType(recordsRaw); in parse() local 144 return new SmartPoster(uri, title, image, action, type); in parse() 192 private static <T> T getFirstIfExists(Iterable<?> elements, Class<T> type) { in getFirstIfExists() argument 193 Iterable<T> filtered = Iterables.filter(elements, type); in getFirstIfExists() 224 private static NdefRecord getByType(byte[] type, NdefRecord[] records) { in getByType() argument 226 if (Arrays.equals(type, record.getType())) { in getByType() 250 NdefRecord type = getByType(TYPE_TYPE, records); in parseType() local 251 if (type == null) { in parseType() [all …]
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
D | CertInstallerMain.java | 97 String type = intent.getType(); in run() local 98 if ((data != null) && (type != null)) { in run() 119 installByType(type, payload); in run() 126 private void installByType(String type, byte[] value) { in installByType() argument 128 if ("application/x-pkcs12".equals(type)) { in installByType() 130 } else if ("application/x-x509-ca-cert".equals(type) in installByType() 131 || "application/x-x509-user-cert".equals(type)) { in installByType() 134 throw new AssertionError("Unknown type: " + type); in installByType()
|
/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/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/apps/Contacts/src/com/android/contacts/editor/ |
D | RawContactReadOnlyEditorView.java | 115 public void setState(EntityDelta state, AccountType type, ViewIdGenerator vig, in setState() argument 121 if (state == null || type == null) return; in setState() 124 EntityModifier.ensureKindExists(state, type, StructuredName.CONTENT_ITEM_TYPE); in setState() 137 CharSequence accountType = type.getDisplayLabel(mContext); in setState() 143 CharSequence accountType = type.getDisplayLabel(mContext); in setState() 163 mAccountIcon.setImageDrawable(type.getDisplayIcon(mContext)); in setState() 170 DataKind kind = type.getKindForMimetype(Photo.CONTENT_ITEM_TYPE); in setState() 172 EntityModifier.ensureKindExists(state, type, Photo.CONTENT_ITEM_TYPE); in setState() 173 boolean hasPhotoEditor = type.getKindForMimetype(Photo.CONTENT_ITEM_TYPE) != null; in setState() 176 getPhotoEditor().setValues(kind, primary, state, !type.areContactsWritable(), vig); in setState() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | LocalizedNameResolver.java | 70 if (accountType.equals(auth.type)) { in resolveAllContactsName() 105 int type; in loadAllContactsNameFromXml() local 106 while ((type = parser.next()) != XmlPullParser.START_TAG in loadAllContactsNameFromXml() 107 && type != XmlPullParser.END_DOCUMENT) { in loadAllContactsNameFromXml() 111 if (type != XmlPullParser.START_TAG) { in loadAllContactsNameFromXml() 116 while (((type = parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth) in loadAllContactsNameFromXml() 117 && type != XmlPullParser.END_DOCUMENT) { in loadAllContactsNameFromXml() 119 if (type == XmlPullParser.START_TAG && CONTACTS_DATA_KIND.equals(name)) { in loadAllContactsNameFromXml()
|