Home
last modified time | relevance | path

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

12345678910>>...17

/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DFocusFinder.java124 static boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { in isBetterCandidate() argument
126 if (!isCandidate(source, rect1, direction)) { in isBetterCandidate()
131 if (!isCandidate(source, rect2, direction)) { in isBetterCandidate()
136 if (beamBeats(direction, source, rect1, rect2)) { in isBetterCandidate()
141 if (beamBeats(direction, source, rect2, rect1)) { in isBetterCandidate()
147 majorAxisDistance(direction, source, rect1), in isBetterCandidate()
148 minorAxisDistance(direction, source, rect1)) in isBetterCandidate()
150 majorAxisDistance(direction, source, rect2), in isBetterCandidate()
151 minorAxisDistance(direction, source, rect2)); in isBetterCandidate()
163 private static int minorAxisDistance(int direction, Rect source, Rect dest) { in minorAxisDistance() argument
[all …]
/packages/apps/Gallery2/jni/filters/
Dgeometry.c22 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/
DRawContactDeltaTests.java87 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/
DUtf8ByteLengthFilterTest.java34 CharSequence source = "1"; // 1 byte. in filter_belowMaxBytes_returnsNull() local
39 CharSequence filtered = lengthFilter.filter(source, /* start= */ 0, source.length(), dest, in filter_belowMaxBytes_returnsNull()
48 CharSequence source = "1"; // 1 byte. in filter_maxBytes_returnsNull() local
53 CharSequence filtered = lengthFilter.filter(source, /* start= */ 0, source.length(), dest, in filter_maxBytes_returnsNull()
62 CharSequence source = "12"; // 2 bytes. in filter_aboveMaxBytes_returnsFilteredSource() local
67 CharSequence filtered = lengthFilter.filter(source, /* start= */ 0, source.length(), dest, in filter_aboveMaxBytes_returnsFilteredSource()
77 CharSequence source; in exerciseFilter() local
82 source = "abc"; in exerciseFilter()
86 dest.insert(1, source); in exerciseFilter()
90 dest.replace(5, 8, source); in exerciseFilter()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dpointer.h106 …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/
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/Gallery2/src/com/android/photos/views/
DTiledImageView.java67 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 …]
/packages/apps/WallpaperPicker/src/com/android/photos/views/
DTiledImageView.java48 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/Car/libs/car-arch-common/src/com/android/car/arch/common/
DLiveDataFunctions.java95 public static LiveData<Boolean> not(@NonNull LiveData<Boolean> source) { in not() argument
96 return Transformations.map(source, bool -> bool == null ? null : !bool); in not()
103 public static LiveData<Boolean> emitsNull(@NonNull LiveData<?> source) { in emitsNull() argument
104 return Transformations.map(source, Objects::isNull); in emitsNull()
111 public static <T> LiveData<T> distinct(@NonNull LiveData<T> source) { in distinct() argument
112 return distinct(source, Objects::equals); in distinct()
119 public static <T> LiveData<T> distinct(@NonNull LiveData<T> source, in distinct() argument
125 addSource(source, value -> { in distinct()
145 @NonNull LiveData<T> source) { in freezable() argument
153 setValue(source.getValue()); in freezable()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/bluetooth/
DUtf8ByteLengthFilterTest.java29 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/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/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DContact.java584 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/
DProjectionStatus.java97 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/
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
204 handleNewDrawable(icon, uniqueIconId, source); in set()
213 handleNewDrawable(null, null, source); in set()
[all …]
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/
DGLES20Canvas.java351 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/
DSearchState.java67 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/
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
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/
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/apps/TV/tuner/src/com/android/tv/tuner/source/
DTsDataSourceManager.java17 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/
DGroupMetaData.java88 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/
DGLES11Canvas.java387 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/services/Car/computepipe/runner/engine/
DDefaultEngine.cpp47 int getStreamIdFromSource(std::string source) { in getStreamIdFromSource() argument
48 auto pos = source.find(":"); in getStreamIdFromSource()
49 return std::stoi(source.substr(pos + 1)); in getStreamIdFromSource()
445 if ((mCurrentPhaseError->source.find("PrebuiltGraph") == std::string::npos)) { in broadcastHalt()
456 if (mCurrentPhaseError->source.find("ClientInterface") == std::string::npos) { in broadcastHalt()
467 if ((mCurrentPhaseError->source.find("PrebuiltGraph") == std::string::npos) && mGraph) { in broadcastHalt()
477 if (mCurrentPhaseError->source.find("ClientInterface") == std::string::npos) { in broadcastHalt()
533 std::string source = "StreamManager:" + std::to_string(streamId) + " : " + m; in populateStreamManagers() local
534 this->queueError(source, m, false); in populateStreamManagers()
538 std::string source = "StreamManager:" + std::to_string(streamId); in populateStreamManagers() local
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/
DEvent.java256 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/WallpaperPicker/src/com/android/wallpaperpicker/
DCropView.java71 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/apps/Dialer/java/com/android/voicemail/impl/mail/
DBase64Body.java26 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()

12345678910>>...17