OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:sourceWidth
(Results
1 - 15
of
15
) sorted by null
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
IconFactory.java
47
int
sourceWidth
= sourceImage.getWidth();
50
if (
sourceWidth
== 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) {
74
int
sourceWidth
= sourceImage.getWidth();
79
if (
sourceWidth
== 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) {
89
srcRect = new Rect(0, 0,
sourceWidth
, sourceHeight);
92
float wScale =
sourceWidth
/ (float) iconWidth;
99
float borderW = (
sourceWidth
- iw) / 2.0f;
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
BitmapUtilTests.java
105
private byte[] createJpegRawData(int
sourceWidth
, int sourceHeight) throws IOException {
106
return createRawData(Bitmap.CompressFormat.JPEG,
sourceWidth
, sourceHeight);
109
private byte[] createPngRawData(int
sourceWidth
, int sourceHeight) throws IOException {
110
return createRawData(Bitmap.CompressFormat.PNG,
sourceWidth
, sourceHeight);
113
private byte[] createRawData(Bitmap.CompressFormat format, int
sourceWidth
,
116
Bitmap b = Bitmap.createBitmap(
sourceWidth
, sourceHeight, Bitmap.Config.ARGB_8888);
/packages/apps/Launcher2/src/com/android/launcher2/
Utilities.java
73
int
sourceWidth
= icon.getWidth();
75
if (
sourceWidth
> textureWidth && sourceHeight > textureHeight) {
78
(
sourceWidth
- textureWidth) / 2,
81
} else if (
sourceWidth
== textureWidth && sourceHeight == textureHeight) {
115
int
sourceWidth
= icon.getIntrinsicWidth();
117
if (
sourceWidth
> 0 && sourceHeight > 0) {
119
if (width <
sourceWidth
|| height < sourceHeight) {
121
final float ratio = (float)
sourceWidth
/ sourceHeight;
122
if (
sourceWidth
> sourceHeight) {
124
} else if (sourceHeight >
sourceWidth
) {
[
all
...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
IconUtilities.java
130
int
sourceWidth
= icon.getIntrinsicWidth();
133
if (
sourceWidth
> 0 && sourceHeight > 0) {
135
if (width <
sourceWidth
|| height < sourceHeight) {
137
final float ratio = (float)
sourceWidth
/ sourceHeight;
138
if (
sourceWidth
> sourceHeight) {
140
} else if (sourceHeight >
sourceWidth
) {
143
} else if (
sourceWidth
< width && sourceHeight < height) {
145
width =
sourceWidth
;
/packages/apps/Launcher3/src/com/android/launcher3/
Utilities.java
109
int
sourceWidth
= icon.getWidth();
111
if (
sourceWidth
> textureWidth && sourceHeight > textureHeight) {
114
(
sourceWidth
- textureWidth) / 2,
117
} else if (
sourceWidth
== textureWidth && sourceHeight == textureHeight) {
151
int
sourceWidth
= icon.getIntrinsicWidth();
153
if (
sourceWidth
> 0 && sourceHeight > 0) {
155
final float ratio = (float)
sourceWidth
/ sourceHeight;
156
if (
sourceWidth
> sourceHeight) {
158
} else if (sourceHeight >
sourceWidth
) {
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/
generatemip.h
149
static void GenerateMip(unsigned int
sourceWidth
, unsigned int sourceHeight,
153
unsigned int mipWidth = std::max(1U,
sourceWidth
>> 1);
158
ASSERT(
sourceWidth
!= 1);
168
else if (
sourceWidth
== 1)
Renderer11.h
144
bool copyTexture(ID3D11ShaderResourceView *source, const gl::Rectangle &sourceArea, unsigned int
sourceWidth
, unsigned int sourceHeight,
Renderer11.cpp
[
all
...]
/external/chromium_org/chrome/browser/resources/image_loader/
image_loader.js
134
var
sourceWidth
= width;
139
sourceWidth
= height;
143
var targetWidth =
sourceWidth
;
147
targetWidth =
sourceWidth
* options.scale;
/external/jmonkeyengine/engine/src/desktop/jme3tools/converters/
MipMapGenerator.java
49
int
sourceWidth
= sourceImage.getWidth();
56
g.drawImage(sourceImage, 0, 0, targetWidth, targetHeight, 0, 0,
sourceWidth
, sourceHeight, null);
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
ImageUtils.java
[
all
...]
/frameworks/av/cmds/screenrecord/
screenrecord.cpp
210
uint32_t
sourceWidth
, sourceHeight;
212
sourceWidth
= mainDpyInfo.w;
217
sourceWidth
= mainDpyInfo.h;
219
Rect layerStackRect(
sourceWidth
, sourceHeight);
222
float displayAspect = (float) sourceHeight / (float)
sourceWidth
;
/frameworks/native/opengl/tests/hwc/
hwcStress.cpp
462
int
sourceWidth
= layer->sourceCrop.right
466
if (((layer->displayFrame.left +
sourceWidth
) <= width)
469
+
sourceWidth
;
/external/chromium_org/third_party/WebKit/Source/core/rendering/
RenderBoxModelObject.cpp
[
all
...]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.eclipse.swt.gtk.linux.x86_3.6.1.v3657a.jar
Completed in 1334 milliseconds