/packages/apps/Gallery2/jni/filters/ |
D | geometry.c | 22 static __inline__ void flipVertical(uint8_t * source, int srcWidth, int srcHeight, uint8_t * destin… in flipVertical() argument 33 memcpy(destination + temp - i, source + i, bytes_to_copy); in flipVertical() 37 static __inline__ void flipHorizontal(uint8_t * source, int srcWidth, int srcHeight, in flipHorizontal() argument 50 memcpy(destination + temp - j, source + i + j, cpy_bytes); in flipHorizontal() 55 static __inline__ void flip_fun(int flip, uint8_t * source, int srcWidth, int srcHeight, uint8_t * … in flip_fun() argument 61 flipHorizontal(source, srcWidth, srcHeight, temp, dstWidth, dstHeight); in flip_fun() 67 flipHorizontal(source, srcWidth, srcHeight, destination, dstWidth, dstHeight); in flip_fun() 71 flipVertical(source, srcWidth, srcHeight, destination, dstWidth, dstHeight); in flip_fun() 77 static __inline__ void rotate90(uint8_t * source, int srcWidth, int srcHeight, uint8_t * destinatio… in rotate90() argument 86 memcpy(destination + column_disp + row_disp , source + j * srcWidth + i, cpy_bytes); in rotate90() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | RawContactDeltaTests.java | 87 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesNone() local 91 final RawContactDelta merged = RawContactDelta.mergeAfter(dest, source); in testParcelChangesNone() 92 assertEquals("Unexpected change when merging", source, merged); in testParcelChangesNone() 97 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesInsert() local 105 source.addEntry(ValuesDelta.fromAfter(phone)); in testParcelChangesInsert() 108 final RawContactDelta merged = RawContactDelta.mergeAfter(dest, source); in testParcelChangesInsert() 109 assertEquals("Unexpected change when merging", source, merged); in testParcelChangesInsert() 115 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesUpdate() local 118 final ValuesDelta child = source.getEntry(TEST_PHONE_ID); in testParcelChangesUpdate() 122 final RawContactDelta merged = RawContactDelta.mergeAfter(dest, source); in testParcelChangesUpdate() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | Utf8ByteLengthFilterTest.java | 35 CharSequence source = "1"; // 1 byte. in filter_belowMaxBytes_returnsNull() local 40 CharSequence filtered = lengthFilter.filter(source, /* start= */ 0, source.length(), dest, in filter_belowMaxBytes_returnsNull() 49 CharSequence source = "1"; // 1 byte. in filter_maxBytes_returnsNull() local 54 CharSequence filtered = lengthFilter.filter(source, /* start= */ 0, source.length(), dest, in filter_maxBytes_returnsNull() 63 CharSequence source = "12"; // 2 bytes. in filter_aboveMaxBytes_returnsFilteredSource() local 68 CharSequence filtered = lengthFilter.filter(source, /* start= */ 0, source.length(), dest, in filter_aboveMaxBytes_returnsFilteredSource() 78 CharSequence source; in exerciseFilter() local 83 source = "abc"; in exerciseFilter() 87 dest.insert(1, source); in exerciseFilter() 91 dest.replace(5, 8, source); in exerciseFilter() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
D | pointer.h | 106 …explicit GenericPointer(const Ch* source, Allocator* allocator = 0) : allocator_(allocator), ownAl… in allocator_() 107 Parse(source, internal::StrLen(source)); in allocator_() 117 …explicit GenericPointer(const std::basic_string<Ch>& source, Allocator* allocator = 0) : allocator… in allocator_() 118 Parse(source.c_str(), source.size()); in allocator_() 129 …GenericPointer(const Ch* source, size_t length, Allocator* allocator = 0) : allocator_(allocator),… in allocator_() 130 Parse(source, length); in allocator_() 767 void Parse(const Ch* source, size_t length) { in Parse() argument 768 RAPIDJSON_ASSERT(source != NULL); in Parse() 778 for (const Ch* s = source; s != source + length; s++) in Parse() 788 if (source[i] == '#') { in Parse() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | DataManager.java | 130 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/Gallery2/src/com/android/photos/views/ |
D | TiledImageView.java | 67 TileSource source; field in TiledImageView.ImageRendererWrapper 152 public void setTileSource(TileSource source, Runnable isReadyCallback) { in setTileSource() argument 157 mRenderer.source = source; in setTileSource() 159 mRenderer.centerX = source != null ? source.getImageWidth() / 2 : 0; in setTileSource() 160 mRenderer.centerY = source != null ? source.getImageHeight() / 2 : 0; in setTileSource() 161 mRenderer.rotation = source != null ? source.getRotation() : 0; in setTileSource() 181 if (renderer == null || renderer.source == null in updateScaleIfNecessaryLocked() 186 (float) getWidth() / (float) renderer.source.getImageWidth(), in updateScaleIfNecessaryLocked() 187 (float) getHeight() / (float) renderer.source.getImageHeight()); in updateScaleIfNecessaryLocked() 249 if (mRenderer.source != null) { in positionFromMatrix() [all …]
|
D | TiledImageRenderer.java | 598 RectF source = mSourceRect; in drawTile() local 601 source.set(0, 0, mTileSize, mTileSize); in drawTile() 618 if (drawTile(tile, canvas, source, target)) { in drawTile() 626 source.set(tx * scaleX, ty * scaleY, (tx + size) * scaleX, in drawTile() 628 canvas.drawTexture(mPreview, source, target); in drawTile() 633 Tile tile, GLCanvas canvas, RectF source, RectF target) { in drawTile() argument 636 canvas.drawTexture(tile, source, target); in drawTile() 646 source.left /= 2f; in drawTile() 647 source.right /= 2f; in drawTile() 649 source.left = (mTileSize + source.left) / 2f; in drawTile() [all …]
|
/packages/apps/Car/libs/car-arch-common/src/com/android/car/arch/common/ |
D | LiveDataFunctions.java | 96 public static LiveData<Boolean> not(@NonNull LiveData<Boolean> source) { in not() argument 97 return Transformations.map(source, bool -> bool == null ? null : !bool); in not() 104 public static LiveData<Boolean> emitsNull(@NonNull LiveData<?> source) { in emitsNull() argument 105 return Transformations.map(source, Objects::isNull); in emitsNull() 112 public static <T> LiveData<T> distinct(@NonNull LiveData<T> source) { in distinct() argument 113 return distinct(source, Objects::equals); in distinct() 120 public static <T> LiveData<T> distinct(@NonNull LiveData<T> source, in distinct() argument 126 addSource(source, value -> { in distinct() 146 @NonNull LiveData<T> source) { in freezable() argument 154 setValue(source.getValue()); in freezable() [all …]
|
/packages/apps/WallpaperPicker/src/com/android/photos/views/ |
D | TiledImageView.java | 48 public TileSource source; field in TiledImageView.ImageRendererWrapper 107 public void setTileSource(TileSource source, Runnable isReadyCallback) { in setTileSource() argument 109 mRenderer.source = source; in setTileSource() 111 mRenderer.centerX = source != null ? source.getImageWidth() / 2 : 0; in setTileSource() 112 mRenderer.centerY = source != null ? source.getImageHeight() / 2 : 0; in setTileSource() 113 mRenderer.rotation = source != null ? source.getRotation() : 0; in setTileSource() 121 return mRenderer.source; in getTileSource() 134 if (renderer == null || renderer.source == null in updateScaleIfNecessaryLocked() 139 (float) getWidth() / (float) renderer.source.getImageWidth(), in updateScaleIfNecessaryLocked() 140 (float) getHeight() / (float) renderer.source.getImageHeight()); in updateScaleIfNecessaryLocked() [all …]
|
/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/Settings/tests/unit/src/com/android/settings/bluetooth/ |
D | Utf8ByteLengthFilterTest.java | 29 CharSequence source; in testFilter() local 37 source = "abc"; in testFilter() 41 dest.insert(1, source); in testFilter() 45 dest.replace(5, 8, source); in testFilter() 49 dest.insert(2, source); in testFilter() 60 source = "\u60a8\u597d"; // 2 Chinese chars == 6 bytes in UTF-8 in testFilter() 61 dest.replace(8, 10, source); in testFilter() 64 dest.replace(0, 1, source); in testFilter() 68 dest.replace(0, 4, source); in testFilter() 72 source = "\u00a3\u00a5"; // 2 Latin-1 chars == 4 bytes in UTF-8 in testFilter() [all …]
|
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/ |
D | Contact.java | 584 public Contact createFromParcel(Parcel source) { 585 return Contact.fromParcel(source); 597 private static Contact fromParcel(Parcel source) { in fromParcel() argument 599 contact.mContactId = source.readLong(); in fromParcel() 600 contact.mRawContactId = source.readLong(); in fromParcel() 601 contact.mLookupKey = source.readString(); in fromParcel() 602 contact.mAccountName = source.readString(); in fromParcel() 603 contact.mDisplayName = source.readString(); in fromParcel() 604 contact.mDisplayNameAlt = source.readString(); in fromParcel() 605 contact.mSortKeyPrimary = source.readString(); in fromParcel() [all …]
|
/packages/services/Car/car-lib/src/android/car/projection/ |
D | ProjectionStatus.java | 97 public ProjectionStatus createFromParcel(Parcel source) { 98 return new ProjectionStatus(source); 115 private ProjectionStatus(Parcel source) { in ProjectionStatus() argument 116 mPackageName = source.readString(); in ProjectionStatus() 117 mState = source.readInt(); in ProjectionStatus() 118 mTransport = source.readInt(); in ProjectionStatus() 119 mExtras = source.readBundle(getClass().getClassLoader()); in ProjectionStatus() 120 mConnectedMobileDevices = source.createTypedArrayList(MobileDevice.CREATOR); in ProjectionStatus() 272 public MobileDevice createFromParcel(Parcel source) { 273 return new MobileDevice(source); [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 204 handleNewDrawable(icon, uniqueIconId, source); in set() 213 handleNewDrawable(null, null, source); in set() [all …]
|
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
D | GLES20Canvas.java | 351 public void drawTexture(BasicTexture texture, RectF source, RectF target) { in drawTexture() argument 355 mTempSourceRect.set(source); in drawTexture() 362 private void drawTextureRect(BasicTexture texture, RectF source, RectF target) { in drawTextureRect() argument 363 setTextureMatrix(source); in drawTextureRect() 367 private void setTextureMatrix(RectF source) { in setTextureMatrix() argument 368 mTempTextureMatrix[0] = source.width(); in setTextureMatrix() 369 mTempTextureMatrix[5] = source.height(); in setTextureMatrix() 370 mTempTextureMatrix[12] = source.left; in setTextureMatrix() 371 mTempTextureMatrix[13] = source.top; in setTextureMatrix() 377 private static void convertCoordinate(RectF source, RectF target, BasicTexture texture) { in convertCoordinate() argument [all …]
|
/packages/apps/Contacts/src/com/android/contacts/logging/ |
D | SearchState.java | 67 protected SearchState(Parcel source) { in SearchState() argument 68 readFromParcel(source); in SearchState() 100 private void readFromParcel(Parcel source) { in readFromParcel() argument 101 queryLength = source.readInt(); in readFromParcel() 102 numPartitions = source.readInt(); in readFromParcel() 103 numResults = source.readInt(); in readFromParcel() 104 numResultsInSelectedPartition = source.readInt(); in readFromParcel() 105 selectedPartition = source.readInt(); in readFromParcel() 106 selectedIndexInPartition = source.readInt(); in readFromParcel() 107 selectedIndex = source.readInt(); in readFromParcel()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | HanziToPinyin.java | 53 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 99 token.source = Character.toString(character); in tokenize() 104 token.target = token.source; in tokenize() 111 token.target = mAsciiTransliterator == null ? token.source : in tokenize() 112 mAsciiTransliterator.transliterate(token.source); in tokenize() 117 token.target = mPinyinTransliterator.transliterate(token.source); in tokenize() 119 TextUtils.equals(token.source, token.target)) { in tokenize() 121 token.target = token.source; in tokenize()
|
/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/TV/tuner/src/com/android/tv/tuner/source/ |
D | TsDataSourceManager.java | 17 package com.android.tv.tuner.source; 93 TsDataSource source = streamer.createDataSource(); in createDataSource() local 94 sTsStreamers.put(source, streamer); in createDataSource() 95 return source; in createDataSource() 108 public void releaseDataSource(TsDataSource source) { in releaseDataSource() argument 109 if (source instanceof TunerTsStreamer.TunerDataSource) { in releaseDataSource() 110 mTunerStreamerManager.releaseDataSource(source, mId, !mIsRecording && mKeepTuneStatus); in releaseDataSource() 111 } else if (source instanceof FileTsStreamer.FileDataSource) { in releaseDataSource() 112 FileTsStreamer streamer = (FileTsStreamer) sTsStreamers.get(source); in releaseDataSource() 114 sTsStreamers.remove(source); in releaseDataSource()
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
D | GroupMetaData.java | 88 private GroupMetaData(Parcel source) { in GroupMetaData() argument 89 uri = source.readParcelable(Uri.class.getClassLoader()); in GroupMetaData() 90 accountName = source.readString(); in GroupMetaData() 91 accountType = source.readString(); in GroupMetaData() 92 dataSet = source.readString(); in GroupMetaData() 93 groupId = source.readLong(); in GroupMetaData() 94 groupName = source.readString(); in GroupMetaData() 95 readOnly = source.readInt() == 1; in GroupMetaData() 96 defaultGroup = source.readInt() == 1; in GroupMetaData() 97 favorites = source.readInt() == 1; in GroupMetaData() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | GLES11Canvas.java | 387 public void drawTexture(BasicTexture texture, RectF source, RectF target) { in drawTexture() argument 391 mDrawTextureSourceRect.set(source); in drawTexture() 393 source = mDrawTextureSourceRect; in drawTexture() 399 convertCoordinate(source, target, texture); in drawTexture() 400 setTextureCoords(source); in drawTexture() 419 private static void convertCoordinate(RectF source, RectF target, in convertCoordinate() argument 427 source.left /= texWidth; in convertCoordinate() 428 source.right /= texWidth; in convertCoordinate() 429 source.top /= texHeight; in convertCoordinate() 430 source.bottom /= texHeight; in convertCoordinate() [all …]
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
D | CropView.java | 71 final float imageWidth = mRenderer.source.getImageWidth(); in getImageDims() 72 final float imageHeight = mRenderer.source.getImageHeight(); in getImageDims() 89 float initialCenterX = mRenderer.source.getImageWidth() / 2f; in getEdgesHelper() 90 float initialCenterY = mRenderer.source.getImageHeight() / 2f; in getEdgesHelper() 133 return new Point(mRenderer.source.getImageWidth(), mRenderer.source.getImageHeight()); in getSourceDimensions() 136 public void setTileSource(TileSource source, Runnable isReadyCallback) { in setTileSource() argument 137 super.setTileSource(source, isReadyCallback); in setTileSource() 144 updateMinScale(getWidth(), getHeight(), source, true); in setTileSource() local 148 updateMinScale(w, h, mRenderer.source, false); in onSizeChanged() 157 private void updateMinScale(int w, int h, TileSource source, boolean resetScale) { in updateMinScale() argument [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/ |
D | Event.java | 256 public static Event createConsumedEvent(final Event source) { in createConsumedEvent() argument 258 return new Event(source.mEventType, source.mText, source.mCodePoint, source.mKeyCode, in createConsumedEvent() 259 source.mX, source.mY, source.mSuggestedWordInfo, source.mFlags | FLAG_CONSUMED, in createConsumedEvent() 260 source.mNextEvent); in createConsumedEvent()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/ |
D | Base64Body.java | 26 private final InputStream source; field in Base64Body 30 public Base64Body(InputStream source) { in Base64Body() argument 31 this.source = source; in Base64Body() 36 return source; in getInputStream() 56 IOUtils.copyLarge(source, b64out); in writeTo() 58 source.close(); in writeTo()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | TileImageView.java | 591 RectF source = mSourceRect; in drawTile() local 594 source.set(0, 0, sTileSize, sTileSize); in drawTile() 611 if (drawTile(tile, canvas, source, target)) return; in drawTile() 617 source.set(tx * scaleX, ty * scaleY, (tx + size) * scaleX, in drawTile() 619 mScreenNail.draw(canvas, source, target); in drawTile() 624 Tile tile, GLCanvas canvas, RectF source, RectF target) { in drawTile() argument 627 canvas.drawTexture(tile, source, target); in drawTile() 635 source.left /= 2f; in drawTile() 636 source.right /= 2f; in drawTile() 638 source.left = (sTileSize + source.left) / 2f; in drawTile() [all …]
|