Home
last modified time | relevance | path

Searched refs:SIZE (Results 1 – 25 of 96) sorted by relevance

1234

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/
DPbapPhonebookMetadataTest.java29 private static final int SIZE = 5; field in PbapPhonebookMetadataTest
39 SIZE, in testCreatePhonebookMetadata_forFavorites_metadataCreated()
45 assertThat(metadata.size()).isEqualTo(SIZE); in testCreatePhonebookMetadata_forFavorites_metadataCreated()
60 SIZE, in testCreatePhonebookMetadata_forLocalPhonebook_metadataCreated()
66 assertThat(metadata.size()).isEqualTo(SIZE); in testCreatePhonebookMetadata_forLocalPhonebook_metadataCreated()
81 SIZE, in testCreatePhonebookMetadata_forSimLocalPhonebook_metadataCreated()
87 assertThat(metadata.size()).isEqualTo(SIZE); in testCreatePhonebookMetadata_forSimLocalPhonebook_metadataCreated()
102 SIZE, in testCreatePhonebookMetadata_forIncomingCallHistory_metadataCreated()
108 assertThat(metadata.size()).isEqualTo(SIZE); in testCreatePhonebookMetadata_forIncomingCallHistory_metadataCreated()
126 SIZE, in testCreatePhonebookMetadata_forOutgoingCallHistory_metadataCreated()
[all …]
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DMemBlockTest.cpp103 constexpr unsigned SIZE = 10; in TEST() local
110 MemBlock block2 = makeArbitraryMemBlock(SIZE); in TEST()
111 EXPECT_EQ(SIZE, block2.get().size()); in TEST()
113 for (unsigned i = 0; i < SIZE; i++) { in TEST()
119 EXPECT_EQ(SIZE, block.get().size()); in TEST()
120 for (unsigned i = 0; i < SIZE; i++) { in TEST()
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/storage/s2/
DS2Support.java73 >>> (Long.SIZE - FACE_BIT_COUNT)); in getFaceIdValue()
83 if (unusedBitCount > Long.SIZE - FACE_BIT_COUNT) { in getValidIndex()
128 cellId <<= Long.SIZE - (storageBitCountForLevel + 1); in cellId()
201 return (facePlusTrailingBit) << (Long.SIZE - FACE_BIT_COUNT - 1); in offsetCellId()
234 if (trailingZeroCount == Long.SIZE) { in getS2Level()
237 int cellIdBitCount = Long.SIZE - trailingZeroCount; in getS2Level()
/packages/services/Telephony/utils/satellite/s2storage/src/readonly/java/com/android/telephony/sats2range/read/
DSatS2RangeFileFormat.java125 Conditions.checkArgInRange("prefixBitCount", prefixBitCount, 4, Integer.SIZE - 1); in SatS2RangeFileFormat()
136 "tableEntryKeyBitCount", tableEntryKeyBitCount, 1, Integer.SIZE - 1); in SatS2RangeFileFormat()
143 "tableEntryValueBitCount", tableEntryValueBitCount, 1, Integer.SIZE); in SatS2RangeFileFormat()
158 if (tableEntryBitCount < 0 || tableEntryBitCount % Byte.SIZE != 0 in SatS2RangeFileFormat()
159 || tableEntryBitCount > Long.SIZE) { in SatS2RangeFileFormat()
173 "entryRangeLengthBitCount", entryRangeLengthBitCount, 2, Integer.SIZE - 1); in SatS2RangeFileFormat()
192 mUnusedCellIdBitCount = Long.SIZE - (prefixBitCount + suffixBitCount); in SatS2RangeFileFormat()
/packages/modules/GeoTZ/tzs2storage/src/readonly/java/com/android/timezone/location/storage/tzs2range/
DTzS2RangeFileFormat.java102 Conditions.checkArgInRange("prefixBitCount", prefixBitCount, 4, Integer.SIZE - 1); in TzS2RangeFileFormat()
113 "tableEntryKeyBitCount", tableEntryKeyBitCount, 1, Integer.SIZE - 1); in TzS2RangeFileFormat()
120 "tableEntryValueBitCount", tableEntryValueBitCount, 1, Integer.SIZE); in TzS2RangeFileFormat()
135 if (tableEntryBitCount < 0 || tableEntryBitCount % Byte.SIZE != 0 in TzS2RangeFileFormat()
136 || tableEntryBitCount > Long.SIZE) { in TzS2RangeFileFormat()
149 2, Math.min(tableEntryBitCount - 2, Integer.SIZE - 1)); in TzS2RangeFileFormat()
168 mUnusedCellIdBitCount = Long.SIZE - (prefixBitCount + suffixBitCount); in TzS2RangeFileFormat()
/packages/modules/Bluetooth/system/gd/os/
Drand.h28 template <size_t SIZE>
29 std::array<uint8_t, SIZE> GenerateRandom() { in GenerateRandom()
30 std::array<uint8_t, SIZE> ret; in GenerateRandom()
/packages/modules/Virtualization/libs/libvmbase/src/
Dheap.rs50 pub struct HeapArray<const SIZE: usize> {
51 array: SpinMutex<[u8; SIZE]>,
54 impl<const SIZE: usize> HeapArray<SIZE> {
58 Self { array: SpinMutex::new([0; SIZE]) } in new()
/packages/modules/DnsResolver/tests/
Dresolv_tls_unit_test.cpp85 const uint16_t SIZE = 22; variable
86 const bytevec QUERY = make_query(ID, SIZE);
298 queries[i] = make_query(i, SIZE); in TEST_F()
320 queries[i] = make_query(i, SIZE); in TEST_F()
370 queries[i] = make_query(i, SIZE); in TEST_F()
390 queries[i] = make_query(i, SIZE); in TEST_F()
564 FakeSocketLimited::sMaxSize = SIZE - 2; // Silently drop "long" queries in TEST_F()
575 queries[i] = make_query(i, SIZE + (i % 2)); in TEST_F()
591 FakeSocketLimited::sMaxSize = SIZE; // No query drops. in TEST_F()
620 … mThreads.emplace_back(&IDnsTlsSocketObserver::onResponse, mObserver, make_query(ID + 1, SIZE)); in FakeSocketGarbage()
[all …]
/packages/modules/GeoTZ/validation/geonames/
Drun_compare.sh58 for SIZE in ${CITY_SIZES[@]}; do
59 if (( "${SIZE}" >= ${CITY_SIZE} )); then
60 KNOWN_DIFF_FILE=${KNOWN_DIFFS_DIR}/known_diffs${SIZE}.prototxt
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/storage/table/packed/read/
DIntValueTypedPackedTable.java37 super(blockData, Integer.SIZE, useBigSharedData); in IntValueTypedPackedTable()
39 if (mTableReader.getValueSizeBits() == Integer.SIZE && !signedValue) { in IntValueTypedPackedTable()
41 "Cannot use unsigned with " + Integer.SIZE + " bits"); in IntValueTypedPackedTable()
/packages/services/Mtp/perf_tests/src/com/android/mtp/
DAppFusePerfTest.java38 final static int SIZE = 10 * 1024 * 1024; // 10MB field in AppFusePerfTest
46 final byte[] bytes = new byte[SIZE]; in testReadWriteFile()
103 return SIZE; in onGetSize()
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/info/
DFiraProfileSupportInfo.java100 for (int j = 0; j < Byte.SIZE; j++) { in fromBytes()
127 int nth_byte = bit_position / Byte.SIZE; in toBytes()
128 byte nth_bit = (byte) (bit_position % Byte.SIZE); in toBytes()
/packages/modules/Bluetooth/system/gd/packet/parser/
Dlanguage_y.yy68 %token SIZE "size"
272 DEBUG() << "STRUCT FIELD LIST SIZE: " << field_definition_list.size();
287 DEBUG() << "STRUCT FIELD LIST SIZE: " << field_definition_list.size() << "\n";
348 DEBUG() << "PACKET FIELD LIST SIZE: " << field_definition_list.size();
363 DEBUG() << "PACKET FIELD LIST SIZE: " << field_definition_list.size() << "\n";
388 DEBUG() << "PACKET FIELD LIST SIZE: " << field_definition_list.size() << "\n";
389 DEBUG() << "CONSTRAINT LIST SIZE: " << constraints.size() << "\n";
661 : SIZE '(' IDENTIFIER ')' ':' INTEGER
667 | SIZE '(' PAYLOAD ')' ':' INTEGER
672 | SIZE '(' BODY ')' ':' INTEGER
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/com/android/ondevicepersonalization/internal/util/
DByteArrayParceledSliceTest.java47 private static final int SIZE = 10 * 1024 * 1024; field in ByteArrayParceledSliceTest
57 byte[] data = new byte[SIZE]; in runTest()
58 for (int i = 0; i < SIZE; ++i) { in runTest()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppSendFileInfoTest.java145 new MatrixCursor(new String[] {OpenableColumns.DISPLAY_NAME, OpenableColumns.SIZE}); in generateFileInfo_withContentUriForOtherUser_returnsSendFileInfoError()
175 new MatrixCursor(new String[] {OpenableColumns.DISPLAY_NAME, OpenableColumns.SIZE}); in generateFileInfo_withContentUriForImplicitUser_returnsInfoWithCorrectLength()
209 new MatrixCursor(new String[] {OpenableColumns.DISPLAY_NAME, OpenableColumns.SIZE}); in generateFileInfo_withContentUriForSameUser_returnsInfoWithCorrectLength()
260 new MatrixCursor(new String[] {OpenableColumns.DISPLAY_NAME, OpenableColumns.SIZE}); in generateFileInfo_withUncorrectableMismatch_returnsSendFileInfoError()
293 new MatrixCursor(new String[] {OpenableColumns.DISPLAY_NAME, OpenableColumns.SIZE}); in generateFileInfo_withCorrectableMismatch_returnInfoWithCorrectLength()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DByteBufferReader.java59 value = (value << Byte.SIZE) | (octets[n] & 0xFF); in readInteger()
63 value = (value << Byte.SIZE) | (octet & 0xFF); in readInteger()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DFileCache.java45 {String.format("sum(%s)", FileEntry.Columns.SIZE)};
48 FileEntry.Columns.CONTENT_URL, FileEntry.Columns.SIZE};
257 public static final String SIZE = "size"; field
270 @Column(Columns.SIZE)
/packages/modules/GeoTZ/tzs2storage/tools/src/java/com/android/storage/tools/block/dump/
DDumpUtils.java68 int bitsNeeded = Integer.SIZE - Integer.numberOfLeadingZeros(value); in hexStringLength()
77 return Integer.SIZE - Integer.numberOfLeadingZeros(value); in binaryStringLength()
/packages/modules/GeoTZ/s2storage/tools/src/java/com/android/storage/tools/block/dump/
DDumpUtils.java68 int bitsNeeded = Integer.SIZE - Integer.numberOfLeadingZeros(value); in hexStringLength()
77 return Integer.SIZE - Integer.numberOfLeadingZeros(value); in binaryStringLength()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java929 ImageColumns.DATE_MODIFIED, ImageColumns.SIZE); in querySearchDocuments()
951 VideoColumns.DATE_MODIFIED, VideoColumns.SIZE); in querySearchDocuments()
970 AudioColumns.DATE_MODIFIED, AudioColumns.SIZE); in querySearchDocuments()
984 FileColumns.SIZE); in querySearchDocuments()
1251 ImageColumns.SIZE,
1257 final int SIZE = 3; field
1268 row.add(Document.COLUMN_SIZE, cursor.getLong(ImageQuery.SIZE)); in includeImage()
1314 VideoColumns.SIZE,
1320 final int SIZE = 3; field
1331 row.add(Document.COLUMN_SIZE, cursor.getLong(VideoQuery.SIZE)); in includeVideo()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/viewmodel/
DClockSettingsViewModel.kt66 SIZE, in <lambda>()
302 isSelected = it == Tab.SIZE, in <lambda>()
304 if (it == Tab.SIZE) { in <lambda>()
307 { _selectedTabPosition.tryEmit(Tab.SIZE) } in <lambda>()
/packages/modules/GeoTZ/s2storage/src/write/java/com/android/storage/io/write/
DTypedOutputStream.java90 BitwiseUtils.checkSignedValueInRange(Byte.SIZE, b); in writeByte()
139 BitwiseUtils.checkUnsignedValueInRange(Character.SIZE, v); in writeChar()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
DDumpFileProvider.java97 : new String[] {OpenableColumns.DISPLAY_NAME, OpenableColumns.SIZE}; in query()
110 } else if (OpenableColumns.SIZE.equals(column)) { in query()
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DUtils.java97 int keySizeBytes = (privateKey.getParams().getOrder().bitLength() + Byte.SIZE - 1) in getBytesFromP256PrivateKey()
98 / Byte.SIZE; in getBytesFromP256PrivateKey()
115 (publicKey.getParams().getOrder().bitLength() + Byte.SIZE - 1) / Byte.SIZE; in getBytesFromP256PublicKey()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/provider/
DSharedImageProvider.java101 OpenableColumns.SIZE in query()
119 } else if (projection[i].equalsIgnoreCase(OpenableColumns.SIZE)) { in query()

1234