Searched refs:high (Results 1 - 19 of 19) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DSparseLongArray.java226 int high = start + len, low = start - 1, guess;
228 while (high - low > 1) {
229 guess = (high + low) / 2;
234 high = guess;
237 if (high == start + len)
239 else if (a[high] == key)
240 return high;
242 return ~high;
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/include/
H A Dnjd.h60 #define CALCULATE_HINDO(freq, base, high, div) \
61 ((NJ_HINDO)((((freq) * ((high) - (base))) / (div)) + (base)))
H A Dnj_lib.h113 NJ_UINT16 high; member in struct:__anon57
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
H A DAlertServiceTest.java908 // Test when max notifications at high priority.
909 ArrayList<NotificationInfo> high = threeItemList;
912 AlertService.redistributeBuckets(high, medium, low, maxNotifications);
913 assertEquals(3, high.size());
918 high = new ArrayList<NotificationInfo>();
921 AlertService.redistributeBuckets(high, medium, low, maxNotifications);
922 assertEquals(0, high.size());
926 // Test when max notifications at high and medium priority
927 high = new ArrayList<NotificationInfo>(threeItemList);
929 medium.add(high
[all...]
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
H A DEndianUtils.java189 long high = data[ offset + 3 ] & 0xff;
191 return (high << 24) + (0xffffffffL & low);
225 long high =
230 return (high << 32) + (0xffffffffL & low);
378 long high = value4 & 0xff;
380 return (high << 24) + (0xffffffffL & low);
/packages/apps/Camera/jni/feature_mos/src/mosaic/
H A DDelaunay.cpp77 int low, high; local
80 high = hi;
82 if ( low < (high-2) ) {
85 maxx = sp[high];
87 spsorty( sp, low, high);
92 (0.5 + ((double)(high-low+1) * ((double)lowrows / (double)rows)));
94 build( split+1, high, &rdi, &rdo, (rows-lowrows) );
105 else if (low >= (high - 1)) { // two or one points
106 a = makeEdge(sp[low], sp[high]);
112 b = makeEdge(s2, (s3 = sp[high]));
354 spsortx(SitePointer *sp_in, int low, int high) argument
[all...]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DDelaunay.cpp77 int low, high; local
80 high = hi;
82 if ( low < (high-2) ) {
85 maxx = sp[high];
87 spsorty( sp, low, high);
92 (0.5 + ((double)(high-low+1) * ((double)lowrows / (double)rows)));
94 build( split+1, high, &rdi, &rdo, (rows-lowrows) );
105 else if (low >= (high - 1)) { // two or one points
106 a = makeEdge(sp[low], sp[high]);
112 b = makeEdge(s2, (s3 = sp[high]));
354 spsortx(SitePointer *sp_in, int low, int high) argument
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DWnnDictionary.java136 * {@code high} is the upper limit of frequency for the dictionary.
138 * Searched word's frequency in the dictionary is mapped to the range from {@code base} to {@code high}.
140 * The maximum value of {@code base} and {@code high} is 1000.
141 * To set a dictionary unused, specify -1 to {@code base} and {@code high}.
145 * @param high The maximum frequency for the dictionary
148 public int setDictionary(int index, int base, int high );
H A DOpenWnnDictionaryImplJni.java209 * @param high The maximum frequency or -1
212 public static final native int setDictionaryParameter( long work, int index, int base, int high );
H A DOpenWnnDictionaryImpl.java382 public int setDictionary(int index, int base, int high ) {
386 if( base < 0 || high < 0 || base > high
387 /* || base < OFFSET_FREQUENCY_OF_USER_DICTIONARY || high >= OFFSET_FREQUENCY_OF_LEARN_DICTIONARY */ ) {
390 mFrequencyOffsetOfUserDictionary = high;
394 if( base < 0 || high < 0 || base > high
398 mFrequencyOffsetOfLearnDictionary = high;
402 return OpenWnnDictionaryImplJni.setDictionaryParameter( this.mWnnWork, index, base, high );
/packages/apps/Dialer/src/com/android/dialer/voicemail/
H A DVoicemailPlaybackPresenter.java653 private static int constrain(int amount, int low, int high) { argument
654 return amount < low ? low : (amount > high ? high : amount);
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/
H A DOpenWnnDictionaryImplJni.c42 dicInfo->dic_freq[ NJ_MODE_TYPE_HENKAN ].high = 0;
341 (JNIEnv *env, jobject obj, jlong wnnWork, jint index, jint base, jint high)
347 ( high < -1 || high > 1000 ) ) {
355 if( base < 0 || high < 0 || base > high ) {
356 /* If -1 was specified to base or high, clear that dictionary information structure */
357 /* If base is larger than high, clear that dictionary information structure */
366 work->dicSet.dic[ index ].dic_freq[ NJ_MODE_TYPE_HENKAN ].high = high;
340 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setDictionaryParameter(JNIEnv *env, jobject obj, jlong wnnWork, jint index, jint base, jint high) argument
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DCameraSettings.java536 CamcorderProfile high = CamcorderProfile.get(
540 if (high.videoFrameHeight * high.videoFrameWidth >
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
H A DScrollController.java240 /** set low bound, high bound and index for the item */
241 final public void setValue(int index, int low, int high) { argument
244 mHigh = high;
245 mCenter = (low + high) / 2;
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
H A Dndfdic.c133 loctset->dic_freq.high, YOMINASI_DIC_FREQ_DIV);
349 loctset->dic_freq.high, YOMINASI_DIC_FREQ_DIV);
H A Dndbdic.c990 loctset->dic_freq.high, COMP_DIC_FREQ_DIV);
1040 loctset->dic_freq.high, COMP_DIC_FREQ_DIV);
1133 loctset->dic_freq.high, COMP_DIC_FREQ_DIV);
1170 loctset->dic_freq.high, COMP_DIC_FREQ_DIV);
1382 loctset->dic_freq.high, COMP_DIC_FREQ_DIV);
1964 loctset->dic_freq.high, COMP_DIC_FREQ_DIV);
2496 loctset->dic_freq.high, COMP_DIC_FREQ_DIV);
2540 loctset->dic_freq.high, COMP_DIC_FREQ_DIV);
2711 loctset->dic_freq.high, COMP_DIC_FREQ_DIV);
2787 hindo = CALCULATE_HINDO(hindo, loctset->dic_freq.base, loctset->dic_freq.high, COMP_DIC_FREQ_DI
[all...]
H A Dndapi.c71 (dicinfo->dic_freq[NJ_MODE_TYPE_HENKAN].high > DIC_FREQ_HIGH) ) {
795 > cursor->cond.ds->dic[cnt].dic_freq[NJ_MODE_TYPE_HENKAN].high)) {
872 loctset->dic_freq.high = 0;
H A Dndldic.c1673 hindo = CALCULATE_HINDO(freq, dic_freq->base, dic_freq->high, (max-1));
1676 hindo = (NJ_INT16)dic_freq->high;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DGeometryMathUtils.java98 public static float clamp(float i, float low, float high) { argument
99 return Math.max(Math.min(i, high), low);

Completed in 523 milliseconds