Home
last modified time | relevance | path

Searched refs:entity (Results 1 – 25 of 91) sorted by relevance

1234

/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/optics/
DLens.kt72 override fun every(entity: S): Sequence<A> = in <lambda>()
73 if (entity != null) sequenceOf(get(entity)) else emptySequence() in <lambda>()
75 override fun modify(entity: S, modifier: (A) -> B): T = this@Lens.modify(entity, modifier) in <lambda>()
78 entity: S, in <lambda>()
80 ): Action<out T> = this@Lens.modifyWithAction(entity, modifier) in <lambda>()
87 abstract fun get(entity: S): A in get()
90 abstract fun set(entity: S, newValue: B): T in get()
130 inline fun modify(entity: S, crossinline modifier: (A) -> B): T = lift(modifier)(entity) in modify()
133 fun modifyWithAction(entity: S, modifier: (value: A) -> Action<out B>): Action<out T> { in modify()
134 val original = get(entity) in modify()
[all …]
DTraversal.kt46 abstract fun every(entity: S): Sequence<A> in every()
52 abstract fun modify(entity: S, modifier: (A) -> B): T in every()
58 abstract fun modifyWithAction(entity: S, modifier: (value: A) -> Action<out B>): Action<out T> in every()
79 override fun every(entity: S): Sequence<NewA> = in compose()
80 this@Traversal.every(entity).flatMap { other.every(it as AIn) } in compose()
84 override fun modify(entity: S, modifier: (NewA) -> NewB): T = in compose()
85 this@Traversal.modify(entity) { in compose()
97 entity: S, in compose()
100 return this@Traversal.modifyWithAction(entity) { in compose()
146 override fun every(entity: List<A>): Sequence<A> = entity.asSequence() in list()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/db/
DAppUsageEventEntityTest.java38 AppUsageEventEntity entity = in testBuilder_returnsExpectedResult() local
50 assertThat(entity.uid).isEqualTo(uid); in testBuilder_returnsExpectedResult()
51 assertThat(entity.userId).isEqualTo(userId); in testBuilder_returnsExpectedResult()
52 assertThat(entity.timestamp).isEqualTo(timestamp); in testBuilder_returnsExpectedResult()
53 assertThat(entity.appUsageEventType).isEqualTo(appUsageEventType); in testBuilder_returnsExpectedResult()
54 assertThat(entity.packageName).isEqualTo(packageName); in testBuilder_returnsExpectedResult()
55 assertThat(entity.instanceId).isEqualTo(instanceId); in testBuilder_returnsExpectedResult()
56 assertThat(entity.taskRootPackageName).isEqualTo(taskRootPackageName); in testBuilder_returnsExpectedResult()
DBatteryEventEntityTest.java35 BatteryEventEntity entity = in testBuilder_returnsExpectedResult() local
43 assertThat(entity.timestamp).isEqualTo(timestamp); in testBuilder_returnsExpectedResult()
44 assertThat(entity.batteryEventType).isEqualTo(batteryEventType); in testBuilder_returnsExpectedResult()
45 assertThat(entity.batteryLevel).isEqualTo(batteryLevel); in testBuilder_returnsExpectedResult()
DBatteryReattributeDaoTest.java112 private static void assertEntity(BatteryReattributeEntity entity, long timestampStart, in assertEntity() argument
114 assertThat(entity.timestampStart).isEqualTo(timestampStart); in assertEntity()
115 assertThat(entity.timestampEnd).isEqualTo(timestampEnd); in assertEntity()
116 assertThat(entity.reattributeData).isEqualTo(reattributeData); in assertEntity()
DBatteryUsageSlotEntityTest.java34 BatteryUsageSlotEntity entity = in testBuilder_returnsExpectedResult() local
41 assertThat(entity.timestamp).isEqualTo(timestamp); in testBuilder_returnsExpectedResult()
42 assertThat(entity.batteryUsageSlot).isEqualTo(batteryUsageSlotString); in testBuilder_returnsExpectedResult()
DAppUsageEventDaoTest.java155 AppUsageEventEntity entity, long timestamp, String packageName) { in assertAppUsageEvent() argument
156 assertThat(entity.timestamp).isEqualTo(timestamp); in assertAppUsageEvent()
157 assertThat(entity.packageName).isEqualTo(packageName); in assertAppUsageEvent()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/storage/
DAudioPolicyEntityTest.java32 AudioPolicyEntity entity = new AudioPolicyEntity(); in constructor() local
33 assertThat(entity.callEstablishAudioPolicy) in constructor()
35 assertThat(entity.connectingTimeAudioPolicy) in constructor()
37 assertThat(entity.inBandRingtoneAudioPolicy) in constructor()
43 AudioPolicyEntity entity = new AudioPolicyEntity(); in toString_shouldNotEmpty() local
44 assertThat(entity.toString()).isNotEmpty(); in toString_shouldNotEmpty()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileDataPreferenceController.java242 mSubscriptionInfoEntityList.forEach(entity -> { in onActiveSubInfoChanged()
243 if (entity.getSubId() == mSubId) { in onActiveSubInfoChanged()
244 mSubscriptionInfoEntity = entity; in onActiveSubInfoChanged()
245 if (entity.getSubId() == SubscriptionManager.getDefaultDataSubscriptionId()) { in onActiveSubInfoChanged()
246 mDefaultSubId = entity.getSubId(); in onActiveSubInfoChanged()
260 mMobileNetworkInfoEntityList.forEach(entity -> { in onAllMobileNetworkInfoChanged()
261 if (Integer.parseInt(entity.subId) == mSubId) { in onAllMobileNetworkInfoChanged()
262 mMobileNetworkInfoEntity = entity; in onAllMobileNetworkInfoChanged()
DConvertToEsimPreferenceController.java180 mSubscriptionInfoEntityList.forEach(entity -> { in onActiveSubInfoChanged()
181 if (Integer.parseInt(entity.subId) == mSubId) { in onActiveSubInfoChanged()
182 mSubscriptionInfoEntity = entity; in onActiveSubInfoChanged()
DMobileNetworkSettings.java543 for (SubscriptionInfoEntity entity : entityArray) { in onAvailableSubInfoChanged()
544 int subId = Integer.parseInt(entity.subId); in onAvailableSubInfoChanged()
546 mSubscriptionInfoEntity = entity; in onAvailableSubInfoChanged()
550 && entity.isDefaultSubscriptionSelection) { in onAvailableSubInfoChanged()
551 mSubscriptionInfoEntity = entity; in onAvailableSubInfoChanged()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DDataMigrationManager.java107 for (MigrationEntity entity : entities) { in apply()
108 migrateEntity(db, entity); in apply()
117 private void migrateEntity(SQLiteDatabase db, MigrationEntity entity) in migrateEntity() argument
120 if (checkEntityForDuplicates(db, entity)) { in migrateEntity()
124 final MigrationPayload payload = entity.getPayload(); in migrateEntity()
139 throw new EntityWriteException(entity.getEntityId(), e); in migrateEntity()
222 private boolean checkEntityForDuplicates(SQLiteDatabase db, MigrationEntity entity) { in checkEntityForDuplicates() argument
223 final MigrationPayload payload = entity.getPayload(); in checkEntityForDuplicates()
229 return !insertEntityIdIfNotPresent(db, entity.getEntityId()); in checkEntityForDuplicates()
/packages/apps/Contacts/src/com/android/contacts/editor/
DViewIdGenerator.java71 public int getId(RawContactDelta entity, DataKind kind, ValuesDelta values, in getId() argument
73 final String k = getMapKey(entity, kind, values, viewIndex); in getId()
84 private static String getMapKey(RawContactDelta entity, DataKind kind, ValuesDelta values, in getMapKey() argument
87 if (entity != null) { in getMapKey()
88 sWorkStringBuilder.append(entity.getValues().getId()); in getMapKey()
/packages/apps/AvatarPicker/src/main/java/com/android/avatarpicker/domain/
DGroupedSelectableItemsUseCaseImpl.kt35 illustrationsRepo.getItems().map { entity -> entity.toViewModel(ILLUSTRATION) } in <lambda>() method
45 coloredIconsRepo.getItems().map { entity -> entity.toViewModel(DEFAULT_ICON) } in <lambda>() method
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/
DMigrationEntityTest.java46 final MigrationEntity entity = new MigrationEntity(DEFAULT_ENTITY_ID, APP_INFO_PAYLOAD); in createdViaConstructor_validData() local
48 mExpect.that(entity.getEntityId()).isEqualTo(DEFAULT_ENTITY_ID); in createdViaConstructor_validData()
49 mExpect.that(entity.getPayload()).isInstanceOf(AppInfoMigrationPayload.class); in createdViaConstructor_validData()
51 AppInfoMigrationPayload payload = (AppInfoMigrationPayload) entity.getPayload(); in createdViaConstructor_validData()
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/storage/
Dentity_metadata.proto43 * Unique Identifier for the entity associated with this metadata.
48 * Timestamp corresponding to when the entity associated with this metadata
54 * Timestamp corresponding to when the entity associated with this metadata
60 * PackageNames of the applications from which the entity associated with this
61 * metadata originated, or the applications it may be related-to via an entity
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/bugreport/
DLogUtils.java122 entity -> in dumpBatteryUsageSlotDatabaseHist()
124 entity.batteryUsageSlot, BatteryUsageSlot.getDefaultInstance())); in dumpBatteryUsageSlotDatabaseHist()
132 dumpListItems(writer, entities, entity -> entity); in dumpBatteryEventDatabaseHist()
158 dumpListItems(writer, entities, entity -> entity); in dumpBatteryReattributeDatabaseHist()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DBatteryTestUtils.java172 final AppUsageEventEntity entity = in insertDataToAppUsageEventTable() local
183 dao.insertAll(ImmutableList.of(entity)); in insertDataToAppUsageEventTable()
185 dao.insert(entity); in insertDataToAppUsageEventTable()
192 final BatteryEventEntity entity = in insertDataToBatteryEventTable() local
195 dao.insert(entity); in insertDataToBatteryEventTable()
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/data/
DAggregateStoreEntity.java50 entity = ReportEntity.class,
55 entity = SystemProfileEntity.class,
DDataService.java82 GlobalValueEntity entity = in loggerDisabled() local
89 () -> mDaoBuildingBlocks.insertGlobalValue(entity)), in loggerDisabled()
168 GlobalValueEntity entity = in loggerEnabledSync() local
172 mDaoBuildingBlocks.insertOrReplaceGlobalValue(entity); in loggerEnabledSync()
/packages/apps/Dialer/java/com/android/dialer/about/res/raw/
Dthird_party_licenses29 "Licensor" shall mean the copyright owner or entity authorized by
32 "Legal Entity" shall mean the union of the acting entity and all
34 control with that entity. For the purposes of this definition,
36 direction or management of such entity, whether by contract or
38 outstanding shares, or (iii) beneficial ownership of such entity.
99 institute patent litigation against any entity (including a
211 "Licensor" shall mean the copyright owner or entity authorized by
214 "Legal Entity" shall mean the union of the acting entity and all
216 control with that entity. For the purposes of this definition,
218 direction or management of such entity, whether by contract or
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/model/
DRawContact.java86 public static RawContact createFrom(Entity entity) { in createFrom() argument
87 final ContentValues values = entity.getEntityValues(); in createFrom()
88 final ArrayList<Entity.NamedContentValues> subValues = entity.getSubValues(); in createFrom()
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContact.java123 public static RawContact createFrom(Entity entity) { in createFrom() argument
124 final ContentValues values = entity.getEntityValues(); in createFrom()
125 final ArrayList<Entity.NamedContentValues> subValues = entity.getSubValues(); in createFrom()
/packages/modules/Connectivity/clatd/
DNOTICE24 "Licensor" shall mean the copyright owner or entity authorized by
27 "Legal Entity" shall mean the union of the acting entity and all
29 control with that entity. For the purposes of this definition,
31 direction or management of such entity, whether by contract or
33 outstanding shares, or (iii) beneficial ownership of such entity.
94 institute patent litigation against any entity (including a
/packages/apps/Multiuser/
DNOTICE25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
30 control with that entity. For the purposes of this definition,
32 direction or management of such entity, whether by contract or
34 outstanding shares, or (iii) beneficial ownership of such entity.
95 institute patent litigation against any entity (including a

1234