Home
last modified time | relevance | path

Searched refs:source (Results 1 – 25 of 208) sorted by relevance

123456789

/packages/apps/Contacts/tests/src/com/android/contacts/
DRawContactDeltaTests.java93 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 …]
DRawContactModifierTests.java207 final AccountType source = getAccountType(); in testValidTypes() local
208 final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testValidTypes()
252 final AccountType source = getAccountType(); in testCanInsert() local
253 final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testCanInsert()
281 final AccountType source = getAccountType(); in testBestValidType() local
282 final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testBestValidType()
317 final AccountType source = getAccountType(); in testIsEmptyEmpty() local
318 final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testIsEmptyEmpty()
328 final AccountType source = getAccountType(); in testIsEmptyDirectFields() local
329 final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testIsEmptyDirectFields()
[all …]
/packages/apps/Gallery2/jni/filters/
Dgeometry.c20 __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/
DSources.java113 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/Gallery2/src/com/android/gallery3d/data/
DDataManager.java130 for (MediaSource source : mSourceMap.values()) { in initializeSourceMap()
131 source.resume(); in initializeSourceMap()
150 void addSource(MediaSource source) { in addSource() argument
151 if (source == null) return; in addSource()
152 mSourceMap.put(source.getPrefix(), source); in addSource()
171 MediaSource source = mSourceMap.get(path.getPrefix()); in getMediaObject()
172 if (source == null) { in getMediaObject()
178 MediaObject object = source.createMediaObject(path); in getMediaObject()
238 MediaSource source = mSourceMap.get(prefix); in mapMediaItems() local
239 source.mapMediaItems(entry.getValue(), consumer); in mapMediaItems()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSourceShortcutRefresher.java50 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 …]
DShortcutRepositoryImplLog.java70 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 …]
DSearchableSources.java127 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()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLES11Canvas.java389 public void drawTexture(BasicTexture texture, RectF source, RectF target) { in drawTexture() argument
393 mDrawTextureSourceRect.set(source); in drawTexture()
395 source = mDrawTextureSourceRect; in drawTexture()
401 convertCoordinate(source, target, texture); in drawTexture()
402 setTextureCoords(source); in drawTexture()
421 private static void convertCoordinate(RectF source, RectF target, in convertCoordinate() argument
429 source.left /= texWidth; in convertCoordinate()
430 source.right /= texWidth; in convertCoordinate()
431 source.top /= texHeight; in convertCoordinate()
432 source.bottom /= texHeight; in convertCoordinate()
[all …]
DGLES20Canvas.java607 public void drawTexture(BasicTexture texture, RectF source, RectF target) { in drawTexture() argument
611 mTempSourceRect.set(source); in drawTexture()
628 private void drawTextureRect(BasicTexture texture, RectF source, RectF target) { in drawTextureRect() argument
629 setTextureMatrix(source); in drawTextureRect()
633 private void setTextureMatrix(RectF source) { in setTextureMatrix() argument
634 mTempTextureMatrix[0] = source.width(); in setTextureMatrix()
635 mTempTextureMatrix[5] = source.height(); in setTextureMatrix()
636 mTempTextureMatrix[12] = source.left; in setTextureMatrix()
637 mTempTextureMatrix[13] = source.top; in setTextureMatrix()
643 private static void convertCoordinate(RectF source, RectF target, BasicTexture texture) { in convertCoordinate() argument
[all …]
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageRenderer.java180 private static int calulateLevelCount(TileSource source) { in calulateLevelCount() argument
182 int maxDim = Math.max(source.getImageWidth(), source.getImageHeight()); in calulateLevelCount()
183 int t = source.getTileSize(); in calulateLevelCount()
557 RectF source = mSourceRect; in drawTile() local
560 source.set(0, 0, mTileSize, mTileSize); in drawTile()
577 drawTile(tile, canvas, source, target); in drawTile()
582 Tile tile, GLCanvas canvas, RectF source, RectF target) { in drawTile() argument
585 canvas.drawTexture(tile, source, target); in drawTile()
593 source.left /= 2f; in drawTile()
594 source.right /= 2f; in drawTile()
[all …]
DTiledImageView.java48 TileSource source; field in TiledImageView.ImageRendererWrapper
82 public void setTileSource(TileSource source) { in setTileSource() argument
89 renderer.source = source; in setTileSource()
90 renderer.centerX = renderer.source.getImageWidth() / 2; in setTileSource()
91 renderer.centerY = renderer.source.getImageHeight() / 2; in setTileSource()
167 (float) getWidth() / (float) renderer.source.getImageWidth(), in updateScaleIfNecessaryLocked()
168 (float) getHeight() / (float) renderer.source.getImageHeight()); in updateScaleIfNecessaryLocked()
191 renderer.image.setModel(renderer.source, renderer.rotation); in onSurfaceCreated()
208 renderer.image.setModel(renderer.source, renderer.rotation); in onDrawFrame()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DDefaultSuggestionView.java75 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/apps/Gallery2/jni_mosaic/feature_stab/db_vlvm/
Ddb_utilities_indexing.cpp36 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/
Ddb_utilities_indexing.cpp36 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/Camera/jni/feature_stab/db_vlvm/
Ddb_utilities_indexing.cpp36 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/Settings/tests/src/com/android/settings/bluetooth/
DUtf8ByteLengthFilterTest.java48 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/Gallery/src/com/android/camera/
DUtil.java151 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DWordComposer.java78 public WordComposer(final WordComposer source) { in WordComposer() argument
79 mPrimaryKeyCodes = Arrays.copyOf(source.mPrimaryKeyCodes, source.mPrimaryKeyCodes.length); in WordComposer()
80 mTypedWord = new StringBuilder(source.mTypedWord); in WordComposer()
81 mInputPointers.copy(source.mInputPointers); in WordComposer()
82 mCapsCount = source.mCapsCount; in WordComposer()
83 mDigitsCount = source.mDigitsCount; in WordComposer()
84 mIsFirstCharCapitalized = source.mIsFirstCharCapitalized; in WordComposer()
85 mCapitalizedMode = source.mCapitalizedMode; in WordComposer()
86 mTrailingSingleQuotesCount = source.mTrailingSingleQuotesCount; in WordComposer()
87 mIsResumed = source.mIsResumed; in WordComposer()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DTileImageView.java592 RectF source = mSourceRect; in drawTile() local
595 source.set(0, 0, sTileSize, sTileSize); in drawTile()
612 if (drawTile(tile, canvas, source, target)) return; in drawTile()
618 source.set(tx * scaleX, ty * scaleY, (tx + size) * scaleX, in drawTile()
620 mScreenNail.draw(canvas, source, target); in drawTile()
625 Tile tile, GLCanvas canvas, RectF source, RectF target) { in drawTile() argument
628 canvas.drawTexture(tile, source, target); in drawTile()
636 source.left /= 2f; in drawTile()
637 source.right /= 2f; in drawTile()
639 source.left = (sTileSize + source.left) / 2f; in drawTile()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DHanziToPinyin.java53 public Token(int type, String source, String target) { in Token() argument
55 this.source = source; in Token()
66 public String source; field in HanziToPinyin.Token
98 token.source = Character.toString(character); in tokenize()
103 token.target = token.source; in tokenize()
110 token.target = mAsciiTransliterator == null ? token.source : in tokenize()
111 mAsciiTransliterator.transliterate(token.source); in tokenize()
116 token.target = mPinyinTransliterator.transliterate(token.source); in tokenize()
118 TextUtils.equals(token.source, token.target)) { in tokenize()
120 token.target = token.source; in tokenize()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactsRequest.java128 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/Gallery2/src/com/android/gallery3d/filtershow/presets/
DImagePreset.java73 public ImagePreset(ImagePreset source, String historyName) { in ImagePreset() argument
74 this(source); in ImagePreset()
80 public ImagePreset(ImagePreset source) { in ImagePreset() argument
82 if (source.mBorder != null) { in ImagePreset()
83 mBorder = source.mBorder.clone(); in ImagePreset()
85 for (int i = 0; i < source.mFilters.size(); i++) { in ImagePreset()
86 FilterRepresentation representation = source.mFilters.elementAt(i).clone(); in ImagePreset()
92 mName = source.name(); in ImagePreset()
93 mHistoryName = source.name(); in ImagePreset()
94 mIsFxPreset = source.isFx(); in ImagePreset()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DUtils.java219 float source, float target, float progress) { in interpolateAngle() argument
223 float diff = target - source; in interpolateAngle()
227 float result = source + diff * progress; in interpolateAngle()
232 float source, float target, float progress) { in interpolateScale() argument
233 return source + progress * (target - source); in interpolateScale()
319 public static String[] copyOf(String[] source, int newSize) { in copyOf() argument
321 newSize = Math.min(source.length, newSize); in copyOf()
322 System.arraycopy(source, 0, result, 0, newSize); in copyOf()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DRenderingRequest.java48 …public static void post(Bitmap source, ImagePreset preset, int type, RenderingRequestCaller caller… in post() argument
49 RenderingRequest.post(source, preset, type, caller, null, null); in post()
52 public static void post(Bitmap source, ImagePreset preset, int type, in post() argument
54 if (((type != PARTIAL_RENDERING && type != HIGHRES_RENDERING) && source == null) in post()
56 Log.v(LOGTAG, "something null: source: " + source in post()
68 bitmap = pipeline.renderGeometryIcon(source, preset); in post()
70 bitmap = Bitmap.createBitmap(source.getWidth(), source.getHeight(), mConfig); in post()

123456789