Searched defs:pixels (Results 26 - 44 of 44) sorted by relevance

12

/frameworks/base/core/java/android/widget/
H A DSwitch.java415 * @param pixels Amount of padding in pixels
419 public void setSwitchPadding(int pixels) { argument
420 mSwitchPadding = pixels;
427 * @return Amount of padding in pixels
436 * Set the minimum width of the switch in pixels. The switch's width will be the maximum
439 * @param pixels Minimum width of the switch in pixels
443 public void setSwitchMinWidth(int pixels) { argument
444 mSwitchMinWidth = pixels;
467 setThumbTextPadding(int pixels) argument
[all...]
H A DTextView.java1705 * @return the height of one standard line in pixels. Note that markup
2939 * @return the size (in pixels) of the default text size in this TextView.
2947 * @return the size (in scaled pixels) of thee default text size in this TextView.
3695 * height was set in pixels instead using {@link #setMinHeight(int) or #setHeight(int)}.
3706 * Makes the TextView at least this many pixels tall.
3722 * @return the minimum height of this TextView expressed in pixels, or -1 if the minimum
3751 * height was set in pixels instead using {@link #setMaxHeight(int) or #setHeight(int)}.
3762 * Makes the TextView at most this many pixels tall. This option is mutually exclusive with the
3779 * @return the maximum height of this TextView expressed in pixels, or -1 if the maximum
3808 * Makes the TextView exactly this many pixels tal
3818 setHeight(int pixels) argument
3966 setWidth(int pixels) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawable.java667 * @param left position in pixels of the left bound
668 * @param top position in pixels of the top bound
669 * @param right position in pixels of the right bound
670 * @param bottom position in pixels of the bottom bound
1438 * @param pixels the pixel value for use in source density
1443 static float scaleFromDensity(float pixels, int sourceDensity, int targetDensity) { argument
1444 return pixels * targetDensity / sourceDensity;
1458 * @param pixels the pixel value for use in source density
1466 int pixels, int sourceDensity, int targetDensity, boolean isSize) {
1467 if (pixels
1465 scaleFromDensity( int pixels, int sourceDensity, int targetDensity, boolean isSize) argument
[all...]
/frameworks/native/opengl/libagl/
H A Dtexture.cpp486 uint8_t const* pixels = (uint8_t *)data + paletteSize; local
490 pixels += h * ((w * indexBits) / 8);
501 int index = 2 * (*pixels++);
507 int v = *pixels++;
525 int index = 3 * (*pixels++);
532 int v = *pixels++;
552 int index = 4 * (*pixels++);
560 int v = *pixels++;
1169 GLenum format, GLenum type, const GLvoid *pixels)
1197 if (pixels) {
[all...]
/frameworks/base/core/jni/android/graphics/
H A DBitmap.cpp243 // We just restored this from 0, pin the pixels and inc the strong count
313 LOG_ALWAYS_FATAL("Cannot pin invalid pixels!");
325 LOG_ALWAYS_FATAL("Failed to acquire strong reference to pixels");
336 LOG_ALWAYS_FATAL("Cannot unpin invalid pixels!");
357 // would require locking the pixels first.
372 // Convenience class that does not take a global ref on the pixels, relying
383 void* pixels() { function in class:LocalScopedBitmap
384 return mBitmap->peekAtPixelRef()->pixels();
1027 // Map the pixels in place and take ownership of the ashmem region.
1054 // Copy the pixels int
[all...]
/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp756 void* const pixels = (char*)data + palette_size; local
759 memcpy(pixels, p, size);
889 * Encode a block of pixels.
892 * 4 x 4 square of 3-byte pixels in form R, G, B. Byte (3 * (x + 4 * y) is the R
922 * Decode a block of pixels.
927 * 4 x 4 square of 3-byte pixels in form R, G, B. Byte (3 * (x + 4 * y) is the R
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java355 * to try to access its pixels, and the bitmap will not draw.
419 * how pixels are stored. This affects the quality (color depth) as
497 * <p>Copy the bitmap's pixels into the specified buffer (allocated by the
499 * hold all of the pixels (taking into account the number of bytes per
503 * that if this bitmap stores its pixels pre-multiplied
527 throw new RuntimeException("Buffer not large enough for pixels");
539 * <p>Copy the pixels from the buffer, beginning at the current position,
540 * overwriting the bitmap's pixels. The data in the buffer is not changed
567 throw new RuntimeException("Buffer not large enough for pixels");
581 * this bitmap's pixels int
1427 getPixels(@olorInt int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1467 checkPixelsAccess(int x, int y, int width, int height, int offset, int stride, int pixels[]) argument
1541 setPixels(@olorInt int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1709 nativeGetPixels(long nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
[all...]
/frameworks/base/libs/hwui/debug/
H A Dnullgles.cpp218 void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels) {} argument
231 void glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels) {} argument
236 void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels) {} argument
/frameworks/native/opengl/tests/hwc/
H A DhwcCommit.cpp815 // Determine the minimum number of pixels that the HWC will ever commit to.
839 uint64_t pixels = dim.width() * dim.height(); local
840 if (!bestSet || (pixels < bestMinPixels)) {
841 bestMinPixels = pixels;
888 uint64_t pixels = dim.width() * dim.height(); local
889 if (!bestSet || (pixels > bestMaxPixels)) {
890 bestMaxPixels = pixels;
985 // Discovers the source crop with the least number of pixels that the
1011 uint64_t pixels = dim.width() * dim.height(); local
1012 if (!bestSet || (pixels < bestMinPixel
1062 uint64_t pixels = dim.width() * dim.height(); local
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSwitchCompat.java391 * @param pixels Amount of padding in pixels
395 public void setSwitchPadding(int pixels) { argument
396 mSwitchPadding = pixels;
403 * @return Amount of padding in pixels
412 * Set the minimum width of the switch in pixels. The switch's width will be the maximum
415 * @param pixels Minimum width of the switch in pixels
419 public void setSwitchMinWidth(int pixels) { argument
420 mSwitchMinWidth = pixels;
443 setThumbTextPadding(int pixels) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_opengl_GLES10.cpp2629 /* void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) */
2636 GLvoid *pixels = (GLvoid *) 0; local
2638 pixels = (GLvoid *)getPointer(_env, pixels_buf, (jarray*)&_array, &_remaining, &_bufferOffset);
2639 if (pixels == NULL) {
2641 pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
2650 (GLvoid *)pixels
2653 releasePointer(_env, _array, pixels, JNI_TRUE);
3041 /* void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) */
3048 GLvoid *pixels = (GLvoid *) 0; local
3051 pixels
3102 GLvoid *pixels = (GLvoid *) 0; local
[all...]
H A Dandroid_opengl_GLES20.cpp4080 /* void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) */
4087 GLvoid *pixels = (GLvoid *) 0; local
4089 pixels = (GLvoid *)getPointer(_env, pixels_buf, (jarray*)&_array, &_remaining, &_bufferOffset);
4090 if (pixels == NULL) {
4092 pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
4101 (GLvoid *)pixels
4104 releasePointer(_env, _array, pixels, JNI_TRUE);
4347 /* void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) */
4354 GLvoid *pixels = (GLvoid *) 0; local
4357 pixels
4584 GLvoid *pixels = (GLvoid *) 0; local
[all...]
H A Dandroid_opengl_GLES30.cpp495 /* void glTexImage3D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) */
502 GLvoid *pixels = (GLvoid *) 0; local
505 pixels = (GLvoid *)getPointer(_env, pixels_buf, (jarray*)&_array, &_remaining, &_bufferOffset);
507 if (pixels_buf && pixels == NULL) {
509 pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
521 (GLvoid *)pixels
524 releasePointer(_env, _array, pixels, JNI_FALSE);
546 /* void glTexSubImage3D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels ) */
553 GLvoid *pixels = (GLvoid *) 0; local
555 pixels
[all...]
H A Dcom_google_android_gles_jni_GLImpl.cpp3346 /* void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) */
3353 GLvoid *pixels = (GLvoid *) 0; local
3355 pixels = (GLvoid *)getPointer(_env, pixels_buf, (jarray*)&_array, &_remaining, &_bufferOffset);
3356 if (pixels == NULL) {
3358 pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
3367 (GLvoid *)pixels
3370 releasePointer(_env, _array, pixels, JNI_TRUE);
3802 /* void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) */
3809 GLvoid *pixels = (GLvoid *) 0; local
3812 pixels
3863 GLvoid *pixels = (GLvoid *) 0; local
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DGLErrorWrapper.java664 int type, Buffer pixels) {
666 mgl.glReadPixels(x, y, width, height, format, type, pixels);
781 Buffer pixels) {
784 format, type, pixels);
814 Buffer pixels) {
817 format, type, pixels);
663 glReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels) argument
779 glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels) argument
812 glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels) argument
H A DGLLogWrapper.java2252 int type, Buffer pixels) {
2260 arg("pixels", pixels.toString());
2263 mgl.glReadPixels(x, y, width, height, format, type, pixels);
2465 Buffer pixels) {
2475 arg("pixels", pixels.toString());
2479 format, type, pixels);
2529 Buffer pixels) {
2539 arg("pixels", pixel
2251 glReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels) argument
2463 glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels) argument
2527 glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels) argument
[all...]
/frameworks/native/services/surfaceflinger/
H A DSurfaceFlinger.cpp87 * black pixels.
3503 uint32_t* pixels = new uint32_t[reqWidth*reqHeight]; local
3504 getRenderEngine().readPixels(0, 0, reqWidth, reqHeight, pixels);
3505 checkScreenshot(reqWidth, reqHeight, reqWidth, pixels,
3507 delete [] pixels;
H A DSurfaceFlinger_hwc1.cpp87 * black pixels.
3519 uint32_t* pixels = new uint32_t[reqWidth*reqHeight]; local
3520 getRenderEngine().readPixels(0, 0, reqWidth, reqHeight, pixels);
3521 checkScreenshot(reqWidth, reqHeight, reqWidth, pixels,
3523 delete [] pixels;
/frameworks/support/v8/renderscript/jni/
H A Dandroid_renderscript_RenderScript.cpp1067 void *pixels = NULL; local
1068 AndroidBitmap_lockPixels(_env, jbitmap, &pixels);
1070 if (pixels != NULL) {
1074 pixels,
1087 void *pixels = NULL; local
1088 AndroidBitmap_lockPixels(_env, jbitmap, &pixels);
1090 if (pixels != NULL) {
1095 (uintptr_t)pixels);
1105 void *pixels = NULL; local
1106 AndroidBitmap_lockPixels(_env, jbitmap, &pixels);
1128 void *pixels = NULL; local
1146 void *pixels = NULL; local
[all...]

Completed in 2385 milliseconds

12