/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_CommonDataKinds_RelationTest.java | 20 import android.provider.ContactsContract.CommonDataKinds.Relation; 34 assertGetTypeLabel(Relation.TYPE_ASSISTANT); 35 assertGetTypeLabel(Relation.TYPE_BROTHER); 36 assertGetTypeLabel(Relation.TYPE_CHILD); 37 assertGetTypeLabel(Relation.TYPE_DOMESTIC_PARTNER); 38 assertGetTypeLabel(Relation.TYPE_FATHER); 39 assertGetTypeLabel(Relation.TYPE_FRIEND); 40 assertGetTypeLabel(Relation.TYPE_MANAGER); 41 assertGetTypeLabel(Relation.TYPE_MOTHER); 42 assertGetTypeLabel(Relation.TYPE_PARENT) [all...] |
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
Relation.java | 24 * An immutable value type representing a statement relation with "kind" and "detail". 27 * field specifies which permission to delegate. A statement involving this relation does not 35 public final class Relation { 43 private Relation(String kind, String detail) { 49 * Returns the relation's kind. 57 * Returns the relation's detail. 65 * Creates a new Relation object for the specified {@code kind} and {@code detail}. 69 public static Relation create(@NonNull String kind, @NonNull String detail) 72 throw new AssociationServiceException("Relation not well formatted."); 74 return new Relation(kind, detail) 102 StringBuilder relation = new StringBuilder(); local 119 Relation relation = (Relation) o; local [all...] |
Statement.java | 22 * An immutable value type representing a statement, consisting of a source, target, and relation. 23 * This reflects an assertion that the relation holds for the source, target pair. For example, if a 28 * "relation": ["delegate_permission/common.handle_all_urls"], 38 * <pre>Relation.create("delegate_permission", "common.get_login_creds");</pre> 50 private final Relation mRelation; 53 private Statement(AbstractAsset source, AbstractAsset target, Relation relation) { 56 mRelation = relation; 76 * Returns the relation of the statement. 79 public Relation getRelation() [all...] |
StatementParser.java | 105 .create(source, target, Relation.create(relations.getString(i))));
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
GoogleAccountType.java | 24 import android.provider.ContactsContract.CommonDataKinds.Relation; 125 DataKind kind = addKind(new DataKind(Relation.CONTENT_ITEM_TYPE, 128 kind.actionBody = new SimpleInflater(Relation.NAME); 130 kind.typeColumn = Relation.TYPE; 132 kind.typeList.add(buildRelationType(Relation.TYPE_ASSISTANT)); 133 kind.typeList.add(buildRelationType(Relation.TYPE_BROTHER)); 134 kind.typeList.add(buildRelationType(Relation.TYPE_CHILD)); 135 kind.typeList.add(buildRelationType(Relation.TYPE_DOMESTIC_PARTNER)); 136 kind.typeList.add(buildRelationType(Relation.TYPE_FATHER)); 137 kind.typeList.add(buildRelationType(Relation.TYPE_FRIEND)) [all...] |
SamsungAccountType.java | 30 import android.provider.ContactsContract.CommonDataKinds.Relation; 171 DataKind kind = addKind(new DataKind(Relation.CONTENT_ITEM_TYPE, 174 kind.actionBody = new SimpleInflater(Relation.NAME); 176 kind.typeColumn = Relation.TYPE; 178 kind.typeList.add(buildRelationType(Relation.TYPE_ASSISTANT)); 179 kind.typeList.add(buildRelationType(Relation.TYPE_BROTHER)); 180 kind.typeList.add(buildRelationType(Relation.TYPE_CHILD)); 181 kind.typeList.add(buildRelationType(Relation.TYPE_DOMESTIC_PARTNER)); 182 kind.typeList.add(buildRelationType(Relation.TYPE_FATHER)); 183 kind.typeList.add(buildRelationType(Relation.TYPE_FRIEND)) [all...] |
BaseAccountType.java | 32 import android.provider.ContactsContract.CommonDataKinds.Relation; 146 return new EditType(type, Relation.getTypeLabelResource(type)); 588 return Relation.getTypeLabelResource(type == null ? Relation.TYPE_CUSTOM : type); [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/ |
RelationDataItem.java | 22 import android.provider.ContactsContract.CommonDataKinds.Relation; 26 * Represents a relation data item, wrapping the columns in 27 * {@link ContactsContract.CommonDataKinds.Relation}. 36 return getContentValues().getAsString(Relation.NAME); 40 return getContentValues().getAsString(Relation.LABEL); 56 } else if (getKindTypeColumn(mKind) == Relation.TYPE_CUSTOM &&
|
DataItem.java | 31 import android.provider.ContactsContract.CommonDataKinds.Relation; 85 } else if (Relation.CONTENT_ITEM_TYPE.equals(mimeType)) {
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
Relation.java | 26 * A Relation is a set of mappings from keys to values. 33 public class Relation<K, V> implements Freezable<Relation<K,V>> { // TODO: add , Map<K, Collection<V>>, but requires API changes 39 public static <K, V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator) { 40 return new Relation<K, V>(map, setCreator); 43 public static <K,V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator, Comparator<V> setComparator) { 44 return new Relation<K, V>(map, setCreator, setComparator); 47 public Relation(Map<K, Set<V>> map, Class<?> setCreator) { 52 public Relation(Map<K, Set<V>> map, Class<?> setCreator, Comparator<V> setComparator) { 108 return data.equals(((Relation<?, ?>) o).data) [all...] |
StringRange.java | 91 Relation<Integer,Ranges> lengthToArrays = Relation.of(new TreeMap<Integer,Set<Ranges>>(), TreeSet.class);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
Relation.java | 25 * A Relation is a set of mappings from keys to values. 31 public class Relation<K, V> implements Freezable<Relation<K,V>> { // TODO: add , Map<K, Collection<V>>, but requires API changes 37 public static <K, V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator) { 38 return new Relation<K, V>(map, setCreator); 41 public static <K,V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator, Comparator<V> setComparator) { 42 return new Relation<K, V>(map, setCreator, setComparator); 45 public Relation(Map<K, Set<V>> map, Class<?> setCreator) { 50 public Relation(Map<K, Set<V>> map, Class<?> setCreator, Comparator<V> setComparator) { 106 return data.equals(((Relation<?, ?>) o).data) [all...] |
StringRange.java | 87 Relation<Integer,Ranges> lengthToArrays = Relation.of(new TreeMap<Integer,Set<Ranges>>(), TreeSet.class);
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/dataitem/ |
DataItemTests.java | 26 import android.provider.ContactsContract.CommonDataKinds.Relation; 328 final String customRelation1 = "custom relation 1"; 329 final String customRelation2 = "custom relation 2"; 331 mValues1.put(Data.MIMETYPE, Relation.CONTENT_ITEM_TYPE); 332 mValues2.put(Data.MIMETYPE, Relation.CONTENT_ITEM_TYPE); 333 mValues3.put(Data.MIMETYPE, Relation.CONTENT_ITEM_TYPE); 334 mValues4.put(Data.MIMETYPE, Relation.CONTENT_ITEM_TYPE); 336 mValues1.put(Relation.NAME, name1); 337 mValues2.put(Relation.NAME, name1); 338 mValues3.put(Relation.NAME, name1) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/ |
UnicodePropertySymbolTable.java | 186 set = prop.getSet(new ComparisonMatcher(propertyValue, Relation.geq)); 220 public enum Relation {less, leq, equal, geq, greater} 223 Relation relation; field in class:UnicodePropertySymbolTable.ComparisonMatcher 228 public ComparisonMatcher(String pattern, Relation comparator) { 229 this.relation = comparator; 235 switch (relation) {
|
BagFormatter.java | 248 abstract public static class Relation { 252 static class NullRelation extends Relation { 256 private Relation r = new NullRelation(); 258 public BagFormatter setRelation(Relation r) { 263 public Relation getRelation() { [all...] |
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/util/ |
UnicodePropertySymbolTable.java | 185 set = prop.getSet(new ComparisonMatcher(propertyValue, Relation.geq)); 219 public enum Relation {less, leq, equal, geq, greater} 222 Relation relation; field in class:UnicodePropertySymbolTable.ComparisonMatcher 227 public ComparisonMatcher(String pattern, Relation comparator) { 228 this.relation = comparator; 234 switch (relation) {
|
BagFormatter.java | 247 abstract public static class Relation { 251 static class NullRelation extends Relation { 255 private Relation r = new NullRelation(); 257 public BagFormatter setRelation(Relation r) { 262 public Relation getRelation() { [all...] |
/frameworks/base/packages/StatementService/src/com/android/statementservice/ |
DirectStatementService.java | 35 import com.android.statementservice.retriever.Relation; 54 * EXTRA_TARGET_ASSET_DESCRIPTOR} for {@code EXTRA_RELATION} relation. 65 * <p>A relation string. 68 "com.android.statementservice.service.RELATION"; 190 String relation = extras.getString(EXTRA_RELATION); local 207 if (relation == null) { 214 new IsAssociatedCallable(sources, target, relation, resultReceiver), TAG)); 228 public IsAssociatedCallable(List<String> sources, String target, String relation, 232 mRelation = relation; 237 Relation relation) throws AssociationServiceException 253 Relation relation; local [all...] |
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
VCardExporterTests.java | 34 import android.provider.ContactsContract.CommonDataKinds.Relation; [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
EditorUiUtils.java | 35 import android.provider.ContactsContract.CommonDataKinds.Relation; 89 // Relation.CONTENT_ITEM_TYPE 209 case Relation.CONTENT_ITEM_TYPE:
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/account/ |
ExternalAccountTypeTest.java | 26 import android.provider.ContactsContract.CommonDataKinds.Relation; 106 assertNotNull(type.getKindForMimetype(Relation.CONTENT_ITEM_TYPE));
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
LocaleMatcher.java | 22 import android.icu.impl.Relation; 576 public Relation<String,String> getMatchingLanguages() { 577 Relation<String,String> desiredToSupported = Relation.of(new LinkedHashMap<String,Set<String>>(), HashSet.class); 600 private Relation<String, String> matchingLanguages; 617 public Relation<String, String> matchingLanguages() { [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
LocaleMatcher.java | 21 import com.ibm.icu.impl.Relation; 583 public Relation<String,String> getMatchingLanguages() { 584 Relation<String,String> desiredToSupported = Relation.of(new LinkedHashMap<String,Set<String>>(), HashSet.class); 607 private Relation<String, String> matchingLanguages; 624 public Relation<String, String> matchingLanguages() { [all...] |
/frameworks/opt/vcard/java/com/android/vcard/ |
VCardComposer.java | 35 import android.provider.ContactsContract.CommonDataKinds.Relation; 617 .appendRelation(contentValuesListMap.get(Relation.CONTENT_ITEM_TYPE));
|