Home
last modified time | relevance | path

Searched refs:contentSize (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
DTransport.java259 final int contentSize = buffer.getInt(); in handleMessage() local
260 if (contentSize == 0) { in handleMessage()
263 final int end = buffer.position() + contentSize; in handleMessage()
293 int contentSize = -1; in loop() local
316 if (contentSize < 0 && position >= Protocol.HEADER_SIZE) { in loop()
317 contentSize = buffer.getInt(4); in loop()
318 if (contentSize < 0 || contentSize > Protocol.MAX_CONTENT_SIZE) { in loop()
319 mLogger.logError("Encountered invalid content size: " + contentSize); in loop()
322 length += contentSize; in loop()
336 contentSize = -1; in loop()
[all …]
/frameworks/base/core/java/android/view/
DInputWindowHandle.java108 public Size contentSize = new Size(0, 0); field in InputWindowHandle
213 contentSize = new Size(other.contentSize.getWidth(), other.contentSize.getHeight()); in InputWindowHandle()
228 .append(", contentSize=").append(contentSize) in toString()
/frameworks/native/libs/gui/
DWindowInfo.cpp96 info.contentSize == contentSize && info.surfaceInset == surfaceInset && in operator ==()
133 parcel->writeInt32(contentSize.width) ?: in writeToParcel()
134 parcel->writeInt32(contentSize.height) ?: in writeToParcel()
186 parcel->readInt32(&contentSize.width) ?: in readFromParcel()
187 parcel->readInt32(&contentSize.height) ?: in readFromParcel()
/frameworks/base/services/core/java/com/android/server/wm/
DTrustedPresentationListenerController.java275 windowHandle.contentSize, in computeTpl()
374 Size contentSize, in computeFractionRendered() argument
379 visibleRegion, screenBounds, contentSize, sx, sy); in computeFractionRendered()
381 if (contentSize.getWidth() == 0 || contentSize.getHeight() == 0) { in computeFractionRendered()
391 float boundsOverSourceW = screenBounds.width() / (float) contentSize.getWidth(); in computeFractionRendered()
392 float boundsOverSourceH = screenBounds.height() / (float) contentSize.getHeight(); in computeFractionRendered()
/frameworks/native/libs/gui/tests/
DWindowInfo_test.cpp57 i.contentSize = Size(10, 40); in TEST()
88 ASSERT_EQ(i.contentSize, i2.contentSize); in TEST()
/frameworks/base/core/jni/
Dandroid_hardware_input_InputWindowHandle.cpp62 jfieldID contentSize; member
287 ScopedLocalRef<jobject> sizeObj(env, JNICommon::objFromSize(env, windowInfo.contentSize)); in android_view_InputWindowHandle_fromWindowInfo()
288 env->SetObjectField(inputWindowHandle, gInputWindowHandleClassInfo.contentSize, sizeObj.get()); in android_view_InputWindowHandle_fromWindowInfo()
406 GET_FIELD_ID(gInputWindowHandleClassInfo.contentSize, clazz, "contentSize", in register_android_view_InputWindowHandle()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DTarBackupReader.java726 final int contentSize = (int) info.size; in readPaxExtendedHeader() local
731 while (eol < contentSize && data[eol] != ' ') { in readPaxExtendedHeader()
734 if (eol >= contentSize) { in readPaxExtendedHeader()
766 } while (offset < contentSize); in readPaxExtendedHeader()
/frameworks/native/libs/gui/include/gui/
DWindowInfo.h205 ui::Size contentSize = ui::Size(0, 0); member
/frameworks/base/core/java/com/android/internal/widget/
DGridLayoutManager.java737 final int contentSize = Math.round(maxSizeInOther * mSpanCount); in guessMeasurement() local
739 calculateItemBorders(Math.max(contentSize, currentOtherDirSize)); in guessMeasurement()
/frameworks/native/services/surfaceflinger/FrontEnd/
DLayerSnapshotBuilder.cpp1135 snapshot.inputInfo.contentSize = snapshot.croppedBufferSize.getSize(); in updateInput()
/frameworks/native/services/surfaceflinger/
DLayer.cpp2538 info.contentSize = Size(bufferSize.width(), bufferSize.height()); in fillInputInfo()