Home
last modified time | relevance | path

Searched refs:mSource (Results 1 – 25 of 202) sorted by relevance

123456789

/frameworks/base/core/tests/coretests/src/android/view/
DInsetsSourceTest.java54 private final InsetsSource mSource = new InsetsSource(0 /* id */, navigationBars()); field in InsetsSourceTest
62 mSource.setVisible(true); in setUp()
70 mSource.setFrame(new Rect(0, 0, 500, 100)); in testCalculateInsetsTop()
71 Insets insets = mSource.calculateInsets(new Rect(0, 0, 500, 500), in testCalculateInsetsTop()
78 mSource.setFrame(new Rect(0, 400, 500, 500)); in testCalculateInsetsBottom()
79 Insets insets = mSource.calculateInsets(new Rect(0, 0, 500, 500), in testCalculateInsetsBottom()
86 mSource.setFrame(new Rect(0, 0, 100, 500)); in testCalculateInsetsLeft()
87 Insets insets = mSource.calculateInsets(new Rect(0, 0, 500, 500), in testCalculateInsetsLeft()
94 mSource.setFrame(new Rect(400, 0, 500, 500)); in testCalculateInsetsRight()
95 Insets insets = mSource.calculateInsets(new Rect(0, 0, 500, 500), in testCalculateInsetsRight()
[all …]
/frameworks/av/media/ndk/
DNdkMediaDataSource.cpp185 AMediaDataSource *mSource = new AMediaDataSource(); in AMediaDataSource_new() local
186 mSource->userdata = NULL; in AMediaDataSource_new()
187 mSource->readAt = NULL; in AMediaDataSource_new()
188 mSource->getSize = NULL; in AMediaDataSource_new()
189 mSource->close = NULL; in AMediaDataSource_new()
190 return mSource; in AMediaDataSource_new()
220 void AMediaDataSource_delete(AMediaDataSource *mSource) { in AMediaDataSource_delete() argument
222 if (mSource != NULL) { in AMediaDataSource_delete()
223 delete mSource; in AMediaDataSource_delete()
228 void AMediaDataSource_setUserdata(AMediaDataSource *mSource, void *userdata) { in AMediaDataSource_setUserdata() argument
[all …]
DNdkMediaDataSourceCallbacksPriv.h40 AMediaDataSource *mSource = AMediaDataSource_new(); in convertDataSourceToAMediaDataSource() local
41 AMediaDataSource_setUserdata(mSource, source.get()); in convertDataSourceToAMediaDataSource()
42 AMediaDataSource_setReadAt(mSource, DataSource_readAt); in convertDataSourceToAMediaDataSource()
43 AMediaDataSource_setGetSize(mSource, DataSource_getSize); in convertDataSourceToAMediaDataSource()
44 AMediaDataSource_setClose(mSource, DataSource_close); in convertDataSourceToAMediaDataSource()
45 AMediaDataSource_setGetAvailableSize(mSource, DataSource_getAvailableSize); in convertDataSourceToAMediaDataSource()
46 return mSource; in convertDataSourceToAMediaDataSource()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecFeatureAction.java60 private final HdmiCecLocalDevice mSource; field in HdmiCecFeatureAction
81 mSource = source; in HdmiCecFeatureAction()
82 mService = mSource.getService(); in HdmiCecFeatureAction()
200 mSource.addAndStartAction(action); in addAndStartAction()
204 return mSource.getActions(clazz); in getActions()
208 return mSource.getCecMessageCache(); in getCecMessageCache()
218 mSource.removeAction(action); in removeAction()
222 mSource.removeActionExcept(clazz, null); in removeAction()
227 mSource.removeActionExcept(clazz, exception); in removeActionExcept()
275 return mSource; in localDevice()
[all …]
DOneTouchPlayAction.java64 private HdmiCecLocalDeviceSource mSource; field in OneTouchPlayAction
96 mSource = source(); in start()
98 if (!mSource.mService.getPowerManager().isInteractive()) { in start()
115 boolean is20TargetOnBefore = mIsCec20 && getTargetDevicePowerStatus(mSource, mTargetAddress, in startAction()
129 int targetPowerStatus = getTargetDevicePowerStatus(mSource, mTargetAddress, in startAction()
152 mSource.mService.setAndBroadcastActiveSourceFromOneDeviceType( in setAndBroadcastActiveSource()
158 if (mSource.mService.audioSystem() != null) { in setAndBroadcastActiveSource()
159 mSource = mSource.mService.audioSystem(); in setAndBroadcastActiveSource()
161 mSource.setRoutingPort(Constants.CEC_SWITCH_HOME); in setAndBroadcastActiveSource()
162 mSource.setLocalActivePort(Constants.CEC_SWITCH_HOME); in setAndBroadcastActiveSource()
[all …]
DActiveSourceHandler.java37 private final HdmiCecLocalDeviceTv mSource; field in ActiveSourceHandler
51 mSource = source; in ActiveSourceHandler()
52 mService = mSource.getService(); in ActiveSourceHandler()
64 HdmiCecLocalDeviceTv tv = mSource; in process()
98 return mSource.getDeviceInfo().getLogicalAddress(); in getSourceAddress()
/frameworks/av/media/libstagefright/include/media/stagefright/
DRemoteDataSource.h58 if (mSource.get() == nullptr) { in readAt()
62 return mSource->readAt(offset, mMemory->unsecurePointer(), size); in readAt()
66 if (mSource.get() == nullptr) { in getSize()
70 return mSource->getSize(size); in getSize()
76 mSource = nullptr; in close()
81 if (mSource.get() == nullptr) { in getFlags()
85 return mSource->flags(); in getFlags()
97 sp<DataSource> mSource; variable
103 mSource = source; in RemoteDataSource()
109 mName = String8::format("RemoteDataSource(%s)", mSource->toString().c_str()); in RemoteDataSource()
/frameworks/av/media/libstagefright/
DCallbackMediaSource.cpp23 :mSource(source) {} in CallbackMediaSource()
28 return mSource->start(params); in start()
32 return mSource->stop(); in stop()
36 return mSource->getFormat(); in getFormat()
40 return mSource->read(buffer, reinterpret_cast<const ReadOptions*>(options)); in read()
44 return mSource->pause(); in pause()
DJPEGSource.cpp56 : mSource(source), in JPEGSource()
64 CHECK(mSource->getSize(&mSize) == OK); in JPEGSource()
124 ssize_t n = mSource->readAt(mOffset, buffer->data(), mSize - mOffset); in read()
149 if (!mSource->getUInt16(i, &soi)) { in parseJPEG()
161 if (mSource->readAt(i++, &marker, 1) != 1) { in parseJPEG()
167 if (mSource->readAt(i++, &marker, 1) != 1) { in parseJPEG()
174 if (!mSource->getUInt16(i, &chunkSize)) { in parseJPEG()
209 if (!mSource->getUInt16(i + 1, &height) in parseJPEG()
210 || !mSource->getUInt16(i + 3, &width)) { in parseJPEG()
DCallbackDataSource.cpp122 : mSource(source), mCachedOffset(0), mCachedSize(0) { in TinyCacheSource()
123 mName = String8::format("TinyCacheSource(%s)", mSource->toString().c_str()); in TinyCacheSource()
127 return mSource->initCheck(); in initCheck()
155 return mSource->readAt(offset, data, size); in readAt()
159 const ssize_t numRead = mSource->readAt(offset, mCache, kCacheSize); in readAt()
183 return mSource->getSize(size); in getSize()
187 return mSource->flags(); in flags()
191 return mSource->getIDataSource(); in getIDataSource()
/frameworks/base/core/java/android/security/net/config/
DCertificatesEntryRef.java25 private final CertificateSource mSource; field in CertificatesEntryRef
29 mSource = source; in CertificatesEntryRef()
40 for (X509Certificate cert : mSource.getCertificates()) { in getTrustAnchors()
47 X509Certificate foundCert = mSource.findBySubjectAndPublicKey(cert); in findBySubjectAndPublicKey()
56 X509Certificate foundCert = mSource.findByIssuerAndSignature(cert); in findByIssuerAndSignature()
65 return mSource.findAllByIssuerAndSignature(cert); in findAllCertificatesByIssuerAndSignature()
69 mSource.handleTrustStorageUpdate(); in handleTrustStorageUpdate()
/frameworks/av/media/libstagefright/webm/tests/
DWebmFrameThreadUnitTest.cpp70 : mSinkThread(nullptr), mAudioThread(nullptr), mVideoThread(nullptr), mSource{} {} in WebmFrameThreadUnitTest()
87 if (mSource[idx] != nullptr) { in TearDown()
88 mSource[idx].clear(); in TearDown()
111 sp<MediaAdapter> mSource[kMaxStreamCount]; member in WebmFrameThreadUnitTest
163 mSource[kVideoIdx] = new MediaAdapter(trackMeta); in addTrack()
164 ASSERT_NE(mSource[kVideoIdx], nullptr) << "Unable to create source"; in addTrack()
166 mSource[kAudioIdx] = new MediaAdapter(trackMeta); in addTrack()
167 ASSERT_NE(mSource[kAudioIdx], nullptr) << "Unable to create source"; in addTrack()
181 mVideoThread = new WebmFrameMediaSourceThread(mSource[kVideoIdx], kVideoType, mVSink, in createWebmThreads()
184 mAudioThread = new WebmFrameMediaSourceThread(mSource[kAudioIdx], kAudioType, mASink, in createWebmThreads()
[all …]
/frameworks/base/location/java/android/location/
DCountry.java81 private final int mSource; field in Country
109 mSource = source; in Country()
119 mSource = source; in Country()
126 mSource = country.mSource; in Country()
165 return mSource; in getSource()
197 parcel.writeInt(mSource); in writeToParcel()
215 return mCountryIso.equals(c.getCountryIso()) && mSource == c.getSource(); in equals()
226 hash = hash * 13 + mSource; in hashCode()
249 return "Country {ISO=" + mCountryIso + ", source=" + mSource + ", time=" + mTimestamp + "}"; in toString()
/frameworks/av/media/libstagefright/include/
DThrottledSource.h42 return mSource->initCheck(); in initCheck()
46 return mSource->getSize(size); in getSize()
50 return mSource->flags(); in flags()
54 return mSource->reconnectAtOffset(offset); in reconnectAtOffset()
58 return mSource->getMIMEType(); in getMIMEType()
64 sp<DataSource> mSource; member
/frameworks/base/core/java/android/text/
DInputFilter.java107 private final CharSequence mSource; field in InputFilter.AllCaps.CharSequenceWrapper
112 mSource = source; in CharSequenceWrapper()
126 return mSource.charAt(mStart + index); in charAt()
133 return new CharSequenceWrapper(mSource, mStart + start, mStart + end); in subSequence()
137 return mSource.subSequence(mStart, mEnd).toString(); in toString()
141 return ((Spanned) mSource).getSpans(mStart + start, mStart + end, type); in getSpans()
145 return ((Spanned) mSource).getSpanStart(tag) - mStart; in getSpanStart()
149 return ((Spanned) mSource).getSpanEnd(tag) - mStart; in getSpanEnd()
153 return ((Spanned) mSource).getSpanFlags(tag); in getSpanFlags()
157 return ((Spanned) mSource).nextSpanTransition(mStart + start, mStart + limit, type) in nextSpanTransition()
DAlteredCharSequence.java46 mSource = source; in AlteredCharSequence()
95 return mSource.charAt(off); in charAt()
99 return mSource.length(); in length()
103 return AlteredCharSequence.make(mSource.subSequence(start, end), in subSequence()
108 TextUtils.getChars(mSource, start, end, dest, off); in getChars()
128 private CharSequence mSource; field in AlteredCharSequence
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DStatement.java56 private final AbstractAsset mSource; field in Statement
59 mSource = source; in Statement()
69 return mSource; in getSource()
119 if (!mSource.equals(statement.mSource)) { in equals()
130 result = 31 * result + mSource.hashCode(); in hashCode()
138 statement.append(mSource); in toString()
/frameworks/base/services/core/java/com/android/server/wm/
DInsetsSourceProvider.java67 protected final @NonNull InsetsSource mSource; field in InsetsSourceProvider
121 mSource = source; in InsetsSourceProvider()
146 return mSource; in getSource()
180 mWindowContainer.getInsetsSourceProviders().remove(mSource.getId()); in setWindowContainer()
185 windowContainer, WindowInsets.Type.toString(mSource.getType())); in setWindowContainer()
193 mSource.setVisibleFrame(null); in setWindowContainer()
194 mSource.setFlags(0, 0xffffffff); in setWindowContainer()
197 mWindowContainer.getInsetsSourceProviders().put(mSource.getId(), this); in setWindowContainer()
210 if (mSource.getFlags() != mergedFlags) { in setFlags()
211 mSource.setFlags(mergedFlags); in setFlags()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DInlineSuggestionInfo.java64 private final @NonNull @Source String mSource; field in InlineSuggestionInfo
172 this.mSource = source; in InlineSuggestionInfo()
174 if (!(java.util.Objects.equals(mSource, SOURCE_AUTOFILL)) in InlineSuggestionInfo()
175 && !(java.util.Objects.equals(mSource, SOURCE_PLATFORM))) { in InlineSuggestionInfo()
177 "source was " + mSource + " but must be one of: " in InlineSuggestionInfo()
183 NonNull.class, null, mSource); in InlineSuggestionInfo()
216 return mSource; in getSource()
259 "source = " + mSource + ", " + in toString()
281 && java.util.Objects.equals(mSource, that.mSource) in equals()
296 _hash = 31 * _hash + java.util.Objects.hashCode(mSource); in hashCode()
[all …]
/frameworks/compile/libbcc/lib/
DScript.cpp32 : mSource(pSource), in Script()
41 BCCContext &context = mSource->getContext(); in LinkRuntime()
50 mLinkRuntimeCallback(this, &mSource->getModule(), in LinkRuntime()
81 if (!mSource->merge(*libclcore_source)) { in LinkRuntime()
90 bool Script::mergeSource(Source &pSource) { return mSource->merge(pSource); } in mergeSource()
/frameworks/native/services/inputflinger/reader/mapper/
DCursorInputMapper.cpp84 return mSource; in getSources()
92 info.addMotionRange(AMOTION_EVENT_AXIS_X, mSource, mBoundsInLogicalDisplay.left, in populateDeviceInfo()
94 info.addMotionRange(AMOTION_EVENT_AXIS_Y, mSource, mBoundsInLogicalDisplay.top, in populateDeviceInfo()
98 info.addMotionRange(AMOTION_EVENT_AXIS_X, mSource, -1.0f, 1.0f, 0.0f, mXScale, 0.0f); in populateDeviceInfo()
99 info.addMotionRange(AMOTION_EVENT_AXIS_Y, mSource, -1.0f, 1.0f, 0.0f, mYScale, 0.0f); in populateDeviceInfo()
100 info.addMotionRange(AMOTION_EVENT_AXIS_RELATIVE_X, mSource, -1.0f, 1.0f, 0.0f, mXScale, in populateDeviceInfo()
102 info.addMotionRange(AMOTION_EVENT_AXIS_RELATIVE_Y, mSource, -1.0f, 1.0f, 0.0f, mYScale, in populateDeviceInfo()
105 info.addMotionRange(AMOTION_EVENT_AXIS_PRESSURE, mSource, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f); in populateDeviceInfo()
108 info.addMotionRange(AMOTION_EVENT_AXIS_VSCROLL, mSource, -1.0f, 1.0f, 0.0f, 0.0f, 0.0f); in populateDeviceInfo()
111 info.addMotionRange(AMOTION_EVENT_AXIS_HSCROLL, mSource, -1.0f, 1.0f, 0.0f, 0.0f, 0.0f); in populateDeviceInfo()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp230 if (mAudioTrack.mSource == NULL) { in initFromDataSource()
232 mAudioTrack.mSource = track; in initFromDataSource()
234 new AnotherPacketSource(mAudioTrack.mSource->getFormat()); in initFromDataSource()
245 if (mVideoTrack.mSource == NULL) { in initFromDataSource()
247 mVideoTrack.mSource = track; in initFromDataSource()
249 new AnotherPacketSource(mVideoTrack.mSource->getFormat()); in initFromDataSource()
315 if (mAudioTrack.mSource != NULL && mAudioTrack.mSource->start() != OK) { in startSources()
320 if (mVideoTrack.mSource != NULL && mVideoTrack.mSource->start() != OK) { in startSources()
329 if (mAudioTrack.mSource != NULL) { in getLastReadPosition()
331 } else if (mVideoTrack.mSource != NULL) { in getLastReadPosition()
[all …]
/frameworks/base/core/java/android/text/method/
DPasswordTransformationMethod.java144 mSource = source; in PasswordCharSequence()
148 return mSource.length(); in length()
152 if (mSource instanceof Spanned) { in charAt()
153 Spanned sp = (Spanned) mSource; in charAt()
159 return mSource.charAt(i); in charAt()
170 return mSource.charAt(i); in charAt()
191 TextUtils.getChars(mSource, start, end, dest, off); in getChars()
197 if (mSource instanceof Spanned) { in getChars()
198 Spanned sp = (Spanned) mSource; in getChars()
234 private CharSequence mSource; field in PasswordTransformationMethod.PasswordCharSequence
/frameworks/native/services/surfaceflinger/DisplayHardware/
DVirtualDisplaySurface.cpp58 mSource{}, in VirtualDisplaySurface()
73 mSource[SOURCE_SINK] = sink;
74 mSource[SOURCE_SCRATCH] = bqProducer;
105 mSource[SOURCE_SCRATCH]->connect(nullptr, NATIVE_WINDOW_API_EGL, false, &output);
113 mSource[SOURCE_SCRATCH]->disconnect(NATIVE_WINDOW_API_EGL); in ~VirtualDisplaySurface()
258 status_t result = mSource[SOURCE_SINK]->queueBuffer(sslot, in onFrameCommitted()
274 mSource[SOURCE_SINK]->cancelBuffer(sslot, retireFence); in onFrameCommitted()
298 return mSource[SOURCE_SINK]->requestBuffer(pslot, outBuf); in requestBuffer()
310 return mSource[SOURCE_SINK]->setMaxDequeuedBufferCount(maxDequeuedBuffers); in setMaxDequeuedBufferCount()
314 return mSource[SOURCE_SINK]->setAsyncMode(async); in setAsyncMode()
[all …]
/frameworks/base/core/java/android/view/
DContentInfo.java140 private final int mSource; field in ContentInfo
154 this.mSource = Preconditions.checkArgumentInRange(b.mSource, 0, SOURCE_PROCESS_TEXT, in ContentInfo()
184 + ", source=" + sourceToString(mSource) in toString()
205 return mSource; in getSource()
296 private int mSource; field in ContentInfo.Builder
313 mSource = other.mSource; in Builder()
328 mSource = source; in Builder()
349 mSource = source; in setSource()
443 dest.writeInt(mSource); in writeToParcel()

123456789