/packages/apps/Gallery2/jni/filters/ |
D | geometry.c | 20 __inline__ void flipVertical(char * source, int srcWidth, int srcHeight, char * destination, int ds… in flipVertical() argument 30 memcpy(destination + temp - i, source + i, bytes_to_copy); in flipVertical() 34 __inline__ void flipHorizontal(char * source, int srcWidth, int srcHeight, char * destination, int … in flipHorizontal() argument 46 memcpy(destination + temp - j, source + i + j, cpy_bytes); in flipHorizontal() 51 __inline__ void flip_fun(int flip, char * source, int srcWidth, int srcHeight, char * destination, … in flip_fun() argument 57 flipHorizontal(source, srcWidth, srcHeight, temp, dstWidth, dstHeight); in flip_fun() 63 flipHorizontal(source, srcWidth, srcHeight, destination, dstWidth, dstHeight); in flip_fun() 67 flipVertical(source, srcWidth, srcHeight, destination, dstWidth, dstHeight); in flip_fun() 73 __inline__ void rotate90(char * source, int srcWidth, int srcHeight, char * destination, int dstWid… in rotate90() argument 84 memcpy(destination + column_disp + row_disp , source + j * srcWidth + i, cpy_bytes); in rotate90() [all …]
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | Sources.java | 113 for (ContactsSource source : sources) { in Sources() 114 addSource(source); in Sources() 118 protected void addSource(ContactsSource source) { in addSource() argument 119 mSources.put(source.accountType, source); in addSource() 120 mKnownPackages.add(source.resPackageName); in addSource() 160 for (ContactsSource source : mSources.values()) { in invalidateCache() 161 if (TextUtils.equals(packageName, source.resPackageName)) { in invalidateCache() 163 source.invalidateCache(); in invalidateCache() 170 for (ContactsSource source : mSources.values()) { in invalidateAllCache() 171 source.invalidateCache(); in invalidateAllCache() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SourceShortcutRefresher.java | 50 Source source = shortcut.getSuggestionSource(); in refresh() local 51 if (source == null) { in refresh() 55 if (shouldRefresh(source, shortcutId) && !isRefreshing(source, shortcutId)) { in refresh() 60 markShortcutRefreshing(source, shortcutId); in refresh() 63 source, shortcutId, extraData, listener); in refresh() 71 public boolean shouldRefresh(Source source, String shortcutId) { in shouldRefresh() argument 72 return source != null && shortcutId != null in shouldRefresh() 73 && !mRefreshed.contains(makeKey(source, shortcutId)); in shouldRefresh() 76 public boolean isRefreshing(Source source, String shortcutId) { in isRefreshing() argument 77 return source != null && shortcutId != null in isRefreshing() [all …]
|
D | SearchableSources.java | 127 SearchableSource source = createSearchableSource(searchable); in addSearchableSources() local 128 if (source != null) { in addSearchableSources() 129 if (DBG) Log.d(TAG, "Created source " + source); in addSearchableSources() 130 addSource(source); in addSearchableSources() 135 protected void addSource(Source source) { in addSource() argument 136 mSources.put(source.getName(), source); in addSource() local 156 SearchableSource source = createSearchableSource(info); in createSourceFor() local 157 if (DBG) Log.d(TAG, "SearchableSource for " + component + ": " + source); in createSourceFor() 158 return source; in createSourceFor()
|
D | MultiSourceCorpus.java | 51 for (Source source : sources) { in MultiSourceCorpus() 52 addSource(source); in MultiSourceCorpus() 57 protected void addSource(Source source) { in addSource() argument 58 if (source != null) { in addSource() 59 mSources.add(source); in addSource() 143 for (Source source : sources) { in getSuggestions() 145 source, null, consumer, onlySource); in getSuggestions()
|
D | ShortcutRepositoryImplLog.java | 70 Shortcuts.shortcut_id.name() + "=? AND " + Shortcuts.source.name() + "=?"; 122 Shortcuts.source.fullName, 281 public void updateShortcut(Source source, String shortcutId, SuggestionCursor refreshed) { in updateShortcut() argument 282 refreshShortcut(source, shortcutId, refreshed); in updateShortcut() 332 for (Source source : corpus.getSources()) { in getShortcutsForQuery() 333 if (DBG) Log.d(TAG, "\t" + source.getName()); in getShortcutsForQuery() 334 allowedSources.put(source.getName(), source); in getShortcutsForQuery() local 343 void refreshShortcut(Source source, final String shortcutId, in refreshShortcut() argument 345 if (source == null) throw new NullPointerException("source"); in refreshShortcut() 348 final String[] whereArgs = { shortcutId, source.getName() }; in refreshShortcut() [all …]
|
D | CursorBackedSourceResult.java | 28 public CursorBackedSourceResult(Source source, String userQuery) { in CursorBackedSourceResult() argument 29 this(source, userQuery, null); in CursorBackedSourceResult() 32 public CursorBackedSourceResult(Source source, String userQuery, Cursor cursor) { in CursorBackedSourceResult() argument 34 mSource = source; in CursorBackedSourceResult()
|
D | ShortcutPromoter.java | 47 Source source = shortcuts.getSuggestionSource(); in promoteShortcuts() local 48 if (source != null && accept(shortcuts)) { in promoteShortcuts() 49 int prevCount = sourceShortcutCounts.add(source, 1); in promoteShortcuts() 50 int maxShortcuts = source.getMaxShortcuts(getConfig()); in promoteShortcuts()
|
D | SearchableCorpusFactory.java | 97 for (Source source : sources.getSources()) { in addSingleSourceCorpora() 98 if (!claimedSources.contains(source)) { in addSingleSourceCorpora() 99 addCorpus(corpora, createSingleSourceCorpus(source)); in addSingleSourceCorpora() 128 protected Corpus createSingleSourceCorpus(Source source) { in createSingleSourceCorpus() argument 129 if (!source.canRead()) return null; in createSingleSourceCorpus() 130 return new SingleSourceCorpus(mContext, mConfig, source); in createSingleSourceCorpus()
|
D | EventLogTags.logtags | 11 # - through source selector 15 # - source selector in in-app search dialog 20 # @param search_source name of the initially selected search source 21 # @param enabled_sources A pipe-separated list of source names, ordered by source ranking. 43 # @param search_source Name of the selected search source 51 # @param search_source Name of the selected search source
|
D | ShortcutRefresher.java | 34 void onShortcutRefreshed(Source source, String shortcutId, in onShortcutRefreshed() argument 49 boolean shouldRefresh(Source source, String shortcutId); in shouldRefresh() argument 54 public void markShortcutRefreshed(Source source, String shortcutId); in markShortcutRefreshed() argument
|
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
D | db_utilities_indexing.cpp | 36 void db_LeanPartitionOnPivot(double pivot,double *dest,const double *source,long first,long last,lo… in db_LeanPartitionOnPivot() argument 44 s_point=source+first; in db_LeanPartitionOnPivot() 45 s_top=source+last; in db_LeanPartitionOnPivot() 68 const double *source; in db_LeanQuickSelect() local 73 source=s; in db_LeanQuickSelect() 78 pivot=db_TripleMedian(source[first],source[last],source[(first+last)/2]); in db_LeanQuickSelect() 79 db_LeanPartitionOnPivot(pivot,dest,source,first,last,&first_equal,&last_equal); in db_LeanQuickSelect() 92 source=tempB; in db_LeanQuickSelect() 95 pivot=db_TripleMedian(source[first],source[last],source[(first+last)/2]); in db_LeanQuickSelect()
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_utilities_indexing.cpp | 36 void db_LeanPartitionOnPivot(double pivot,double *dest,const double *source,long first,long last,lo… in db_LeanPartitionOnPivot() argument 44 s_point=source+first; in db_LeanPartitionOnPivot() 45 s_top=source+last; in db_LeanPartitionOnPivot() 68 const double *source; in db_LeanQuickSelect() local 73 source=s; in db_LeanQuickSelect() 78 pivot=db_TripleMedian(source[first],source[last],source[(first+last)/2]); in db_LeanQuickSelect() 79 db_LeanPartitionOnPivot(pivot,dest,source,first,last,&first_equal,&last_equal); in db_LeanQuickSelect() 92 source=tempB; in db_LeanQuickSelect() 95 pivot=db_TripleMedian(source[first],source[last],source[(first+last)/2]); in db_LeanQuickSelect()
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | RawContactDeltaTests.java | 93 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesNone() local 97 final RawContactDelta merged = RawContactDelta.mergeAfter(dest, source); in testParcelChangesNone() 98 assertEquals("Unexpected change when merging", source, merged); in testParcelChangesNone() 103 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesInsert() local 111 source.addEntry(ValuesDelta.fromAfter(phone)); in testParcelChangesInsert() 114 final RawContactDelta merged = RawContactDelta.mergeAfter(dest, source); in testParcelChangesInsert() 115 assertEquals("Unexpected change when merging", source, merged); in testParcelChangesInsert() 121 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesUpdate() local 124 final ValuesDelta child = source.getEntry(TEST_PHONE_ID); in testParcelChangesUpdate() 128 final RawContactDelta merged = RawContactDelta.mergeAfter(dest, source); in testParcelChangesUpdate() [all …]
|
/packages/apps/Settings/tests/src/com/android/settings/bluetooth/ |
D | Utf8ByteLengthFilterTest.java | 48 CharSequence source; in testFilter() local 56 source = "abc"; in testFilter() 60 dest.insert(1, source); in testFilter() 64 dest.replace(5, 8, source); in testFilter() 68 dest.insert(2, source); in testFilter() 79 source = "\u60a8\u597d"; // 2 Chinese chars == 6 bytes in UTF-8 in testFilter() 80 dest.replace(8, 10, source); in testFilter() 83 dest.replace(0, 1, source); in testFilter() 87 dest.replace(0, 4, source); in testFilter() 91 source = "\u00a3\u00a5"; // 2 Latin-1 chars == 4 bytes in UTF-8 in testFilter() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | DataManager.java | 132 for (MediaSource source : mSourceMap.values()) { in initializeSourceMap() 133 source.resume(); in initializeSourceMap() 152 void addSource(MediaSource source) { in addSource() argument 153 if (source == null) return; in addSource() 154 mSourceMap.put(source.getPrefix(), source); in addSource() 173 MediaSource source = mSourceMap.get(path.getPrefix()); in getMediaObject() 174 if (source == null) { in getMediaObject() 180 MediaObject object = source.createMediaObject(path); in getMediaObject() 240 MediaSource source = mSourceMap.get(prefix); in mapMediaItems() local 241 source.mapMediaItems(entry.getValue(), consumer); in mapMediaItems() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactsRequest.java | 128 public ContactsRequest createFromParcel(Parcel source) { 131 request.mValid = source.readInt() != 0; 132 request.mActionCode = source.readInt(); 133 request.mRedirectIntent = source.readParcelable(classLoader); 134 request.mTitle = source.readCharSequence(); 135 request.mSearchMode = source.readInt() != 0; 136 request.mQueryString = source.readString(); 137 request.mIncludeProfile = source.readInt() != 0; 138 request.mLegacyCompatibilityMode = source.readInt() != 0; 139 request.mDirectorySearchEnabled = source.readInt() != 0; [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
D | DefaultSuggestionView.java | 75 protected String getFallbackIconId(Source source) { in onFinishInflate() 76 return source.getSourceIconUri().toString(); in onFinishInflate() 79 protected Drawable getFallbackIcon(Source source) { in onFinishInflate() 80 return source.getSourceIcon(); in onFinishInflate() 178 public void set(final Source source, final String sourceIconId) { in set() argument 182 Uri iconUri = source.getIconUri(sourceIconId); in set() 187 NowOrLater<Drawable> icon = source.getIcon(sourceIconId); in set() 190 handleNewDrawable(icon.getNow(), uniqueIconId, source); in set() local 203 handleNewDrawable(icon, uniqueIconId, source); in set() 212 handleNewDrawable(null, null, source); in set() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | WordComposer.java | 67 public WordComposer(WordComposer source) { in WordComposer() argument 68 mPrimaryKeyCodes = Arrays.copyOf(source.mPrimaryKeyCodes, source.mPrimaryKeyCodes.length); in WordComposer() 69 mTypedWord = new StringBuilder(source.mTypedWord); in WordComposer() 70 mInputPointers.copy(source.mInputPointers); in WordComposer() 71 mCapsCount = source.mCapsCount; in WordComposer() 72 mDigitsCount = source.mDigitsCount; in WordComposer() 73 mIsFirstCharCapitalized = source.mIsFirstCharCapitalized; in WordComposer() 74 mCapitalizedMode = source.mCapitalizedMode; in WordComposer() 75 mTrailingSingleQuotesCount = source.mTrailingSingleQuotesCount; in WordComposer() 76 mIsResumed = source.mIsResumed; in WordComposer() [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | Util.java | 151 Bitmap source, in transform() argument 156 int deltaX = source.getWidth() - targetWidth; in transform() 157 int deltaY = source.getHeight() - targetHeight; in transform() 174 deltaXHalf + Math.min(targetWidth, source.getWidth()), in transform() 175 deltaYHalf + Math.min(targetHeight, source.getHeight())); in transform() 183 c.drawBitmap(source, src, dst, null); in transform() 185 source.recycle(); in transform() 189 float bitmapWidthF = source.getWidth(); in transform() 190 float bitmapHeightF = source.getHeight(); in transform() 214 b1 = Bitmap.createBitmap(source, 0, 0, in transform() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/ |
D | ImagePreset.java | 63 public ImagePreset(ImagePreset source, String historyName) { in ImagePreset() argument 64 this(source); in ImagePreset() 70 public ImagePreset(ImagePreset source) { in ImagePreset() argument 72 if (source.mImageBorder != null) { in ImagePreset() 73 mImageBorder = source.mImageBorder.clone(); in ImagePreset() 75 for (int i = 0; i < source.mFilters.size(); i++) { in ImagePreset() 76 ImageFilter filter = source.mFilters.elementAt(i).clone(); in ImagePreset() 83 mName = source.name(); in ImagePreset() 84 mHistoryName = source.name(); in ImagePreset() 85 mIsFxPreset = source.isFx(); in ImagePreset() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GLCanvasImpl.java | 386 public void drawTexture(BasicTexture texture, RectF source, RectF target) { in drawTexture() argument 390 mDrawTextureSourceRect.set(source); in drawTexture() 392 source = mDrawTextureSourceRect; in drawTexture() 398 convertCoordinate(source, target, texture); in drawTexture() 399 setTextureCoords(source); in drawTexture() 418 private static void convertCoordinate(RectF source, RectF target, in convertCoordinate() argument 426 source.left /= texWidth; in convertCoordinate() 427 source.right /= texWidth; in convertCoordinate() 428 source.top /= texHeight; in convertCoordinate() 429 source.bottom /= texHeight; in convertCoordinate() [all …]
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | MockCorpus.java | 45 public MockCorpus(Source source) { in MockCorpus() argument 46 this(source, true); in MockCorpus() 49 public MockCorpus(Source source, boolean defaultEnabled) { in MockCorpus() argument 50 mName = "corpus_" + source.getName(); in MockCorpus() 51 mSource = source; in MockCorpus()
|
D | MockCorpora.java | 72 public Corpus getCorpusForSource(Source source) { in getCorpusForSource() argument 75 if (corpusSource.equals(source)) { in getCorpusForSource() 93 for (Source source : corpus.getSources()) { in getSource() 94 if (source.getName().equals(name)) { in getSource() 95 return source; in getSource()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | Utf8ByteLengthFilter.java | 47 public CharSequence filter(CharSequence source, int start, int end, in filter() argument 52 char c = source.charAt(i); in filter() 72 char c = source.charAt(i); in filter() 75 return source.subSequence(start, i); in filter()
|