/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
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/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/vo/ |
PetAndToys.java | 20 import android.arch.persistence.room.Relation; 27 @Relation(parentColumn = "mPetId", entityColumn = "mPetId")
|
UserAndAllPets.java | 20 import android.arch.persistence.room.Relation; 27 @Relation(parentColumn = "mId", entityColumn = "mUserId")
|
UserWithPetsAndToys.java | 20 import android.arch.persistence.room.Relation; 27 @Relation(entity = Pet.class, parentColumn = "mId", entityColumn = "mUserId")
|
UserIdAndPetNames.java | 20 import android.arch.persistence.room.Relation; 30 @Relation(entity = Pet.class, parentColumn = "mId", entityColumn = "mUserId",
|
PetsToys.java | 19 import android.arch.persistence.room.Relation; 26 @Relation(parentColumn = "petId", entityColumn = "mPetId")
|
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/android/arch/persistence/room/integration/kotlintestapp/vo/ |
PublisherWithBooks.kt | 20 import android.arch.persistence.room.Relation 24 @Relation(parentColumn = "publisherId", // publisher.publisherId
|
/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...] |
/packages/apps/Contacts/src/com/android/contacts/model/account/ |
GoogleAccountType.java | 24 import android.provider.ContactsContract.CommonDataKinds.Relation; 127 DataKind kind = addKind(new DataKind(Relation.CONTENT_ITEM_TYPE, 130 kind.actionBody = new SimpleInflater(Relation.NAME); 132 kind.typeColumn = Relation.TYPE; 134 kind.typeList.add(buildRelationType(Relation.TYPE_ASSISTANT)); 135 kind.typeList.add(buildRelationType(Relation.TYPE_BROTHER)); 136 kind.typeList.add(buildRelationType(Relation.TYPE_CHILD)); 137 kind.typeList.add(buildRelationType(Relation.TYPE_DOMESTIC_PARTNER)); 138 kind.typeList.add(buildRelationType(Relation.TYPE_FATHER)); 139 kind.typeList.add(buildRelationType(Relation.TYPE_FRIEND)) [all...] |
SamsungAccountType.java | 24 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; 148 return new EditType(type, Relation.getTypeLabelResource(type)); 586 return Relation.getTypeLabelResource(type == null ? Relation.TYPE_CUSTOM : type); [all...] |
/packages/apps/Dialer/java/com/android/contacts/common/model/account/ |
GoogleAccountType.java | 24 import android.provider.ContactsContract.CommonDataKinds.Relation; 126 Relation.CONTENT_ITEM_TYPE, 131 kind.actionBody = new SimpleInflater(Relation.NAME); 133 kind.typeColumn = Relation.TYPE; 135 kind.typeList.add(buildRelationType(Relation.TYPE_ASSISTANT)); 136 kind.typeList.add(buildRelationType(Relation.TYPE_BROTHER)); 137 kind.typeList.add(buildRelationType(Relation.TYPE_CHILD)); 138 kind.typeList.add(buildRelationType(Relation.TYPE_DOMESTIC_PARTNER)); 139 kind.typeList.add(buildRelationType(Relation.TYPE_FATHER)); 140 kind.typeList.add(buildRelationType(Relation.TYPE_FRIEND)) [all...] |
SamsungAccountType.java | 24 import android.provider.ContactsContract.CommonDataKinds.Relation; 169 addKind(new DataKind(Relation.CONTENT_ITEM_TYPE, R.string.relationLabelsGroup, 160, true)); 171 kind.actionBody = new SimpleInflater(Relation.NAME); 173 kind.typeColumn = Relation.TYPE; 175 kind.typeList.add(buildRelationType(Relation.TYPE_ASSISTANT)); 176 kind.typeList.add(buildRelationType(Relation.TYPE_BROTHER)); 177 kind.typeList.add(buildRelationType(Relation.TYPE_CHILD)); 178 kind.typeList.add(buildRelationType(Relation.TYPE_DOMESTIC_PARTNER)); 179 kind.typeList.add(buildRelationType(Relation.TYPE_FATHER)); 180 kind.typeList.add(buildRelationType(Relation.TYPE_FRIEND)) [all...] |
/packages/apps/Contacts/src/com/android/contacts/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 &&
|
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/ |
RelationDataItem.java | 21 import android.provider.ContactsContract.CommonDataKinds.Relation; 25 * Represents a relation data item, wrapping the columns in {@link 26 * ContactsContract.CommonDataKinds.Relation}. 35 return getContentValues().getAsString(Relation.NAME); 39 return getContentValues().getAsString(Relation.LABEL); 55 } else if (getKindTypeColumn(mKind) == Relation.TYPE_CUSTOM
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
BugreportCollectorTest.java | 24 import com.android.tradefed.result.BugreportCollector.Relation; 84 Predicate foo = new Predicate(Relation.AFTER, Freq.EACH, Noun.TESTCASE); 89 Predicate foo = new Predicate(Relation.AFTER, Freq.EACH, Noun.TESTCASE); 90 Predicate bar = new Predicate(Relation.AFTER, Freq.EACH, Noun.TESTCASE); 91 Predicate baz = new Predicate(Relation.AFTER, Freq.EACH, Noun.INVOCATION); 100 Predicate shortP = new Predicate(Relation.AFTER, Freq.EACH, Noun.INVOCATION); 101 Predicate longP = new Predicate(Relation.AFTER, Freq.EACH, Noun.INVOCATION, 108 Predicate shortP = new Predicate(Relation.AFTER, Freq.EACH, Noun.INVOCATION); 109 Predicate longP = new Predicate(Relation.AFTER, Freq.EACH, Noun.INVOCATION, 111 Predicate longP2 = new Predicate(Relation.AFTER, Freq.EACH, Noun.INVOCATION [all...] |
/tools/tradefederation/core/src/com/android/tradefed/result/ |
BugreportCollector.java | 48 p(Relation.AFTER, Freq.EACH, Noun.FAILED_TESTCASE); 51 p(Relation.AT_START_OF, Freq.EACH, Noun.INVOCATION); 67 public static enum Relation implements SubPredicate { 92 public Predicate(Relation rp, Freq fp, Noun n) throws IllegalArgumentException { 100 public Predicate(Relation rp, Freq fp, Noun fpN, Filter filterP, Noun filterPN) 110 public static void assertValidPredicate(Relation rp, Freq fp, Noun n) 112 if (rp == Relation.AT_START_OF) { 302 Predicate search(Relation relation, Collection<Freq> freqs, Noun noun) { 305 CLog.v("Search checking predicate %s", p(relation, freq, noun)) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
Relation.java | 28 * A Relation is a set of mappings from keys to values. 35 public class Relation<K, V> implements Freezable<Relation<K,V>> { // TODO: add , Map<K, Collection<V>>, but requires API changes 41 public static <K, V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator) { 42 return new Relation<K, V>(map, setCreator); 45 public static <K,V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator, Comparator<V> setComparator) { 46 return new Relation<K, V>(map, setCreator, setComparator); 49 public Relation(Map<K, Set<V>> map, Class<?> setCreator) { 54 public Relation(Map<K, Set<V>> map, Class<?> setCreator, Comparator<V> setComparator) { 111 return data.equals(((Relation<?, ?>) o).data) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
Relation.java | 27 * 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) { 109 return data.equals(((Relation<?, ?>) o).data) [all...] |
/frameworks/support/room/common/src/main/java/android/arch/persistence/room/ |
Relation.java | 25 * A convenience annotation which can be used in a Pojo to automatically fetch relation entities. 38 * {@literal @}Relation(parentColumn = "id", entityColumn = "userId") 49 * The type of the field annotated with {@code Relation} must be a {@link java.util.List} or 65 * {@literal @}Relation(parentColumn = "id", entityColumn = "userId", entity = Pet.class) 76 * from the {@code entity} defined in the {@code @Relation} annotation (<i>Pet</i>). 81 * use {@link #projection()} property in the {@code Relation} annotation. 86 * {@literal @}Relation(parentColumn = "id", entityColumn = "userId", entity = Pet.class, 92 * Note that {@code @Relation} annotation can be used only in Pojo classes, an {@link Entity} class 97 * Note that the {@code @Relation} annotated field cannot be a constructor parameter, it must be 102 public @interface Relation { [all...] |
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/vo/ |
Pojo.kt | 30 val embeddedFields: List<EmbeddedField>, val relations: List<Relation>,
|
Relation.kt | 20 * Value object created from processing a @Relation annotation. 22 class Relation(
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/ |
DataItemTests.java | 26 import android.provider.ContactsContract.CommonDataKinds.Relation; 327 final String customRelation1 = "custom relation 1"; 328 final String customRelation2 = "custom relation 2"; 330 mValues1.put(Data.MIMETYPE, Relation.CONTENT_ITEM_TYPE); 331 mValues2.put(Data.MIMETYPE, Relation.CONTENT_ITEM_TYPE); 332 mValues3.put(Data.MIMETYPE, Relation.CONTENT_ITEM_TYPE); 333 mValues4.put(Data.MIMETYPE, Relation.CONTENT_ITEM_TYPE); 335 mValues1.put(Relation.NAME, name1); 336 mValues2.put(Relation.NAME, name1); 337 mValues3.put(Relation.NAME, name1) [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...] |