Home
last modified time | relevance | path

Searched refs:intValue (Results 1 – 25 of 118) sorted by relevance

12345

/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDiagnosticManagerTest.java270 .intValue()); in testLiveFrameRead()
275 .intValue()); in testLiveFrameRead()
280 .intValue()); in testLiveFrameRead()
312 .intValue()); in testLiveFrameEvent()
366 .intValue()); in testFuelSystemStatus()
369 liveFrame.getFuelSystemStatus().intValue()); in testFuelSystemStatus()
395 .intValue()); in testSecondaryAirStatus()
398 liveFrame.getSecondaryAirStatus().intValue()); in testSecondaryAirStatus()
519 liveFrame.getSystemIntegerSensor(IntegerSensorIndex.FUEL_TYPE).intValue()); in testFuelType()
520 assertEquals(FuelType.BIFUEL_RUNNING_LPG, liveFrame.getFuelType().intValue()); in testFuelType()
[all …]
/packages/apps/Camera2/src/com/android/camera/settings/
DResolutionUtil.java294 int numerator = Math.max(width.intValue(), height.intValue()) / gcd.intValue(); in reduce()
295 int denominator = Math.min(width.intValue(), height.intValue()) / gcd.intValue(); in reduce()
338 int denominator = Math.min(width.intValue(), height.intValue()) / gcd.intValue(); in aspectRatioDenominator()
DAppUpgrader.java367 String intValue = SettingsManager.convert((Integer) value); in copyPreferences() local
368 newPrefs.edit().putString(key, intValue).apply(); in copyPreferences()
375 String intValue = SettingsManager.convert((int) longValue); in copyPreferences() local
376 newPrefs.edit().putString(key, intValue).apply(); in copyPreferences()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbDeviceFilter.java131 int intValue = -1; in read() local
140 intValue = Integer.parseInt(value, radix); in read()
146 vendorId = intValue; in read()
148 productId = intValue; in read()
150 deviceClass = intValue; in read()
152 deviceSubclass = intValue; in read()
154 deviceProtocol = intValue; in read()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DTransitionUtils.java46 animator.setIntValues(Float.valueOf(startAlpha.getFloat() * 255).intValue(), in createActivityFadeInAnimator()
47 Float.valueOf(endAlpha.getFloat() * 255).intValue()); in createActivityFadeInAnimator()
66 animator.setIntValues(Float.valueOf(startAlpha.getFloat() * 255).intValue(), in createActivityFadeOutAnimator()
67 Float.valueOf(endAlpha.getFloat() * 255).intValue()); in createActivityFadeOutAnimator()
/packages/modules/StatsD/framework/test/src/android/os/
DStatsDimensionsValueTest.java34 int intValue = 123; in testConversionFromStructuredParcel() local
57 sdvp.tupleValue[1].intValue = intValue; in testConversionFromStructuredParcel()
86 assertThat(sdvChildren.get(1).getIntValue()).isEqualTo(intValue); in testConversionFromStructuredParcel()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringConfigurationTest.java298 assertEquals(TYPE_ETHERNET, upstreamIterator.next().intValue()); in testNoDefinedUpstreamTypesAddsEthernet()
305 assertEquals(TYPE_MOBILE, upstreamIterator.next().intValue()); in testNoDefinedUpstreamTypesAddsEthernet()
307 assertEquals(TYPE_MOBILE_HIPRI, upstreamIterator.next().intValue()); in testNoDefinedUpstreamTypesAddsEthernet()
321 assertEquals(TYPE_ETHERNET, upstreamIterator.next().intValue()); in testDefinedUpstreamTypesSansEthernetAddsEthernet()
323 assertEquals(TYPE_WIFI, upstreamIterator.next().intValue()); in testDefinedUpstreamTypesSansEthernetAddsEthernet()
325 assertEquals(TYPE_MOBILE_HIPRI, upstreamIterator.next().intValue()); in testDefinedUpstreamTypesSansEthernetAddsEthernet()
339 assertEquals(TYPE_WIFI, upstreamIterator.next().intValue()); in testDefinedUpstreamTypesWithEthernetDoesNotAddEthernet()
341 assertEquals(TYPE_ETHERNET, upstreamIterator.next().intValue()); in testDefinedUpstreamTypesWithEthernetDoesNotAddEthernet()
343 assertEquals(TYPE_MOBILE_HIPRI, upstreamIterator.next().intValue()); in testDefinedUpstreamTypesWithEthernetDoesNotAddEthernet()
/packages/modules/Connectivity/tests/common/java/android/net/metrics/
DDhcpErrorEventTest.kt53 val intValue = it.getInt(null) in testToString() constant
54 val stringValue = DhcpErrorEvent(intValue).toString() in testToString()
55 assertTrue("Invalid string for error 0x%08X (field %s): %s".format(intValue, it.name, in testToString()
DValidationProbeEventTest.kt66 val intValue = it.getInt(null) in testGetProbeName() constant
67 val stringValue = ValidationProbeEvent.getProbeName(intValue) in testGetProbeName()
/packages/services/Car/tools/emulator/
Ddiagnostic_injector.py92 for intValue in event['intValues']:
93 builder.addIntSensor(intValue['id'], intValue['value'])
Dobd2_to_diagjson.py151 for intValue in json.intValues:
152 event.setIntValue(intValue.id, intValue.value)
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactModifierTests.java947 assertEquals(Event.TYPE_BIRTHDAY, outputValues.getAsInteger(Event.TYPE).intValue()); in testMigrateEventCommon()
979 assertEquals(Event.TYPE_BIRTHDAY, outputValues.getAsInteger(Event.TYPE).intValue()); in testMigrateEventFromGoogleToExchange2()
1019 assertEquals(Email.TYPE_CUSTOM, outputValues.getAsInteger(Email.TYPE).intValue()); in testMigrateEmailFromGoogleToExchange()
1024 assertEquals(Email.TYPE_HOME, outputValues.getAsInteger(Email.TYPE).intValue()); in testMigrateEmailFromGoogleToExchange()
1028 assertEquals(Email.TYPE_WORK, outputValues.getAsInteger(Email.TYPE).intValue()); in testMigrateEmailFromGoogleToExchange()
1083 assertEquals(defaultType, outputValues.getAsInteger(Im.TYPE).intValue()); in testMigrateImFromGoogleToExchange()
1084 assertEquals(Im.PROTOCOL_JABBER, outputValues.getAsInteger(Im.PROTOCOL).intValue()); in testMigrateImFromGoogleToExchange()
1088 assertEquals(defaultType, outputValues.getAsInteger(Im.TYPE).intValue()); in testMigrateImFromGoogleToExchange()
1089 assertEquals(Im.PROTOCOL_YAHOO, outputValues.getAsInteger(Im.PROTOCOL).intValue()); in testMigrateImFromGoogleToExchange()
1093 assertEquals(defaultType, outputValues.getAsInteger(Im.TYPE).intValue()); in testMigrateImFromGoogleToExchange()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DAnomalyDetectionJobServiceTest.java269 final StatsDimensionsValue intValue = mock(StatsDimensionsValue.class); in extractUidFromStatsDimensionsValue_extractCorrectUid() local
270 when(intValue.isValueType(INT_VALUE_TYPE)).thenReturn(true); in extractUidFromStatsDimensionsValue_extractCorrectUid()
271 when(intValue.getField()).thenReturn(AnomalyDetectionJobService.STATSD_UID_FILED); in extractUidFromStatsDimensionsValue_extractCorrectUid()
272 when(intValue.getIntValue()).thenReturn(UID); in extractUidFromStatsDimensionsValue_extractCorrectUid()
278 statsDimensionsValues.add(intValue); in extractUidFromStatsDimensionsValue_extractCorrectUid()
/packages/modules/Connectivity/tests/common/java/android/net/
DOemNetworkPreferencesTest.java115 assertEquals(networkPreferences.get(TEST_PACKAGE).intValue(), TEST_PREF); in testAddNetworkPreferenceOverwritesPriorPreference()
121 assertEquals(networkPreferences.get(TEST_PACKAGE).intValue(), newPref); in testAddNetworkPreferenceOverwritesPriorPreference()
150 assertEquals(networkPreferences.get(TEST_PACKAGE).intValue(), TEST_PREF); in testConstructorByOemNetworkPreferencesSetsValue()
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
DRcsFeatureControllerTest.java177 assertEquals(RegistrationManager.REGISTRATION_STATE_NOT_REGISTERED, result.intValue()); in testFeatureManagerConnectedHelper()
186 assertEquals(RegistrationManager.REGISTRATION_STATE_REGISTERING, result.intValue()); in testFeatureManagerConnectedHelper()
194 assertEquals(RegistrationManager.REGISTRATION_STATE_REGISTERED, result.intValue()); in testFeatureManagerConnectedHelper()
248 assertEquals(ImsRegistrationImplBase.REGISTRATION_TECH_NONE, integer.intValue()); in testFeatureManagerDisconnectedException()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DVideoProviderTest.java205 sessionEventCaptor.getValue().intValue()); in testCameraChangePermissionFail()
234 sessionEventCaptor.getValue().intValue()); in testCameraChangeAppOpsFail()
265 sessionEventCaptor.getValue().intValue()); in testCameraChangeAppOpsBelowNMR1Fail()
293 sessionEventCaptor.getValue().intValue()); in testCameraChangeUserFail()
322 sessionEventCaptor.getValue().intValue()); in testCameraChangeNullNoPermission()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastConfigServiceTest.java176 assertEquals(10, captorStart.getValue().intValue()); in testEnableCellBroadcastRange()
177 assertEquals(20, captorEnd.getValue().intValue()); in testEnableCellBroadcastRange()
178 assertEquals(1, captorType.getValue().intValue()); in testEnableCellBroadcastRange()
198 assertEquals(10, captorStart.getValue().intValue()); in testDisableCellBroadcastRange()
199 assertEquals(20, captorEnd.getValue().intValue()); in testDisableCellBroadcastRange()
200 assertEquals(1, captorType.getValue().intValue()); in testDisableCellBroadcastRange()
DCellBroadcastBootupConfigTest.java208 assertEquals("i=" + i, configs[i].startId, mStartIds.getAllValues().get(i).intValue()); in testConfiguration()
209 assertEquals("i=" + i, configs[i].endId, mEndIds.getAllValues().get(i).intValue()); in testConfiguration()
210 assertEquals("i=" + i, configs[i].type, mTypes.getAllValues().get(i).intValue()); in testConfiguration()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/window/
DOverlayPanelViewControllerTest.java200 assertThat(endValueCaptor.getValue().intValue()).isEqualTo(0); in animateCollapsePanel_withOverlayFromTopBar_collapsesTowardsTopBar()
222 assertThat(endValueCaptor.getValue().intValue()).isEqualTo( in animateCollapsePanel_withOverlayFromBottomBar_collapsesTowardsBottomBar()
278 assertThat(endValueCaptor.getValue().intValue()).isEqualTo( in animateExpandPanel_withOverlayFromTopBar_expandsToBottom()
300 assertThat(endValueCaptor.getValue().intValue()).isEqualTo(0); in animateExpandPanel_withOverlayFromBottomBar_expandsToTop()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DObd2FreezeFrameTest.java61 assertEquals(StatusCode.OK, status.intValue()); in testFreezeFrame()
72 if (StatusCode.OK == frameStatus.intValue()) { in testFreezeFrame()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoCarousel.java208 int orientation = ((Integer) photo.getTag(R.id.photo_orientation)).intValue(); in setScaleType()
209 int width = ((Integer) photo.getTag(R.id.photo_width)).intValue(); in setScaleType()
210 int height = ((Integer) photo.getTag(R.id.photo_height)).intValue(); in setScaleType()
/packages/apps/Car/Hvac/src/com/android/car/hvac/controllers/
DTemperatureController.java75 final int temp = ((Float) value.getValue()).intValue();
87 final int temp = ((Float) value.getValue()).intValue();
/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/
DCborUtils.java152 resp.numExtraAttestationKeys = ((UnsignedInteger) extraKeys).getValue().intValue(); in parseDeviceConfig()
159 Duration.ofHours(((UnsignedInteger) timeToRefreshHours).getValue().intValue()); in parseDeviceConfig()
220 resp.addGeek(curve.getValue().intValue(), baos.toByteArray()); in parseGeekResponse()
/packages/modules/StatsD/framework/java/android/os/
DStatsDimensionsValue.java126 return mInner.intValue; in getIntValue()
243 sb.append(String.valueOf(mInner.intValue)); in toString()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/
Dheader_read_write_utils.cpp205 const int intValue = readIntAttributeValue(headerAttributes, key, intDefaultValue); in readBoolAttributeValue() local
206 return intValue != 0; in readBoolAttributeValue()

12345