Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 110) sorted by relevance

12345

/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DPyramid.cpp116 ImageTypeShort base; in BorderSpread() local
123 base = pyr->ptr[-h] - off; in BorderSpread()
126 for (h = height; h--; base += pyr->pitch) { in BorderSpread()
128 base[-1 - w] = base[0]; in BorderSpread()
130 base[off2 + w + 1] = base[off2]; in BorderSpread()
136 base = pyr->ptr[top - pyr->border] - pyr->border; in BorderSpread()
137 for (h = top; h--; base -= pyr->pitch) { in BorderSpread()
138 memcpy(base - pyr->pitch, base, pyr->pitch * sizeof(short)); in BorderSpread()
141 base = pyr->ptr[pyr->height + pyr->border - bot] - pyr->border; in BorderSpread()
142 for (h = bot; h--; base += pyr->pitch) { in BorderSpread()
[all …]
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DPyramid.cpp116 ImageTypeShort base; in BorderSpread() local
123 base = pyr->ptr[-h] - off; in BorderSpread()
126 for (h = height; h--; base += pyr->pitch) { in BorderSpread()
128 base[-1 - w] = base[0]; in BorderSpread()
130 base[off2 + w + 1] = base[off2]; in BorderSpread()
136 base = pyr->ptr[top - pyr->border] - pyr->border; in BorderSpread()
137 for (h = top; h--; base -= pyr->pitch) { in BorderSpread()
138 memcpy(base - pyr->pitch, base, pyr->pitch * sizeof(short)); in BorderSpread()
141 base = pyr->ptr[pyr->height + pyr->border - bot] - pyr->border; in BorderSpread()
142 for (h = bot; h--; base += pyr->pitch) { in BorderSpread()
[all …]
/packages/apps/Gallery2/jni_mosaic/feature_mos/src/mosaic/
DPyramid.cpp116 ImageTypeShort base; in BorderSpread() local
123 base = pyr->ptr[-h] - off; in BorderSpread()
126 for (h = height; h--; base += pyr->pitch) { in BorderSpread()
128 base[-1 - w] = base[0]; in BorderSpread()
130 base[off2 + w + 1] = base[off2]; in BorderSpread()
136 base = pyr->ptr[top - pyr->border] - pyr->border; in BorderSpread()
137 for (h = top; h--; base -= pyr->pitch) { in BorderSpread()
138 memcpy(base - pyr->pitch, base, pyr->pitch * sizeof(short)); in BorderSpread()
141 base = pyr->ptr[pyr->height + pyr->border - bot] - pyr->border; in BorderSpread()
142 for (h = bot; h--; base += pyr->pitch) { in BorderSpread()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DFilterUtils.java176 public static String newFilterPath(String base, int filterType) { in newFilterPath() argument
186 return base; in newFilterPath()
189 return "/filter/mediatype/" + mediaType + "/{" + base + "}"; in newFilterPath()
193 public static String newClusterPath(String base, int clusterType) { in newClusterPath() argument
212 return base; in newClusterPath()
215 return "/cluster/{" + base + "}/" + kind; in newClusterPath()
219 public static String switchClusterPath(String base, int clusterType) { in switchClusterPath() argument
220 return newClusterPath(removeOneClusterFromPath(base), clusterType); in switchClusterPath()
224 private static String removeOneClusterFromPath(String base) { in removeOneClusterFromPath() argument
226 return removeOneClusterFromPath(base, done); in removeOneClusterFromPath()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/
Dcorrection.h146 AK_FORCE_INLINE static void multiplyIntCapped(const int multiplier, int *base) { in multiplyIntCapped() argument
147 const int temp = *base; in multiplyIntCapped()
156 *base = 0; in multiplyIntCapped()
158 *base = TWO_31ST_DIV_2 >= temp ? temp << 1 : S_INT_MAX; in multiplyIntCapped()
164 *base = tempRetval >= temp ? tempRetval : S_INT_MAX; in multiplyIntCapped()
169 AK_FORCE_INLINE static int powerIntCapped(const int base, const int n) { in powerIntCapped() argument
171 if (base == 2) { in powerIntCapped()
174 int ret = base; in powerIntCapped()
175 for (int i = 1; i < n; ++i) multiplyIntCapped(base, &ret); in powerIntCapped()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppReceiveFileInfo.java111 File base = null; in generateFileInfo() local
116 base = new File(root + Constants.DEFAULT_STORE_SUBDIR); in generateFileInfo()
117 if (!base.isDirectory() && !base.mkdir()) { in generateFileInfo()
119 + base.getPath()); in generateFileInfo()
122 stat = new StatFs(base.getPath()); in generateFileInfo()
156 filename = base.getPath() + File.separator + filename; in generateFileInfo()
/packages/apps/Gallery/src/com/android/camera/gallery/
DBaseImageList.java179 Uri base = mBaseUri; in isChildImageUri() local
180 return Util.equals(base.getScheme(), uri.getScheme()) in isChildImageUri()
181 && Util.equals(base.getHost(), uri.getHost()) in isChildImageUri()
182 && Util.equals(base.getAuthority(), uri.getAuthority()) in isChildImageUri()
183 && Util.equals(base.getPath(), getPathWithoutId(uri)); in isChildImageUri()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java84 File base = null; in generateSaveFile() local
88 base = storageManager.locateDestinationDirectory(mimeType, destination, in generateSaveFile()
97 path = getFullPath(path, mimeType, destination, base); in generateSaveFile()
101 static String getFullPath(String filename, String mimeType, int destination, File base) in getFullPath() argument
127 if (base != null) { in getFullPath()
128 filename = base.getPath() + File.separator + filename; in getFullPath()
DStorageManager.java278 File base = new File(mExternalStorageDir.getPath() + Constants.DEFAULT_DL_SUBDIR); in locateDestinationDirectory() local
279 if (!base.isDirectory() && !base.mkdir()) { in locateDestinationDirectory()
283 "unable to create external downloads directory " + base.getPath()); in locateDestinationDirectory()
285 return base; in locateDestinationDirectory()
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/
DOpenWnnDictionaryImplJni.c41 dicInfo->dic_freq[ NJ_MODE_TYPE_HENKAN ].base = 0; in clearDictionaryStructure()
341 (JNIEnv *env, jobject obj, jlong wnnWork, jint index, jint base, jint high) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setDictionaryParameter() argument
346 ( base < -1 || base > 1000 ) || in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setDictionaryParameter()
355 if( base < 0 || high < 0 || base > high ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setDictionaryParameter()
365 work->dicSet.dic[ index ].dic_freq[ NJ_MODE_TYPE_HENKAN ].base = base; in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setDictionaryParameter()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DOpenWnnDictionaryImpl.java382 public int setDictionary(int index, int base, int high ) { in setDictionary() argument
386 if( base < 0 || high < 0 || base > high in setDictionary()
394 if( base < 0 || high < 0 || base > high in setDictionary()
402 … return OpenWnnDictionaryImplJni.setDictionaryParameter( this.mWnnWork, index, base, high ); in setDictionary()
DKeyboard.java851 static int getDimensionOrFraction(TypedArray a, int index, int base, int defValue) { in getDimensionOrFraction() argument
857 return Math.round(a.getFraction(index, base, base, defValue)); in getDimensionOrFraction()
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dndbdic.c989 loctset->cache_freq = CALCULATE_HINDO(hindo_max, loctset->dic_freq.base, in search_node()
1039 loctset->cache_freq = CALCULATE_HINDO(hindo, loctset->dic_freq.base, in bdic_search_data()
1132 hindo = CALCULATE_HINDO(hindo, loctset->dic_freq.base, in bdic_search_fore_data()
1169 loctset->cache_freq = CALCULATE_HINDO(hindo, loctset->dic_freq.base, in bdic_search_fore_data()
1381 word->stem.hindo = CALCULATE_HINDO(stem_set.hindo_jitu, loctset->dic_freq.base, in njd_b_get_word()
1963 loctset->cache_freq = CALCULATE_HINDO(hindo_max, loctset->dic_freq.base, in search_node2()
2495 loctset->cache_freq = CALCULATE_HINDO(hindo_max, loctset->dic_freq.base, in bdic_search_fore_data2()
2539 loctset->dic_freq.base, in bdic_search_fore_data2()
2710 loctset->cache_freq = CALCULATE_HINDO(hindo, loctset->dic_freq.base, in bdic_search_fore_data2()
2787 … hindo = CALCULATE_HINDO(hindo, loctset->dic_freq.base, loctset->dic_freq.high, COMP_DIC_FREQ_DIV); in bdic_get_next_data()
[all …]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/include/
Dnjd.h60 #define CALCULATE_HINDO(freq, base, high, div) \ argument
61 ((NJ_HINDO)((((freq) * ((high) - (base))) / (div)) + (base)))
/packages/apps/Launcher2/src/com/android/launcher2/
DSymmetricalLinearTween.java90 long base = mBase;
92 long diff = now-base;
107 long next = base + ((frame+1)*FRAME_TIME);
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
DSoundRecorder.java544 final int base = cur.getInt(0); in addToPlaylist() local
547 values.put(MediaStore.Audio.Playlists.Members.PLAY_ORDER, Integer.valueOf(base + audioId)); in addToPlaylist()
623 Uri base = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; in addToMediaDB() local
624 Log.d(TAG, "ContentURI: " + base); in addToMediaDB()
625 Uri result = resolver.insert(base, cv); in addToMediaDB()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DFilterDeleteSet.java133 ArrayList<MediaItem> base = mBaseSet.getMediaItem(start + i, count + (j - i)); in getMediaItem() local
139 base.remove(k); in getMediaItem()
141 return base; in getMediaItem()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DResourceUtils.java217 public static float getDimensionOrFraction(final TypedArray a, final int index, final int base, in getDimensionOrFraction() argument
224 return a.getFraction(index, base, base, defValue); in getDimensionOrFraction()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DGrantActivity.java203 final int base = pInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in keepNormalDangerousPermissions() local
204 if ((base != PermissionInfo.PROTECTION_NORMAL) in keepNormalDangerousPermissions()
205 && (base != PermissionInfo.PROTECTION_DANGEROUS)) { in keepNormalDangerousPermissions()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSearchableSource.java382 Uri base = getSuggestUriBase(searchable); in getSuggestions() local
383 if (base == null) return null; in getSuggestions()
384 Uri.Builder uriBuilder = base.buildUpon(); in getSuggestions()
/packages/apps/Exchange/tests/src/com/android/exchange/
DExchangeServiceTest.java30 public MyContext(Context base) { in MyContext() argument
31 super(base); in MyContext()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/
DExchangeServiceTest.java30 public MyContext(Context base) { in MyContext() argument
31 super(base); in MyContext()
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
DContactsMockContext.java41 public ContactsMockContext(Context base) { in ContactsMockContext() argument
42 super(base); in ContactsMockContext()
/packages/apps/Mms/src/com/android/mms/data/
DConversation.java1299 String base = uri.getSchemeSpecificPart(); in getRecipients() local
1300 int pos = base.indexOf('?'); in getRecipients()
1301 return (pos == -1) ? base : base.substring(0, pos); in getRecipients()
/packages/apps/Calculator/src/com/android/calculator2/
DHistoryAdapter.java74 String base = entry.getBase(); in getView() local
78 String res = mEval.evaluate(base); in getView()

12345