Home
last modified time | relevance | path

Searched refs:infos (Results 1 – 25 of 106) sorted by relevance

12345

/frameworks/base/services/tests/servicestests/src/com/android/server/tv/tunerresourcemanager/
DTunerResourceManagerServiceTest.java115 TunerFrontendInfo[] infos = new TunerFrontendInfo[2]; in setFrontendListTest_addFrontendResources_noExclusiveGroupId() local
116 infos[0] = in setFrontendListTest_addFrontendResources_noExclusiveGroupId()
118 infos[1] = in setFrontendListTest_addFrontendResources_noExclusiveGroupId()
120 mTunerResourceManagerService.setFrontendInfoListInternal(infos); in setFrontendListTest_addFrontendResources_noExclusiveGroupId()
124 for (int id = 0; id < infos.length; id++) { in setFrontendListTest_addFrontendResources_noExclusiveGroupId()
125 assertThat(resources.get(infos[id].handle) in setFrontendListTest_addFrontendResources_noExclusiveGroupId()
128 for (int id = 0; id < infos.length; id++) { in setFrontendListTest_addFrontendResources_noExclusiveGroupId()
129 assertThat(resources.get(infos[id].handle) in setFrontendListTest_addFrontendResources_noExclusiveGroupId()
133 .containsExactlyElementsIn(Arrays.asList(infos)); in setFrontendListTest_addFrontendResources_noExclusiveGroupId()
139 TunerFrontendInfo[] infos = new TunerFrontendInfo[4]; in setFrontendListTest_addFrontendResources_underTheSameExclusiveGroupId() local
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowRouter2Manager.java46 public void setAvailableRoutes(List<MediaRoute2Info> infos) { in setAvailableRoutes() argument
47 mAvailableRoutes = infos; in setAvailableRoutes()
55 public void setAllRoutes(List<MediaRoute2Info> infos) { in setAllRoutes() argument
56 mAllRoutes = infos; in setAllRoutes()
64 public void setRemoteSessions(List<RoutingSessionInfo> infos) { in setRemoteSessions() argument
65 mRemoteSessions = infos; in setRemoteSessions()
73 public void setRoutingSessions(List<RoutingSessionInfo> infos) { in setRoutingSessions() argument
74 mRoutingSessions = infos; in setRoutingSessions()
105 public void setTransferableRoutes(List<MediaRoute2Info> infos) { in setTransferableRoutes() argument
106 mAvailableRoutes = infos; in setTransferableRoutes()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DProxyAccessibilityServiceConnectionTest.java107 final List<AccessibilityServiceInfo> infos = new ArrayList<>(); in testSetInstalledAndEnabledServices_updateInfos_notifiesSystemOfProxyChange() local
109 infos.add(info1); in testSetInstalledAndEnabledServices_updateInfos_notifiesSystemOfProxyChange()
111 mProxyConnection.setInstalledAndEnabledServices(infos); in testSetInstalledAndEnabledServices_updateInfos_notifiesSystemOfProxyChange()
129 final List<AccessibilityServiceInfo> infos = new ArrayList<>(); in testSetInstalledAndEnabledServices_returnList() local
132 infos.add(info1); in testSetInstalledAndEnabledServices_returnList()
133 infos.add(info2); in testSetInstalledAndEnabledServices_returnList()
135 mProxyConnection.setInstalledAndEnabledServices(infos); in testSetInstalledAndEnabledServices_returnList()
146 final List<AccessibilityServiceInfo> infos = new ArrayList<>(); in testSetInstalledAndEnabledServices_defaultNamesPopulated() local
148 infos.add(info1); in testSetInstalledAndEnabledServices_defaultNamesPopulated()
150 mProxyConnection.setInstalledAndEnabledServices(infos); in testSetInstalledAndEnabledServices_defaultNamesPopulated()
[all …]
/frameworks/base/core/java/android/os/
DSystemVibrator.java336 private static int capabilitiesIntersection(VibratorInfo[] infos, in capabilitiesIntersection() argument
339 for (VibratorInfo info : infos) { in capabilitiesIntersection()
350 private static SparseBooleanArray supportedBrakingIntersection(VibratorInfo[] infos) { in supportedBrakingIntersection() argument
351 for (VibratorInfo info : infos) { in supportedBrakingIntersection()
359 SparseBooleanArray firstVibratorBraking = infos[0].getSupportedBraking(); in supportedBrakingIntersection()
369 for (int j = 1; j < infos.length; j++) { in supportedBrakingIntersection()
370 if (!infos[j].hasBrakingSupport(brakingId)) { in supportedBrakingIntersection()
383 private static SparseBooleanArray supportedEffectsIntersection(VibratorInfo[] infos) { in supportedEffectsIntersection() argument
384 for (VibratorInfo info : infos) { in supportedEffectsIntersection()
392 SparseBooleanArray firstVibratorEffects = infos[0].getSupportedEffects(); in supportedEffectsIntersection()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DActionReplacingCallback.java115 public void setFindAccessibilityNodeInfosResult(List<AccessibilityNodeInfo> infos, in setFindAccessibilityNodeInfosResult() argument
119 mNodesFromOriginalWindow = infos; in setFindAccessibilityNodeInfosResult()
122 setNodeWithReplacementActionsFromList(infos); in setFindAccessibilityNodeInfosResult()
133 public void setPrefetchAccessibilityNodeInfoResult(List<AccessibilityNodeInfo> infos, in setPrefetchAccessibilityNodeInfoResult() argument
138 mPrefetchedNodesFromOriginalWindow = infos; in setPrefetchAccessibilityNodeInfoResult()
154 private void setNodeWithReplacementActionsFromList(List<AccessibilityNodeInfo> infos) { in setNodeWithReplacementActionsFromList() argument
155 for (int i = 0; i < infos.size(); i++) { in setNodeWithReplacementActionsFromList()
156 AccessibilityNodeInfo info = infos.get(i); in setNodeWithReplacementActionsFromList()
245 private List<AccessibilityNodeInfo> replaceActionsLocked(List<AccessibilityNodeInfo> infos) { in replaceActionsLocked() argument
246 if (infos != null) { in replaceActionsLocked()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSignalStrengthUpdateRequestTest.java92 Collection<SignalThresholdInfo> infos = List.of(mRssiInfoOnGERAN, mRscpInfoOnUTRAN); in testPublicConstructorWithValidParam() local
94 .setSignalThresholdInfos(infos).setReportingRequestedWhileIdle(false).build(); in testPublicConstructorWithValidParam()
97 assertEquals(infos, request.getSignalThresholdInfos()); in testPublicConstructorWithValidParam()
103 Collection<SignalThresholdInfo> infos = List.of(mRssiInfoOnGERAN, mRscpInfoOnUTRAN); in testParcel() local
105 .setSignalThresholdInfos(infos).setReportingRequestedWhileIdle(true).build(); in testParcel()
147 Collection<SignalThresholdInfo> infos = List.of(mRsrpInfoOnEUTRAN, mRsrqInfoEUTRAN); in testMultipleSignalMeasurementTypeOnSameRan() local
149 .setSignalThresholdInfos(infos).build(); in testMultipleSignalMeasurementTypeOnSameRan()
153 assertEquals(infos, request.getSignalThresholdInfos()); in testMultipleSignalMeasurementTypeOnSameRan()
159 Collection<SignalThresholdInfo> infos = List.of(mRssiInfoOnGERAN, mRssiInfoOnCDMA2000); in testSameSignalMeasurementTypeOnDifferentRan() local
161 .setSignalThresholdInfos(infos).build(); in testSameSignalMeasurementTypeOnDifferentRan()
[all …]
DNetworkScanResultTest.java43 ArrayList<CellInfo> infos = new ArrayList<CellInfo>(); in testParcel() local
53 infos.add(gsm); in testParcel()
64 infos.add(lte); in testParcel()
66 NetworkScanResult nsr = new NetworkScanResult(0, 0, infos); in testParcel()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsCallInfoTracker.java142 Collection<ImsCallInfo> infos = mImsCallInfo.values(); in clearAllOrphanedConnections() local
143 infos.stream().forEach(info -> { info.onDisconnect(); }); in clearAllOrphanedConnections()
162 Collection<ImsCallInfo> infos = mImsCallInfo.values(); in clearAllCallInfo() local
163 infos.stream().forEach(info -> { info.reset(); }); in clearAllCallInfo()
173 Collection<ImsCallInfo> infos = mImsCallInfo.values(); in notifyImsCallStatus() local
174 ArrayList<ImsCallInfo> imsCallInfo = new ArrayList<ImsCallInfo>(infos); in notifyImsCallStatus()
185 public static void sort(List<ImsCallInfo> infos) { in sort() argument
186 Collections.sort(infos, new Comparator<ImsCallInfo>() { in sort()
200 Collection<ImsCallInfo> infos = mImsCallInfo.values(); in dump() local
201 ArrayList<ImsCallInfo> imsCallInfo = new ArrayList<ImsCallInfo>(infos); in dump()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityInteractionClient.java674 List<AccessibilityNodeInfo> infos = in findAccessibilityNodeInfoByAccessibilityId() local
681 + connectionId + ";Result: " + infos); in findAccessibilityNodeInfoByAccessibilityId()
683 finalizeAndCacheAccessibilityNodeInfos(infos, connectionId, in findAccessibilityNodeInfoByAccessibilityId()
685 if (infos != null && !infos.isEmpty()) { in findAccessibilityNodeInfoByAccessibilityId()
686 return infos.get(0); in findAccessibilityNodeInfoByAccessibilityId()
775 List<AccessibilityNodeInfo> infos = getFindAccessibilityNodeInfosResultAndClear( in findAccessibilityNodeInfosByViewId() local
780 + ":Result: " + infos); in findAccessibilityNodeInfosByViewId()
782 if (infos != null) { in findAccessibilityNodeInfosByViewId()
783 finalizeAndCacheAccessibilityNodeInfos(infos, connectionId, in findAccessibilityNodeInfosByViewId()
785 return infos; in findAccessibilityNodeInfosByViewId()
[all …]
DIAccessibilityInteractionConnectionCallback.aidl46 void setFindAccessibilityNodeInfosResult(in List<AccessibilityNodeInfo> infos, in setFindAccessibilityNodeInfosResult() argument
56 in List<AccessibilityNodeInfo> infos, int interactionId); in setPrefetchAccessibilityNodeInfoResult() argument
/frameworks/av/services/mediaresourcemanager/
DResourceManagerService.cpp167 const ResourceInfos& infos) { in hasResourceType() argument
168 for (size_t i = 0; i < infos.size(); ++i) { in hasResourceType()
169 if (hasResourceType(type, subType, infos[i].resources)) { in hasResourceType()
189 const std::shared_ptr<IResourceManagerClient>& client, ResourceInfos& infos) { in getResourceInfoForEdit() argument
190 ssize_t index = infos.indexOfKey(clientId); in getResourceInfoForEdit()
205 index = infos.add(clientId, info); in getResourceInfoForEdit()
208 return infos.editValueAt(index); in getResourceInfoForEdit()
284 const ResourceInfos &infos = mapCopy.valueAt(i); in dump() local
285 for (size_t j = 0; j < infos.size(); ++j) { in dump()
287 snprintf(buffer, SIZE, " Id: %lld\n", (long long)infos[j].clientId); in dump()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverListControllerTest.java165 List<ResolveInfo> infos = new ArrayList<>(); in getResolversForIntent_usesResultsFromPackageManager() local
166 infos.add(ResolverDataProvider.createResolveInfo(0, UserHandle.USER_CURRENT, in getResolversForIntent_usesResultsFromPackageManager()
169 any(UserHandle.class))).thenReturn(infos); in getResolversForIntent_usesResultsFromPackageManager()
184 assertThat(resolvers.get(0).getResolveInfoAt(0), is(infos.get(0))); in getResolversForIntent_usesResultsFromPackageManager()
190 List<ResolveInfo> infos = new ArrayList<>(); in getResolversForIntent_shouldGetOnlyDefaultActivitiesTrue_addsFlag() local
191 infos.add(ResolverDataProvider.createResolveInfo(0, UserHandle.USER_CURRENT, in getResolversForIntent_shouldGetOnlyDefaultActivitiesTrue_addsFlag()
194 any(UserHandle.class))).thenReturn(infos); in getResolversForIntent_shouldGetOnlyDefaultActivitiesTrue_addsFlag()
215 List<ResolveInfo> infos = new ArrayList<>(); in getResolversForIntent_shouldGetOnlyDefaultActivitiesFalse_doesNotAddFlag() local
216 infos.add(ResolverDataProvider.createResolveInfo(0, UserHandle.USER_CURRENT, in getResolversForIntent_shouldGetOnlyDefaultActivitiesFalse_doesNotAddFlag()
219 any(UserHandle.class))).thenReturn(infos); in getResolversForIntent_shouldGetOnlyDefaultActivitiesFalse_doesNotAddFlag()
[all …]
/frameworks/native/libs/input/
DInputDevice.cpp279 std::vector<InputDeviceSensorInfo> infos; in getSensors() local
280 infos.reserve(mSensors.size()); in getSensors()
282 infos.push_back(info); in getSensors()
284 return infos; in getSensors()
288 std::vector<InputDeviceLightInfo> infos; in getLights() local
289 infos.reserve(mLights.size()); in getLights()
291 infos.push_back(info); in getLights()
293 return infos; in getLights()
/frameworks/base/core/java/android/view/
DAccessibilityInteractionController.java363 ArrayList<AccessibilityNodeInfo> infos = mTempAccessibilityNodeInfoList; in findAccessibilityNodeInfoByAccessibilityIdUiThread() local
364 infos.clear(); in findAccessibilityNodeInfoByAccessibilityIdUiThread()
378 infos.add(requestedNode); in findAccessibilityNodeInfoByAccessibilityIdUiThread()
381 infos); in findAccessibilityNodeInfoByAccessibilityIdUiThread()
388 updateInfosForViewportAndReturnFindNodeResult(infos, callback, interactionId, spec, in findAccessibilityNodeInfoByAccessibilityIdUiThread()
393 infos, flags); in findAccessibilityNodeInfoByAccessibilityIdUiThread()
406 requestedNode == null ? null : new AccessibilityNodeInfo(requestedNode), infos); in findAccessibilityNodeInfoByAccessibilityIdUiThread()
408 updateInfosForViewPort(infos, spec, matrixValues, interactiveRegion); in findAccessibilityNodeInfoByAccessibilityIdUiThread()
410 getSatisfiedRequestInPrefetch(requestedNode == null ? null : requestedNode, infos, in findAccessibilityNodeInfoByAccessibilityIdUiThread()
414 returnPrefetchResult(interactionId, infos, callback); in findAccessibilityNodeInfoByAccessibilityIdUiThread()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_powerstats_PowerStatsService.cpp140 [&env, &powerEntityArray](auto infos, auto status) { in nativeGetPowerEntityInfo() argument
144 powerEntityArray = env->NewObjectArray(infos.size(), class_PE, nullptr); in nativeGetPowerEntityInfo()
145 for (int i = 0; i < infos.size(); i++) { in nativeGetPowerEntityInfo()
146 jstring name = env->NewStringUTF(infos[i].powerEntityName.c_str()); in nativeGetPowerEntityInfo()
148 env->SetIntField(powerEntity, field_PE_id, infos[i].powerEntityId); in nativeGetPowerEntityInfo()
161 ->getPowerEntityStateInfo({}, [&env, &powerEntityArray](auto infos, auto status) { in nativeGetPowerEntityInfo() argument
165 for (int i = 0; i < infos.size(); i++) { in nativeGetPowerEntityInfo()
167 env->NewObjectArray(infos[i].states.size(), class_S, nullptr); in nativeGetPowerEntityInfo()
168 for (int j = 0; j < infos[i].states.size(); j++) { in nativeGetPowerEntityInfo()
170 infos[i].states[j].powerEntityStateName.c_str()); in nativeGetPowerEntityInfo()
[all …]
/frameworks/base/telephony/java/android/telephony/
DSignalStrengthUpdateRequest.java278 private static void validate(Collection<SignalThresholdInfo> infos, in validate() argument
283 if (infos == null || (infos.isEmpty() && !isSystemThresholdReportingRequestedWhileIdle)) { in validate()
288 Map<Integer, Set<Integer>> ranToTypes = new HashMap<>(infos.size()); in validate()
289 for (SignalThresholdInfo info : infos) { in validate()
/frameworks/base/services/tests/PackageManagerServiceTests/appenumeration/src/com/android/server/pm/test/appenumeration/
DAppEnumerationInternalTests.java91 final List<ProviderInfo> infos = new ArrayList<>(); in querySyncProviders_canSeeForceQueryable() local
93 mIPackageManager.querySyncProviders(names, infos); in querySyncProviders_canSeeForceQueryable()
96 assertThat(infos.stream().map(info -> info.packageName).collect(Collectors.toList())) in querySyncProviders_canSeeForceQueryable()
103 final List<ProviderInfo> infos = new ArrayList<>(); in querySyncProviders_cannotSeeSyncProvider() local
105 mIPackageManager.querySyncProviders(names, infos); in querySyncProviders_cannotSeeSyncProvider()
108 assertThat(infos.stream().map(info -> info.packageName).collect(Collectors.toList())) in querySyncProviders_cannotSeeSyncProvider()
/frameworks/av/services/tuner/
DTunerService.cpp299 vector<TunerFrontendInfo> infos; in getTRMFrontendInfos() local
303 return infos; in getTRMFrontendInfos()
317 infos.push_back(tunerFrontendInfo); in getTRMFrontendInfos()
320 return infos; in getTRMFrontendInfos()
324 vector<TunerDemuxInfo> infos; in getTRMDemuxInfos() local
328 return infos; in getTRMDemuxInfos()
333 return infos; in getTRMDemuxInfos()
343 infos.push_back(tunerDemuxInfo); in getTRMDemuxInfos()
346 return infos; in getTRMDemuxInfos()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DInfoMediaManager.java483 List<RoutingSessionInfo> infos = new ArrayList<>(); in getActiveMediaSession() local
484 infos.add(mRouterManager.getSystemRoutingSession(null)); in getActiveMediaSession()
485 infos.addAll(mRouterManager.getRemoteSessions()); in getActiveMediaSession()
486 return infos; in getActiveMediaSession()
502 List<MediaRoute2Info> infos = new ArrayList<>(); in getAvailableRoutes() local
507 infos.addAll(selectedRouteInfos); in getAvailableRoutes()
508 infos.addAll(mRouterManager.getSelectableRoutes(routingSessionInfo)); in getAvailableRoutes()
514 for (MediaRoute2Info mediaRoute2Info : infos) { in getAvailableRoutes()
521 infos.add(transferableRoute); in getAvailableRoutes()
532 infos = Api34Impl.arrangeRouteListByPreference(selectedRouteInfos, in getAvailableRoutes()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/
DRootDisplayAreaOrganizer.java49 List<DisplayAreaAppearedInfo> infos = registerOrganizer(FEATURE_ROOT); in RootDisplayAreaOrganizer() local
50 for (int i = infos.size() - 1; i >= 0; --i) { in RootDisplayAreaOrganizer()
51 onDisplayAreaAppeared(infos.get(i).getDisplayAreaInfo(), infos.get(i).getLeash()); in RootDisplayAreaOrganizer()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaCodecListOverrides.h37 void profileCodecs(const std::vector<sp<MediaCodecInfo>> &infos,
42 const std::vector<sp<MediaCodecInfo>> &infos,
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DAccessibilityManagerTest.java240 ArrayList<AccessibilityServiceInfo> infos = new ArrayList<>(); in testRegisterAccessibilityProxy() local
241 infos.add(new AccessibilityServiceInfo()); in testRegisterAccessibilityProxy()
242 AccessibilityDisplayProxy proxy = new MyAccessibilityProxy(DISPLAY_ID, infos); in testRegisterAccessibilityProxy()
256 final ArrayList<AccessibilityServiceInfo> infos = new ArrayList<>(); in testUnregisterAccessibilityProxy() local
257 infos.add(new AccessibilityServiceInfo()); in testUnregisterAccessibilityProxy()
259 final AccessibilityDisplayProxy proxy = new MyAccessibilityProxy(DISPLAY_ID, infos); in testUnregisterAccessibilityProxy()
/frameworks/av/media/libstagefright/tests/
DMediaCodecListOverrides_test.cpp121 std::vector<sp<MediaCodecInfo>> infos; in TEST_F() local
123 infos.push_back(list->getCodecInfo(i)); in TEST_F()
129 infos, &global_results, &encoder_results, &decoder_results, true /* forceToMeasure */); in TEST_F()
/frameworks/base/services/core/java/com/android/server/tv/tunerresourcemanager/
DTunerResourceManagerService.java245 public void setFrontendInfoList(@NonNull TunerFrontendInfo[] infos) throws RemoteException { in setFrontendInfoList() argument
247 if (infos == null) { in setFrontendInfoList()
251 setFrontendInfoListInternal(infos); in setFrontendInfoList()
256 public void setDemuxInfoList(@NonNull TunerDemuxInfo[] infos) throws RemoteException { in setDemuxInfoList() argument
258 if (infos == null) { in setDemuxInfoList()
262 setDemuxInfoListInternal(infos); in setDemuxInfoList()
863 protected void setFrontendInfoListInternal(TunerFrontendInfo[] infos) { in setFrontendInfoListInternal() argument
866 for (int i = 0; i < infos.length; i++) { in setFrontendInfoListInternal()
867 Slog.d(TAG, infos[i].toString()); in setFrontendInfoListInternal()
877 for (int i = 0; i < infos.length; i++) { in setFrontendInfoListInternal()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/demo/
DDemoMobileConnectionsRepositoryTest.kt343 .onEach { infos -> in <lambda>() method
345 infos.map { info -> underTest.getRepoForSubId(info.subscriptionId) } in <lambda>()
369 .onEach { infos -> in <lambda>() method
371 infos.map { info -> underTest.getRepoForSubId(info.subscriptionId) } in <lambda>()
427 .onEach { infos -> in <lambda>() method
429 infos.map { info -> underTest.getRepoForSubId(info.subscriptionId) } in <lambda>()
459 .onEach { infos -> in <lambda>() method
461 infos.map { info -> underTest.getRepoForSubId(info.subscriptionId) } in <lambda>()
506 .onEach { infos -> in <lambda>() method
508 infos.map { info -> underTest.getRepoForSubId(info.subscriptionId) } in <lambda>()

12345