Home
last modified time | relevance | path

Searched refs:floatValue (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/StatsD/framework/test/unittests/src/android/os/
DStatsDimensionsValueTest.java36 float floatValue = 1.1f; in testConversionFromStructuredParcel() local
59 sdvp.tupleValue[3].floatValue = floatValue; in testConversionFromStructuredParcel()
88 assertThat(sdvChildren.get(3).getFloatValue()).isEqualTo(floatValue); in testConversionFromStructuredParcel()
/packages/services/Car/tools/emulator/
Ddiagnostic_injector.py94 for floatValue in event['floatValues']:
95 builder.addFloatSensor(floatValue['id'], floatValue['value'])
Dobd2_to_diagjson.py153 for floatValue in json.floatValues:
154 event.setFloatValue(floatValue.id, floatValue.value)
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DAnomalyDetectionJobServiceTest.java288 final StatsDimensionsValue floatValue = mock(StatsDimensionsValue.class); in extractUidFromStatsDimensionsValue_wrongFormat_returnNull() local
289 when(floatValue.isValueType(FLOAT_VALUE_TYPE)).thenReturn(true); in extractUidFromStatsDimensionsValue_wrongFormat_returnNull()
290 when(floatValue.getField()).thenReturn(AnomalyDetectionJobService.STATSD_UID_FILED); in extractUidFromStatsDimensionsValue_wrongFormat_returnNull()
291 when(floatValue.getFloatValue()).thenReturn(0f); in extractUidFromStatsDimensionsValue_wrongFormat_returnNull()
294 floatValue)).isEqualTo(AnomalyDetectionJobService.UID_NULL); in extractUidFromStatsDimensionsValue_wrongFormat_returnNull()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DDebugSettingsFragment.java167 private int getPercentageFromValue(final float floatValue) { in setupKeyPreviewAnimationScale()
168 return (int)(floatValue * PERCENTAGE_FLOAT); in setupKeyPreviewAnimationScale()
255 private int getPercentageFromValue(final float floatValue) { in setupKeyboardHeight()
256 return (int)(floatValue * PERCENTAGE_FLOAT); in setupKeyboardHeight()
DAdvancedSettingsFragment.java186 private int getPercentageFromValue(final float floatValue) { in setupKeypressSoundVolumeSettings()
187 return (int)(floatValue * PERCENTAGE_FLOAT); in setupKeypressSoundVolumeSettings()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarPropertyValueTest.java35 CarPropertyValue<Float> floatValue = in testSimpleFloatValue() local
38 writeToParcel(floatValue); in testSimpleFloatValue()
/packages/modules/StatsD/lib/libstatssocket/tests/
Dstats_event_test.cpp139 float floatValue = 2.0; in TEST() local
147 AStatsEvent_writeFloat(event, floatValue); in TEST()
168 checkScalar(&buffer, floatValue); in TEST()
389 float floatValue = -5.0; in TEST() local
401 AStatsEvent_writeFloat(event, floatValue); in TEST()
421 checkScalar(&buffer, floatValue); in TEST()
/packages/modules/StatsD/framework/java/android/os/
DStatsDimensionsValue.java169 return mInner.floatValue; in getFloatValue()
252 sb.append(String.valueOf(mInner.floatValue)); in toString()
/packages/modules/StatsD/aidl/android/os/
DStatsDimensionsValueParcel.aidl19 float floatValue;
/packages/apps/Camera2/src/com/android/camera/settings/
DResolutionUtil.java138 sortedDesiredAspectRatios.add(buckets.get(0).aspectRatio.floatValue()); in getDisplayableSizesFromSupported()
154 if (Math.abs(aspectRatio.floatValue() - targetRatio) <= ASPECT_RATIO_TOLERANCE) { in getDisplayableSizesFromSupported()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarPropertyManagerTest.java1061 private static VehiclePropValue newTirePressureVehiclePropValue(int areaId, float floatValue, in newTirePressureVehiclePropValue() argument
1067 vehiclePropValue.value.floatValues = new float[]{floatValue}; in newTirePressureVehiclePropValue()
1073 int areaId, float floatValue, long timestampNanos) { in assertTirePressureCarPropertyValue() argument
1078 assertThat(carPropertyValue.getValue()).isEqualTo(floatValue); in assertTirePressureCarPropertyValue()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
DMockSharedPreferences.java57 return ((Float)mValues.get(key)).floatValue(); in getFloat()
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockSharedPreferences.java57 return ((Float)mValues.get(key)).floatValue(); in getFloat()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DFakeSharedPreferences.java60 return ((Float) mValues.get(key)).floatValue(); in getFloat()
/packages/apps/Calendar/tests/src/com/android/calendar/
DFakeSharedPreferences.java58 return ((Float)mValues.get(key)).floatValue(); in getFloat()
/packages/modules/StatsD/statsd/src/
DHashableDimensionKey.cpp69 child.floatValue = dim.mValue.float_value; in populateStatsDimensionsValueParcelChildren()
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java524 minSpeed = Double.valueOf(reader.nextDouble()).floatValue(); in readRestrictions()
526 maxSpeed = Double.valueOf(reader.nextDouble()).floatValue(); in readRestrictions()
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DDownloadService.java473 : NumberFormat.getPercentInstance().format(progress.floatValue() / 100)) in makeProgressNotification()
/packages/apps/Settings/src/com/android/settings/datausage/
DBillingCycleSettings.java348 bytes = (long) (number.floatValue() in onClick()
/packages/modules/StatsD/statsd/tests/
DLogEntryMatcher_test.cpp55 const float floatValue) { in makeFloatLogEvent() argument
59 AStatsEvent_writeFloat(statsEvent, floatValue); in makeFloatLogEvent()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DLandscapePagedViewHandler.java334 return new Pair<>(translationX, Integer.valueOf(snapshotParams.topMargin).floatValue()); in getDwbLayoutTranslations()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiBackupRestore.java183 XmlUtil.writeNextValue(out, XML_TAG_VERSION, version.floatValue()); in retrieveBackupDataFromConfigurations()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mcp/
DMediaControlGattServiceTest.java439 playback_speed, mMcpService.getPlaybackSpeedChar().floatValue(), 0.001f); in testUpdatePlayerState()
498 Assert.assertEquals(seeking_speed, mMcpService.getSeekingSpeedChar().floatValue(), 0.001f); in testUpdatePlayerState()
/packages/modules/Media/apex/framework/java/android/media/
DMediaTranscodingManager.java973 .floatValue(); in resolveVideoFormat()

12