/external/freetype/src/truetype/ |
ttobjs.h | 212 /* - When performing a read or write in the CVT, a ratio factor is used */ 224 /* We compute the current ratio like: */ 227 /* ratio = x_ratio = 1.0 */ 230 /* ratio = y_ratio */ 233 /* ratio = sqrt( (proj.x * x_ratio) ^ 2 + (proj.y * y_ratio) ^ 2 ) */ 236 /* ratio * cvt[index] */ 239 /* cvt[index] / ratio */ 242 /* ratio * ppem */ 258 FT_Long ratio; /* current ratio */ member in struct:TT_Size_Metrics_ [all...] |
/external/linux-kselftest/tools/testing/selftests/memory-hotplug/ |
mem-on-off-test.sh | 136 ratio=10 152 ratio=$OPTARG 153 if [ "$ratio" -gt 100 ] || [ "$ratio" -lt 0 ]; then 168 echo "Test scope: $ratio% hotplug memory" 187 # Offline $ratio percent of hot-pluggable memory 190 target=`echo "a=$hotpluggable_num*$ratio; if ( a%100 ) a/100+1 else a/100" | bc` 191 echo -e "\t offline $ratio% hot-pluggable memory in online state" 251 # Offline $ratio percent of hot-pluggable memory 255 if [ $((RANDOM % 100)) -lt $ratio ]; the [all...] |
/device/linaro/bootloader/edk2/UefiCpuPkg/Include/Register/Msr/ |
XeonPhiMsr.h | 103 /// [Bits 15:8] Package. Maximum Non-Turbo Ratio (R/O) The is the ratio
104 /// of the frequency that invariant TSC runs at. Frequency = ratio * 100
110 /// [Bit 28] Package. Programmable Ratio Limit for Turbo Mode (R/O) When
111 /// set to 1, indicates that Programmable Ratio Limits for Turbo mode is
112 /// enabled, and when set to 0, indicates Programmable Ratio Limits for
126 /// [Bits 47:40] Package. Maximum Efficiency Ratio (R/O) The is the
127 /// minimum ratio (maximum efficiency) that the processor can operates, in
590 Package. Maximum Ratio Limit of Turbo Mode for Groups of Cores (RW).
620 /// processor cores which operates under the maximum ratio limit for group [all...] |
/cts/tests/framework/base/activitymanager/src/android/server/am/ |
AspectRatioTests.java | 48 // The max. aspect ratio the test activities are using. 51 // The minimum supported device aspect ratio. 54 // The minimum supported device aspect ratio for watches. 141 // context, then can use DisplayManager to get the aspect ratio of the correct display. 146 // Since this activity is resizeable, its aspect ratio shouldn't be less than the device's 158 // Since this activity didn't set an aspect ratio, its aspect ratio shouldn't be less than
|
/developers/build/prebuilts/gradle/BasicMediaDecoder/Application/src/main/java/com/example/android/common/media/ |
CameraHelper.java | 41 * dimensions of the given view while maintaining the aspect ratio. If none can, 42 * be lenient with the aspect ratio. 73 // Try to find a video size that matches aspect ratio and the target view size. 75 // still maintain the aspect ratio. 77 double ratio = (double) size.width / size.height; local 78 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) 86 // Cannot find video size that matches the aspect ratio, ignore the requirement
|
/developers/build/prebuilts/gradle/BasicTransition/Application/src/main/java/com/example/android/common/view/ |
SlidingTabStrip.java | 173 * Blend {@code color1} and {@code color2} using the given ratio. 175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend, 178 private static int blendColors(int color1, int color2, float ratio) { 179 final float inverseRation = 1f - ratio; 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
|
/developers/build/prebuilts/gradle/MediaRecorder/Application/src/main/java/com/example/android/common/media/ |
CameraHelper.java | 41 * dimensions of the given view while maintaining the aspect ratio. If none can, 42 * be lenient with the aspect ratio. 73 // Try to find a video size that matches aspect ratio and the target view size. 75 // still maintain the aspect ratio. 77 double ratio = (double) size.width / size.height; local 78 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) 86 // Cannot find video size that matches the aspect ratio, ignore the requirement
|
/developers/build/prebuilts/gradle/SlidingTabsBasic/Application/src/main/java/com/example/android/common/view/ |
SlidingTabStrip.java | 173 * Blend {@code color1} and {@code color2} using the given ratio. 175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend, 178 private static int blendColors(int color1, int color2, float ratio) { 179 final float inverseRation = 1f - ratio; 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
|
/developers/build/prebuilts/gradle/SlidingTabsColors/Application/src/main/java/com/example/android/common/view/ |
SlidingTabStrip.java | 173 * Blend {@code color1} and {@code color2} using the given ratio. 175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend, 178 private static int blendColors(int color1, int color2, float ratio) { 179 final float inverseRation = 1f - ratio; 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
|
/developers/build/prebuilts/gradle/SwipeRefreshLayoutBasic/Application/src/main/java/com/example/android/common/view/ |
SlidingTabStrip.java | 173 * Blend {@code color1} and {@code color2} using the given ratio. 175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend, 178 private static int blendColors(int color1, int color2, float ratio) { 179 final float inverseRation = 1f - ratio; 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
|
/developers/build/prebuilts/gradle/SwipeRefreshListFragment/Application/src/main/java/com/example/android/common/view/ |
SlidingTabStrip.java | 173 * Blend {@code color1} and {@code color2} using the given ratio. 175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend, 178 private static int blendColors(int color1, int color2, float ratio) { 179 final float inverseRation = 1f - ratio; 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
|
/developers/build/prebuilts/gradle/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/common/view/ |
SlidingTabStrip.java | 173 * Blend {@code color1} and {@code color2} using the given ratio. 175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend, 178 private static int blendColors(int color1, int color2, float ratio) { 179 final float inverseRation = 1f - ratio; 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
|
/developers/samples/android/common/src/java/com/example/android/common/media/ |
CameraHelper.java | 41 * dimensions of the given view while maintaining the aspect ratio. If none can, 42 * be lenient with the aspect ratio. 73 // Try to find a video size that matches aspect ratio and the target view size. 75 // still maintain the aspect ratio. 77 double ratio = (double) size.width / size.height; local 78 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) 86 // Cannot find video size that matches the aspect ratio, ignore the requirement
|
/developers/samples/android/common/src/java/com/example/android/common/view/ |
SlidingTabStrip.java | 173 * Blend {@code color1} and {@code color2} using the given ratio. 175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend, 178 private static int blendColors(int color1, int color2, float ratio) { 179 final float inverseRation = 1f - ratio; 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
|
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/ |
CameraHelper.java | 40 * dimensions of the given view while maintaining the aspect ratio. If none can, 41 * be lenient with the aspect ratio. 72 // Try to find a video size that matches aspect ratio and the target view size. 74 // still maintain the aspect ratio. 76 double ratio = (double) size.width / size.height; local 77 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) 85 // Cannot find video size that matches the aspect ratio, ignore the requirement
|
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/ |
CameraHelper.java | 40 * dimensions of the given view while maintaining the aspect ratio. If none can, 41 * be lenient with the aspect ratio. 72 // Try to find a video size that matches aspect ratio and the target view size. 74 // still maintain the aspect ratio. 76 double ratio = (double) size.width / size.height; local 77 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) 85 // Cannot find video size that matches the aspect ratio, ignore the requirement
|
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/ |
SlidingTabStrip.java | 173 * Blend {@code color1} and {@code color2} using the given ratio. 175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend, 178 private static int blendColors(int color1, int color2, float ratio) { 179 final float inverseRation = 1f - ratio; 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
|
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/ |
CameraHelper.java | 40 * dimensions of the given view while maintaining the aspect ratio. If none can, 41 * be lenient with the aspect ratio. 72 // Try to find a video size that matches aspect ratio and the target view size. 74 // still maintain the aspect ratio. 76 double ratio = (double) size.width / size.height; local 77 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) 85 // Cannot find video size that matches the aspect ratio, ignore the requirement
|
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/ |
SlidingTabStrip.java | 173 * Blend {@code color1} and {@code color2} using the given ratio. 175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend, 178 private static int blendColors(int color1, int color2, float ratio) { 179 final float inverseRation = 1f - ratio; 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
|
/development/samples/browseable/SlidingTabsColors/src/com.example.android.common/view/ |
SlidingTabStrip.java | 173 * Blend {@code color1} and {@code color2} using the given ratio. 175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend, 178 private static int blendColors(int color1, int color2, float ratio) { 179 final float inverseRation = 1f - ratio; 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
|
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/view/ |
SlidingTabStrip.java | 173 * Blend {@code color1} and {@code color2} using the given ratio. 175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend, 178 private static int blendColors(int color1, int color2, float ratio) { 179 final float inverseRation = 1f - ratio; 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
|
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/view/ |
SlidingTabStrip.java | 173 * Blend {@code color1} and {@code color2} using the given ratio. 175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend, 178 private static int blendColors(int color1, int color2, float ratio) { 179 final float inverseRation = 1f - ratio; 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
|
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/ |
SlidingTabStrip.java | 173 * Blend {@code color1} and {@code color2} using the given ratio. 175 * @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend, 178 private static int blendColors(int color1, int color2, float ratio) { 179 final float inverseRation = 1f - ratio; 180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); 181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); 182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation);
|
/frameworks/base/core/java/android/app/ |
PictureInPictureParams.java | 49 * Sets the aspect ratio. This aspect ratio is defined as the desired width / height, and 52 * @param aspectRatio the new aspect ratio for the activity in picture-in-picture, must be 87 * these bounds should also match the aspect ratio in the arguments. 119 * The expected aspect ratio of the picture-in-picture. 181 * @return the aspect ratio. If none is set, return 0. 197 * @return whether the aspect ratio is set.
|
/packages/apps/Camera2/src/com/android/camera/app/ |
FirstRunDialog.java | 48 /** The default preference of aspect ratio. */ 72 /** Aspect ratio preference dialog */ 103 // ask preferences about location and aspect ratio. The first dialog is 108 * If people already set location preference, prompt aspect ratio dialog. 148 * Prompts a dialog to allow people to choose aspect ratio preference when 159 // Change resolution setting based on the chosen aspect ratio. 225 // Prompt the second dialog about aspect ratio preference.
|