/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | CompressedTextureLoader.java | 142 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/media/misc/src/android/media/misc/cts/ |
D | MediaMetricsTest.java | 59 assertEquals(1, bundle.getInt("int")); in testBasicItem() 65 assertEquals(-1, bundle.getInt(MediaMetrics.Item.BUNDLE_PID)); // default PID in testBasicItem() 66 assertEquals(-1, bundle.getInt(MediaMetrics.Item.BUNDLE_UID)); // default UID in testBasicItem() 70 assertEquals(4, bundle.getInt(MediaMetrics.Item.BUNDLE_PROPERTY_COUNT)); in testBasicItem() 98 assertEquals(1, bundle.getInt("int")); in testBigItem() 104 assertEquals(1, bundle.getInt(MediaMetrics.Item.BUNDLE_PID)); in testBigItem() 105 assertEquals(2, bundle.getInt(MediaMetrics.Item.BUNDLE_UID)); in testBigItem() 111 assertEquals((int) i, bundle.getInt(i.toString())); in testBigItem() 114 assertEquals(intKeyCount + 4, bundle.getInt(MediaMetrics.Item.BUNDLE_PROPERTY_COUNT)); in testBigItem() 122 assertEquals(1, bundle2.getInt(MediaMetrics.Item.BUNDLE_PID)); in testBigItem() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | FontFileTestUtil.java | 47 int magicNumber = buffer.getInt(0); in getPostScriptName() 50 int numFonts = buffer.getInt(8); in getPostScriptName() 56 fontOffset = buffer.getInt(12 + 4 * index); in getPostScriptName() 57 magicNumber = buffer.getInt(fontOffset); in getPostScriptName() 69 int tableTag = buffer.getInt(tableEntryOffset); in getPostScriptName() 71 nameTableOffset = buffer.getInt(tableEntryOffset + 8); in getPostScriptName() 124 int magicNumber = buffer.getInt(0); in hasTable() 127 int numFonts = buffer.getInt(8); in hasTable() 133 fontOffset = buffer.getInt(12 + 4 * index); in hasTable() 134 magicNumber = buffer.getInt(fontOffset); in hasTable() [all …]
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/settings/ |
D | SystemSettings.kt | 124 fun getInt(contentResolver: ContentResolver, key: String): Int { in getInt() method 135 fun getInt(contentResolver: ContentResolver, key: String, defaultValue: Int): Int { in getInt() method 144 Settings.System.getInt(contentResolver, key) in getIntInner() 151 return Settings.System.getInt(contentResolver, key, defaultValue) in getIntInner() 165 fun getInt(user: UserReference, key: String): Int { in getInt() method 167 getInt(key) in getInt() 168 } else getInt(TestApis.context().androidContextAsUser(user).contentResolver, key) in getInt() 182 fun getInt(user: UserReference, key: String, defaultValue: Int): Int { in getInt() method 184 getInt(key, defaultValue) in getInt() 185 } else getInt( in getInt() [all …]
|
D | GlobalSettings.kt | 124 fun getInt(contentResolver: ContentResolver, key: String): Int { in <lambda>() method 135 fun getInt(contentResolver: ContentResolver, key: String, defaultValue: Int): Int { in <lambda>() method 144 Settings.Global.getInt(contentResolver, key) in <lambda>() 151 return Settings.Global.getInt(contentResolver, key, defaultValue) in <lambda>() 165 fun getInt(user: UserReference, key: String): Int { in <lambda>() method 167 getInt(key) in <lambda>() 168 } else getInt(TestApis.context().androidContextAsUser(user).contentResolver, key) in <lambda>() 182 fun getInt(user: UserReference, key: String, defaultValue: Int): Int { in <lambda>() method 184 getInt(key, defaultValue) in <lambda>() 185 } else getInt( in <lambda>() [all …]
|
D | SecureSettings.kt | 81 fun getInt(contentResolver: ContentResolver, key: String): Int { in getInt() method 92 fun getInt(contentResolver: ContentResolver, key: String, defaultValue: Int): Int { in getInt() method 101 Settings.Secure.getInt(contentResolver, key) in getIntInner() 108 return Settings.Secure.getInt(contentResolver, key, defaultValue) in getIntInner() 122 fun getInt(user: UserReference, key: String): Int { in getInt() method 124 getInt(key) in getInt() 125 } else getInt(TestApis.context().androidContextAsUser(user).contentResolver, key) in getInt() 139 fun getInt(user: UserReference, key: String, defaultValue: Int): Int { in getInt() method 141 getInt(key, defaultValue) in getInt() 142 } else getInt( in getInt() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | VoicemailContractTest.java | 176 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 …]
|
/cts/tests/tests/database/src/android/database/cts/ |
D | MatrixCursor_RowBuilderTest.java | 56 assertEquals(Integer.MIN_VALUE, cursor.getInt(COLUMN0_INDEX)); in testAdd() 62 assertEquals(Integer.MIN_VALUE, cursor.getInt(COLUMN0_INDEX)); in testAdd() 64 assertEquals(0, cursor.getInt(COLUMN1_INDEX)); in testAdd() 69 assertEquals(Integer.MIN_VALUE, cursor.getInt(COLUMN0_INDEX)); in testAdd() 71 assertEquals(0, cursor.getInt(COLUMN1_INDEX)); in testAdd() 73 assertEquals(Integer.MAX_VALUE, cursor.getInt(COLUMN2_INDEX)); in testAdd()
|
D | MatrixCursorTest.java | 78 assertEquals(Integer.MIN_VALUE, mMatrixCursor.getInt(COLUMN0_INDEX)); in testNewRow() 84 assertEquals(Integer.MIN_VALUE, mMatrixCursor.getInt(COLUMN0_INDEX)); in testNewRow() 86 assertEquals(0, mMatrixCursor.getInt(COLUMN1_INDEX)); in testNewRow() 91 assertEquals(Integer.MIN_VALUE, mMatrixCursor.getInt(COLUMN0_INDEX)); in testNewRow() 93 assertEquals(0, mMatrixCursor.getInt(COLUMN1_INDEX)); in testNewRow() 95 assertEquals(Integer.MAX_VALUE, mMatrixCursor.getInt(COLUMN2_INDEX)); in testNewRow() 197 assertEquals(Short.MIN_VALUE, mMatrixCursor.getInt(COLUMN0_INDEX)); in testGetters() 198 assertEquals(0, mMatrixCursor.getInt(COLUMN1_INDEX)); in testGetters() 199 assertEquals(Short.MAX_VALUE, mMatrixCursor.getInt(COLUMN2_INDEX)); in testGetters() 228 assertEquals(0, mMatrixCursor.getInt(COLUMN0_INDEX)); in testGetters() [all …]
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | SettingsTest.java | 75 int originalValue = TestApis.settings().global().getInt(DEPRECATED_GLOBAL_SETTING); in setGlobalSetting_settingIsDeprecated_doesNotChangeSetting() 83 assertThat(TestApis.settings().global().getInt(DEPRECATED_GLOBAL_SETTING)) in setGlobalSetting_settingIsDeprecated_doesNotChangeSetting() 112 int originalValue = TestApis.settings().global().getInt(SUPPORTED_GLOBAL_SETTING); in setGlobalSetting_supported_changesValue() 120 assertThat(TestApis.settings().global().getInt(SUPPORTED_GLOBAL_SETTING)) in setGlobalSetting_supported_changesValue() 131 .getInt(SECURE_SETTING, /* defaultValue= */ 0); in setSecureSetting_sets() 140 .getInt(SECURE_SETTING, /* defaultValue= */ 0)).isEqualTo(newValue); in setSecureSetting_sets() 158 .getInt(DEPRECATED_DEVICE_OWNER_ONLY_SECURE_SETTING, /* defaultValue= */ 0); in setSecureSetting_deviceOwnerOnly_sets() 166 assertThat(TestApis.settings().secure().getInt( in setSecureSetting_deviceOwnerOnly_sets() 182 .getInt(DEPRECATED_DEVICE_OWNER_ONLY_SECURE_SETTING, /* defaultValue= */ 0); in setSecureSetting_deviceOwnerOnly_isNotDeviceOwner_throwsSecurityException() 198 .getInt(DEPRECATED_DEVICE_OWNER_ONLY_SECURE_SETTING, /* defaultValue= */ 0); in setSecureSetting_deviceOwnerOnly_settingIsDeprecated_throwsException() [all …]
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | Contacts_PeopleTest.java | 126 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 …]
|
D | ContactsTest.java | 121 assertEquals(0, cursor.getInt(LAST_TIME_CONTACTED_INDEX)); in testPeopleTable() 123 assertEquals(1, cursor.getInt(SEND_TO_VOICEMAIL_INDEX)); in testPeopleTable() 124 assertEquals(0, cursor.getInt(TIMES_CONTACTED_INDEX)); in testPeopleTable() 125 assertEquals(0, cursor.getInt(STARRED_INDEX)); in testPeopleTable() 127 int id = cursor.getInt(ID_INDEX); in testPeopleTable() 143 assertEquals(0, cursor.getInt(LAST_TIME_CONTACTED_INDEX)); // Not supported by CP1 in testPeopleTable() 145 assertEquals(1, cursor.getInt(SEND_TO_VOICEMAIL_INDEX)); // Not supported by CP1 in testPeopleTable() 146 assertEquals(0, cursor.getInt(TIMES_CONTACTED_INDEX)); in testPeopleTable() 147 assertEquals(0, cursor.getInt(STARRED_INDEX)); in testPeopleTable() 195 int id = cursor.getInt(ID_INDEX); in testGroupsTable() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | TimePickerDialogTest.java | 100 assertEquals(TARGET_HOUR, b.getInt(HOUR)); in testSaveInstanceState() 101 assertEquals(TARGET_MINUTE, b.getInt(MINUTE)); in testSaveInstanceState() 111 assertEquals(TARGET_HOUR, b.getInt(HOUR)); in testSaveInstanceState() 112 assertEquals(minute, b.getInt(MINUTE)); in testSaveInstanceState() 144 assertEquals(TARGET_HOUR, b.getInt(HOUR)); in testUpdateTime() 145 assertEquals(minute, b.getInt(MINUTE)); in testUpdateTime() 163 assertEquals(TARGET_HOUR, b2.getInt(HOUR)); in testOnRestoreInstanceState() 164 assertEquals(minute, b2.getInt(MINUTE)); in testOnRestoreInstanceState()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/instrumentation/ |
D | Arguments.java | 36 public int getInt(String key) { in getInt() method in Arguments 37 return mArguments.getInt(key); in getInt() 41 public int getInt(String key, int defaultValue) { in getInt() method in Arguments 42 return mArguments.getInt(key, defaultValue); in getInt()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | VulkanFeaturesTest.java | 401 .getInt("samplerYcbcrConversion") != 0); in testVulkan1_1Requirements() 562 if (device.getJSONObject("properties").getInt("deviceType") in hasOnlyCpuDevice() 572 boolean textureCompressionETC2 = features.getInt("textureCompressionETC2") != 0; in determineHardwareLevel() 573 boolean fullDrawIndexUint32 = features.getInt("fullDrawIndexUint32") != 0; in determineHardwareLevel() 574 boolean imageCubeArray = features.getInt("imageCubeArray") != 0; in determineHardwareLevel() 575 boolean independentBlend = features.getInt("independentBlend") != 0; in determineHardwareLevel() 576 boolean geometryShader = features.getInt("geometryShader") != 0; in determineHardwareLevel() 577 boolean tessellationShader = features.getInt("tessellationShader") != 0; in determineHardwareLevel() 578 boolean sampleRateShading = features.getInt("sampleRateShading") != 0; in determineHardwareLevel() 579 boolean textureCompressionASTC_LDR = features.getInt("textureCompressionASTC_LDR") != 0; in determineHardwareLevel() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | SecurityLoggingTest.java | 295 && getInt(e, 0) == PASSWORD_COMPLEXITY_LOW in verifyPasswordChangedEventsPresent() 296 && getInt(e, 1) == userId); in verifyPasswordChangedEventsPresent() 299 && getInt(e, 0) == PASSWORD_COMPLEXITY_MEDIUM in verifyPasswordChangedEventsPresent() 300 && getInt(e, 1) == userId); in verifyPasswordChangedEventsPresent() 303 && getInt(e, 0) == PASSWORD_COMPLEXITY_HIGH in verifyPasswordChangedEventsPresent() 304 && getInt(e, 1) == userId); in verifyPasswordChangedEventsPresent() 307 && getInt(e, 0) == PASSWORD_COMPLEXITY_NONE in verifyPasswordChangedEventsPresent() 308 && getInt(e, 1) == userId); in verifyPasswordChangedEventsPresent() 332 assertEquals(userId, UserHandle.getUserId(getInt(event, UID_INDEX))); in verifyEventsRedacted() 336 assertEquals(userId, getInt(event, USERID_INDEX)); in verifyEventsRedacted() [all …]
|
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/ |
D | IncludeExcludeTest.java | 290 int value = mIncludeSharedPref1.getInt(SHARED_PREF_KEY1, 0); in checkSharedPrefExist() 292 value = mIncludeSharedPref2.getInt(SHARED_PREF_KEY2, 0); in checkSharedPrefExist() 295 value = mExcludeSharedPref1.getInt(SHARED_PREF_KEY3, 0); in checkSharedPrefExist() 297 value = mExcludeSharedPref2.getInt(SHARED_PREF_KEY4, 0); in checkSharedPrefExist() 318 int value = mIncludeSharedPref1.getInt(SHARED_PREF_KEY1, 0); in checkSharedPrefDontExist() 320 value = mIncludeSharedPref2.getInt(SHARED_PREF_KEY2, 0); in checkSharedPrefDontExist() 323 value = mExcludeSharedPref1.getInt(SHARED_PREF_KEY3, 0); in checkSharedPrefDontExist() 325 value = mExcludeSharedPref2.getInt(SHARED_PREF_KEY4, 0); in checkSharedPrefDontExist() 330 int value = mIncludeSharedPref1.getInt(SHARED_PREF_KEY1, 0); in checkIncludeSharedPrefExist() 333 value = mIncludeSharedPref2.getInt(SHARED_PREF_KEY2, 0); in checkIncludeSharedPrefExist() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
D | SensorFeaturesDeactivator.java | 109 .getInt(contentResolver, Settings.System.AIRPLANE_MODE_ON, defaultValue); in getSettingMode() 112 .getInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, defaultValue); in getSettingMode() 131 return Settings.System.getInt( in getSettingMode() 145 return Settings.Secure.getInt( in getSettingMode() 160 return Settings.System.getInt( in getSettingMode() 175 return Settings.Global.getInt( in getSettingMode() 189 return Settings.Secure.getInt( in getSettingMode()
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/settings/ |
D | GlobalSettingsTest.kt | 47 assertThat(Settings.Global.getInt(context.contentResolver, KEY)) in <lambda>() 56 assertThat(Settings.Global.getInt(context.contentResolver, KEY)) in <lambda>() 74 assertThat(Settings.Global.getInt(context.contentResolver, KEY)) in <lambda>() 85 assertThat(Settings.Global.getInt( in <lambda>() 105 assertThat(TestApis.settings().global().getInt(KEY)).isEqualTo(INT_VALUE) in <lambda>() 111 TestApis.settings().global().getInt(INVALID_KEY) in <lambda>() 117 assertThat(TestApis.settings().global().getInt(INVALID_KEY, INT_VALUE)) in <lambda>() 126 assertThat(TestApis.settings().global().getInt( in <lambda>() 134 TestApis.settings().global().getInt( in <lambda>() 142 assertThat(TestApis.settings().global().getInt( in <lambda>() [all …]
|
D | SystemSettingsTest.kt | 41 assertThat(Settings.System.getInt(sContext.contentResolver, KEY)) in <lambda>() 51 assertThat(Settings.System.getInt(sContext.contentResolver, KEY)) in <lambda>() 70 assertThat(Settings.System.getInt(sContext.contentResolver, KEY)) in <lambda>() 82 assertThat(Settings.System.getInt( in <lambda>() 102 assertThat(TestApis.settings().system().getInt(KEY)).isEqualTo(INT_VALUE) in <lambda>() 108 TestApis.settings().system().getInt(INVALID_KEY) in <lambda>() 114 assertThat(TestApis.settings().system().getInt(INVALID_KEY, INT_VALUE)) in <lambda>() 123 assertThat(TestApis.settings().system().getInt( in <lambda>() 132 TestApis.settings().system().getInt( in <lambda>() 140 assertThat(TestApis.settings().system().getInt( in <lambda>() [all …]
|
D | SecureSettingsTest.kt | 49 Truth.assertThat(Settings.Secure.getInt(context.contentResolver, KEY)) in <lambda>() 59 Truth.assertThat(Settings.Secure.getInt(context.contentResolver, KEY)) in <lambda>() 77 Truth.assertThat(Settings.Secure.getInt(context.contentResolver, KEY)) in <lambda>() 89 Truth.assertThat(Settings.Secure.getInt( in <lambda>() 109 Truth.assertThat(TestApis.settings().secure().getInt(KEY)).isEqualTo(INT_VALUE) in <lambda>() 115 TestApis.settings().secure().getInt(INVALID_KEY) in <lambda>() 121 Truth.assertThat(TestApis.settings().secure().getInt(INVALID_KEY, INT_VALUE)) in <lambda>() 131 Truth.assertThat(TestApis.settings().secure().getInt( in <lambda>() 139 TestApis.settings().secure().getInt( in <lambda>() 148 TestApis.settings().secure().getInt( in <lambda>() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | FontFileTestUtil.java | 42 int magicNumber = buffer.getInt(0); in getPostScriptName() 46 fontOffset = buffer.getInt(12); // 0th offset in getPostScriptName() 47 magicNumber = buffer.getInt(fontOffset); in getPostScriptName() 59 int tableTag = buffer.getInt(tableEntryOffset); in getPostScriptName() 61 nameTableOffset = buffer.getInt(tableEntryOffset + 8); in getPostScriptName()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_direct/d/ |
D | T_invoke_direct_2.java | 22 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/ |
D | T_invoke_direct_range_2.java | 22 return getInt(); in run() 25 private int getInt() { in getInt() method in T_invoke_direct_range_2
|
/cts/hostsidetests/dexmetadata/host/src/com/android/cts/dexmetadata/ |
D | InstallDexMetadataHostTest.java | 240 assertEquals(0x006f7270 /* LE "pro\0" */, bb.getInt()); in ProfileReaderV10() 241 assertEquals(0x00303130 /* LE "010\0" */, bb.getInt()); in ProfileReaderV10() 243 int uncompressed_size = bb.getInt(); in ProfileReaderV10() 244 int compressed_size = bb.getInt(); in ProfileReaderV10() 265 assertEquals(0x006f7270 /* LE "pro\0" */, bb.getInt()); in ProfileReaderV15() 266 assertEquals(0x00353130 /* LE "015\0" */, bb.getInt()); in ProfileReaderV15() 267 int section_count = bb.getInt(); in ProfileReaderV15() 271 assertEquals(/*kDexFiles*/ 0, bb.getInt()); in ProfileReaderV15() 276 int sectionType = bb.getInt(); in ProfileReaderV15() 300 int fileOffset = bb.getInt(); in readSection() [all …]
|