/frameworks/base/core/tests/coretests/src/android/view/ |
D | InsetsSourceTest.java | 48 private InsetsSource mSource = new InsetsSource(ITYPE_NAVIGATION_BAR); field in InsetsSourceTest 54 mSource.setVisible(true); in setUp() 61 mSource.setFrame(new Rect(0, 0, 500, 100)); in testCalculateInsetsTop() 62 Insets insets = mSource.calculateInsets(new Rect(0, 0, 500, 500), in testCalculateInsetsTop() 69 mSource.setFrame(new Rect(0, 400, 500, 500)); in testCalculateInsetsBottom() 70 Insets insets = mSource.calculateInsets(new Rect(0, 0, 500, 500), in testCalculateInsetsBottom() 77 mSource.setFrame(new Rect(0, 0, 100, 500)); in testCalculateInsetsLeft() 78 Insets insets = mSource.calculateInsets(new Rect(0, 0, 500, 500), in testCalculateInsetsLeft() 85 mSource.setFrame(new Rect(400, 0, 500, 500)); in testCalculateInsetsRight() 86 Insets insets = mSource.calculateInsets(new Rect(0, 0, 500, 500), in testCalculateInsetsRight() [all …]
|
/frameworks/av/media/ndk/ |
D | NdkMediaDataSource.cpp | 185 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 …]
|
D | NdkMediaDataSourceCallbacksPriv.h | 40 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/ |
D | HdmiCecFeatureAction.java | 60 private final HdmiCecLocalDevice mSource; field in HdmiCecFeatureAction 81 mSource = source; in HdmiCecFeatureAction() 82 mService = mSource.getService(); in HdmiCecFeatureAction() 195 mSource.addAndStartAction(action); in addAndStartAction() 199 return mSource.getActions(clazz); in getActions() 203 return mSource.getCecMessageCache(); in getCecMessageCache() 213 mSource.removeAction(action); in removeAction() 217 mSource.removeActionExcept(clazz, null); in removeAction() 222 mSource.removeActionExcept(clazz, exception); in removeActionExcept() 264 return mSource; in localDevice() [all …]
|
D | OneTouchPlayAction.java | 57 private HdmiCecLocalDeviceSource mSource; field in OneTouchPlayAction 89 mSource = source(); in start() 92 boolean is20TargetOnBefore = mIsCec20 && getTargetDevicePowerStatus(mSource, mTargetAddress, in start() 105 int targetPowerStatus = getTargetDevicePowerStatus(mSource, mTargetAddress, in start() 125 mSource.mService.setAndBroadcastActiveSourceFromOneDeviceType( in broadcastActiveSource() 131 if (mSource.mService.audioSystem() != null) { in broadcastActiveSource() 132 mSource = mSource.mService.audioSystem(); in broadcastActiveSource() 134 mSource.setRoutingPort(Constants.CEC_SWITCH_HOME); in broadcastActiveSource() 135 mSource.setLocalActivePort(Constants.CEC_SWITCH_HOME); in broadcastActiveSource() 177 HdmiControlService service = mSource.mService; in shouldTurnOnConnectedAudioSystem()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | RemoteDataSource.h | 58 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().string()); in RemoteDataSource()
|
/frameworks/base/location/java/android/location/ |
D | Country.java | 60 private final int mSource; field in Country 89 mSource = source; in Country() 99 mSource = source; in Country() 105 mSource = country.mSource; in Country() 129 return mSource; in getSource() 156 parcel.writeInt(mSource); in writeToParcel() 173 return mCountryIso.equals(c.getCountryIso()) && mSource == c.getSource(); in equals() 184 hash = hash * 13 + mSource; in hashCode() 204 return "Country {ISO=" + mCountryIso + ", source=" + mSource + ", time=" + mTimestamp + "}"; in toString()
|
/frameworks/av/media/libstagefright/ |
D | CallbackMediaSource.cpp | 23 :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()
|
D | JPEGSource.cpp | 56 : 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()
|
D | CallbackDataSource.cpp | 122 : mSource(source), mCachedOffset(0), mCachedSize(0) { in TinyCacheSource() 123 mName = String8::format("TinyCacheSource(%s)", mSource->toString().string()); 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/ |
D | CertificatesEntryRef.java | 25 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/ |
D | WebmFrameThreadUnitTest.cpp | 70 : 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/av/media/libstagefright/include/ |
D | ThrottledSource.h | 42 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/services/core/java/com/android/server/wm/ |
D | InsetsSourceProvider.java | 71 protected final @NonNull InsetsSource mSource; field in InsetsSourceProvider 114 mSource = source; in InsetsSourceProvider() 134 return mSource; in getSource() 165 mWin.mProvidedInsetsSources.remove(mSource.getType()); in setWindow() 173 mSource.setFrame(new Rect()); in setWindow() 174 mSource.setVisibleFrame(null); in setWindow() 176 mWin.mProvidedInsetsSources.put(mSource.getType(), mSource); in setWindow() local 218 mSource.setFrame(mTmpRect); in updateSourceFrame() 230 mSource.setVisibleFrame(mTmpRect); in updateSourceFrame() 232 mSource.setVisibleFrame(null); in updateSourceFrame() [all …]
|
/frameworks/base/core/java/android/text/ |
D | InputFilter.java | 107 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()
|
D | AlteredCharSequence.java | 46 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/ |
D | Statement.java | 56 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/core/java/android/view/inputmethod/ |
D | InlineSuggestionInfo.java | 64 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/native/services/inputflinger/reader/mapper/ |
D | CursorInputMapper.cpp | 70 return mSource; in getSources() 79 info->addMotionRange(AMOTION_EVENT_AXIS_X, mSource, minX, maxX, 0.0f, 0.0f, 0.0f); in populateDeviceInfo() 80 info->addMotionRange(AMOTION_EVENT_AXIS_Y, mSource, minY, maxY, 0.0f, 0.0f, 0.0f); in populateDeviceInfo() 83 info->addMotionRange(AMOTION_EVENT_AXIS_X, mSource, -1.0f, 1.0f, 0.0f, mXScale, 0.0f); in populateDeviceInfo() 84 info->addMotionRange(AMOTION_EVENT_AXIS_Y, mSource, -1.0f, 1.0f, 0.0f, mYScale, 0.0f); in populateDeviceInfo() 85 info->addMotionRange(AMOTION_EVENT_AXIS_RELATIVE_X, mSource, -1.0f, 1.0f, 0.0f, mXScale, in populateDeviceInfo() 87 info->addMotionRange(AMOTION_EVENT_AXIS_RELATIVE_Y, mSource, -1.0f, 1.0f, 0.0f, mYScale, in populateDeviceInfo() 90 info->addMotionRange(AMOTION_EVENT_AXIS_PRESSURE, mSource, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f); in populateDeviceInfo() 93 info->addMotionRange(AMOTION_EVENT_AXIS_VSCROLL, mSource, -1.0f, 1.0f, 0.0f, 0.0f, 0.0f); in populateDeviceInfo() 96 info->addMotionRange(AMOTION_EVENT_AXIS_HSCROLL, mSource, -1.0f, 1.0f, 0.0f, 0.0f, 0.0f); in populateDeviceInfo() [all …]
|
/frameworks/compile/libbcc/lib/ |
D | Script.cpp | 32 : 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/av/media/libmediaplayerservice/nuplayer/ |
D | GenericSource.cpp | 230 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/native/services/surfaceflinger/DisplayHardware/ |
D | VirtualDisplaySurface.cpp | 69 mSource{}, in VirtualDisplaySurface() 88 mSource[SOURCE_SINK] = sink; 89 mSource[SOURCE_SCRATCH] = bqProducer; 120 mSource[SOURCE_SCRATCH]->connect(nullptr, NATIVE_WINDOW_API_EGL, false, &output); 124 mSource[SOURCE_SCRATCH]->disconnect(NATIVE_WINDOW_API_EGL); in ~VirtualDisplaySurface() 268 status_t result = mSource[SOURCE_SINK]->queueBuffer(sslot, in onFrameCommitted() 284 mSource[SOURCE_SINK]->cancelBuffer(sslot, retireFence); in onFrameCommitted() 308 return mSource[SOURCE_SINK]->requestBuffer(pslot, outBuf); in requestBuffer() 320 return mSource[SOURCE_SINK]->setMaxDequeuedBufferCount(maxDequeuedBuffers); in setMaxDequeuedBufferCount() 324 return mSource[SOURCE_SINK]->setAsyncMode(async); in setAsyncMode() [all …]
|
/frameworks/av/media/libaaudio/src/client/ |
D | AAudioFlowGraph.cpp | 49 mSource = std::make_unique<SourceFloat>(sourceChannelCount); in configure() 52 mSource = std::make_unique<SourceI16>(sourceChannelCount); in configure() 55 mSource = std::make_unique<SourceI24>(sourceChannelCount); in configure() 58 mSource = std::make_unique<SourceI32>(sourceChannelCount); in configure() 64 lastOutput = &mSource->output; in configure() 112 mSource->setData(source, numFrames); in process()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/ |
D | StreamUtilsTest.java | 37 private InputStream mSource; field in StreamUtilsTest 46 mSource = new ByteArrayInputStream(mSourceData); in setUp() 52 StreamUtils.copyStream(mSource, mDestination, mSourceData.length); in copyStream_copiesAllBytesIfAsked() 58 StreamUtils.copyStream(mSource, mDestination, mSourceData.length - 10); in copyStream_stopsShortIfAsked() 64 StreamUtils.copyStream(mSource, mDestination, mSourceData.length + 10); in copyStream_stopsShortIfAskedToCopyMoreThanAvailable()
|
/frameworks/base/core/java/android/text/method/ |
D | PasswordTransformationMethod.java | 144 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
|