Home
last modified time | relevance | path

Searched refs:sourceIndex (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/core/java/com/android/server/media/
DRemoteDisplayProviderWatcher.java121 int sourceIndex = findProvider(serviceInfo.packageName, serviceInfo.name); in scanPackages() local
122 if (sourceIndex < 0) { in scanPackages()
130 } else if (sourceIndex >= targetIndex) { in scanPackages()
131 RemoteDisplayProviderProxy provider = mProviders.get(sourceIndex); in scanPackages()
134 Collections.swap(mProviders, sourceIndex, targetIndex++); in scanPackages()
DMediaRoute2ProviderWatcher.java140 int sourceIndex = findProvider(serviceInfo.packageName, serviceInfo.name); in scanPackages() local
141 if (sourceIndex < 0) { in scanPackages()
156 } else if (sourceIndex >= targetIndex) { in scanPackages()
157 MediaRoute2ProviderServiceProxy proxy = mProxies.get(sourceIndex); in scanPackages()
161 Collections.swap(mProxies, sourceIndex, targetIndex++); in scanPackages()
DMediaRoute2ProviderServiceProxy.java468 int sourceIndex = findSessionByIdLocked(session); in onSessionsUpdated() local
469 if (sourceIndex < 0) { in onSessionsUpdated()
472 } else if (sourceIndex < targetIndex) { in onSessionsUpdated()
476 RoutingSessionInfo oldSessionInfo = mSessionInfos.get(sourceIndex); in onSessionsUpdated()
481 mSessionInfos.set(sourceIndex, session); in onSessionsUpdated()
482 Collections.swap(mSessionInfos, sourceIndex, targetIndex++); in onSessionsUpdated()
DMediaRouterService.java1695 final int sourceIndex = findRouteByDescriptorId(descriptorId); in updateDescriptor() local
1696 if (sourceIndex < 0) { in updateDescriptor()
1704 } else if (sourceIndex < targetIndex) { in updateDescriptor()
1710 RouteRecord route = mRoutes.get(sourceIndex); in updateDescriptor()
1711 Collections.swap(mRoutes, sourceIndex, targetIndex++); in updateDescriptor()
/frameworks/base/services/core/java/com/android/server/tv/
DTvRemoteProviderWatcher.java135 int sourceIndex = findProvider(serviceInfo.packageName, serviceInfo.name); in scanPackages() local
136 if (sourceIndex < 0) { in scanPackages()
143 } else if (sourceIndex >= targetIndex) { in scanPackages()
144 TvRemoteProviderProxy provider = mProviderProxies.get(sourceIndex); in scanPackages()
147 Collections.swap(mProviderProxies, sourceIndex, targetIndex++); in scanPackages()
/frameworks/av/media/libstagefright/
DMPEG2TSWriter.cpp571 int32_t sourceIndex; in onMessageReceived() local
572 CHECK(msg->findInt32("source-index", &sourceIndex)); in onMessageReceived()
573 sp<SourceInfo> source = mSources.editItemAt(sourceIndex); in onMessageReceived()
587 writeAccessUnit(sourceIndex, buffer); in onMessageReceived()
601 writeAccessUnit(sourceIndex, buffer); in onMessageReceived()
618 sourceIndex, source->lastAccessUnitTimeUs() / 1E6); in onMessageReceived()
793 int32_t sourceIndex, const sp<ABuffer> &accessUnit) { in writeAccessUnit() argument
832 const unsigned PID = 0x1e0 + sourceIndex + 1; in writeAccessUnit()
835 mSources.editItemAt(sourceIndex)->incrementContinuityCounter(); in writeAccessUnit()
840 mSources.editItemAt(sourceIndex)->streamType() == 0x0f ? 0xc0 : 0xe0; in writeAccessUnit()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/
DMediaCarouselScrollHandler.kt577 fun scrollToPlayer(sourceIndex: Int = -1, destIndex: Int) { in scrollToPlayer()
578 if (sourceIndex >= 0 && sourceIndex < mediaContent.childCount) { in scrollToPlayer()
579 scrollView.relativeScrollX = sourceIndex * playerWidthPlusPadding in scrollToPlayer()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMPEG2TSWriter.h80 void writeAccessUnit(int32_t sourceIndex, const sp<ABuffer> &buffer);
/frameworks/base/core/java/android/os/
DWorkSource.java233 for (int sourceIndex = 1; sourceIndex < mNum; sourceIndex++) { in clearNames()
234 if (mUids[sourceIndex] == mUids[sourceIndex - 1]) { in clearNames()
237 mUids[destIndex] = mUids[sourceIndex]; in clearNames()
/frameworks/base/core/java/android/text/
DTextUtils.java1313 private static int toUpperMapToDest(Edits.Iterator iterator, int sourceIndex) { in toUpperMapToDest() argument
1315 iterator.findSourceIndex(sourceIndex); in toUpperMapToDest()
1316 if (sourceIndex == iterator.sourceIndex()) { in toUpperMapToDest()
1332 return iterator.destinationIndex() + (sourceIndex - iterator.sourceIndex()); in toUpperMapToDest()