/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 …]
|
/packages/services/Car/tools/emulator/ |
D | diagjson.example | 4 "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 …]
|
D | VehicleHalProto_pb2.py | 28 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/ |
D | BaseAccountType.java | 127 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 …]
|
D | AccountTypeProvider.java | 87 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 …]
|
D | AccountWithDataSet.java | 53 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/apps/Dialer/java/com/android/contacts/common/model/account/ |
D | BaseAccountType.java | 122 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 …]
|
D | AccountWithDataSet.java | 61 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/ |
D | ExternalAccountTypeTest.java | 91 … 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/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeLocalRequestScheduler.java | 107 LocalRequest(int type) { in LocalRequest() argument 108 validateTypeOrThrow(type); in LocalRequest() 109 procedureType = type; in LocalRequest() 140 protected abstract void validateTypeOrThrow(int type); in validateTypeOrThrow() argument 153 IkeLocalRequest(int type) { in IkeLocalRequest() argument 154 this(type, SPI_NOT_INCLUDED); in IkeLocalRequest() 158 IkeLocalRequest(int type, long remoteIkeSpi) { in IkeLocalRequest() argument 159 super(type); in IkeLocalRequest() 164 protected void validateTypeOrThrow(int type) { in validateTypeOrThrow() argument 165 if (type >= CMD_LOCAL_REQUEST_CREATE_IKE && type <= CMD_LOCAL_REQUEST_DPD) return; in validateTypeOrThrow() [all …]
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/ |
D | Roles.java | 151 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/ |
D | IsoInterface.java | 65 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/ |
D | AccountTypeManager.java | 149 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/ |
D | FakeDeviceAccountTypeFactory.java | 42 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/ |
D | HeadsetStackEvent.java | 49 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/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/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/ |
D | StructNlAttr.java | 37 public static short makeNestedType(short type) { in makeNestedType() argument 38 return (short) (type | NLA_F_NESTED); in makeNestedType() 104 public StructNlAttr(short type, byte value) { in StructNlAttr() argument 105 nla_type = type; in StructNlAttr() 110 public StructNlAttr(short type, short value) { in StructNlAttr() argument 111 this(type, value, ByteOrder.nativeOrder()); in StructNlAttr() 114 public StructNlAttr(short type, short value, ByteOrder order) { in StructNlAttr() argument 116 nla_type = type; in StructNlAttr() 121 public StructNlAttr(short type, int value) { in StructNlAttr() argument 122 this(type, value, ByteOrder.nativeOrder()); in StructNlAttr() [all …]
|
/packages/apps/TV/tests/robotests/src/com/android/tv/ |
D | ShadowTvView.java | 54 public List<TvTrackInfo> getTracks(int type) { in getTracks() argument 55 return mTracks.get(type); in getTracks() 59 public void selectTrack(int type, String trackId) { in selectTrack() argument 60 mSelectedTracks.put(type, trackId); in selectTrack() 61 int infoIndex = findTrackIndex(type, trackId); in selectTrack() 66 replaceTrack(type, infoIndex); in selectTrack() 68 mCallback.onTrackSelected("fakeInputId", type, trackId); in selectTrack() 72 public String getSelectedTrack(int type) { in getSelectedTrack() argument 73 return mSelectedTracks.get(type); in getSelectedTrack() 81 private int findTrackIndex(int type, String trackId) { in findTrackIndex() argument [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/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeSaPayload.java | 625 switch (transform.type) { in readFrom() 980 public final int type; field in IkeSaPayload.Transform 985 protected Transform(int type, int id) { in Transform() argument 986 this.type = type; in Transform() 996 protected Transform(int type, int id, List<Attribute> attributeList) { in Transform() argument 997 this.type = type; in Transform() 1015 int type = Byte.toUnsignedInt(inputBuffer.get()); in readFrom() local 1027 switch (type) { in readFrom() 1039 return new UnrecognizedTransform(type, id, attributeList); in readFrom() 1076 if (!foundTypes.add(attr.type)) { in validateAttributeUniqueness() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpStackEvent.java | 44 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/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 …]
|