Home
last modified time | relevance | path

Searched refs:VALUE (Results 1 – 25 of 95) sorted by relevance

1234

/packages/modules/Bluetooth/system/rust/src/gatt/server/transactions/
Dfind_by_type_value.rs82 const VALUE: [u8; 2] = [1, 2]; constant
95 VALUE.into(), in test_uuid_match()
103 VALUE.into(), in test_uuid_match()
111 VALUE.into(), in test_uuid_match()
120 attribute_value: VALUE.to_vec(), in test_uuid_match()
153 VALUE.into(), in test_value_match()
169 VALUE.into(), in test_value_match()
178 attribute_value: VALUE.to_vec(), in test_value_match()
211 attribute_value: VALUE.to_vec(), in test_range_check()
236 VALUE.into(), in test_empty_response()
[all …]
/packages/modules/Connectivity/nearby/tests/cts/fastpair/src/android/nearby/cts/
DDataElementTest.java46 private static final byte[] VALUE = new byte[]{1, 1, 1, 1}; field in DataElementTest
51 DataElement dataElement = new DataElement(KEY, VALUE); in testBuilder()
54 assertThat(Arrays.equals(dataElement.getValue(), VALUE)).isTrue(); in testBuilder()
60 DataElement dataElement = new DataElement(KEY, VALUE); in testWriteParcel()
70 assertThat(Arrays.equals(elementFromParcel.getValue(), VALUE)).isTrue(); in testWriteParcel()
76 DataElement dataElement = new DataElement(KEY, VALUE); in describeContents()
91 DataElement dataElement = new DataElement(KEY, VALUE); in testEquals()
92 DataElement dataElement2 = new DataElement(KEY, VALUE); in testEquals()
120 DataElement dataElement = new DataElement(KEY, VALUE); in test_notEquals()
122 DataElement dataElement3 = new DataElement(6, VALUE); in test_notEquals()
DCredentialElementTest.java39 private static final byte[] VALUE = new byte[]{1, 2, 3, 4}; field in CredentialElementTest
44 CredentialElement element = new CredentialElement(KEY, VALUE); in testBuilder()
46 assertThat(Arrays.equals(element.getValue(), VALUE)).isTrue(); in testBuilder()
52 CredentialElement element = new CredentialElement(KEY, VALUE); in testWriteParcel()
61 assertThat(Arrays.equals(elementFromParcel.getValue(), VALUE)).isTrue(); in testWriteParcel()
67 CredentialElement element = new CredentialElement(KEY, VALUE); in describeContents()
74 CredentialElement element1 = new CredentialElement(KEY, VALUE); in testEqual()
75 CredentialElement element2 = new CredentialElement(KEY, VALUE); in testEqual()
DPresenceDeviceTest.java49 private static final byte[] VALUE = new byte[]{1, 1, 1, 1}; field in PresenceDeviceTest
62 .addExtendedProperty(new DataElement(KEY, VALUE)) in testBuilder()
74 assertThat(Arrays.equals(dataElement.getValue(), VALUE)).isTrue(); in testBuilder()
89 .addExtendedProperty(new DataElement(KEY, VALUE)) in testWriteParcel()
113 .addExtendedProperty(new DataElement(KEY, VALUE)) in describeContents()
DPrivateCredentialTest.java49 private static final byte[] VALUE = new byte[]{1, 2, 3, 4, 5}; field in PrivateCredentialTest
59 .addCredentialElement(new CredentialElement(KEY, VALUE)); in setUp()
76 assertThat(Arrays.equals(credentialElement.getValue(), VALUE)).isTrue(); in testBuilder()
100 assertThat(Arrays.equals(credentialElement.getValue(), VALUE)).isTrue(); in testWriteParcel()
DPublicCredentialTest.java51 private static final byte[] VALUE = new byte[] {1, 2, 3, 4, 5}; field in PublicCredentialTest
64 .addCredentialElement(new CredentialElement(KEY, VALUE)) in setUp()
123 .addCredentialElement(new CredentialElement(KEY, VALUE)) in testEquals()
134 .addCredentialElement(new CredentialElement(KEY, VALUE)) in testEquals()
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/data/signals/
DDBProtectedSignalTest.java44 DBProtectedSignalFixture.VALUE, in testCreateSignal()
51 assertArrayEquals(DBProtectedSignalFixture.VALUE, signal.getValue()); in testCreateSignal()
64 .setValue(DBProtectedSignalFixture.VALUE) in testBuildSignal()
72 assertArrayEquals(DBProtectedSignalFixture.VALUE, signal.getValue()); in testBuildSignal()
85 .setValue(DBProtectedSignalFixture.VALUE) in testEqual()
95 .setValue(DBProtectedSignalFixture.VALUE) in testEqual()
110 .setValue(DBProtectedSignalFixture.VALUE) in testNotEqual()
120 .setValue(DBProtectedSignalFixture.VALUE) in testNotEqual()
135 .setValue(DBProtectedSignalFixture.VALUE) in testHashCode()
145 .setValue(DBProtectedSignalFixture.VALUE) in testHashCode()
DDBProtectedSignalFixture.java28 public static final byte[] VALUE = {(byte) 42}; field in DBProtectedSignalFixture
35 .setValue(DBProtectedSignalFixture.VALUE) in getBuilder()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DHomogenousBiMapTest.java29 private final static Integer VALUE = 2; field in HomogenousBiMapTest
37 mBiMap.put(KEY, VALUE); in setUp()
42 assertThat(mBiMap.getForwardMap().get(KEY)).isEqualTo(VALUE); in put_works()
47 assertThat(mBiMap.getForwardMap().get(KEY)).isEqualTo(VALUE); in getForwardMap_works()
52 assertThat(mBiMap.getReverseMap().get(VALUE)).isEqualTo(KEY); in getReverseMap_works()
66 copy.put(KEY, VALUE); in equals_equalMaps_works()
82 copy.put(KEY, VALUE); in hashCode_equalMaps_works()
/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/aggregation/
DAggregateCryptoConverterTest.java21 …static com.android.adservices.service.measurement.aggregation.AggregateHistogramContribution.VALUE;
364 && isFound((Map) i, VALUE, "2"))); in testEncodeWithCbor_successfully()
370 && isFound((Map) i, VALUE, "4"))); in testEncodeWithCbor_successfully()
415 && isFound((Map) i, VALUE, "2") in testEncodeWithCbor_filteringId_successfully()
422 && isFound((Map) i, VALUE, "3") in testEncodeWithCbor_filteringId_successfully()
429 && isFound((Map) i, VALUE, "4") in testEncodeWithCbor_filteringId_successfully()
461 && isFound((Map) i, VALUE, "2") in testEncodeWithCbor_largeFilteringId_successfully()
501 getBytesLength((Map) payloadArray.getDataItems().get(0), VALUE)); in testEncodeWithCbor_differentSizesShouldMatchUpperBound()
503 getBytesLength((Map) payloadArray.getDataItems().get(0), VALUE), in testEncodeWithCbor_differentSizesShouldMatchUpperBound()
504 getBytesLength((Map) payloadArray.getDataItems().get(1), VALUE)); in testEncodeWithCbor_differentSizesShouldMatchUpperBound()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/countunique/
DCountUniqueRegistrarTest.java61 private static final Integer VALUE = 1; field in CountUniqueRegistrarTest
120 createEventHeader(METADATA_KEY, VALUE, FILTERING_ID, CONTEXT_ID, DEBUG_KEY), in registerCountUniqueEvent_forIgnoreIfPresentAsTrue_doesNotUpdateMetadata()
142 .isEqualTo(getPayload(BUCKET, VALUE, FILTERING_ID)); in registerCountUniqueEvent_forIgnoreIfPresentAsTrue_doesNotUpdateMetadata()
169 .isEqualTo(VALUE); in registerCountUniqueEvent_forIgnoreIfPresentAsTrue_doesNotUpdateMetadata()
207 createEventHeader(METADATA_KEY, VALUE, FILTERING_ID, CONTEXT_ID, DEBUG_KEY), in registerCountUniqueEvent_forIgnoreIfPresentAsFalse_forceUpdatesMetadata()
229 .isEqualTo(getPayload(bucket2, VALUE, FILTERING_ID)); in registerCountUniqueEvent_forIgnoreIfPresentAsFalse_forceUpdatesMetadata()
252 .isEqualTo(VALUE); in registerCountUniqueEvent_forIgnoreIfPresentAsFalse_forceUpdatesMetadata()
278 "not-present-metadata-key", VALUE, FILTERING_ID, CONTEXT_ID, DEBUG_KEY), in registerCountUniqueEvent_forKeyNotFound_DoesNotStoreReport()
315 createEventHeader(null, VALUE, FILTERING_ID, CONTEXT_ID, DEBUG_KEY), in registerCountUniqueEvent_forNullKey_doesNotStoreReport()
352 createEventHeader(METADATA_KEY, VALUE, FILTERING_ID, null, DEBUG_KEY), in registerCountUniqueEvent_forNullContextId_StoresReport()
[all …]
/packages/services/Car/tests/CarLibUnitTest/src/android/car/hardware/
DCarPropertyValueTest.java34 private static final Float VALUE = 12.0F; field in CarPropertyValueTest
36 PROPERTY_ID, AREA_ID, TIMESTAMP_NANOS, VALUE);
92 new CarPropertyValue<>(differentPropertyId, AREA_ID, TIMESTAMP_NANOS, VALUE))) in equals_returnsFalseForDifferentPropertyIds()
100 new CarPropertyValue<>(PROPERTY_ID, differentAreaId, TIMESTAMP_NANOS, VALUE))) in equals_returnsFalseForDifferentAreaIds()
109 VALUE))).isFalse(); in equals_returnsFalseForDifferentStatuses()
116 new CarPropertyValue<>(PROPERTY_ID, AREA_ID, differentTimestampNanos, VALUE))) in equals_returnsFalseForDifferentTimestamps()
131 new CarPropertyValue<>(PROPERTY_ID, AREA_ID, TIMESTAMP_NANOS, VALUE))) in equals_returnsTrueWhenEqual()
217 TIMESTAMP_NANOS, VALUE).getStatus()).isEqualTo(CarPropertyValue.STATUS_ERROR); in getStatus_returnsError()
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/signals/
DUpdateProcessingOrchestratorTest.java85 public static final byte[] VALUE = {(byte) 42}; field in UpdateProcessingOrchestratorTest
203 DBProtectedSignal.builder().setKey(KEY_1).setValue(VALUE); in testUpdatesProcessorSingleInsert()
229 List<DBProtectedSignal> expected = List.of(createSignal(KEY_1, VALUE)); in testUpdatesProcessorSingleInsert()
250 DBProtectedSignal.builder().setKey(KEY_1).setValue(VALUE); in testUpdatesProcessorSingleInsertJsonArray()
276 List<DBProtectedSignal> expected = List.of(createSignal(KEY_1, VALUE)); in testUpdatesProcessorSingleInsertJsonArray()
284 DBProtectedSignal toRemove = createSignal(KEY_1, VALUE, 123L); in testUpdatesProcessorSingleRemove()
285 DBProtectedSignal toKeep = createSignal(KEY_2, VALUE, 456L); in testUpdatesProcessorSingleRemove()
345 DBProtectedSignal.builder().setKey(KEY_1).setValue(VALUE); in testUpdatesProcessorTwoInserts()
354 DBProtectedSignal.builder().setKey(KEY_2).setValue(VALUE); in testUpdatesProcessorTwoInserts()
389 DBProtectedSignal expected1 = createSignal(KEY_1, VALUE); in testUpdatesProcessorTwoInserts()
[all …]
/packages/services/Car/tests/CarHiddenApiTest/src/android/car/hiddenapitest/
DDeviceConfigTest.java52 public static final String VALUE = "Set_Value_42"; field in DeviceConfigTest
69 assertThat(DeviceConfig.setProperty(NAMESPACE_GAME_OVERLAY, KEY, VALUE, in testUpdateConfigForCurrentUser()
71 assertThat(DeviceConfig.getProperty(NAMESPACE_GAME_OVERLAY, KEY)).isEqualTo(VALUE); in testUpdateConfigForCurrentUser()
80 () -> Settings.Config.putString(NAMESPACE_GAME_OVERLAY, KEY, VALUE, in testUpdateConfigForBackgroundUser()
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/flags/
DFakeFlagsBackendTest.java40 private static final String VALUE = "of the Rose"; field in FakeFlagsBackendTest
94 NameValuePair nvp = new NameValuePair(NAME, VALUE); in testCloneForSnapshot()
95 mBackend.setFlag(NAME, VALUE); in testCloneForSnapshot()
105 .isEqualTo(VALUE); in testCloneForSnapshot()
131 .isEqualTo(VALUE); in testCloneForSnapshot()
140 mBackend.setFlag(NAME, VALUE); in testGetFlags()
146 .containsExactly(NAME, new NameValuePair(NAME, VALUE)); in testGetFlags()
/packages/apps/Car/systemlibs/car-qc-lib/tests/unit/src/com/android/car/qc/
DQCSliderTest.java34 private static final int VALUE = 75; field in QCSliderTest
58 assertThat(newSlider.getValue()).isEqualTo(VALUE); in createFromParcel_accurateData()
65 .setValue(VALUE) in createSlider()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/
DCarrierConfigManagerExtTest.kt45 on { getConfigForSubId(any(), eq(KEY)) } doReturn persistableBundleOf(KEY to VALUE) in safeGetConfig_managerReturnKeyValue_returnNonEmptyBundle()
51 assertThat(bundle.getString(KEY)).isEqualTo(VALUE) in safeGetConfig_managerReturnKeyValue_returnNonEmptyBundle()
68 const val VALUE = "value" constant
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/
DAggregateHistogramContribution.java32 public static final String VALUE = "value"; field in AggregateHistogramContribution
65 jsonObject.put(VALUE, mValue); in toJSONObject()
135 aggregateHistogramContribution.mValue = jsonObject.getInt(VALUE); in fromJsonObject()
DAggregateDebugReportData.java106 if (!aggregateDebugReportData.isNull(AggregateDebugReportDataHeaderContract.VALUE)) { in Builder()
109 AggregateDebugReportDataHeaderContract.VALUE); in Builder()
124 String VALUE = "value"; field
/packages/apps/Calendar/src/com/android/calendar/
DCalendarUtils.kt112 val valueColumn: Int = cursor.getColumnIndexOrThrow(CalendarCache.VALUE) in onQueryComplete()
236 values.put(CalendarCache.VALUE, if (mUseHomeTZ) CalendarCache.TIMEZONE_TYPE_HOME in setTimeZone()
244 values2.put(CalendarCache.VALUE, mHomeTZ) in setTimeZone()
321 CalendarCache.KEY, CalendarCache.VALUE
/packages/apps/Settings/src/com/android/settings/display/
DCustomizableLockScreenUtils.java56 static final String VALUE = "value"; field in CustomizableLockScreenUtils
93 final int indexOfValueColumn = cursor.getColumnIndex(VALUE); in isFeatureEnabled()
95 Log.w(TAG, "Cursor doesn't contain " + NAME + " or " + VALUE + "!"); in isFeatureEnabled()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/basic/
DBasicModeFeatureProviderImplX.java56 private static final String VALUE = "value"; field in BasicModeFeatureProviderImplX
134 parser.getAttributeValue(null, VALUE))); in isStoreDemoMode()
135 return STORE_DEMO.equals(parser.getAttributeValue(null, VALUE)); in isStoreDemoMode()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DAttributedTrigger.java82 if (!json.isNull(TriggerSpecs.FlexEventReportJsonKeys.VALUE)) { in AttributedTrigger()
83 mValue = json.getLong(TriggerSpecs.FlexEventReportJsonKeys.VALUE); in AttributedTrigger()
220 json.put(TriggerSpecs.FlexEventReportJsonKeys.VALUE, mValue); in encodeToJsonFlexApi()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarSpringOnStashController.java18 import static com.android.launcher3.anim.AnimatedFloat.VALUE;
85 .build(mTranslationForStash, VALUE); in createSpringToStash()
/packages/apps/Launcher3/src/com/android/launcher3/
DInterruptibleInOutAnimator.java37 private static final Property<InterruptibleInOutAnimator, Float> VALUE = field in InterruptibleInOutAnimator
69 mAnimator = ObjectAnimator.ofFloat(this, VALUE, fromValue, toValue).setDuration(duration); in InterruptibleInOutAnimator()

1234