Home
last modified time | relevance | path

Searched refs:TEST_SIZE (Results 1 – 5 of 5) sorted by relevance

/packages/services/Car/cpp/car_binder_lib/largeParcelable/tests/
DMappedFileSharedMemoryTest.cpp35 constexpr size_t TEST_SIZE = 1024; variable
67 unique_fd fd(ashmem_create_region("SharedMemory", TEST_SIZE)); in TEST()
78 SharedMemory sm(TEST_SIZE); in TEST()
93 uint8_t buffer[TEST_SIZE]; in testSharedMemoryMapWriteAndRead()
111 unique_fd fd(ashmem_create_region("SharedMemory", TEST_SIZE)); in TEST()
122 SharedMemory sm(TEST_SIZE); in TEST()
131 unique_fd fd(ashmem_create_region("SharedMemory", TEST_SIZE)); in TEST()
144 SharedMemory sm(TEST_SIZE); in TEST()
158 void* addr = mmap(NULL, TEST_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); in TEST()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DFastPairAccountKeyStorageTest.java59 private static final int TEST_SIZE = 5; field in FastPairAccountKeyStorageTest
225 mFastPairAccountKeyStorage = new FastPairAccountKeyStorage(mMockContext, TEST_SIZE); in testCreateWithValidSize_storageCreated()
227 assertThat(mFastPairAccountKeyStorage.capacity()).isEqualTo(TEST_SIZE); in testCreateWithValidSize_storageCreated()
238 mFastPairAccountKeyStorage = new FastPairAccountKeyStorage(mMockContext, TEST_SIZE); in testAddKeyWhileStorageEmpty_keyAdded()
252 mFastPairAccountKeyStorage = new FastPairAccountKeyStorage(mMockContext, TEST_SIZE); in testAddKeyWhileStorageAtMax_keyAddedAndLruDropped()
275 mFastPairAccountKeyStorage = new FastPairAccountKeyStorage(mMockContext, TEST_SIZE); in testAddKeyAlreadyInStorage_KeysLruPositionReset()
298 mFastPairAccountKeyStorage = new FastPairAccountKeyStorage(mMockContext, TEST_SIZE); in testAddNullKey_nothingHappens()
321 mFastPairAccountKeyStorage = new FastPairAccountKeyStorage(mMockContext, TEST_SIZE); in testRemoveKeyInStorage_keyRemoved()
348 mFastPairAccountKeyStorage = new FastPairAccountKeyStorage(mMockContext, TEST_SIZE); in testRemoveKeyNotInStorage_keysUnchanged()
372 mFastPairAccountKeyStorage = new FastPairAccountKeyStorage(mMockContext, TEST_SIZE); in testRemoveNullKey_nothingHappens()
[all …]
/packages/modules/Connectivity/remoteauth/tests/unit/src/com/android/server/remoteauth/util/
DCryptoTest.java33 private static final int TEST_SIZE = 40; field in CryptoTest
43 assertNull(Crypto.computeHkdf(TEST_IKM, new byte[] {}, TEST_SIZE)); in testComputeHkdf_emptySalt()
48 assertNull(Crypto.computeHkdf(new byte[] {}, TEST_SALT, TEST_SIZE)); in testComputeHkdf_emptyIkm()
53 assertNotNull(Crypto.computeHkdf(TEST_IKM, TEST_SALT, TEST_SIZE)); in testComputeHkdf_success()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapMessageListingElementTest.java50 private static final int TEST_SIZE = 0; field in BluetoothMapMessageListingElementTest
83 mMessageListingElement.setSize(TEST_SIZE); in setUp()
114 assertThat(mMessageListingElement.getSize()).isEqualTo(TEST_SIZE); in getters()
177 assertThat(attributeValue).isEqualTo(Integer.toString(TEST_SIZE)); in encode()
DBluetoothMapContentTest.java99 private static final int TEST_SIZE = 1; field in BluetoothMapContentTest
1479 TEST_SIZE, in msgListing_withMmsCursorOnly()
1525 assertThat(mmsElement.getSize()).isEqualTo(TEST_SIZE); in msgListing_withMmsCursorOnly()
1580 TEST_SIZE, in msgListing_withEmailCursorOnly()
1618 assertThat(emailElement.getSize()).isEqualTo(TEST_SIZE); in msgListing_withEmailCursorOnly()
1623 assertThat(emailElement.getAttachmentSize()).isEqualTo(TEST_SIZE); in msgListing_withEmailCursorOnly()
1675 TEST_SIZE, in msgListing_withImCursorOnly()
1720 assertThat(imElement.getSize()).isEqualTo(TEST_SIZE); in msgListing_withImCursorOnly()
1725 assertThat(imElement.getAttachmentSize()).isEqualTo(TEST_SIZE); in msgListing_withImCursorOnly()