Searched refs:result (Results 1 - 25 of 200) sorted by relevance

12345678

/packages/apps/Camera/src/com/android/camera/
H A DIntArray.java38 public int[] toArray(int[] result) { argument
39 if (result == null || result.length < mSize) {
40 result = new int[mSize];
42 System.arraycopy(mData, 0, result, 0, mSize);
43 return result;
/packages/apps/Camera/tests/src/com/android/camera/
H A DStressTests.java39 TestSuite result = new TestSuite();
40 result.addTestSuite(SwitchPreview.class);
41 result.addTestSuite(ImageCapture.class);
42 result.addTestSuite(CameraLatency.class);
43 result.addTestSuite(CameraStartUp.class);
44 return result;
/packages/apps/Email/src/org/apache/commons/io/output/
H A DCountingOutputStream.java99 long result = getByteCount();
100 if (result > Integer.MAX_VALUE) {
101 throw new ArithmeticException("The byte count " + result + " is too large to be converted to an int");
103 return (int) result;
117 long result = resetByteCount();
118 if (result > Integer.MAX_VALUE) {
119 throw new ArithmeticException("The byte count " + result + " is too large to be converted to an int");
121 return (int) result;
129 * result in incorrect count for files over 2GB.
143 * result i
[all...]
/packages/apps/IM/src/com/android/im/app/
H A DMarkup.java39 SpannableString result;
42 result = (SpannableString) text;
44 result = new SpannableString(text);
47 Linkify.addLinks(result, Linkify.ALL);
48 applyEmoticons(result);
50 return result;
56 SpannableString result = null;
82 // Lazy-convert the result text to a SpannableString if we have to
83 if (result == null) {
85 result
[all...]
/packages/apps/Email/src/org/apache/commons/io/input/
H A DCountingInputStream.java120 long result = getByteCount();
121 if (result > Integer.MAX_VALUE) {
122 throw new ArithmeticException("The byte count " + result + " is too large to be converted to an int");
124 return (int) result;
138 long result = resetByteCount();
139 if (result > Integer.MAX_VALUE) {
140 throw new ArithmeticException("The byte count " + result + " is too large to be converted to an int");
142 return (int) result;
150 * result in incorrect count for files over 2GB.
164 * result i
[all...]
/packages/apps/Mms/src/com/android/mms/dom/smil/
H A DTimeImpl.java132 float result = 0;
139 result = parseFloat(clockValue, 2, true);
141 result = 1000*parseFloat(clockValue, 1, true);
143 result = 60000*parseFloat(clockValue, 3, true);
145 result = 3600000*parseFloat(clockValue, 1, true);
162 result = 3600000*(int)parseFloat(timeValues[0], 0, false);
171 result += 60000*minutes;
179 result += 60000*seconds;
185 return result;
211 float result;
[all...]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
H A Dneapi.c24 static NJ_INT16 set_previous_selection(NJ_CLASS *iwnn, NJ_RESULT *result);
25 static NJ_INT16 set_learn_word_info(NJ_CLASS *iwnn, NJ_LEARN_WORD_INFO *lword, NJ_RESULT *result);
70 NJ_EXTERN NJ_INT16 njx_get_candidate(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *buf, NJ_UINT16 buf_size) { argument
78 if (result == NULL) {
86 switch (NJ_GET_RESULT_OP(result->operation_id)) {
88 ret = njd_get_candidate(iwnn, result, buf, buf_size);
100 NJ_EXTERN NJ_INT16 njx_get_stroke(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *buf, NJ_UINT16 buf_size) { argument
108 if (result == NULL) {
116 switch (NJ_GET_RESULT_OP(result->operation_id)) {
118 ret = njd_get_stroke(iwnn, result, bu
130 set_previous_selection(NJ_CLASS *iwnn, NJ_RESULT *result) argument
150 set_learn_word_info(NJ_CLASS *iwnn, NJ_LEARN_WORD_INFO *lword, NJ_RESULT *result) argument
[all...]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSuggestionData.java25 * Holds data for each suggest item including the display data and how to launch the result.
206 int result = 1;
207 result = prime * result + ((mFormat == null) ? 0 : mFormat.hashCode());
208 result = prime * result + ((mIcon1 == null) ? 0 : mIcon1.hashCode());
209 result = prime * result + ((mIcon2 == null) ? 0 : mIcon2.hashCode());
210 result = prime * result
[all...]
H A DRankAwarePromoter.java49 for (CorpusResult result : suggestions) {
50 if (result.getCount() > 0) {
51 result.moveTo(0);
52 Corpus corpus = result.getCorpus();
54 defaultResults.add(result);
56 otherResults.add(result);
109 CorpusResult result = iter.next();
110 count += promote(result, stripeSize, promoted);
111 if (result.getPosition() == result
[all...]
H A DMultiSourceCorpus.java70 * Creates a corpus result object for a set of source results.
150 Result result = createResult(query, results, latency);
151 result.fill();
152 return result;
182 for (SourceResult result : getResults()) {
183 int count = result.getCount();
185 result.moveTo(i);
186 add(new SuggestionPosition(result));
202 for (SourceResult result : mResults) {
203 result
[all...]
/packages/apps/Email/src/org/apache/commons/io/comparator/
H A DLastModifiedFileComparator.java70 long result = file1.lastModified() - file2.lastModified();
71 if (result < 0) {
73 } else if (result > 0) {
/packages/apps/Gallery3D/src/com/cooliris/media/
H A DPair.java38 int result = 1;
39 result = PRIME * result + ((first == null) ? 0 : first.hashCode());
40 result = PRIME * result + ((second == null) ? 0 : second.hashCode());
41 return result;
H A DDeque.java94 E result = array[head];
95 if (result == null) {
100 return result;
106 E result = array[tail];
107 if (result == null) {
112 return result;
/packages/apps/Email/src/com/beetstra/jutf7/
H A DUTF7StyleCharsetDecoder.java81 CoderResult result = handleBase64(in, out, b);
82 if (result != null)
83 return result;
121 CoderResult result = null;
138 result = malformed(in);
141 return result;
166 * returns a result indicating to skip the last byte.
/packages/apps/Settings/src/com/android/settings/vpn/
H A DL2tpIpsecEditor.java59 String result = super.validate();
60 if (result == null) {
61 result = validate(mUserCertificate, R.string.vpn_a_user_certificate);
63 if (result == null) {
64 result = validate(mCaCertificate, R.string.vpn_a_ca_certificate);
66 return result;
/packages/apps/VoiceDialer/src/com/android/voicedialer/
H A DPhoneTypeChoiceRecognizerEngine.java56 for (int result = 0; result < mSrec.getResultCount() &&
57 intents.size() < RESULT_LIMIT; result++) {
60 String conf = mSrec.getResult(result, Recognizer.KEY_CONFIDENCE);
61 String literal = mSrec.getResult(result, Recognizer.KEY_LITERAL);
62 String semantic = mSrec.getResult(result, Recognizer.KEY_MEANING);
67 // we only pay attention to the first result.
/packages/apps/Settings/src/com/android/settings/wifi/
H A DAccessPoint.java63 private static int getSecurity(ScanResult result) { argument
64 if (result.capabilities.contains("WEP")) {
66 } else if (result.capabilities.contains("PSK")) {
68 } else if (result.capabilities.contains("EAP")) {
84 AccessPoint(Context context, ScanResult result) { argument
87 ssid = result.SSID;
88 security = getSecurity(result);
90 mRssi = result.level;
135 boolean update(ScanResult result) { argument
137 if (ssid.equals(result
[all...]
/packages/apps/Browser/tests/src/com/android/browser/
H A DJNIBindingsTestApp.java88 public synchronized void setWebKitResult(String result) { argument
89 mWebKitResult = result;
123 JsResult result) {
126 result.confirm();
136 JsResult result) {
140 result.confirm();
150 String defaultValue, JsPromptResult result) {
154 result.confirm(defaultValue);
218 Log.v(TAG, "WebKit result:");
H A DTestWebChromeClient.java105 JsResult result) {
106 return mWrappedClient.onJsAlert(view, url, message, result);
112 JsResult result) {
113 return mWrappedClient.onJsConfirm(view, url, message, result);
119 String defaultValue, JsPromptResult result) {
120 return mWrappedClient.onJsPrompt(view, url, message, defaultValue, result);
126 JsResult result) {
127 return mWrappedClient.onJsBeforeUnload(view, url, message, result);
104 onJsAlert(WebView view, String url, String message, JsResult result) argument
111 onJsConfirm(WebView view, String url, String message, JsResult result) argument
118 onJsPrompt(WebView view, String url, String message, String defaultValue, JsPromptResult result) argument
125 onJsBeforeUnload(WebView view, String url, String message, JsResult result) argument
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DSQLiteContentProvider.java84 Uri result = null;
90 result = insertInTransaction(uri, values);
91 if (result != null) {
101 result = insertInTransaction(uri, values);
102 if (result != null) {
106 return result;
116 Uri result = insertInTransaction(uri, values[i]);
117 if (result != null) {
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DSQLiteContentProvider.java89 Uri result = null;
95 result = insertInTransaction(uri, values);
96 if (result != null) {
106 result = insertInTransaction(uri, values);
107 if (result != null) {
111 return result;
121 Uri result = insertInTransaction(uri, values[i]);
122 if (result != null) {
/packages/apps/Camera/src/com/android/camera/gallery/
H A DImageList.java57 String[] result = new String[count + 1];
58 System.arraycopy(ACCEPTABLE_IMAGE_TYPES, 0, result, 0, count);
59 result[count] = mBucketId;
60 return result;
/packages/apps/Contacts/src/com/android/contacts/util/
H A DWeakAsyncTask.java53 protected final void onPostExecute(Result result) { argument
56 this.onPostExecute(target, result);
66 protected void onPostExecute(WeakTarget target, Result result) { argument
/packages/apps/Email/src/com/android/email/mail/
H A DStore.java106 // TODO cache result for performance - silly to keep reading the XML
108 StoreInfo result = getStoreInfo(R.xml.stores_product, scheme, context);
109 if (result == null) {
110 result = getStoreInfo(R.xml.stores, scheme, context);
112 return result;
125 StoreInfo result = new StoreInfo();
126 result.mScheme = xmlScheme;
127 result.mClassName = xml.getAttributeValue(null, "class");
128 result.mPushSupported = xml.getAttributeBooleanValue(
130 result
[all...]
/packages/apps/Email/src/com/android/email/mail/transport/
H A DSmtpSender.java132 String result = executeSimpleCommand("EHLO " + localHost);
143 if (result.contains("-STARTTLS") || result.contains(" STARTTLS")) {
150 result = executeSimpleCommand("EHLO " + localHost);
160 * result contains the results of the EHLO in concatenated form
162 boolean authLoginSupported = result.matches(".*AUTH.*LOGIN.*$");
163 boolean authPlainSupported = result.matches(".*AUTH.*PLAIN.*$");
268 String result = line;
272 result += line.substring(3);
275 if (result
[all...]

Completed in 2310 milliseconds

12345678