Home
last modified time | relevance | path

Searched refs:getInt (Results 1 – 25 of 182) sorted by relevance

12345678

/cts/tests/tests/opengl/src/android/opengl/cts/
DCompressedTextureLoader.java142 header.mHeaderSize = headerBuffer.getInt(); in readPVRHeader()
143 header.mHeight = headerBuffer.getInt(); in readPVRHeader()
144 header.mWidth = headerBuffer.getInt(); in readPVRHeader()
145 header.mMipMapCount = headerBuffer.getInt(); in readPVRHeader()
146 header.mpfFlags = headerBuffer.getInt(); in readPVRHeader()
147 header.mDataSize = headerBuffer.getInt(); in readPVRHeader()
148 header.mBitCount = headerBuffer.getInt(); in readPVRHeader()
149 header.mRBitMask = headerBuffer.getInt(); in readPVRHeader()
150 header.mGBitMask = headerBuffer.getInt(); in readPVRHeader()
151 header.mBBitMask = headerBuffer.getInt(); in readPVRHeader()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanFeaturesTest.java186 .getInt("samplerYcbcrConversion") != 0); in testVulkan1_1Requirements()
227 boolean textureCompressionETC2 = features.getInt("textureCompressionETC2") != 0; in determineHardwareLevel()
228 boolean fullDrawIndexUint32 = features.getInt("fullDrawIndexUint32") != 0; in determineHardwareLevel()
229 boolean imageCubeArray = features.getInt("imageCubeArray") != 0; in determineHardwareLevel()
230 boolean independentBlend = features.getInt("independentBlend") != 0; in determineHardwareLevel()
231 boolean geometryShader = features.getInt("geometryShader") != 0; in determineHardwareLevel()
232 boolean tessellationShader = features.getInt("tessellationShader") != 0; in determineHardwareLevel()
233 boolean sampleRateShading = features.getInt("sampleRateShading") != 0; in determineHardwareLevel()
234 boolean textureCompressionASTC_LDR = features.getInt("textureCompressionASTC_LDR") != 0; in determineHardwareLevel()
235 boolean fragmentStoresAndAtomics = features.getInt("fragmentStoresAndAtomics") != 0; in determineHardwareLevel()
[all …]
/cts/tests/tests/database/src/android/database/cts/
DMatrixCursor_RowBuilderTest.java46 assertEquals(Integer.MIN_VALUE, cursor.getInt(COLUMN0_INDEX)); in testAdd()
52 assertEquals(Integer.MIN_VALUE, cursor.getInt(COLUMN0_INDEX)); in testAdd()
54 assertEquals(0, cursor.getInt(COLUMN1_INDEX)); in testAdd()
59 assertEquals(Integer.MIN_VALUE, cursor.getInt(COLUMN0_INDEX)); in testAdd()
61 assertEquals(0, cursor.getInt(COLUMN1_INDEX)); in testAdd()
63 assertEquals(Integer.MAX_VALUE, cursor.getInt(COLUMN2_INDEX)); in testAdd()
DMatrixCursorTest.java67 assertEquals(Integer.MIN_VALUE, mMatrixCursor.getInt(COLUMN0_INDEX)); in testNewRow()
73 assertEquals(Integer.MIN_VALUE, mMatrixCursor.getInt(COLUMN0_INDEX)); in testNewRow()
75 assertEquals(0, mMatrixCursor.getInt(COLUMN1_INDEX)); in testNewRow()
80 assertEquals(Integer.MIN_VALUE, mMatrixCursor.getInt(COLUMN0_INDEX)); in testNewRow()
82 assertEquals(0, mMatrixCursor.getInt(COLUMN1_INDEX)); in testNewRow()
84 assertEquals(Integer.MAX_VALUE, mMatrixCursor.getInt(COLUMN2_INDEX)); in testNewRow()
183 assertEquals(Short.MIN_VALUE, mMatrixCursor.getInt(COLUMN0_INDEX)); in testGetters()
184 assertEquals(0, mMatrixCursor.getInt(COLUMN1_INDEX)); in testGetters()
185 assertEquals(Short.MAX_VALUE, mMatrixCursor.getInt(COLUMN2_INDEX)); in testGetters()
214 assertEquals(0, mMatrixCursor.getInt(COLUMN0_INDEX)); in testGetters()
[all …]
DDatabaseUtils_InsertHelperTest.java129 assertEquals(1, cursor.getInt(booleanValueIndex)); in testInsert()
130 assertEquals(10, cursor.getInt(intValueIndex)); in testInsert()
161 assertEquals(0, cursor.getInt(booleanValueIndex)); in testInsert()
162 assertEquals(123, cursor.getInt(intValueIndex)); in testInsert()
225 assertEquals(1, cursor.getInt(booleanValueIndex)); in testReplace()
226 assertEquals(10, cursor.getInt(intValueIndex)); in testReplace()
244 assertEquals(42, cursor.getInt(intValueIndex)); in testReplace()
271 assertEquals(0, cursor.getInt(booleanValueIndex)); in testReplace()
272 assertEquals(123, cursor.getInt(intValueIndex)); in testReplace()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DVoicemailContractTest.java176 assertEquals(0, cursor.getInt(NEW_INDEX)); in testVoicemailsTable()
177 assertEquals(0, cursor.getInt(IS_READ_INDEX)); in testVoicemailsTable()
178 assertEquals(1, cursor.getInt(HAS_CONTENT_INDEX)); in testVoicemailsTable()
182 assertEquals(0, cursor.getInt(DIRTY_INDEX)); in testVoicemailsTable()
183 assertEquals(0, cursor.getInt(DELETED_INDEX)); in testVoicemailsTable()
184 assertEquals(0, cursor.getInt(BACKED_UP_INDEX)); in testVoicemailsTable()
185 assertEquals(0, cursor.getInt(RESTORED_INDEX)); in testVoicemailsTable()
186 assertEquals(0, cursor.getInt(ARCHIVED_INDEX)); in testVoicemailsTable()
187 assertEquals(0, cursor.getInt(IS_OMTP_VOICEMAIL_INDEX)); in testVoicemailsTable()
188 int id = cursor.getInt(ID_INDEX); in testVoicemailsTable()
[all …]
DContacts_PeopleTest.java126 int personId = cursor.getInt(PEOPLE_ID_INDEX); in testAddToGroup()
132 int groupId = cursor.getInt(GROUPS_ID_INDEX); in testAddToGroup()
142 assertEquals(personId, cursor.getInt(membershipPersonIdIndex)); in testAddToGroup()
143 assertEquals(groupId, cursor.getInt(membershipGroupIdIndex)); in testAddToGroup()
156 personId = cursor.getInt(PEOPLE_ID_INDEX); in testAddToGroup()
162 groupId = cursor.getInt(GROUPS_ID_INDEX); in testAddToGroup()
166 assertEquals(personId, cursor.getInt(membershipPersonIdIndex)); in testAddToGroup()
167 assertEquals(groupId, cursor.getInt(membershipGroupIdIndex)); in testAddToGroup()
174 personId = cursor.getInt(PEOPLE_ID_INDEX); in testAddToGroup()
179 groupId = cursor.getInt(GROUPS_ID_INDEX); in testAddToGroup()
[all …]
DContactsTest.java106 assertEquals(0, cursor.getInt(LAST_TIME_CONTACTED_INDEX)); in testPeopleTable()
108 assertEquals(1, cursor.getInt(SEND_TO_VOICEMAIL_INDEX)); in testPeopleTable()
109 assertEquals(0, cursor.getInt(TIMES_CONTACTED_INDEX)); in testPeopleTable()
110 assertEquals(0, cursor.getInt(STARRED_INDEX)); in testPeopleTable()
112 int id = cursor.getInt(ID_INDEX); in testPeopleTable()
128 assertEquals(0, cursor.getInt(LAST_TIME_CONTACTED_INDEX)); // Not supported by CP1 in testPeopleTable()
130 assertEquals(1, cursor.getInt(SEND_TO_VOICEMAIL_INDEX)); // Not supported by CP1 in testPeopleTable()
131 assertEquals(0, cursor.getInt(TIMES_CONTACTED_INDEX)); in testPeopleTable()
132 assertEquals(0, cursor.getInt(STARRED_INDEX)); in testPeopleTable()
179 int id = cursor.getInt(ID_INDEX); in testGroupsTable()
[all …]
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeSettings.java63 return mBundle.getInt(BACKGROUND_COLOR_KEY, defaultColor); in getBackgroundColor()
72 return mBundle.getInt(NAVIGATION_BAR_COLOR_KEY); in getNavigationBarColor()
76 return mBundle.getInt(INPUT_VIEW_HEIGHT_WITHOUT_SYSTEM_WINDOW_INSET, defaultHeight); in getInputViewHeightWithoutSystemWindowInset()
80 return mBundle.getInt(WINDOW_FLAGS, defaultFlags); in getWindowFlags()
84 return mBundle.getInt(WINDOW_FLAGS_MASK, defaultFlags); in getWindowFlagsMask()
88 return mBundle.getInt(INPUT_VIEW_SYSTEM_UI_VISIBILITY, defaultFlags); in getInputViewSystemUiVisibility()
/cts/tests/app/src/android/app/cts/
DTimePickerDialogTest.java98 assertEquals(TARGET_HOUR, b.getInt(HOUR)); in testSaveInstanceState()
99 assertEquals(TARGET_MINUTE, b.getInt(MINUTE)); in testSaveInstanceState()
109 assertEquals(TARGET_HOUR, b.getInt(HOUR)); in testSaveInstanceState()
110 assertEquals(minute, b.getInt(MINUTE)); in testSaveInstanceState()
142 assertEquals(TARGET_HOUR, b.getInt(HOUR)); in testUpdateTime()
143 assertEquals(minute, b.getInt(MINUTE)); in testUpdateTime()
161 assertEquals(TARGET_HOUR, b2.getInt(HOUR)); in testOnRestoreInstanceState()
162 assertEquals(minute, b2.getInt(MINUTE)); in testOnRestoreInstanceState()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Audio_MediaTest.java100 assertEquals(Audio1.IS_DRM, c.getInt(c.getColumnIndex(Media.IS_DRM))); in testStoreAudioMedia()
103 assertEquals(Audio1.SIZE, c.getInt(c.getColumnIndex(Media.SIZE))); in testStoreAudioMedia()
117 assertEquals(Audio1.IS_ALARM, c.getInt(c.getColumnIndex(Media.IS_ALARM))); in testStoreAudioMedia()
118 assertEquals(Audio1.IS_MUSIC, c.getInt(c.getColumnIndex(Media.IS_MUSIC))); in testStoreAudioMedia()
119 assertEquals(Audio1.IS_NOTIFICATION, c.getInt(c.getColumnIndex(Media.IS_NOTIFICATION))); in testStoreAudioMedia()
120 assertEquals(Audio1.IS_RINGTONE, c.getInt(c.getColumnIndex(Media.IS_RINGTONE))); in testStoreAudioMedia()
121 assertEquals(Audio1.TRACK, c.getInt(c.getColumnIndex(Media.TRACK))); in testStoreAudioMedia()
122 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Media.YEAR))); in testStoreAudioMedia()
142 assertEquals(Audio2.IS_DRM, c.getInt(c.getColumnIndex(Media.IS_DRM))); in testStoreAudioMedia()
145 assertEquals(Audio2.SIZE, c.getInt(c.getColumnIndex(Media.SIZE))); in testStoreAudioMedia()
[all …]
DMediaStore_Audio_Playlists_MembersTest.java175 members[pos], c.getInt(c.getColumnIndex(Members.AUDIO_ID))); in verifyPlaylist()
179 ordering[pos], c.getInt(c.getColumnIndex(Members.PLAY_ORDER))); in verifyPlaylist()
222 assertEquals(Audio1.IS_DRM, c.getInt(c.getColumnIndex(Members.IS_DRM))); in testStoreAudioPlaylistsMembersExternal()
225 assertEquals(Audio1.SIZE, c.getInt(c.getColumnIndex(Members.SIZE))); in testStoreAudioPlaylistsMembersExternal()
235 assertEquals(Audio1.IS_ALARM, c.getInt(c.getColumnIndex(Members.IS_ALARM))); in testStoreAudioPlaylistsMembersExternal()
236 assertEquals(Audio1.IS_MUSIC, c.getInt(c.getColumnIndex(Members.IS_MUSIC))); in testStoreAudioPlaylistsMembersExternal()
238 c.getInt(c.getColumnIndex(Members.IS_NOTIFICATION))); in testStoreAudioPlaylistsMembersExternal()
239 assertEquals(Audio1.IS_RINGTONE, c.getInt(c.getColumnIndex(Members.IS_RINGTONE))); in testStoreAudioPlaylistsMembersExternal()
240 assertEquals(Audio1.TRACK, c.getInt(c.getColumnIndex(Members.TRACK))); in testStoreAudioPlaylistsMembersExternal()
241 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Members.YEAR))); in testStoreAudioPlaylistsMembersExternal()
[all …]
DSettings_SecureTest.java63 assertEquals(10, Secure.getInt(cr, "int", 10)); in testGetDefaultValues()
78 Secure.getInt(cr, NO_SUCH_SETTING); in testGetPutInt()
84 Secure.getInt(cr, STRING_VALUE_SETTING); in testGetPutInt()
158 1, Settings.Secure.getInt(cr, Settings.Global.INSTALL_NON_MARKET_APPS)); in testUnknownSourcesOnByDefault()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_direct/d/
DT_invoke_direct_2.java22 return getInt(); in run()
25 private int getInt() { in getInt() method in T_invoke_direct_2
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_direct_range/d/
DT_invoke_direct_range_2.java22 return getInt(); in run()
25 private int getInt() { in getInt() method in T_invoke_direct_range_2
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DSensorFeaturesDeactivator.java104 .getInt(contentResolver, Settings.System.AIRPLANE_MODE_ON, defaultValue); in getSettingMode()
107 .getInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, defaultValue); in getSettingMode()
126 return Settings.System.getInt( in getSettingMode()
140 return Settings.Secure.getInt( in getSettingMode()
155 return Settings.System.getInt( in getSettingMode()
170 return Settings.Global.getInt( in getSettingMode()
184 return Settings.Secure.getInt( in getSettingMode()
/cts/tests/tests/content/src/android/content/cts/
DContentResolverTest.java311 assertEquals(3, mCursor.getInt(mCursor.getColumnIndexOrThrow(COLUMN_ID_NAME))); in testQuery()
313 assertEquals(VALUE3, mCursor.getInt(mCursor.getColumnIndexOrThrow(COLUMN_VALUE_NAME))); in testQuery()
316 assertEquals(2, mCursor.getInt(mCursor.getColumnIndexOrThrow(COLUMN_ID_NAME))); in testQuery()
318 assertEquals(VALUE2, mCursor.getInt(mCursor.getColumnIndexOrThrow(COLUMN_VALUE_NAME))); in testQuery()
333 assertEquals(1, mCursor.getInt(mCursor.getColumnIndexOrThrow(COLUMN_ID_NAME))); in testQuery_WithSqlSelectionArgs()
335 assertEquals(VALUE1, mCursor.getInt(mCursor.getColumnIndexOrThrow(COLUMN_VALUE_NAME))); in testQuery_WithSqlSelectionArgs()
346 assertEquals(3, mCursor.getInt(mCursor.getColumnIndexOrThrow(COLUMN_ID_NAME))); in testQuery_WithSqlSelectionArgs()
348 assertEquals(VALUE3, mCursor.getInt(mCursor.getColumnIndexOrThrow(COLUMN_VALUE_NAME))); in testQuery_WithSqlSelectionArgs()
440 assertEquals(100, extras.getInt(ContentResolver.EXTRA_TOTAL_COUNT)); in testQuery_PagedResults()
450 assertEquals(10, mCursor.getInt(col)); in testQuery_PagedResults()
[all …]
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteDatabaseTest.java364 assertEquals(age, cursor.getInt(COLUMN_AGE_INDEX)); in testCompileStatement()
396 assertEquals(30, cursor.getInt(COLUMN_AGE_INDEX)); in testDelete()
400 assertEquals(35, cursor.getInt(COLUMN_AGE_INDEX)); in testDelete()
415 assertEquals(35, cursor.getInt(COLUMN_AGE_INDEX)); in testDelete()
445 assertEquals(20, cursor.getInt(COLUMN_AGE_INDEX)); in testExecSQL()
457 assertEquals(20, cursor.getInt(COLUMN_AGE_INDEX)); in testExecSQL()
461 assertEquals(30, cursor.getInt(COLUMN_AGE_INDEX)); in testExecSQL()
473 assertEquals(20, cursor.getInt(COLUMN_AGE_INDEX)); in testExecSQL()
485 assertEquals(20, cursor.getInt(COLUMN_AGE_INDEX)); in testExecSQL()
505 assertEquals(40, cursor.getInt(COLUMN_AGE_INDEX)); in testExecSQL()
[all …]
DSQLiteCursorTest.java115 assertEquals(TEST_COUNT, cursor.getInt(1)); in testRegisterDataSetObserver()
121 cursor.getInt(1); in testRegisterDataSetObserver()
128 assertEquals(TEST_COUNT, cursor.getInt(1)); in testRegisterDataSetObserver()
176 assertEquals(1, c.getInt(0)); in testRequery2()
178 assertEquals(2, c.getInt(0)); in testRequery2()
184 assertEquals(1, c.getInt(0)); in testRequery2()
186 assertEquals(2, c.getInt(0)); in testRequery2()
188 assertEquals(3, c.getInt(0)); in testRequery2()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSecurityLoggingTest.java411 assertEquals(1, getInt(event)); in verifyCryptoSelfTestEventPresent()
439 private static int getInt(SecurityEvent event) { in getInt() method in SecurityLoggingTest
443 private static int getInt(SecurityEvent event, int index) { in getInt() method in SecurityLoggingTest
498 && getInt(e, SUCCESS_INDEX) == SUCCESS_VALUE in verifyKeyGeneratedEventPresent()
500 && getInt(e, UID_INDEX) == Process.myUid()); in verifyKeyGeneratedEventPresent()
513 && getInt(e, SUCCESS_INDEX) == SUCCESS_VALUE in verifyKeyImportedEventPresent()
515 && getInt(e, UID_INDEX) == Process.myUid()); in verifyKeyImportedEventPresent()
527 && getInt(e, SUCCESS_INDEX) == SUCCESS_VALUE in verifyKeyDeletedEventPresent()
529 && getInt(e, UID_INDEX) == Process.myUid()); in verifyKeyDeletedEventPresent()
539 && getInt(e, SUCCESS_INDEX) == SUCCESS_VALUE in verifyCertInstalledEventPresent()
[all …]
DAirplaneModeRestrictionTest.java69 assertEquals(0, Settings.Global.getInt( in testAirplaneModeTurnedOffWhenRestrictionSet()
80 assertEquals(0, Settings.Global.getInt( in testAirplaneModeCannotBeTurnedOnWithRestrictionOn()
87 assertEquals(1, Settings.Global.getInt( in testAirplaneModeCanBeTurnedOnWithRestrictionOff()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java595 Array.set(val, i, ja.getInt(i)); in deserialize()
597 Array.set(val, i, (byte)ja.getInt(i)); in deserialize()
611 obj.getInt("width"), obj.getInt("height"))); in deserialize()
615 obj.getInt("left"), obj.getInt("top"), in deserialize()
616 obj.getInt("bottom"), obj.getInt("right"))); in deserialize()
620 obj.getInt("numerator"), in deserialize()
621 obj.getInt("denominator"))); in deserialize()
634 arr.getJSONObject(j).getInt("numerator"), in deserialize()
635 arr.getJSONObject(j).getInt("denominator")); in deserialize()
641 obj.getInt("x"), in deserialize()
[all …]
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/
DAudioProtocol.java223 Integer id = new Integer(mDataBuffer.getInt(0)); in handleDownload()
236 final Integer id = new Integer(mDataBuffer.getInt(0)); in handleStartPlayback()
237 final int samplingRate = mDataBuffer.getInt(1 * 4); in handleStartPlayback()
238 final boolean stereo = ((mDataBuffer.getInt(2 * 4) & 0x80000000) != 0); in handleStartPlayback()
239 final int mode = mDataBuffer.getInt(2 * 4) & 0x7fffffff; in handleStartPlayback()
240 final int volume = mDataBuffer.getInt(3 * 4); in handleStartPlayback()
241 final int repeat = mDataBuffer.getInt(4 * 4); in handleStartPlayback()
333 final int samplingRate = mDataBuffer.getInt(0); in handleStartRecording()
334 final boolean stereo = ((mDataBuffer.getInt(1 * 4) & 0x80000000) != 0); in handleStartRecording()
335 final int mode = mDataBuffer.getInt(1 * 4) & 0x7fffffff; in handleStartRecording()
[all …]
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/
DIncludeExcludeTest.java264 int value = mIncludeSharedPref.getInt(SHARED_PREF_KEY1, 0); in checkSharedPrefExist()
267 value = mExcludeSharedPref.getInt(SHARED_PREF_KEY2, 0); in checkSharedPrefExist()
282 int value = mIncludeSharedPref.getInt(SHARED_PREF_KEY1, 0); in checkSharedPrefDontExist()
285 value = mExcludeSharedPref.getInt(SHARED_PREF_KEY2, 0); in checkSharedPrefDontExist()
290 int value = mIncludeSharedPref.getInt(SHARED_PREF_KEY1, 0); in checkIncludeSharedPrefExist()
295 int value = mExcludeSharedPref.getInt(SHARED_PREF_KEY2, 0); in checkExcludeSharedPrefDoNotExist()
/cts/tests/fragment/src/android/fragment/cts/
DReentrantFragment.java63 mFromState = savedInstanceState.getInt(FROM_STATE); in onCreate()
64 mToState = savedInstanceState.getInt(TO_STATE); in onCreate()

12345678