Home
last modified time | relevance | path

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

1234

/cts/hostsidetests/backup/RestoreAnyVersion/src/
DRestoreAnyVersionTest.java78 int intValue = getAppSharedPreference(); in checkSharedPrefIsEmpty() local
79 assertEquals(DEFAULT_INT_VALUE, intValue); in checkSharedPrefIsEmpty()
84 int intValue = getAppSharedPreference(); in checkSharedPrefIsNew() local
85 assertEquals(NEW_VERSION, intValue); in checkSharedPrefIsNew()
97 int intValue = getAppSharedPreference(); in checkSharedPrefIsOld() local
98 assertEquals(OLD_VERSION, intValue); in checkSharedPrefIsOld()
112 int intValue = prefs.getInt(INT_PREF, DEFAULT_INT_VALUE); in getAppSharedPreference() local
114 Log.i(TAG, "Read the shared preference value: " + intValue); in getAppSharedPreference()
116 return intValue; in getAppSharedPreference()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/suplClient/
DSuplRrlpController.java156 .getReferenceTime().getGpsTime().getGpsWeek().getInteger().intValue(); in buildNavMessageProto()
183 int satID = navModelElement.getSatelliteID().getInteger().intValue(); in buildNavMessageProto()
225 gpsEphemerisProto.l2Code = ephemeris.getEphemCodeOnL2().getInteger().intValue(); in toSingleEphemeris()
226 gpsEphemerisProto.l2Flag = ephemeris.getEphemL2Pflag().getInteger().intValue(); in toSingleEphemeris()
227 gpsEphemerisProto.svHealth = ephemeris.getEphemSVhealth().getInteger().intValue(); in toSingleEphemeris()
229 gpsEphemerisProto.iode = ephemeris.getEphemIODC().getInteger().intValue(); in toSingleEphemeris()
230 gpsEphemerisProto.iodc = ephemeris.getEphemIODC().getInteger().intValue(); in toSingleEphemeris()
231 …gpsEphemerisProto.toc = ephemeris.getEphemToc().getInteger().intValue() * NAVIGATION_TOC_SCALE_FAC… in toSingleEphemeris()
232 …gpsEphemerisProto.toe = ephemeris.getEphemToe().getInteger().intValue() * NAVIGATION_TOE_SCALE_FAC… in toSingleEphemeris()
233 …gpsEphemerisProto.af0 = ephemeris.getEphemAF0().getInteger().intValue() * NAVIGATION_AF0_SCALE_FAC… in toSingleEphemeris()
[all …]
/cts/tests/tests/proto/src/android/util/proto/cts/
DProtoOutputStreamSwitchedWriteTest.java68 po.writeInt32(fieldId, val.intValue());
82 po.writeUInt32(fieldId, val.intValue());
96 po.writeSInt32(fieldId, val.intValue());
110 po.writeFixed32(fieldId, val.intValue());
124 po.writeSFixed32(fieldId, val.intValue());
145 po.writeEnum(fieldId, val.intValue());
164 po.write(fieldId, val.intValue()); in SWITCHED.add()
/cts/tests/tests/util/src/android/util/cts/
DSparseArrayMapTest.java49 assertEquals(i, sam.get(0, KEYS_1[i]).intValue()); in testStoreSingleInt()
68 assertEquals(i, sam.get(0, KEYS_1[i]).intValue()); in testStoreMultipleInt()
73 assertEquals(i, sam.get(1, KEYS_2[i]).intValue()); in testStoreMultipleInt()
120 assertEquals(i, sam.delete(0, KEYS_1[i]).intValue()); in testDelete()
130 assertEquals(i, sam.delete(1, KEYS_1[i]).intValue()); in testDelete()
154 assertEquals(i % 2 == 0 ? i : def, sam.getOrDefault(0, KEYS_1[i], def).intValue()); in testGetOrDefault()
DPropertyTest.java71 assertEquals(getIntProp(), INT_PROP.get(this).intValue()); in testIntProperty()
74 assertEquals(5, INT_PROP.get(this).intValue()); in testIntProperty()
77 assertEquals(10, INT_PROP.get(this).intValue()); in testIntProperty()
DHalfTest.java509 assertEquals(12, Half.valueOf(12.57f).intValue()); in numberInterface()
516 assertEquals(-12, Half.valueOf(-12.57f).intValue()); in numberInterface()
523 assertEquals(0, Half.valueOf(POSITIVE_ZERO).intValue()); in numberInterface()
530 assertEquals(0, Half.valueOf(NEGATIVE_ZERO).intValue()); in numberInterface()
537 assertEquals(Integer.MAX_VALUE, Half.valueOf(POSITIVE_INFINITY).intValue()); in numberInterface()
544 assertEquals(Integer.MIN_VALUE, Half.valueOf(NEGATIVE_INFINITY).intValue()); in numberInterface()
551 assertEquals(0, Half.valueOf(NaN).intValue()); in numberInterface()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontTest.java155 int weight = style.first.intValue(); in testBuilder_buffer()
176 int weight = style.first.intValue(); in testBuilder_buffer_ttc()
198 int weight = style.first.intValue(); in testBuilder_buffer_vf()
222 int weight = style.first.intValue(); in testBuilder_buffer_override()
239 int weight = style.first.intValue(); in testBuilder_buffer_override()
271 int weight = style.first.intValue(); in testBuilder_file()
297 int weight = style.first.intValue(); in testBuilder_file_ttc()
324 int weight = style.first.intValue(); in testBuilder_file_vf()
353 int weight = style.first.intValue(); in testBuilder_file_override()
374 int weight = style.first.intValue(); in testBuilder_file_override()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DViewAttributeTest.java113 (attributeMapRootView.get(android.R.attr.orientation)).intValue()); in testGetAttributeSourceResourceMap()
119 (attributeMapView1.get(android.R.attr.padding)).intValue()); in testGetAttributeSourceResourceMap()
121 (attributeMapView1.get(android.R.attr.paddingLeft)).intValue()); in testGetAttributeSourceResourceMap()
123 (attributeMapView1.get(android.R.attr.paddingTop)).intValue()); in testGetAttributeSourceResourceMap()
/cts/tests/signature/tests/src/android/signature/cts/tests/
DByteBufferLineSpliteratorTest.java46 while (split1.tryAdvance(intValue -> { in testSplitMostlyMiddle()
50 while (split2.tryAdvance(intValue -> { in testSplitMostlyMiddle()
DLineSpliteratorTestBase.java50 return intValue -> { assertEquals(i, (int)intValue); }; in createVerifier()
/cts/tests/tests/graphics/src/android/graphics/cts/
DTypefaceCustomFallbackBuilderTest.java53 final int weight = style.first.intValue(); in createFullFamilyTypeface()
71 final int weight = style.first.intValue(); in testSingleFont_path()
86 final int weight = style.first.intValue(); in testSingleFont_ttc()
102 final int weight = style.first.intValue(); in testSingleFont_vf()
125 final int weight = style.first.intValue(); in testFamily_selectStyle()
138 final int weight = familyStyle.first.intValue(); in testFamily_selectStyleByBuilder()
150 .setStyle(new FontStyle(testStyle.first.intValue(), in testFamily_selectStyleByBuilder()
/cts/tests/security/src/android/keystore/cts/
DCborUtils.java45 return ((Number) item).getValue().intValue(); in getInt()
50 return ((Number) item).getValue().intValue(); in getInt()
62 result.add(((Number) item).getValue().intValue()); in getIntSet()
/cts/tests/devicestate/src/android/hardware/devicestate/cts/
DDeviceStateManagerTests.java79 assertEquals(intAgumentCaptor.getValue().intValue(), request.getState()); in testRequestAllSupportedStates()
153 assertValidState(intAgumentCaptor.getValue().intValue()); in testRegisterCallbackSuppliesInitialValue()
157 assertValidState(intAgumentCaptor.getValue().intValue()); in testRegisterCallbackSuppliesInitialValue()
/cts/tests/tests/content/src/android/content/cts/
DIntentFilter_AuthorityEntryTest.java46 assertEquals(Integer.valueOf(mPort).intValue(), mAuthorityEntry.getPort()); in testConstructor()
50 assertEquals(Integer.valueOf(mPort).intValue(), mAuthorityEntry.getPort()); in testAuthorityEntryProperties()
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechConnectionTest.java94 assertEquals(TextToSpeech.SUCCESS, initStatus.intValue()); in testConnectionSuccess()
105 assertEquals(TextToSpeech.ERROR, initStatus.intValue()); in testEngineNotAvailableConnectionFailure()
165 assertEquals(TextToSpeech.ERROR, initStatus.intValue()); in testServiceBindingErrorConnectionFailure()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/base/
DAsn1Integer.java65 normalizedValue.intValue(), range.intValue()); in encodeNormalizedIntegerWithRangeAligned()
164 reader, range.intValue()); in decodeNormalizedIntegerWithRangeAligned()
DAsn1Enumerated.java84 value = lookupValue(ai.getInteger().intValue()); in decodeBerValue()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerTestBase.java240 boolean audioOnly = (width != null && width.intValue() == -1) || in playLoadedVideo()
241 (height != null && height.intValue() == -1); in playLoadedVideo()
255 assertEquals(width.intValue(), w); in playLoadedVideo()
258 assertEquals(height.intValue(), h); in playLoadedVideo()
DAudioPlaybackConfigurationTest.java174 assertEquals("uid isn't protected", -1 /*expected*/, uid.intValue()); in testGetterMediaPlayer()
176 assertEquals("pid isn't protected", -1 /*expected*/, pid.intValue()); in testGetterMediaPlayer()
178 assertEquals("player type isn't protected", -1 /*expected*/, type.intValue()); in testGetterMediaPlayer()
180 assertEquals("session ID isn't protected", 0 /*expected*/, sessionId.intValue()); in testGetterMediaPlayer()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DTestSipDelegate.java122 assertEquals(-1, transactionAndIdPair.second.intValue()); in receiveMessageAndVerifyReceivedCalled()
132 assertEquals(reason, transactionAndIdPair.second.intValue()); in receiveMessageAndVerifyReceiveErrorCalled()
/cts/tests/tests/identity/src/android/security/identity/cts/
DParsedAttestationRecord.java152 return ((ASN1Integer) asn1Value).getValue().intValue(); in getIntegerFromAsn1()
154 return ((ASN1Enumerated) asn1Value).getValue().intValue(); in getIntegerFromAsn1()
/cts/tests/camera/utils/src/android/hardware/cts/helpers/
DCameraUtils.java89 switch (facing.intValue()) { in matchParametersToCharacteristics()
111 if (orientation.intValue() != info.orientation) { in matchParametersToCharacteristics()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DDynamicSensorDiscoveryTestActivity.java151 sensorId.intValue() == mSensorId.intValue(); in test4_OnReconnect()
/cts/tests/tests/os/src/android/os/cts/
DCountDownTimerTest.java61 int count = Long.valueOf(DELAY_MSEC / mActivity.INTERVAL).intValue() + 1; in testCountDownTimerCancel()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DEditorInfoTest.java322 assertEquals(expectBeforeCursorLength.intValue(), textBeforeCursor.length()); in assertExpectedTextLength()
328 assertEquals(expectSelectionLength.intValue(), selectedText.length()); in assertExpectedTextLength()
334 assertEquals(expectAfterCursorLength.intValue(), textAfterCursor.length()); in assertExpectedTextLength()

1234