/frameworks/base/core/java/android/util/ |
D | LruCache.java | 70 private int maxSize; field in LruCache 83 public LruCache(int maxSize) { in LruCache() argument 84 if (maxSize <= 0) { in LruCache() 87 this.maxSize = maxSize; in LruCache() 96 public void resize(int maxSize) { in resize() argument 97 if (maxSize <= 0) { in resize() 102 this.maxSize = maxSize; in resize() 104 trimToSize(maxSize); in resize() 156 trimToSize(maxSize); in get() 186 trimToSize(maxSize); in put() [all …]
|
/frameworks/layoutlib/bridge/src/android/util/ |
D | LruCache.java | 71 private int maxSize; field in LruCache 84 public LruCache(int maxSize) { in LruCache() argument 85 if (maxSize <= 0) { in LruCache() 88 this.maxSize = maxSize; in LruCache() 98 public void resize(int maxSize) { in resize() argument 99 if (maxSize <= 0) { in resize() 104 this.maxSize = maxSize; in resize() 106 trimToSize(maxSize); in resize() 158 trimToSize(maxSize); in get() 188 trimToSize(maxSize); in put() [all …]
|
/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
D | SHCircularBuffer.h | 30 explicit SHCircularBuffer(size_t maxSize) { in SHCircularBuffer() argument 31 resize(maxSize); in SHCircularBuffer() 33 void resize(size_t maxSize) { in resize() argument 34 mBuffer.resize(maxSize); in resize()
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | JpegProcessor.cpp | 346 size_t JpegProcessor::findJpegSize(uint8_t* jpegBuffer, size_t maxSize) { in findJpegSize() argument 350 uint8_t *header = jpegBuffer + (maxSize - sizeof(struct camera2_jpeg_blob)); in findJpegSize() 354 if (size > 0 && size <= maxSize - sizeof(struct camera2_jpeg_blob)) { in findJpegSize() 377 while (size <= maxSize - MARKER_LENGTH) { in findJpegSize() 384 if (type == EOI || size > maxSize - sizeof(segment_t)) { in findJpegSize() 396 for ( ; size <= maxSize - MARKER_LENGTH; size++) { in findJpegSize() 408 if (size > maxSize) { in findJpegSize() 409 ALOGW("JPEG size %zu too large, reducing to maxSize %zu", size, maxSize); in findJpegSize() 410 size = maxSize; in findJpegSize()
|
/frameworks/native/cmds/idlcli/vibrator/ |
D | CommandGetCompositionSizeMax.cpp | 48 int32_t maxSize; in doMain() local 52 auto status = hal->call(&aidl::IVibrator::getCompositionSizeMax, &maxSize); in doMain() 60 std::cout << "Max Size: " << maxSize << std::endl; in doMain()
|
/frameworks/base/core/java/android/net/http/ |
D | HttpResponseCache.java | 181 public static synchronized HttpResponseCache install(File directory, long maxSize) in install() argument 188 if (cacheHolder.isEquivalent(directory, maxSize)) { in install() 196 CacheHolder cacheHolder = CacheHolder.create(directory, maxSize); in install() 233 public long maxSize() { in maxSize() method in HttpResponseCache
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/ |
D | FillUi.java | 235 final Point maxSize = mTempPoint; in FillUi() local 236 resolveMaxWindowSize(mContext, maxSize); in FillUi() 238 content.getLayoutParams().width = mFullScreen ? maxSize.x in FillUi() 241 final int widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxSize.x, in FillUi() 243 final int heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxSize.y, in FillUi() 461 Point maxSize = mTempPoint; in updateContentSize() local 462 resolveMaxWindowSize(mContext, maxSize); in updateContentSize() 467 final int widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxSize.x, in updateContentSize() 469 final int heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxSize.y, in updateContentSize() 475 changed |= updateWidth(mHeader, maxSize); in updateContentSize() [all …]
|
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
D | FakeBackgroundService.java | 92 int maxSize = display.getMaximumSizeDimension(); in onCreate() local 93 maxSize *= 2; in onCreate() 94 lp.x = maxSize; in onCreate() 95 lp.y = maxSize; in onCreate()
|
D | FakeApp.java | 127 int maxSize = display.getMaximumSizeDimension(); in onCreate() local 128 maxSize *= 2; in onCreate() 129 lp.x = maxSize; in onCreate() 130 lp.y = maxSize; in onCreate()
|
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
D | CameraOps.java | 331 Size maxSize = smallEnough.get(0); in getBestSize() local 332 double aspectDelta = Math.abs(maxSize.getWidth() / maxSize.getHeight() - TARGET_ASPECT); in getBestSize() 334 if (maxSize.getWidth() < candidateSize.getWidth()) { in getBestSize() 335 maxSize = candidateSize; in getBestSize() 336 aspectDelta = Math.abs(maxSize.getWidth() / maxSize.getHeight() - TARGET_ASPECT); in getBestSize() 338 if (maxSize.getWidth() == candidateSize.getWidth()) { in getBestSize() 340 maxSize = candidateSize; in getBestSize() 341 … aspectDelta = Math.abs(maxSize.getWidth() / maxSize.getHeight() - TARGET_ASPECT); in getBestSize() 346 return maxSize; in getBestSize()
|
/frameworks/base/cmds/incidentd/src/ |
D | report_directory.cpp | 41 void clean_directory(const char* directory, off_t maxSize, size_t maxCount) { in clean_directory() argument 81 if (totalSize < maxSize && totalCount < maxCount) { in clean_directory() 90 it != files.end() && totalSize >= maxSize && totalCount >= maxCount; it++) { in clean_directory()
|
D | PrivacyFilter.cpp | 260 size_t* maxSize) { in writeData() argument 263 if (maxSize != NULL) { in writeData() 264 *maxSize = 0; in writeData() 304 if (maxSize != NULL) { in writeData() 305 if (dataSize > *maxSize) { in writeData() 306 *maxSize = dataSize; in writeData()
|
/frameworks/base/cmds/statsd/src/logd/ |
D | LogEventQueue.h | 34 explicit LogEventQueue(size_t maxSize) : mQueueLimit(maxSize){}; in LogEventQueue() argument
|
/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/ |
D | BoundingBox.cpp | 217 float maxSize = heatmapSize; in heatmapMaxKeypointFinalizer() local 218 fillRoiTensor<float>(numRois, maxSize, maxSize, op->inputs[1].get()); in heatmapMaxKeypointFinalizer() 221 uint16_t maxSize = static_cast<uint16_t>(heatmapSize * 8); in heatmapMaxKeypointFinalizer() local 222 fillRoiTensor<uint16_t>(numRois, maxSize, maxSize, op->inputs[1].get()); in heatmapMaxKeypointFinalizer()
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | HeicEncoderInfoManager.cpp | 184 std::pair<int32_t, int32_t>* maxSize, in getCodecSizeRange() argument 186 if (codecName == nullptr || minSize == nullptr || maxSize == nullptr || in getCodecSizeRange() 204 maxSize->first = stoi(match[3]); in getCodecSizeRange() 205 maxSize->second = stoi(match[4]); in getCodecSizeRange() 206 if (minSize->first > maxSize->first || in getCodecSizeRange() 207 minSize->second > maxSize->second) { in getCodecSizeRange()
|
/frameworks/base/core/java/com/android/server/ |
D | BootReceiver.java | 283 String headers, String filename, int maxSize, String tag) throws IOException { in addFileToDropBox() argument 284 addFileWithFootersToDropBox(db, timestamps, headers, "", filename, maxSize, tag); in addFileToDropBox() 289 String headers, String footers, String filename, int maxSize, in addFileWithFootersToDropBox() argument 304 String fileContents = FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n"); in addFileWithFootersToDropBox() 308 addTextToDropBox(db, "system_server_native_crash", text, filename, maxSize); in addFileWithFootersToDropBox() 313 addTextToDropBox(db, tag, text, filename, maxSize); in addFileWithFootersToDropBox() 317 String filename, int maxSize) { in addTextToDropBox() argument 320 EventLog.writeEvent(DropboxLogTags.DROPBOX_FILE_COPY, filename, maxSize, tag); in addTextToDropBox() 324 HashMap<String, Long> timestamps, String headers, int maxSize, String tag) in addAuditErrorsToDropBox() argument 348 String log = FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n"); in addAuditErrorsToDropBox() [all …]
|
/frameworks/av/services/camera/libcameraservice/tests/ |
D | NV12Compressor.cpp | 271 status_t NV12Compressor::findJpegSize(uint8_t *jpegBuffer, size_t maxSize, size_t *size /*out*/) { in findJpegSize() argument 282 while (*size <= maxSize - kMarkerLength) { in findJpegSize() 288 if (type == kEndOfImage || *size > maxSize - sizeof(segment_t)) { in findJpegSize() 299 for ( ; *size <= maxSize - kMarkerLength; (*size)++) { in findJpegSize() 311 if (*size > maxSize) { in findJpegSize() 312 *size = maxSize; in findJpegSize()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | NetworkSuggestionStoreData.java | 160 int maxSize = entry.getValue().maxSize; in serializeNetworkSuggestionsMap() local 166 XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_MAX_SIZE, maxSize); in serializeNetworkSuggestionsMap() 247 int maxSize = (int) XmlUtil.readNextValueWithName(in, XML_TAG_SUGGESTOR_MAX_SIZE); in parseNetworkSuggestionsMap() local 253 perAppInfo.maxSize = maxSize; in parseNetworkSuggestionsMap()
|
/frameworks/base/libs/hwui/renderthread/ |
D | VulkanSurface.cpp | 87 const SkISize& maxSize) { in ComputeWindowSizeAndTransform() argument 91 if (windowSize.width() < minSize.width() || windowSize.width() > maxSize.width() || in ComputeWindowSizeAndTransform() 92 windowSize.height() < minSize.height() || windowSize.height() > maxSize.height()) { in ComputeWindowSizeAndTransform() 93 int width = std::min(maxSize.width(), std::max(minSize.width(), windowSize.width())); in ComputeWindowSizeAndTransform() 94 int height = std::min(maxSize.height(), std::max(minSize.height(), windowSize.height())); in ComputeWindowSizeAndTransform() 218 const SkISize maxSize = SkISize::Make(caps.maxImageExtent.width, caps.maxImageExtent.height); in Create() local 219 ComputeWindowSizeAndTransform(&windowInfo, minSize, maxSize); in Create() 307 return new VulkanSurface(window, windowInfo, minSize, maxSize, grContext); in Create()
|
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
D | GLHelper.java | 129 int[] maxSize = new int[1]; in retrieveTextureSizeFromGL() local 130 glGetIntegerv(GL_MAX_TEXTURE_SIZE, maxSize, 0 /* offset */); in retrieveTextureSizeFromGL() 137 return maxSize[0]; in retrieveTextureSizeFromGL()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3IOStreamBase.cpp | 33 uint32_t width, uint32_t height, size_t maxSize, int format, in Camera3IOStreamBase() argument 37 width, height, maxSize, format, dataSpace, rotation, in Camera3IOStreamBase() 47 if (maxSize > 0 && in Camera3IOStreamBase()
|
/frameworks/base/obex/javax/obex/ |
D | PrivateOutputStream.java | 58 public PrivateOutputStream(BaseStream p, int maxSize) { in PrivateOutputStream() argument 61 mMaxPacketSize = maxSize; in PrivateOutputStream()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSecurityViewFlipper.java | 250 private int makeChildMeasureSpec(int maxSize, int childDimen) { in makeChildMeasureSpec() argument 256 size = maxSize; in makeChildMeasureSpec() 260 size = maxSize; in makeChildMeasureSpec() 264 size = Math.min(maxSize, childDimen); in makeChildMeasureSpec()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | FillContentLayout.java | 105 private static int getMaxSizeMeasureSpec(int maxSize, int padding, int childDimension) { in getMaxSizeMeasureSpec() argument 107 int size = Math.max(0, maxSize - padding); in getMaxSizeMeasureSpec()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
D | ImageUtils.java | 97 final int maxSize) { in createLocalBitmap() argument 108 opts.inSampleSize = Math.max(bounds.x / maxSize, bounds.y / maxSize); in createLocalBitmap()
|