/frameworks/base/media/jni/ |
H A D | android_media_MediaRecorder.cpp | 269 android_media_MediaRecorder_setVideoSize(JNIEnv *env, jobject thiz, jint width, jint height) argument 271 ALOGV("setVideoSize(%d, %d)", width, height); 274 if (width <= 0 || height <= 0) { 278 process_media_recorder_call(env, mr->setVideoSize(width, height), "java/lang/RuntimeException", "setVideoSize failed.");
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/ |
H A D | MediaPlayerPerformance.java | 112 Log.v(TAG, "height = " + mVideoHeight + " width= " + mVideoWidth); 222 private boolean stressVideoRecord(int frameRate, int width, int height, int videoFormat, argument 238 mRecorder.setVideoSize(width, height);
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | MultiPaneChallengeLayout.java | 215 final int width = MeasureSpec.getSize(widthSpec); 217 setMeasuredDimension(width, height); 257 Math.min(lp.maxWidth, width), MeasureSpec.EXACTLY); 298 (int) ((width - widthUsed) * lp.centerWithinArea + 0.5f), 304 width - widthUsed, MeasureSpec.EXACTLY); 311 width - widthUsed, MeasureSpec.EXACTLY); 337 final int width = r - l; 344 layoutWithGravity(width, insetHeight, mUserSwitcherView, padding, true); 356 child.layout(0, 0, width, height); 359 layoutWithGravity(width, insetHeigh 367 layoutWithGravity(int width, int height, View child, Rect padding, boolean adjustPadding) argument 553 LayoutParams(int width, int height) argument [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
H A D | PrintPreviewController.java | 91 public void onSizeChanged(int width, int height) { argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSTileView.java | 283 private void updateRippleSize(int width, int height) { argument 285 final int cx = width / 2;
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 27 // [x, x+width) * [y, y+height) 36 // who only want to draw on the GLCanvas. Both width and height must be 38 public abstract void setSize(int width, int height); argument 90 public abstract void fillRect(float x, float y, float width, float height, int color); argument 94 BasicTexture texture, int x, int y, int width, int height); 204 * Gets the bounds given by x, y, width, and height as well as the internal 211 * @param width The width of the input rectangle. 214 public abstract void getBounds(Rect bounds, int x, int y, int width, int height); argument 93 drawTexture( BasicTexture texture, int x, int y, int width, int height) argument
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
H A D | BlockingGLTextureView.java | 66 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, argument 69 mRenderThread.setSize(width, height); 73 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, argument 75 mRenderThread.setSize(width, height); 353 public void setSize(int width, int height) { argument 356 mWidth = width;
|
H A D | TiledImageView.java | 252 final int width = swap ? mRenderer.source.getImageHeight() 256 mTempRectF.set(0, 0, width, height); 259 int cx = width / 2; 262 int xoffset = Math.round((getWidth() - mTempRectF.width()) / 2 / scale); 293 public void onSurfaceChanged(GL10 gl, int width, int height) { argument 294 mCanvas.setSize(width, height); 295 mRenderer.image.setViewSize(width, height);
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | AssetAtlasService.java | 156 // The comparator will sort the bitmap by width first, then by height 230 mBuffer = GraphicBuffer.create(config.width, config.height, 234 Atlas atlas = new Atlas(config.type, config.width, config.height, config.flags); 326 * @param width 329 private Canvas acquireCanvas(int width, int height) { argument 331 mAtlasBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 335 mNativeBitmap = nAcquireAtlasCanvas(canvas, width, height); 371 private static native long nAcquireAtlasCanvas(Canvas canvas, int width, int height); argument 433 return r1.width * r1.height - r2.width * r 604 final int width; field in class:AssetAtlasService.Configuration 609 Configuration(Atlas.Type type, int width, int height, int count) argument 613 Configuration(Atlas.Type type, int width, int height, int count, int flags) argument 634 int width; field in class:AssetAtlasService.WorkerResult 638 WorkerResult(Atlas.Type type, int width, int height, int count) argument 723 packBitmaps(Atlas.Type type, int width, int height, Atlas.Entry entry) argument [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | OverlayDisplayAdapter.java | 146 int width = Integer.parseInt(matcher.group(1), 10); 150 if (width >= MIN_WIDTH && width <= MAX_WIDTH 162 + ": name=" + name + ", width=" + width + ", height=" + height 166 width, height, densityDpi, gravity, secure, number)); 207 int width, int height, float refreshRate, long presentationDeadlineNanos, 212 mWidth = width; 252 mInfo.width = mWidth; 291 public OverlayDisplayHandle(String name, int width, argument 206 OverlayDisplayDevice(IBinder displayToken, String name, int width, int height, float refreshRate, long presentationDeadlineNanos, int densityDpi, boolean secure, int state, SurfaceTexture surfaceTexture, int number) argument [all...] |
H A D | OverlayDisplayWindow.java | 96 int width, int height, int densityDpi, int gravity, boolean secure, 100 mWidth = width; 191 mTextureView.getLayoutParams().width = mWidth; 238 int width = (int)(mWidth * scale); 240 int x = (int)(mWindowX + mLiveTranslationX - width * offsetScale); 242 x = Math.max(0, Math.min(x, mDefaultDisplayInfo.logicalWidth - width)); 249 + ", width=" + width + ", height=" + height); 257 mWindowParams.width = width; 95 OverlayDisplayWindow(Context context, String name, int width, int height, int densityDpi, int gravity, boolean secure, Listener listener) argument [all...] |
H A D | VirtualDisplayAdapter.java | 65 String name, int width, int height, int densityDpi, Surface surface, int flags) { 73 ownerUid, ownerPackageName, name, width, height, densityDpi, surface, flags, 95 int width, int height, int densityDpi) { 98 device.resizeLocked(width, height, densityDpi); 187 String name, int width, int height, int densityDpi, Surface surface, int flags, 194 mWidth = width; 259 public void resizeLocked(int width, int height, int densityDpi) { argument 260 if (mWidth != width || mHeight != height || mDensityDpi != densityDpi) { 263 mWidth = width; 291 mInfo.width 63 createVirtualDisplayLocked(IVirtualDisplayCallback callback, IMediaProjection projection, int ownerUid, String ownerPackageName, String name, int width, int height, int densityDpi, Surface surface, int flags) argument 94 resizeVirtualDisplayLocked(IBinder appToken, int width, int height, int densityDpi) argument 185 VirtualDisplayDevice(IBinder displayToken, IBinder appToken, int ownerUid, String ownerPackageName, String name, int width, int height, int densityDpi, Surface surface, int flags, Callback callback, String uniqueId, int uniqueIndex) argument [all...] |
H A D | WifiDisplayAdapter.java | 361 Surface surface, int width, int height, int flags) { 384 mDisplayDevice = new WifiDisplayDevice(displayToken, name, width, height, 526 int width, int height, int flags) { 529 addDisplayDeviceLocked(display, surface, width, height, flags); 591 int width, int height, float refreshRate, int flags, String address, 595 mWidth = width; 629 mInfo.width = mWidth; 360 addDisplayDeviceLocked(WifiDisplay display, Surface surface, int width, int height, int flags) argument 590 WifiDisplayDevice(IBinder displayToken, String name, int width, int height, float refreshRate, int flags, String address, Surface surface) argument
|
/frameworks/base/telecomm/java/android/telecom/ |
H A D | InCallService.java | 358 * @param width The updated peer video width. 361 public abstract void onPeerDimensionsChanged(int width, int height); argument
|
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/ |
H A D | RsRenderStatesRS.java | 140 private Mesh getMbyNMesh(float width, float height, int wResolution, int hResolution) { argument 150 float xOffset = (normalizedX - 0.5f) * width;
|
/frameworks/ex/framesequence/jni/ |
H A D | FrameSequence_gif.cpp | 158 int transparent, int width) { 159 for (; width > 0; width--, src++, dst++) { 166 static void setLineColor(Color8888* dst, Color8888 color, int width) { argument 167 for (; width > 0; width--, dst++) { 200 const int width = mFrameSequence.getWidth(); local 203 mPreserveBuffer = new Color8888[width * height]; 206 memcpy(mPreserveBuffer + width * y, 208 width * 157 copyLine(Color8888* dst, const unsigned char* src, const ColorMapObject* cmap, int transparent, int width) argument 213 const int width = mFrameSequence.getWidth(); local 241 const int width = mFrameSequence.getWidth(); local [all...] |
H A D | FrameSequence_webp.cpp | 37 return (frame.width == canvasWidth && frame.height == canvasHeight); 43 const int right = left + frame.width; 141 const int covered_x_max = covered.x_offset + covered.width; 142 const int target_x_max = target.x_offset + target.width; 152 static void clearLine(Color8888* dst, int width) { argument 153 memset(dst, 0, width * sizeof(*dst)); // Note: Assumes TRANSPARENT == 0x0. 158 int width, int height) { 160 memcpy(dst, src, width * sizeof(*dst)); 207 clearLine(dst, prevIter.width); 238 for (int x = 0; x < currIter.width; 157 copyFrame(const Color8888* src, int srcStride, Color8888* dst, int dstStride, int width, int height) argument [all...] |
/frameworks/native/libs/gui/ |
H A D | IGraphicBufferProducer.cpp | 257 virtual void allocateBuffers(bool async, uint32_t width, uint32_t height, argument 262 data.writeInt32(static_cast<int32_t>(width)); 416 uint32_t width = static_cast<uint32_t>(data.readInt32()); local 420 allocateBuffers(async, width, height, format, usage);
|
/frameworks/native/libs/gui/tests/ |
H A D | IGraphicBufferProducer_test.cpp | 118 // -- uses the default buffer format, width, etc. 353 uint32_t width; local 358 output.deflate(&width, &height, &transformHint, &numPendingBuffers); 360 EXPECT_EQ(DEFAULT_WIDTH, width);
|
/frameworks/native/opengl/libagl/ |
H A D | state.cpp | 93 c->line.width = TRI_ONE; 507 void glLineWidth(GLfloat width) argument 510 if (width <= 0) { 514 c->line.width = TRI_FROM_FIXED(gglFloatToFixed(width)); 517 void glLineWidthx(GLfixed width) argument 520 if (width <= 0) { 524 c->line.width = TRI_FROM_FIXED(width);
|
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/ |
H A D | GL2CameraEye.java | 176 mCameraRatio = (float)previewSize.width/previewSize.height; 232 public void onSurfaceChanged(GL10 glUnused, int width, int height) { argument 235 GLES20.glViewport(0, 0, width, height); 236 mRatio = (float) width / height;
|
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcStress.cpp | 197 static EGLint width, height; variable 446 layer->displayFrame.left = testRandMod(width); 449 + testRandMod(width - layer->displayFrame.left) + 1; 460 // width and height will fit. 465 if (((layer->displayFrame.left + sourceWidth) <= width) 535 hwcTestInitDisplay(verbose, &dpy, &surface, &width, &height); 572 // Pick width and height, which must be >= 1 and the size 574 size_t w = (width * maxSizeRatio) * testRandFract(); 585 testPrintI(" frame %u width: %u height: %u format: %u %s", 598 testPrintE(" frame %u width [all...] |
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWComposer.h | 254 uint32_t width; member in struct:android::HWComposer::DisplayConfig
|
/frameworks/native/services/surfaceflinger/ |
H A D | SurfaceFlinger.h | 173 uint32_t width, height; member in struct:android::SurfaceFlinger::DisplayDeviceState
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | BasicBitmapDrawable.java | 126 public void setDecodeDimensions(int width, int height) { argument 128 mDecodeWidth = width; 328 bounds.width(), bounds.height(),
|