Home
last modified time | relevance | path

Searched refs:params (Results 1 – 25 of 214) sorted by relevance

123456789

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboardBuilderFixedOrderTests.java48 final MoreKeysKeyboardParams params = new MoreKeysKeyboardParams(); in createParams() local
49 params.setParameters(numKeys, columnNum, WIDTH, HEIGHT, coordXInParent, KEYBOARD_WIDTH, in createParams()
51 return params; in createParams()
55 MoreKeysKeyboardParams params = null; in testLayoutError() local
58 params = createParams(fixColumns + 1, fixColumns + 1, HEIGHT); in testLayoutError()
63 assertNull("Too small keyboard to hold more keys keyboard", params); in testLayoutError()
72 MoreKeysKeyboardParams params = createParams(1, 5, XPOS_M0); in testLayout1KeyFix5M0() local
73 assertEquals("1 key fix 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyFix5M0()
74 assertEquals("1 key fix 5 M0 rows", 1, params.mNumRows); in testLayout1KeyFix5M0()
75 assertEquals("1 key fix 5 M0 left", 0, params.mLeftKeys); in testLayout1KeyFix5M0()
[all …]
DMoreKeysKeyboardBuilderTests.java48 final MoreKeysKeyboardParams params = new MoreKeysKeyboardParams(); in createParams() local
49 params.setParameters(numKeys, maxColumns, WIDTH, HEIGHT, coordXInParent, KEYBOARD_WIDTH, in createParams()
51 return params; in createParams()
55 MoreKeysKeyboardParams params = null; in testLayoutError() local
58 params = createParams(maxColumns + 1, maxColumns + 1, HEIGHT); in testLayoutError()
63 assertNull("Too small keyboard to hold more keys keyboard", params); in testLayoutError()
72 MoreKeysKeyboardParams params = createParams(1, 5, XPOS_M0); in testLayout1KeyMax5M0() local
73 assertEquals("1 key max 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyMax5M0()
74 assertEquals("1 key max 5 M0 rows", 1, params.mNumRows); in testLayout1KeyMax5M0()
75 assertEquals("1 key max 5 M0 left", 0, params.mLeftKeys); in testLayout1KeyMax5M0()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKey.java190 public Key(final KeyboardParams params, final MoreKeySpec moreKeySpec, final int x, final int y, in Key() argument
192 this(params, moreKeySpec.mLabel, null, moreKeySpec.mIconId, moreKeySpec.mCode, in Key()
199 public Key(final KeyboardParams params, final String label, final String hintLabel, in Key() argument
202 mHeight = height - params.mVerticalGap; in Key()
203 mWidth = width - params.mHorizontalGap; in Key()
218 mX = x + params.mHorizontalGap / 2; in Key()
236 public Key(final Resources res, final KeyboardParams params, final KeyboardRow row, in Key() argument
238 final float horizontalGap = isSpacer() ? 0 : params.mHorizontalGap; in Key()
240 mHeight = rowHeight - params.mVerticalGap; in Key()
245 final KeyStyle style = params.mKeyStyles.getKeyStyle(keyAttr, parser); in Key()
[all …]
DKeyboard.java87 public Keyboard(final KeyboardParams params) { in Keyboard() argument
88 mId = params.mId; in Keyboard()
89 mThemeId = params.mThemeId; in Keyboard()
90 mOccupiedHeight = params.mOccupiedHeight; in Keyboard()
91 mOccupiedWidth = params.mOccupiedWidth; in Keyboard()
92 mBaseHeight = params.mBaseHeight; in Keyboard()
93 mBaseWidth = params.mBaseWidth; in Keyboard()
94 mMostCommonKeyHeight = params.mMostCommonKeyHeight; in Keyboard()
95 mMostCommonKeyWidth = params.mMostCommonKeyWidth; in Keyboard()
96 mMoreKeysTemplate = params.mMoreKeysTemplate; in Keyboard()
[all …]
DMoreKeysKeyboard.java36 MoreKeysKeyboard(final MoreKeysKeyboardParams params) { in MoreKeysKeyboard() argument
37 super(params); in MoreKeysKeyboard()
38 mDefaultKeyCoordX = params.getDefaultKeyCoordX() + params.mDefaultKeyWidth / 2; in MoreKeysKeyboard()
338 final MoreKeysKeyboardParams params = mParams; in build() local
343 final int row = n / params.mNumColumns; in build()
344 final int x = params.getX(n, row); in build()
345 final int y = params.getY(row); in build()
346 final Key key = new Key(params, moreKeySpec, x, y, in build()
347 params.mDefaultKeyWidth, params.mDefaultRowHeight, moreKeyFlags); in build()
348 params.markAsEdgeKey(key, row); in build()
[all …]
DKeyboardView.java321 final KeyDrawParams params = mKeyDrawParams.mayCloneAndUpdateParams(keyHeight, attr); in onDrawKey() local
322 params.mAnimAlpha = Constants.Color.ALPHA_OPAQUE; in onDrawKey()
327 onDrawKeyTopVisuals(key, canvas, paint, params); in onDrawKey()
356 final KeyDrawParams params) { in onDrawKeyTopVisuals() argument
367 final Drawable icon = key.getIcon(mKeyboard.mIconsSet, params.mAnimAlpha); in onDrawKeyTopVisuals()
371 paint.setTypeface(key.selectTypeface(params)); in onDrawKeyTopVisuals()
372 paint.setTextSize(key.selectTextSize(params)); in onDrawKeyTopVisuals()
412 paint.setColor(key.selectTextColor(params)); in onDrawKeyTopVisuals()
415 paint.setShadowLayer(mKeyTextShadowRadius, 0.0f, 0.0f, params.mTextShadowColor); in onDrawKeyTopVisuals()
420 blendAlpha(paint, params.mAnimAlpha); in onDrawKeyTopVisuals()
[all …]
DKeyboardId.java81 public KeyboardId(final int elementId, final KeyboardLayoutSet.Params params) { in KeyboardId() argument
82 mSubtype = params.mSubtype; in KeyboardId()
84 mWidth = params.mKeyboardWidth; in KeyboardId()
85 mHeight = params.mKeyboardHeight; in KeyboardId()
86 mMode = params.mMode; in KeyboardId()
88 mEditorInfo = params.mEditorInfo; in KeyboardId()
89 mClobberSettingsKey = params.mNoSettingsKey; in KeyboardId()
90 mShortcutKeyEnabled = params.mVoiceKeyEnabled; in KeyboardId()
91 mShortcutKeyOnSymbols = mShortcutKeyEnabled && !params.mVoiceKeyOnMain; in KeyboardId()
92 mLanguageSwitchKeyEnabled = params.mLanguageSwitchKeyEnabled; in KeyboardId()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardBuilder.java149 public KeyboardBuilder(final Context context, final KP params) { in KeyboardBuilder() argument
154 mParams = params; in KeyboardBuilder()
156 params.GRID_WIDTH = res.getInteger(R.integer.config_keyboard_grid_width); in KeyboardBuilder()
157 params.GRID_HEIGHT = res.getInteger(R.integer.config_keyboard_grid_height); in KeyboardBuilder()
238 final KeyboardParams params = mParams; in parseKeyboardAttributes() local
239 final int height = params.mId.mHeight; in parseKeyboardAttributes()
240 final int width = params.mId.mWidth; in parseKeyboardAttributes()
241 params.mOccupiedHeight = height; in parseKeyboardAttributes()
242 params.mOccupiedWidth = width; in parseKeyboardAttributes()
243 params.mTopPadding = (int)keyboardAttr.getFraction( in parseKeyboardAttributes()
[all …]
DGestureTrail.java164 private static int getAlpha(final int elapsedTime, final Params params) { in getAlpha() argument
165 if (elapsedTime < params.mFadeoutStartDelay) { in getAlpha()
169 * (elapsedTime - params.mFadeoutStartDelay) in getAlpha()
170 / params.mFadeoutDuration; in getAlpha()
183 private static float getWidth(final int elapsedTime, final Params params) { in getWidth() argument
184 final float deltaWidth = params.mTrailStartWidth - params.mTrailEndWidth; in getWidth()
185 return params.mTrailStartWidth - (deltaWidth * elapsedTime) / params.mTrailLingerDuration; in getWidth()
200 final Rect outBoundsRect, final Params params) { in drawGestureTrail() argument
202 return drawGestureTrailLocked(canvas, paint, outBoundsRect, params); in drawGestureTrail()
207 final Rect outBoundsRect, final Params params) { in drawGestureTrailLocked() argument
[all …]
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java143 final String params[] = param.split("=", 2); in readDictionaryCombined() local
144 if (2 != params.length) throw new RuntimeException("Wrong format : " + line); in readDictionaryCombined()
145 if (WORD_TAG.equals(params[0])) { in readDictionaryCombined()
146 word = params[1]; in readDictionaryCombined()
147 } else if (FREQUENCY_TAG.equals(params[0])) { in readDictionaryCombined()
148 freq = Integer.parseInt(params[1]); in readDictionaryCombined()
149 } else if (NOT_A_WORD_TAG.equals(params[0])) { in readDictionaryCombined()
150 isNotAWord = "true".equals(params[1]); in readDictionaryCombined()
157 final String params[] = param.split("=", 2); in readDictionaryCombined() local
158 if (2 != params.length) throw new RuntimeException("Wrong format : " + line); in readDictionaryCombined()
[all …]
/packages/apps/Contacts/src/com/android/contacts/widget/
DInterpolatingLayout.java219 LayoutParams params = (LayoutParams) child.getLayoutParams(); in onMeasure() local
220 if (params.width == LayoutParams.MATCH_PARENT) { in onMeasure()
228 int childWidth = params.resolveWidth(parentWidth); in onMeasure()
241 switch (params.height) { in onMeasure()
247 parentHeight - params.topMargin - params.bottomMargin, in onMeasure()
252 params.height, MeasureSpec.EXACTLY); in onMeasure()
261 width += params.resolveLeftMargin(parentWidth) + params.resolveRightMargin(parentWidth); in onMeasure()
290 LayoutParams params = (LayoutParams) child.getLayoutParams(); in onLayout() local
291 int gravity = params.gravity; in onLayout()
296 if (params.narrowPaddingLeft != -1 || params.narrowPaddingRight != -1) { in onLayout()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DMoreSuggestions.java44 MoreSuggestions(final MoreSuggestionsParam params, final SuggestedWords suggestedWords) { in MoreSuggestions() argument
45 super(params); in MoreSuggestions()
203 final MoreSuggestionsParam params = mParams; in build() local
205 final int x = params.getX(index); in build()
206 final int y = params.getY(index); in build()
207 final int width = params.getWidth(index); in build()
212 params, word, info, KeyboardIconsSet.ICON_UNDEFINED, indexInMoreSuggestions, in build()
213 null /* outputText */, x, y, width, params.mDefaultRowHeight, in build()
215 params.markAsEdgeKey(key, index); in build()
216 params.onAddKey(key); in build()
[all …]
/packages/apps/Calendar/src/com/android/calendar/month/
DSimpleWeeksAdapter.java100 public SimpleWeeksAdapter(Context context, HashMap<String, Integer> params) { in SimpleWeeksAdapter() argument
114 updateParams(params); in SimpleWeeksAdapter()
132 public void updateParams(HashMap<String, Integer> params) { in updateParams() argument
133 if (params == null) { in updateParams()
137 if (params.containsKey(WEEK_PARAMS_FOCUS_MONTH)) { in updateParams()
138 mFocusMonth = params.get(WEEK_PARAMS_FOCUS_MONTH); in updateParams()
140 if (params.containsKey(WEEK_PARAMS_FOCUS_MONTH)) { in updateParams()
141 mNumWeeks = params.get(WEEK_PARAMS_NUM_WEEKS); in updateParams()
143 if (params.containsKey(WEEK_PARAMS_SHOW_WEEK)) { in updateParams()
144 mShowWeekNumber = params.get(WEEK_PARAMS_SHOW_WEEK) != 0; in updateParams()
[all …]
DSimpleWeekView.java212 public void setWeekParams(HashMap<String, Integer> params, String tz) { in setWeekParams() argument
213 if (!params.containsKey(VIEW_PARAMS_WEEK)) { in setWeekParams()
216 setTag(params); in setWeekParams()
219 if (params.containsKey(VIEW_PARAMS_HEIGHT)) { in setWeekParams()
220 mHeight = params.get(VIEW_PARAMS_HEIGHT); in setWeekParams()
225 if (params.containsKey(VIEW_PARAMS_SELECTED_DAY)) { in setWeekParams()
226 mSelectedDay = params.get(VIEW_PARAMS_SELECTED_DAY); in setWeekParams()
229 if (params.containsKey(VIEW_PARAMS_NUM_DAYS)) { in setWeekParams()
230 mNumDays = params.get(VIEW_PARAMS_NUM_DAYS); in setWeekParams()
232 if (params.containsKey(VIEW_PARAMS_SHOW_WK_NUM)) { in setWeekParams()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DEmailAsyncTask.java117 protected Result2 doInBackground(Params2... params) { in doInBackground() argument
118 return mOwner.doInBackground(params); in doInBackground()
156 protected abstract Result doInBackground(Params... params); in doInBackground() argument
184 public final EmailAsyncTask<Params, Progress, Result> executeParallel(Params... params) { in executeParallel() argument
185 return executeInternal(PARALLEL_EXECUTOR, false, params); in executeParallel()
193 public final EmailAsyncTask<Params, Progress, Result> executeSerial(Params... params) { in executeSerial() argument
194 return executeInternal(SERIAL_EXECUTOR, false, params); in executeSerial()
202 Params... params) { in cancelPreviousAndExecuteParallel() argument
203 return executeInternal(PARALLEL_EXECUTOR, true, params); in cancelPreviousAndExecuteParallel()
211 Params... params) { in cancelPreviousAndExecuteSerial() argument
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DAttachmentActionHandler.java113 final ContentValues params = new ContentValues(5); in startDownloadingAttachment() local
114 params.put(AttachmentColumns.STATE, AttachmentState.DOWNLOADING); in startDownloadingAttachment()
115 params.put(AttachmentColumns.DESTINATION, destination); in startDownloadingAttachment()
116 params.put(AttachmentContentValueKeys.RENDITION, rendition); in startDownloadingAttachment()
117 params.put(AttachmentContentValueKeys.ADDITIONAL_PRIORITY, additionalPriority); in startDownloadingAttachment()
118 params.put(AttachmentContentValueKeys.DELAY_DOWNLOAD, delayDownload); in startDownloadingAttachment()
120 mCommandHandler.sendCommand(attachment.uri, params); in startDownloadingAttachment()
124 final ContentValues params = new ContentValues(1); in cancelAttachment() local
125 params.put(AttachmentColumns.STATE, AttachmentState.NOT_SAVED); in cancelAttachment()
127 mCommandHandler.sendCommand(mAttachment.uri, params); in cancelAttachment()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DTwoPaneController.java505 final FrameLayout.LayoutParams params = in repositionToastBar() local
510 params.width = mLayout.computeConversationListWidth() - params.leftMargin in repositionToastBar()
511 - params.rightMargin; in repositionToastBar()
512 params.gravity = Gravity.BOTTOM | Gravity.RIGHT; in repositionToastBar()
513 mToastBar.setLayoutParams(params); in repositionToastBar()
519 params.gravity = Gravity.BOTTOM | Gravity.LEFT; in repositionToastBar()
520 params.width = mLayout.computeConversationListWidth() - params.leftMargin in repositionToastBar()
521 - params.rightMargin; in repositionToastBar()
522 mToastBar.setLayoutParams(params); in repositionToastBar()
525 params.gravity = Gravity.BOTTOM | Gravity.RIGHT; in repositionToastBar()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DPhotoUI.java152 protected Bitmap doInBackground(Void... params) { in doInBackground() argument
332 Camera.Parameters params, OnPreferenceChangedListener listener) { in onCameraOpened() argument
355 mGestures.setZoomEnabled(params.isZoomSupported()); in onCameraOpened()
359 initializeZoom(params); in onCameraOpened()
360 updateOnScreenIndicators(params, prefGroup, prefs); in onCameraOpened()
458 public void initializeSecondTime(Camera.Parameters params) { in initializeSecondTime() argument
459 initializeZoom(params); in initializeSecondTime()
497 public void initializeZoom(Camera.Parameters params) { in initializeZoom() argument
498 if ((params == null) || !params.isZoomSupported() in initializeZoom()
500 mZoomMax = params.getMaxZoom(); in initializeZoom()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLES20Canvas.java305 private int assembleProgram(int vertexShader, int fragmentShader, ShaderParameter[] params) { in assembleProgram() argument
325 for (int i = 0; i < params.length; i++) { in assembleProgram()
326 params[i].loadHandle(program); in assembleProgram()
544 private void setPosition(ShaderParameter[] params, int offset) { in setPosition() argument
547 GLES20.glVertexAttribPointer(params[INDEX_POSITION].handle, COORDS_PER_VERTEX, in setPosition()
554 private void draw(ShaderParameter[] params, int type, int count, float x, float y, float width, in draw() argument
556 setMatrix(params, x, y, width, height); in draw()
557 int positionHandle = params[INDEX_POSITION].handle; in draw()
566 private void setMatrix(ShaderParameter[] params, float x, float y, float width, float height) { in setMatrix() argument
570 GLES20.glUniformMatrix4fv(params[INDEX_MATRIX].handle, 1, false, mTempMatrix, MATRIX_SIZE); in setMatrix()
[all …]
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/
DGLES20Canvas.java305 private int assembleProgram(int vertexShader, int fragmentShader, ShaderParameter[] params) { in assembleProgram() argument
325 for (int i = 0; i < params.length; i++) { in assembleProgram()
326 params[i].loadHandle(program); in assembleProgram()
544 private void setPosition(ShaderParameter[] params, int offset) { in setPosition() argument
547 GLES20.glVertexAttribPointer(params[INDEX_POSITION].handle, COORDS_PER_VERTEX, in setPosition()
554 private void draw(ShaderParameter[] params, int type, int count, float x, float y, float width, in draw() argument
556 setMatrix(params, x, y, width, height); in draw()
557 int positionHandle = params[INDEX_POSITION].handle; in draw()
566 private void setMatrix(ShaderParameter[] params, float x, float y, float width, float height) { in setMatrix() argument
570 GLES20.glUniformMatrix4fv(params[INDEX_MATRIX].handle, 1, false, mTempMatrix, MATRIX_SIZE); in setMatrix()
[all …]
/packages/apps/Email/tests/src/com/android/emailcommon/service/
DSearchParamsTests.java26 SearchParams params = new SearchParams(1, "query"); in brokentestParcel() local
27 params.mIncludeChildren = true; in brokentestParcel()
28 params.mLimit = 66; in brokentestParcel()
29 params.mOffset = 99; in brokentestParcel()
31 params.writeToParcel(parcel, 0); in brokentestParcel()
34 assertEquals(params.mFilter, readParams.mFilter); in brokentestParcel()
35 assertEquals(params.mIncludeChildren, readParams.mIncludeChildren); in brokentestParcel()
36 assertEquals(params.mLimit, readParams.mLimit); in brokentestParcel()
37 assertEquals(params.mOffset, readParams.mOffset); in brokentestParcel()
38 assertEquals(params.mMailboxId, readParams.mMailboxId); in brokentestParcel()
/packages/wallpapers/Basic/src/com/android/wallpaper/walkaround/
DWalkAroundWallpaper.java59 final Camera.Parameters params = mCamera.getParameters(); in onConfigurationChanged() local
60 params.set("orientation", portrait ? "portrait" : "landscape"); in onConfigurationChanged()
61 mCamera.setParameters(params); in onConfigurationChanged()
166 final Camera.Parameters params = mCamera.getParameters(); in startPreview() local
169 final List<Camera.Size> sizes = params.getSupportedPreviewSizes(); in startPreview()
178 params.setPreviewSize(size.width, size.height); in startPreview()
187 params.setPreviewSize(size.width, size.height); in startPreview()
206 params.setPreviewSize(size.width, size.height); in startPreview()
209 params.set("orientation", portrait ? "portrait" : "landscape"); in startPreview()
210 mCamera.setParameters(params); in startPreview()
/packages/apps/Launcher2/src/com/android/launcher2/
DFolderIcon.java489 PreviewItemDrawingParams params) {
505 if (params == null) {
506 params = new PreviewItemDrawingParams(transX, transY, totalScale, overlayAlpha);
508 params.transX = transX;
509 params.transY = transY;
510 params.scale = totalScale;
511 params.overlayAlpha = overlayAlpha;
513 return params;
516 private void drawPreviewItem(Canvas canvas, PreviewItemDrawingParams params) {
518 canvas.translate(params.transX + mPreviewOffsetX, params.transY + mPreviewOffsetY);
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DFolderIcon.java537 PreviewItemDrawingParams params) {
553 if (params == null) {
554 params = new PreviewItemDrawingParams(transX, transY, totalScale, overlayAlpha);
556 params.transX = transX;
557 params.transY = transY;
558 params.scale = totalScale;
559 params.overlayAlpha = overlayAlpha;
561 return params;
564 private void drawPreviewItem(Canvas canvas, PreviewItemDrawingParams params) {
566 canvas.translate(params.transX + mPreviewOffsetX, params.transY + mPreviewOffsetY);
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java125 public static boolean isAutoExposureLockSupported(Parameters params) { in isAutoExposureLockSupported() argument
126 return TRUE.equals(params.get(AUTO_EXPOSURE_LOCK_SUPPORTED)); in isAutoExposureLockSupported()
129 public static boolean isAutoWhiteBalanceLockSupported(Parameters params) { in isAutoWhiteBalanceLockSupported() argument
130 return TRUE.equals(params.get(AUTO_WHITE_BALANCE_LOCK_SUPPORTED)); in isAutoWhiteBalanceLockSupported()
133 public static boolean isVideoSnapshotSupported(Parameters params) { in isVideoSnapshotSupported() argument
134 return TRUE.equals(params.get(VIDEO_SNAPSHOT_SUPPORTED)); in isVideoSnapshotSupported()
137 public static boolean isCameraHdrSupported(Parameters params) { in isCameraHdrSupported() argument
138 List<String> supported = params.getSupportedSceneModes(); in isCameraHdrSupported()
142 public static boolean isMeteringAreaSupported(Parameters params) { in isMeteringAreaSupported() argument
143 return params.getMaxNumMeteringAreas() > 0; in isMeteringAreaSupported()
[all …]

123456789