Home
last modified time | relevance | path

Searched refs:getSize (Results 1 – 25 of 203) sorted by relevance

123456789

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipImageFormatTest.java38 Assert.assertEquals(-1, format.getSize()); in testParseNative_requiredOnly()
51 Assert.assertEquals(1048576, format.getSize()); in testParseNative_withSize()
64 Assert.assertEquals(-1, format.getSize()); in testParseVariant_requiredOnly()
77 Assert.assertEquals(-1, format.getSize()); in testParseVariant_withMaxSize()
122 Assert.assertEquals(-1, format.getSize()); in testParseVariant_allFields()
131 Assert.assertEquals(-1, format.getSize()); in testParseVariant_allFields()
140 Assert.assertEquals(-1, format.getSize()); in testParseVariant_allFields()
154 Assert.assertEquals(-1, format.getSize()); in testCreateNative_requiredOnly()
168 Assert.assertEquals(1048576, format.getSize()); in testCreateNative_withSize()
182 Assert.assertEquals(-1, format.getSize()); in testCreateVariant_requiredOnly()
[all …]
/packages/modules/NeuralNetworks/driver/cache/BlobCache/
DBlobCache.cpp146 size_t newTotalSize = mTotalSize + valueSize - oldValueBlob->getSize(); in set()
150 if (!clean(index->getKey()->getSize() + valueSize, in set()
204 size_t valueBlobSize = valueBlob->getSize(); in get()
228 size += align_sizet(sizeof(EntryHeader) + keyBlob->getSize() + valueBlob->getSize()); in getFlattenedSize()
254 size_t keySize = keyBlob->getSize(); in flatten()
255 size_t valueSize = valueBlob->getSize(); in flatten()
366 return entry.getKey()->getSize() + entry.getValue()->getSize(); in findDownTo()
403 const size_t entrySize = entry.getKey()->getSize() + entry.getValue()->getSize(); in clean()
449 size_t BlobCache::Blob::getSize() const { in getSize() function in android::BlobCache::Blob
/packages/modules/NeuralNetworks/driver/sample/
DCanonicalBuffer.cpp34 CHECK(srcPool.getSize() == dstPool.getSize()); in copyRunTimePoolInfos()
35 std::copy(srcPool.getBuffer(), srcPool.getBuffer() + srcPool.getSize(), dstPool.getBuffer()); in copyRunTimePoolInfos()
48 bufferWrapper->validateCopyFrom(dimensions, srcPool->getSize()); in copyFromInternal()
77 const ErrorStatus validationStatus = kBuffer->validateCopyTo(dstPool->getSize()); in copyTo()
/packages/modules/NeuralNetworks/common/
DSharedMemoryAndroid.cpp130 const auto fullSize = mapping->getSize().withDefault(0); in map()
155 const size_t readSize = memory.getSize(fd.get()); in allocateSharedMemory()
169 size_t getSize(const Memory::Ashmem& memory) { in getSize() function
173 size_t getSize(const Memory::Fd& memory) { in getSize() function
177 size_t getSize(const Memory::HardwareBuffer& memory) { in getSize() function
183 size_t getSize(const Memory::Unknown& memory) { in getSize() function
279 size_t getSize(const SharedMemory& memory) { in getSize() function
281 return std::visit([](const auto& x) { return getSize(x); }, memory->handle); in getSize()
DDynamicCLDeps.cpp46 NN_LOAD_FUNCTION(getSize, ASharedMemory_getSize); in loadCompatibilityLayerMemoryHelper()
52 NN_LOAD_FUNCTION(getSize, ashmem_get_size_region); in loadCompatibilityLayerMemoryHelper()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
Ddic_nodes_cache.h68 AKLOGI("Advance active %d nodes.", mNextActiveDicNodes->getSize()); in advanceActiveDicNodes()
77 int activeSize() const { return mActiveDicNodes->getSize(); } in activeSize()
78 int terminalSize() const { return mTerminalDicNodes->getSize(); } in terminalSize()
114 && mCachedDicNodesForContinuousSuggestion->getSize() > 0; in hasCachedDicNodesForContinuousSuggestion()
136 mCachedDicNodesForContinuousSuggestion->getSize(), mLastCachedInputIndex); in restoreActiveDicNodesFromCache()
/packages/modules/NetworkStack/src/com/android/networkstack/packets/
DNeighborAdvertisement.java70 final int etherHeaderLen = Struct.getSize(EthernetHeader.class); in toByteBuffer()
71 final int ipv6HeaderLen = Struct.getSize(Ipv6Header.class); in toByteBuffer()
72 final int icmpv6HeaderLen = Struct.getSize(Icmpv6Header.class); in toByteBuffer()
73 final int naHeaderLen = Struct.getSize(NaHeader.class); in toByteBuffer()
74 final int tllaOptionLen = Struct.getSize(LlaOption.class); in toByteBuffer()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DBufferManager.java76 mBufferSize += chunk.getSize();
81 mBufferSize -= chunk.getSize();
317 mSize += chunk.getSize(); in add()
327 mSize -= chunk.getSize(); in poll()
334 private long getSize() { in getSize() method in BufferManager.EvictChunkQueueMap
504 long pendingDelete = mPendingDelete.getSize(); in maybeEvictChunk()
541 earliestChunk.getSize(), in maybeEvictChunk()
550 pendingDelete = mPendingDelete.getSize(); in maybeEvictChunk()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DBufferManager.java77 mBufferSize += chunk.getSize();
82 mBufferSize -= chunk.getSize();
320 mSize += chunk.getSize(); in add()
330 mSize -= chunk.getSize(); in poll()
337 private long getSize() { in getSize() method in BufferManager.EvictChunkQueueMap
508 long pendingDelete = mPendingDelete.getSize(); in maybeEvictChunk()
545 earliestChunk.getSize(), in maybeEvictChunk()
554 pendingDelete = mPendingDelete.getSize(); in maybeEvictChunk()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorControlWheelContainer.java134 measuredWidth = Math.min(desiredWidth, MeasureSpec.getSize(widthSpec)); in onMeasure()
136 measuredWidth = MeasureSpec.getSize(widthSpec); in onMeasure()
141 measuredHeight = Math.min(desiredHeight, MeasureSpec.getSize(heightSpec)); in onMeasure()
143 measuredHeight = MeasureSpec.getSize(heightSpec); in onMeasure()
DControlPanelLayout.java41 int widthSpecSize = MeasureSpec.getSize(widthSpec); in onMeasure()
42 int heightSpecSize = MeasureSpec.getSize(heightSpec); in onMeasure()
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/
DRouterAdvertisementDaemonTest.java204 Struct.getSize(PrefixInformationOption.class)); in isPacketMatched()
222 buf.position(currentPos + Struct.getSize(PrefixInformationOption.class)); in isPacketMatched()
228 Struct.getSize(MtuOption.class)); in isPacketMatched()
233 buf.position(currentPos + Struct.getSize(MtuOption.class)); in isPacketMatched()
236 final int rdnssHeaderLen = Struct.getSize(RdnssOption.class); in isPacketMatched()
261 buf.position(currentPos + Struct.getSize(LlaOption.class)); in isPacketMatched()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DBpfMap.java80 mKeySize = Struct.getSize(key); in BpfMap()
81 mValueSize = Struct.getSize(value); in BpfMap()
95 mKeySize = Struct.getSize(key); in BpfMap()
96 mValueSize = Struct.getSize(value); in BpfMap()
/packages/modules/NeuralNetworks/runtime/
DMemory.h178 virtual uint32_t getSize() const { return nn::getSize(getMemory()); } in getSize() function
281 return RunTimePoolInfo::createFromExistingBuffer(getPointer(), nn::getSize(kMemory)); in getRunTimePoolInfo()
335 return RunTimePoolInfo::createFromExistingBuffer(getPointer(), nn::getSize(kMemory)); in getRunTimePoolInfo()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
DBipAttachmentFormat.java133 public int getSize() { in getSize() method in BipAttachmentFormat
154 && a.getSize() == getSize() in equals()
DBipImageFormat.java162 public int getSize() { in getSize() method in BipImageFormat
180 && f.getSize() == getSize() in equals()
DBipImageDescriptor.java250 public int getSize() { in getSize() method in BipImageDescriptor
281 && d.getSize() == getSize() in equals()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceSquareTextureView.java43 int width = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
44 int height = MeasureSpec.getSize(heightMeasureSpec); in onMeasure()
/packages/apps/Gallery2/src/com/android/photos/views/
DSquareImageView.java43 int width = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
46 height = Math.min(height, MeasureSpec.getSize(heightMeasureSpec)); in onMeasure()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DCenteredLinearLayout.java39 int parentWidth = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
40 int parentHeight = MeasureSpec.getSize(heightMeasureSpec); in onMeasure()
/packages/apps/DeskClock/src/com/android/deskclock/
DTimerCircleFrameLayout.kt58 val width = MeasureSpec.getSize(variableWidthMeasureSpec) - paddingLeft - paddingRight in onMeasure()
59 val height = MeasureSpec.getSize(variableHeightMeasureSpec) - paddingTop - paddingBottom in onMeasure()
/packages/apps/LegacyCamera/src/com/android/camera/
DPreviewFrameLayout.java64 int previewWidth = MeasureSpec.getSize(widthSpec); in onMeasure()
65 int previewHeight = MeasureSpec.getSize(heightSpec); in onMeasure()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
DPreferenceImageView.java49 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
59 final int heightSize = MeasureSpec.getSize(heightMeasureSpec); in onMeasure()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DTintedDrawableSpan.java41 public int getSize(Paint paint, CharSequence text, int start, int end, FontMetricsInt fm) { in getSize() method in TintedDrawableSpan
45 return super.getSize(paint, text, start, end, fm); in getSize()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DFixedAspectSurfaceView.java69 int width = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
70 int height = MeasureSpec.getSize(heightMeasureSpec); in onMeasure()

123456789