Home
last modified time | relevance | path

Searched refs:cm (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/av/services/camera/libcameraservice/tests/
DClientManagerTest.cpp63 TestClientManager cm; in TEST() local
68 auto evicted = cm.addAndEvict(cam0Desc); in TEST()
77 auto wouldBeEvicted = cm.wouldEvict(cam1Desc); in TEST()
81 cm.removeAll(); in TEST()
87 evicted = cm.addAndEvict(cam2Desc); in TEST()
98 wouldBeEvicted = cm.wouldEvict(cam3Desc); in TEST()
101 cm.removeAll(); in TEST()
103 evicted = cm.addAndEvict(cam0Desc); in TEST()
110 wouldBeEvicted = cm.wouldEvict(cam0DescNew); in TEST()
118 cm.removeAll(); in TEST()
[all …]
/frameworks/base/libs/hwui/tests/common/scenes/
DSimpleColorMatrixAnimation.cpp59 SkColorMatrix cm; in createCard() local
60 cm.setScale(1.1f, 1.1f, 1.1f, 0.5f); in createCard()
61 cm.postTranslate(5.0f/255, 5.0f/255, 5.0f/255, 10.0f/255); in createCard()
63 paint.setColorFilter(SkColorFilters::Matrix(cm)); in createCard()
/frameworks/av/camera/ndk/impl/
DACameraManager.cpp282 sp<CameraManagerGlobal> cm = mCameraManager.promote(); in binderDied() local
283 if (cm != nullptr) { in binderDied()
284 AutoMutex lock(cm->mLock); in binderDied()
286 keysToRemove.reserve(cm->mDeviceStatusMap.size()); in binderDied()
287 for (auto& pair : cm->mDeviceStatusMap) { in binderDied()
292 cm->onStatusChangedLocked(CameraServiceListener::STATUS_NOT_PRESENT, key.deviceId, in binderDied()
295 cm->mCameraService.clear(); in binderDied()
560 sp<CameraManagerGlobal> cm = mCameraManager.promote(); in onCameraAccessPrioritiesChanged() local
561 if (cm != nullptr) { in onCameraAccessPrioritiesChanged()
562 cm->onCameraAccessPrioritiesChanged(); in onCameraAccessPrioritiesChanged()
[all …]
DACameraManager.h111 explicit DeathNotifier(CameraManagerGlobal* cm) : mCameraManager(cm) {} in DeathNotifier() argument
122 explicit CameraServiceListener(CameraManagerGlobal* cm) : mCameraManager(cm) {} in CameraServiceListener() argument
/frameworks/base/tests/vcn/java/com/android/server/vcn/routeselection/
DUnderlyingNetworkControllerTest.java253 final ConnectivityManager cm = mock(ConnectivityManager.class); in testNetworkCallbacksRegisteredOnStartupForTestMode() local
254 setupSystemService(mContext, cm, Context.CONNECTIVITY_SERVICE, ConnectivityManager.class); in testNetworkCallbacksRegisteredOnStartupForTestMode()
271 verify(cm) in testNetworkCallbacksRegisteredOnStartupForTestMode()
279 ConnectivityManager cm, in verifyRequestBackgroundNetwork() argument
283 verify(cm) in verifyRequestBackgroundNetwork()
296 final ConnectivityManager cm = mock(ConnectivityManager.class); in testNetworkCallbacksRegisteredOnStartupForNonInternetCapabilities() local
297 setupSystemService(mContext, cm, Context.CONNECTIVITY_SERVICE, ConnectivityManager.class); in testNetworkCallbacksRegisteredOnStartupForNonInternetCapabilities()
326 cm, in testNetworkCallbacksRegisteredOnStartupForNonInternetCapabilities()
331 cm, subId, Collections.singleton(NET_CAPABILITY_DUN), Collections.emptySet()); in testNetworkCallbacksRegisteredOnStartupForNonInternetCapabilities()
333 cm, in testNetworkCallbacksRegisteredOnStartupForNonInternetCapabilities()
[all …]
/frameworks/av/services/audiopolicy/tests/
DAudioPolicyManagerTestClient.h210 for (const auto& cm : mSupportedChannelMasks) { in getParameters() local
211 if (!audio_channel_mask_is_valid(cm)) { in getParameters()
215 channelMasks += audio_channel_mask_to_string(cm); in getParameters()
231 for (const auto& cm : mSupportedChannelMasks) { in getAudioMixPort() local
232 if (audio_channel_mask_is_valid(cm)) { in getAudioMixPort()
234 mixPort->audio_profiles[i].num_channel_masks++] = cm; in getAudioMixPort()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaTestUtil.java86 String cm = "ps "; in captureMemInfo() local
87 cm += mProcessName; in captureMemInfo()
88 Log.v(TAG, cm); in captureMemInfo()
93 Process p = Runtime.getRuntime().exec(cm); in captureMemInfo()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DAbstractIpAddressPreferenceController.java95 private static String getDefaultIpAddresses(ConnectivityManager cm) { in getDefaultIpAddresses() argument
96 LinkProperties prop = cm.getLinkProperties(cm.getActiveNetwork()); in getDefaultIpAddresses()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DTetherUtil.java26 final ConnectivityManager cm = context.getSystemService(ConnectivityManager.class); in isTetherAvailable() local
32 return (cm.isTetheringSupported() || tetherConfigDisallowed) && !hasBaseUserRestriction; in isTetherAvailable()
/frameworks/av/media/codec2/sfplugin/
DCCodecConfig.cpp269 void add(const ConfigMapper &cm) { in add()
270 auto it = mConfigMappers.find(cm.mediaKey()); in add()
272 ((cm.domain() & Domain::IS_INPUT) ? 'I' : ' '), in add()
273 ((cm.domain() & Domain::IS_OUTPUT) ? 'O' : ' '), in add()
274 ((cm.domain() & Domain::IS_CODED) ? 'C' : ' '), in add()
275 ((cm.domain() & Domain::IS_RAW) ? 'R' : ' '), in add()
276 ((cm.domain() & Domain::IS_CONFIG) ? 'c' : ' '), in add()
277 ((cm.domain() & Domain::IS_PARAM) ? 'p' : ' '), in add()
278 ((cm.domain() & Domain::IS_READ) ? 'r' : ' '), in add()
279 cm.domain(), in add()
[all …]
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DUserBadgeDrawable.java117 ColorMatrix cm = new ColorMatrix(); in setColorFilter() local
118 cf.getColorMatrix(cm); in setColorFilter()
126 cm2.postConcat(cm); in setColorFilter()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkManagementService.java1075 final ConnectivityManager cm = mContext.getSystemService(ConnectivityManager.class); in setUidOnMeteredNetworkList() local
1079 cm.addUidToMeteredNetworkAllowList(uid); in setUidOnMeteredNetworkList()
1081 cm.removeUidFromMeteredNetworkAllowList(uid); in setUidOnMeteredNetworkList()
1085 cm.addUidToMeteredNetworkDenyList(uid); in setUidOnMeteredNetworkList()
1087 cm.removeUidFromMeteredNetworkDenyList(uid); in setUidOnMeteredNetworkList()
1261 final ConnectivityManager cm = mContext.getSystemService(ConnectivityManager.class); in setFirewallChainEnabled() local
1263 cm.setFirewallChainEnabled(chain, enable); in setFirewallChainEnabled()
1327 final ConnectivityManager cm = mContext.getSystemService(ConnectivityManager.class); in setFirewallUidRules() local
1329 cm.replaceFirewallChain(chain, uids); in setFirewallUidRules()
1346 final ConnectivityManager cm = mContext.getSystemService(ConnectivityManager.class); in setFirewallUidRuleLocked() local
[all …]
/frameworks/av/services/camera/virtualcamera/
DVirtualCameraService.cc188 std::cmatch cm; in parseCommand() local
189 if (!std::regex_match(args[i], cm, optionRegex)) { in parseCommand()
193 cmd.optionToValueMap[cm[1]] = cm[2]; in parseCommand()
/frameworks/base/startop/apps/test/src/
DSystemServerBenchmarks.java193 ConnectivityManager cm = (ConnectivityManager) parent in initializeBenchmarks() local
196 cm.getActiveNetworkInfo(); in initializeBenchmarks()
/frameworks/av/camera/ndk/ndk_vendor/impl/
DACameraManager.cpp559 std::shared_ptr<CameraManagerGlobal> cm = mCameraManager.lock(); in onStatusChanged() local
560 if (cm != nullptr) { in onStatusChanged()
561 cm->onStatusChanged(status, cameraId); in onStatusChanged()
612 std::shared_ptr<CameraManagerGlobal> cm = mCameraManager.lock(); in onPhysicalCameraStatusChanged() local
613 if (cm != nullptr) { in onPhysicalCameraStatusChanged()
614 cm->onStatusChanged(in_status, in_cameraId, in_physicalCameraId); in onPhysicalCameraStatusChanged()
DACameraManager.h88 explicit CameraServiceListener(std::weak_ptr<CameraManagerGlobal> cm) : in CameraServiceListener() argument
89 mCameraManager(std::move(cm)) {} in CameraServiceListener()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNetworkRegistrationManager.java256 ComponentName cm = new ComponentName(packageName, className); in bindService() local
257 intent = new Intent(NetworkService.SERVICE_INTERFACE).setComponent(cm); in bindService()
DDeviceStateMonitor.java317 ConnectivityManager cm = (ConnectivityManager) phone.getContext().getSystemService( in DeviceStateMonitor() local
319 cm.registerNetworkCallback(mWifiNetworkRequest, mNetworkCallback); in DeviceStateMonitor()
DMultiSimSettingController.java457 CarrierConfigManager cm; in onCarrierConfigChanged() local
459 || ((cm = mContext.getSystemService(CarrierConfigManager.class)) != null in onCarrierConfigChanged()
461 cm.getConfigForSubId(subId)))) { in onCarrierConfigChanged()
/frameworks/base/services/profcollect/src/com/android/server/profcollect/
DProfcollectForwardingService.java376 CameraManager cm = getContext().getSystemService(CameraManager.class); in registerCameraOpenObserver() local
377 cm.registerAvailabilityCallback(new CameraManager.AvailabilityCallback() { in registerCameraOpenObserver()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
DMediaPlayerPerformance.java318 String cm = "ps mediaserver"; in captureMediaserverInfo() local
323 Process p = Runtime.getRuntime().exec(cm); in captureMediaserverInfo()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetdEventListenerService.java165 public NetdEventListenerService(ConnectivityManager cm) { in NetdEventListenerService() argument
167 mCm = cm; in NetdEventListenerService()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DAccessNetworksManager.java491 ComponentName cm = new ComponentName(packageName, className); in bindQualifiedNetworksService() local
493 .setComponent(cm); in bindQualifiedNetworksService()
DLinkBandwidthEstimator.java314 ConnectivityManager cm = phone.getContext() in LinkBandwidthEstimator() local
316 if (cm != null) { in LinkBandwidthEstimator()
317 cm.registerDefaultNetworkCallback(mDefaultNetworkCallback, this); in LinkBandwidthEstimator()
/frameworks/base/core/java/android/app/
DActivity.java1382 final ContentCaptureManager cm = getContentCaptureManager(); in notifyContentCaptureManagerIfNeeded() local
1383 if (cm == null) return; in notifyContentCaptureManagerIfNeeded()
1391 cm.updateWindowAttributes(window.getAttributes()); in notifyContentCaptureManagerIfNeeded()
1393 cm.onActivityCreated(mToken, mShareableActivityToken, getComponentName()); in notifyContentCaptureManagerIfNeeded()
1396 cm.onActivityResumed(); in notifyContentCaptureManagerIfNeeded()
1399 cm.onActivityPaused(); in notifyContentCaptureManagerIfNeeded()
1402 cm.onActivityDestroyed(); in notifyContentCaptureManagerIfNeeded()
1413 final ContentCaptureManager cm = getContentCaptureManager(); in setLocusContextToContentCapture() local
1414 if (cm == null) return; in setLocusContextToContentCapture()
1421 cm.getMainContentCaptureSession().setContentCaptureContext( in setLocusContextToContentCapture()

12