/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | InputLogicTests.java | 48 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 …]
|
D | ShiftModeTests.java | 42 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 …]
|
D | PunctuationTests.java | 40 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 …]
|
D | InputLogicTestsLanguageWithoutSpaces.java | 30 type(STRING_TO_TYPE); in testAutoCorrectForLanguageWithoutSpaces() 40 type(STRING_TO_TYPE); in testRevertAutoCorrectForLanguageWithoutSpaces() 43 type(Constants.CODE_DELETE); in testRevertAutoCorrectForLanguageWithoutSpaces() 56 type(WORD_TO_TYPE); in testDontResumeSuggestionOnBackspace() 61 type(" "); in testDontResumeSuggestionOnBackspace() 62 type(Constants.CODE_DELETE); in testDontResumeSuggestionOnBackspace() 74 type(WORD_TO_TYPE); in testStartComposingInsideText() 85 type("xxxx"); in testStartComposingInsideText() 97 type(WORD_TO_TYPE); in testMovingCursorInsideWordAndType() 110 type("x"); in testMovingCursorInsideWordAndType() [all …]
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/account/ |
D | ExternalAccountTypeTest.java | 78 … final ExternalAccountType type = new ExternalAccountType(getInstrumentation().getTargetContext(), in testNoPackage() local 80 assertTrue(type.isInitialized()); in testNoPackage() 88 … final ExternalAccountType type = new ExternalAccountType(getInstrumentation().getTargetContext(), in testEditSchema() local 91 assertTrue(type.isInitialized()); in testEditSchema() 94 assertNotNull(type.getKindForMimetype(StructuredName.CONTENT_ITEM_TYPE)); in testEditSchema() 95 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME)); in testEditSchema() 96 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME)); in testEditSchema() 97 assertNotNull(type.getKindForMimetype(Email.CONTENT_ITEM_TYPE)); in testEditSchema() 98 assertNotNull(type.getKindForMimetype(StructuredPostal.CONTENT_ITEM_TYPE)); in testEditSchema() 99 assertNotNull(type.getKindForMimetype(Im.CONTENT_ITEM_TYPE)); in testEditSchema() [all …]
|
/packages/services/Car/car_product/sepolicy/ |
D | file.te | 1 type btnvtool_exec, exec_type, file_type; 4 type bt_firmware_file, contextmount_type, fs_type; 6 # Default type for anything under /firmware. 7 type firmware_file, contextmount_type, fs_type; 9 type mpdecision_socket, file_type; 10 type perfd_data_file, file_type, data_file_type; 11 type persist_file, file_type; 12 type pps_socket, file_type; 13 type sysfs_bt_power, sysfs_type, fs_type; 14 type sysfs_dcvs, sysfs_type, fs_type; [all …]
|
D | device.te | 1 # Define the logging device type 2 type diag_device, dev_type, mlstrustedobject; 4 #device type for gss device nodes, ie /dev/gss 5 type gss_device, dev_type; 7 type hsic_device, dev_type; 8 type latency_device, dev_type; 9 type modem_block_device, dev_type; 10 type persist_block_device, dev_type; 11 type qmuxd_socket, dev_type; 12 type smem_log_device, dev_type; [all …]
|
D | property.te | 1 type ctl_mpdecision_prop, property_type; 2 type ctl_netmgrd_prop, property_type; 3 type ctl_qmuxd_prop, property_type; 4 type ctl_quipc_igsn_prop, property_type; 5 type ctl_quipc_main_prop, property_type; 6 type ctl_thermal-engine_prop, property_type; 7 type hw_cabl_prop, property_type; 8 type wc_transport_prop, property_type; 9 type wlan_driver_prop, property_type; 10 type radio_atfwd_prop, property_type;
|
/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 …]
|
D | AccountWithDataSet.java | 50 public final String type; field in AccountWithDataSet 59 public AccountWithDataSet(String name, String type, String dataSet) { in AccountWithDataSet() argument 61 this.type = emptyToNull(type); in AccountWithDataSet() 63 mAccountTypeWithDataSet = AccountTypeWithDataSet.get(type, dataSet); in AccountWithDataSet() 72 this.type = in.readString(); in AccountWithDataSet() 74 mAccountTypeWithDataSet = AccountTypeWithDataSet.get(type, dataSet); in AccountWithDataSet() 78 return name == null && type == null; in isLocalAccount() 82 if (name != null && type != null) { in getAccountOrNull() 83 return new Account(name, type); in getAccountOrNull() 94 dest.writeString(type); in writeToParcel() [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/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/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/ContactsCommon/src/com/android/contacts/common/model/ |
D | AccountTypeManager.java | 156 public DataKind getKindOrFallback(AccountType type, String mimeType) { in getKindOrFallback() argument 157 return type == null ? null : type.getKindForMimetype(mimeType); in getKindOrFallback() 254 if (Objects.equal(a.name, b.name) && Objects.equal(a.type, b.type) 257 } else if (b.name == null || b.type == null) { 259 } else if (a.name == null || a.type == null) { 266 diff = a.type.compareTo(b.type); 405 final String type = sync.accountType; in loadAccountsInBackground() local 406 final AuthenticatorDescription auth = findAuthenticator(auths, type); in loadAccountsInBackground() 408 Log.w(TAG, "No authenticator found for type=" + type + ", ignoring it."); in loadAccountsInBackground() 413 if (GoogleAccountType.ACCOUNT_TYPE.equals(type)) { in loadAccountsInBackground() [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 …]
|
D | BaseDatabaseHelperUpgradeTest.java | 48 public String type; field in BaseDatabaseHelperUpgradeTest.TableColumn 59 public TableColumn(String name, String type, boolean notnull, String defaultValue) { in TableColumn() argument 61 this.type = type; in TableColumn() 86 column.type = cursor.getString(typeIndex); in TableStructure() 104 public void assertHasColumn(String name, String type, boolean notnull, in assertHasColumn() argument 110 if (!type.equals(column.type)) { in assertHasColumn() 112 + column.type + ", " + type + " expected"); in assertHasColumn() 132 assertHasColumn(column.name, column.type, column.notnull, column.dflt_value); in assertHasColumns() 279 private TableStructure createOneColumnTable(String name, String type, boolean notnull, in createOneColumnTable() argument 282 table.addColumn(new TableColumn(name, type, notnull, defaultValue)); in createOneColumnTable()
|
/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/Messaging/src/com/android/messaging/ui/contact/ |
D | ContactDropdownLayouter.java | 72 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 …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | ScanFilterQueue.java | 53 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 …]
|
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/Settings/tests/app/src/com/android/settings/vpn2/ |
D | VpnProfileParser.java | 45 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/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | HanziToPinyin.java | 53 public Token(int type, String source, String target) { in Token() argument 54 this.type = type; in Token() 62 public int type; field in HanziToPinyin.Token 103 token.type = Token.LATIN; in tokenize() 110 token.type = Token.LATIN; in tokenize() 116 token.type = Token.PINYIN; in tokenize() 120 token.type = Token.UNKNOWN; in tokenize() 161 if (token.type == Token.PINYIN) { in getTokens() 168 if (tokenType != token.type && sb.length() > 0) { in getTokens() 173 tokenType = token.type; in getTokens()
|
/packages/apps/TV/tests/unit/src/com/android/tv/util/ |
D | TestUtils.java | 32 int type, boolean isHardwareInput) throws Exception { in createTvInputInfo() argument 37 return createTvInputInfoForLmp(service, id, parentId, type); in createTvInputInfo() 41 return createTvInputInfoForMnc(service, id, parentId, type, isHardwareInput); in createTvInputInfo() 45 String parentId, int type) throws Exception { in createTvInputInfoForLmp() argument 49 return constructor.newInstance(service, id, parentId, type); in createTvInputInfoForLmp() 53 String parentId, int type, boolean isHardwareInput) throws Exception { in createTvInputInfoForMnc() argument 57 return constructor.newInstance(service, id, parentId, type, isHardwareInput); in createTvInputInfoForMnc() 61 String parentId, int type) throws Exception { in createTvInputInfoForNpreview() argument 65 return constructor.newInstance(service, id, parentId, type); in createTvInputInfoForNpreview()
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/ |
D | AccountTypeManagerTest.java | 129 private static AccountWithDataSet createAccountWithDataSet(String name, AccountType type) { in createAccountWithDataSet() argument 130 return new AccountWithDataSet(name, type.accountType, type.dataSet); in createAccountWithDataSet() 138 for (AccountType type : types) { in buildAccountTypes() 139 result.put(type.getAccountTypeAndDataSet(), type); in buildAccountTypes() local 166 for (AccountType type : expectedInvitableTypes) { in verifyAccountTypes() 167 assertTrue("Result doesn't contain type=" + type.getAccountTypeAndDataSet(), in verifyAccountTypes() 168 result.containsKey(type.getAccountTypeAndDataSet())); in verifyAccountTypes() 177 public MockAccountType(String type, String dataSet, String inviteContactActivityClassName) { in MockAccountType() argument 178 accountType = type; in MockAccountType()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | RawContactReadOnlyEditorView.java | 104 public void setState(RawContactDelta state, AccountType type, ViewIdGenerator vig, in setState() argument 110 if (state == null || type == null) return; in setState() 113 RawContactModifier.ensureKindExists(state, type, StructuredName.CONTENT_ITEM_TYPE); in setState() 121 ? EditorUiUtils.getLocalAccountInfo(getContext(), state.getAccountName(), type) in setState() 122 : EditorUiUtils.getAccountInfo(getContext(), state.getAccountName(), type); in setState() 143 DataKind kind = type.getKindForMimetype(Photo.CONTENT_ITEM_TYPE); in setState() 145 RawContactModifier.ensureKindExists(state, type, Photo.CONTENT_ITEM_TYPE); in setState() 146 boolean hasPhotoEditor = type.getKindForMimetype(Photo.CONTENT_ITEM_TYPE) != null; in setState() 149 getPhotoEditor().setValues(kind, primary, state, !type.areContactsWritable(), vig); in setState() 157 if (type.getEditContactActivityClassName() != null) { in setState() [all …]
|