/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
H A D | MoreKeysKeyboardBuilderFixedOrderTests.java | 48 final MoreKeysKeyboardParams params = new MoreKeysKeyboardParams(); 49 params.setParameters(numKeys, columnNum, WIDTH, HEIGHT, coordXInParent, KEYBOARD_WIDTH, 51 return params; 55 MoreKeysKeyboardParams params = null; 58 params = createParams(fixColumns + 1, fixColumns + 1, HEIGHT); 63 assertNull("Too small keyboard to hold more keys keyboard", params); 72 MoreKeysKeyboardParams params = createParams(1, 5, XPOS_M0); 73 assertEquals("1 key fix 5 M0 columns", 1, params.mNumColumns); 74 assertEquals("1 key fix 5 M0 rows", 1, params.mNumRows); 75 assertEquals("1 key fix 5 M0 left", 0, params [all...] |
H A D | MoreKeysKeyboardBuilderTests.java | 48 final MoreKeysKeyboardParams params = new MoreKeysKeyboardParams(); 49 params.setParameters(numKeys, maxColumns, WIDTH, HEIGHT, coordXInParent, KEYBOARD_WIDTH, 51 return params; 55 MoreKeysKeyboardParams params = null; 58 params = createParams(maxColumns + 1, maxColumns + 1, HEIGHT); 63 assertNull("Too small keyboard to hold more keys keyboard", params); 72 MoreKeysKeyboardParams params = createParams(1, 5, XPOS_M0); 73 assertEquals("1 key max 5 M0 columns", 1, params.mNumColumns); 74 assertEquals("1 key max 5 M0 rows", 1, params.mNumRows); 75 assertEquals("1 key max 5 M0 left", 0, params [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/service/ |
H A D | SearchParamsTests.java | 24 SearchParams params = new SearchParams(1, "query"); 25 params.mIncludeChildren = true; 26 params.mLimit = 66; 27 params.mOffset = 99; 29 params.writeToParcel(parcel, 0); 32 assertEquals(params.mFilter, readParams.mFilter); 33 assertEquals(params.mIncludeChildren, readParams.mIncludeChildren); 34 assertEquals(params.mLimit, readParams.mLimit); 35 assertEquals(params.mOffset, readParams.mOffset); 36 assertEquals(params [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | Keyboard.java | 87 public Keyboard(final KeyboardParams params) { argument 88 mId = params.mId; 89 mThemeId = params.mThemeId; 90 mOccupiedHeight = params.mOccupiedHeight; 91 mOccupiedWidth = params.mOccupiedWidth; 92 mBaseHeight = params.mBaseHeight; 93 mBaseWidth = params.mBaseWidth; 94 mMostCommonKeyHeight = params.mMostCommonKeyHeight; 95 mMostCommonKeyWidth = params.mMostCommonKeyWidth; 96 mMoreKeysTemplate = params [all...] |
H A D | MoreKeysKeyboard.java | 36 MoreKeysKeyboard(final MoreKeysKeyboardParams params) { argument 37 super(params); 38 mDefaultKeyCoordX = params.getDefaultKeyCoordX() + params.mDefaultKeyWidth / 2; 338 final MoreKeysKeyboardParams params = mParams; 343 final int row = n / params.mNumColumns; 344 final int x = params.getX(n, row); 345 final int y = params.getY(row); 346 final Key key = new Key(params, moreKeySpec, x, y, 347 params 368 MoreKeyDivider(final MoreKeysKeyboardParams params, final Drawable icon, final int x, final int y) argument [all...] |
H A D | Key.java | 190 public Key(final KeyboardParams params, final MoreKeySpec moreKeySpec, final int x, final int y, argument 192 this(params, moreKeySpec.mLabel, null, moreKeySpec.mIconId, moreKeySpec.mCode, 199 public Key(final KeyboardParams params, final String label, final String hintLabel, argument 202 mHeight = height - params.mVerticalGap; 203 mWidth = width - params.mHorizontalGap; 218 mX = x + params.mHorizontalGap / 2; 230 * @param params the keyboard building parameters. 236 public Key(final Resources res, final KeyboardParams params, final KeyboardRow row, argument 238 final float horizontalGap = isSpacer() ? 0 : params.mHorizontalGap; 240 mHeight = rowHeight - params 528 markAsLeftEdge(final KeyboardParams params) argument 532 markAsRightEdge(final KeyboardParams params) argument 536 markAsTopEdge(final KeyboardParams params) argument 540 markAsBottomEdge(final KeyboardParams params) argument 578 selectTypeface(final KeyDrawParams params) argument 589 selectTextSize(final KeyDrawParams params) argument 606 selectTextColor(final KeyDrawParams params) argument 625 selectHintTextSize(final KeyDrawParams params) argument 635 selectHintTextColor(final KeyDrawParams params) argument 646 selectMoreKeyTextSize(final KeyDrawParams params) argument 659 selectPreviewTextSize(final KeyDrawParams params) argument 666 selectPreviewTypeface(final KeyDrawParams params) argument 931 Spacer(final Resources res, final KeyboardParams params, final KeyboardRow row, final XmlPullParser parser) argument 939 Spacer(final KeyboardParams params, final int x, final int y, final int width, final int height) argument [all...] |
H A D | KeyboardId.java | 81 public KeyboardId(final int elementId, final KeyboardLayoutSet.Params params) { argument 82 mSubtype = params.mSubtype; 84 mWidth = params.mKeyboardWidth; 85 mHeight = params.mKeyboardHeight; 86 mMode = params.mMode; 88 mEditorInfo = params.mEditorInfo; 89 mClobberSettingsKey = params.mNoSettingsKey; 90 mShortcutKeyEnabled = params.mVoiceKeyEnabled; 91 mShortcutKeyOnSymbols = mShortcutKeyEnabled && !params.mVoiceKeyOnMain; 92 mLanguageSwitchKeyEnabled = params [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
H A D | AttachmentCommandHandler.java | 33 public void sendCommand(Uri uri, ContentValues params) { argument 34 startUpdate(0, null, uri, params, null, null);
|
H A D | AttachmentActionHandler.java | 113 final ContentValues params = new ContentValues(5); 114 params.put(AttachmentColumns.STATE, AttachmentState.DOWNLOADING); 115 params.put(AttachmentColumns.DESTINATION, destination); 116 params.put(AttachmentContentValueKeys.RENDITION, rendition); 117 params.put(AttachmentContentValueKeys.ADDITIONAL_PRIORITY, additionalPriority); 118 params.put(AttachmentContentValueKeys.DELAY_DOWNLOAD, delayDownload); 120 mCommandHandler.sendCommand(attachment.uri, params); 124 final ContentValues params = new ContentValues(1); 125 params.put(AttachmentColumns.STATE, AttachmentState.NOT_SAVED); 127 mCommandHandler.sendCommand(mAttachment.uri, params); [all...] |
H A D | MessageInviteView.java | 84 ContentValues params = new ContentValues(); 86 params.put(UIProvider.MessageOperations.RESPOND_COLUMN, command); 87 mCommandHandler.sendCommand(params); 97 public void sendCommand(ContentValues params) { argument 98 startUpdate(0, null, mMessage.uri, params, null, null);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | AsyncTaskUtil.java | 49 public static <Param> void executeInParallel(AsyncTask<Param, ?, ?> task, Param... params) { argument 51 task.execute(params); 54 sMethodExecuteOnExecutor.invoke(task, sExecutor, params);
|
H A D | HttpClientFactory.java | 26 import org.apache.http.conn.params.ConnManagerParams; 27 import org.apache.http.params.CoreProtocolPNames; 28 import org.apache.http.params.HttpParams; 65 HttpParams params = client.getParams(); 66 params.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1); 69 // HttpConnectionParams.setSoTimeout(params, 60 * 1000); 70 // HttpConnectionParams.setConnectionTimeout(params, 60 * 1000); 73 ConnManagerParams.setTimeout(params, 60 * 1000);
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
H A D | SimpleWeeksAdapter.java | 100 public SimpleWeeksAdapter(Context context, HashMap<String, Integer> params) { argument 114 updateParams(params); 130 * @param params A list of parameters for this adapter 132 public void updateParams(HashMap<String, Integer> params) { argument 133 if (params == null) { 137 if (params.containsKey(WEEK_PARAMS_FOCUS_MONTH)) { 138 mFocusMonth = params.get(WEEK_PARAMS_FOCUS_MONTH); 140 if (params.containsKey(WEEK_PARAMS_FOCUS_MONTH)) { 141 mNumWeeks = params.get(WEEK_PARAMS_NUM_WEEKS); 143 if (params [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | GestureTrail.java | 161 * @param params gesture trail display parameters 164 private static int getAlpha(final int elapsedTime, final Params params) { argument 165 if (elapsedTime < params.mFadeoutStartDelay) { 169 * (elapsedTime - params.mFadeoutStartDelay) 170 / params.mFadeoutDuration; 180 * @param params gesture trail display parameters 183 private static float getWidth(final int elapsedTime, final Params params) { argument 184 final float deltaWidth = params.mTrailStartWidth - params.mTrailEndWidth; 185 return params 199 drawGestureTrail(final Canvas canvas, final Paint paint, final Rect outBoundsRect, final Params params) argument 206 drawGestureTrailLocked(final Canvas canvas, final Paint paint, final Rect outBoundsRect, final Params params) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/widget/ |
H A D | InterpolatingLayout.java | 219 LayoutParams params = (LayoutParams) child.getLayoutParams(); 220 if (params.width == LayoutParams.MATCH_PARENT) { 228 int childWidth = params.resolveWidth(parentWidth); 241 switch (params.height) { 247 parentHeight - params.topMargin - params.bottomMargin, 252 params.height, MeasureSpec.EXACTLY); 261 width += params.resolveLeftMargin(parentWidth) + params.resolveRightMargin(parentWidth); 290 LayoutParams params [all...] |
H A D | FrameLayoutWithOverlay.java | 43 public void addView(View child, int index, ViewGroup.LayoutParams params) { argument 44 super.addView(child, index, params);
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
H A D | CombinedInputOutput.java | 143 final String params[] = param.split("=", 2); 144 if (2 != params.length) throw new RuntimeException("Wrong format : " + line); 145 if (WORD_TAG.equals(params[0])) { 146 word = params[1]; 147 } else if (FREQUENCY_TAG.equals(params[0])) { 148 freq = Integer.parseInt(params[1]); 149 } else if (NOT_A_WORD_TAG.equals(params[0])) { 150 isNotAWord = "true".equals(params[1]); 157 final String params[] = param.split("=", 2); 158 if (2 != params [all...] |
/packages/apps/Dialer/src/com/android/dialer/util/ |
H A D | AsyncTaskExecutor.java | 47 <T> AsyncTask<T, ?, ?> submit(Object identifier, AsyncTask<T, ?, ?> task, T... params); argument
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
H A D | EmailAsyncTask.java | 117 protected Result2 doInBackground(Params2... params) { argument 118 return mOwner.doInBackground(params); 156 protected abstract Result doInBackground(Params... params); argument 184 public final EmailAsyncTask<Params, Progress, Result> executeParallel(Params... params) { argument 185 return executeInternal(PARALLEL_EXECUTOR, false, params); 193 public final EmailAsyncTask<Params, Progress, Result> executeSerial(Params... params) { argument 194 return executeInternal(SERIAL_EXECUTOR, false, params); 202 Params... params) { 203 return executeInternal(PARALLEL_EXECUTOR, true, params); 211 Params... params) { 201 cancelPreviousAndExecuteParallel( Params... params) argument 210 cancelPreviousAndExecuteSerial( Params... params) argument 215 executeInternal(Executor executor, boolean cancelPrevious, Params... params) argument 263 callDoInBackgroundForTest(Params... params) argument [all...] |
/packages/wallpapers/Basic/src/com/android/wallpaper/walkaround/ |
H A D | WalkAroundWallpaper.java | 59 final Camera.Parameters params = mCamera.getParameters(); 60 params.set("orientation", portrait ? "portrait" : "landscape"); 61 mCamera.setParameters(params); 166 final Camera.Parameters params = mCamera.getParameters(); 169 final List<Camera.Size> sizes = params.getSupportedPreviewSizes(); 178 params.setPreviewSize(size.width, size.height); 187 params.setPreviewSize(size.width, size.height); 206 params.setPreviewSize(size.width, size.height); 209 params.set("orientation", portrait ? "portrait" : "landscape"); 210 mCamera.setParameters(params); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
H A D | MoreSuggestions.java | 44 MoreSuggestions(final MoreSuggestionsParam params, final SuggestedWords suggestedWords) { argument 45 super(params); 203 final MoreSuggestionsParam params = mParams; 205 final int x = params.getX(index); 206 final int y = params.getY(index); 207 final int width = params.getWidth(index); 212 params, word, info, KeyboardIconsSet.ICON_UNDEFINED, indexInMoreSuggestions, 213 null /* outputText */, x, y, width, params.mDefaultRowHeight, 215 params.markAsEdgeKey(key, index); 216 params 232 Divider(final KeyboardParams params, final Drawable icon, final int x, final int y, final int width, final int height) argument [all...] |
/packages/apps/Email/tests/src/com/android/email/ |
H A D | MessageListContextTests.java | 43 SearchParams params = new SearchParams(mailboxId, "search terms"); 44 MessageListContext original = MessageListContext.forSearch(accountId, mailboxId, params);
|
/packages/apps/Exchange/src/com/android/exchange/eas/ |
H A D | EasConnectionCache.java | 27 import org.apache.http.conn.params.ConnManagerPNames; 28 import org.apache.http.conn.params.ConnPerRoute; 30 import org.apache.http.params.BasicHttpParams; 31 import org.apache.http.params.HttpParams; 91 final HttpParams params = new BasicHttpParams(); 92 params.setIntParameter(ConnManagerPNames.MAX_TOTAL_CONNECTIONS, 25); 93 params.setParameter(ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE, sConnPerRoute); 95 EmailClientConnectionManager.newInstance(context, params, hostAuth);
|
/packages/apps/Mms/src/com/android/mms/ui/ |
H A D | AsyncDialog.java | 125 protected Void doInBackground(Runnable... params) { argument 126 if (params != null) { 128 for (int i = 0; i < params.length; i++) { 129 params[i].run();
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
H A D | WeakAsyncTask.java | 42 protected final Result doInBackground(Params... params) { argument 45 return this.doInBackground(target, params); 64 protected abstract Result doInBackground(WeakTarget target, Params... params); argument
|