Home
last modified time | relevance | path

Searched refs:cm (Results 1 – 25 of 34) 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.cpp57 SkColorMatrix cm; in createCard() local
58 cm.setScale(1.1f, 1.1f, 1.1f, 0.5f); in createCard()
59 cm.postTranslate(5.0f/255, 5.0f/255, 5.0f/255, 10.0f/255); in createCard()
61 paint.setColorFilter(SkColorFilters::Matrix(cm)); in createCard()
/frameworks/av/camera/ndk/impl/
DACameraManager.cpp189 sp<CameraManagerGlobal> cm = mCameraManager.promote(); in binderDied() local
190 if (cm != nullptr) { in binderDied()
191 AutoMutex lock(cm->mLock); in binderDied()
192 for (auto& pair : cm->mDeviceStatusMap) { in binderDied()
194 cm->onStatusChangedLocked( in binderDied()
197 cm->mCameraService.clear(); in binderDied()
449 sp<CameraManagerGlobal> cm = mCameraManager.promote(); in onCameraAccessPrioritiesChanged() local
450 if (cm != nullptr) { in onCameraAccessPrioritiesChanged()
451 cm->onCameraAccessPrioritiesChanged(); in onCameraAccessPrioritiesChanged()
460 sp<CameraManagerGlobal> cm = mCameraManager.promote(); in onStatusChanged() local
[all …]
DACameraManager.h78 explicit DeathNotifier(CameraManagerGlobal* cm) : mCameraManager(cm) {} in DeathNotifier() argument
89 explicit CameraServiceListener(CameraManagerGlobal* cm) : mCameraManager(cm) {} in CameraServiceListener() argument
/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/libs/net/common/testutils/devicetests/com/android/testutils/
DTestNetworkTracker.kt59 private val cm = context.getSystemService(ConnectivityManager::class.java) constant
79 cm.requestNetwork(networkRequest, networkCallback)
91 cm.unregisterNetworkCallback(networkCallback) in teardown()
/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()
DUtils.java334 ColorMatrix cm = new ColorMatrix(new float[] { in getAlphaInvariantColorMatrixForColor() local
340 return cm; in getAlphaInvariantColorMatrixForColor()
/frameworks/av/media/codec2/sfplugin/
DCCodecConfig.cpp262 void add(const ConfigMapper &cm) { in add()
263 auto it = mConfigMappers.find(cm.mediaKey()); in add()
265 ((cm.domain() & Domain::IS_INPUT) ? 'I' : ' '), in add()
266 ((cm.domain() & Domain::IS_OUTPUT) ? 'O' : ' '), in add()
267 ((cm.domain() & Domain::IS_CODED) ? 'C' : ' '), in add()
268 ((cm.domain() & Domain::IS_RAW) ? 'R' : ' '), in add()
269 ((cm.domain() & Domain::IS_CONFIG) ? 'c' : ' '), in add()
270 ((cm.domain() & Domain::IS_PARAM) ? 'p' : ' '), in add()
271 ((cm.domain() & Domain::IS_READ) ? 'r' : ' '), in add()
272 cm.domain(), in add()
[all …]
/frameworks/av/camera/ndk/ndk_vendor/impl/
DACameraManager.cpp299 sp<CameraManagerGlobal> cm = mCameraManager.promote(); in serviceDied() local
300 if (cm != nullptr) { in serviceDied()
301 AutoMutex lock(cm->mLock); in serviceDied()
302 for (auto& pair : cm->mDeviceStatusMap) { in serviceDied()
306 cm->onStatusChangedLocked(cameraStatusAndId); in serviceDied()
308 cm->mCameraService.clear(); in serviceDied()
511 sp<CameraManagerGlobal> cm = mCameraManager.promote(); in onStatusChanged() local
512 if (cm != nullptr) { in onStatusChanged()
513 cm->onStatusChanged(statusAndId); in onStatusChanged()
565 sp<CameraManagerGlobal> cm = mCameraManager.promote(); in onPhysicalCameraStatusChanged() local
[all …]
DACameraManager.h87 explicit DeathNotifier(CameraManagerGlobal* cm) : mCameraManager(cm) {} in DeathNotifier() argument
98 explicit CameraServiceListener(CameraManagerGlobal* cm) : mCameraManager(cm) {} in CameraServiceListener() argument
/frameworks/base/startop/apps/test/src/
DSystemServerBenchmarks.java193 ConnectivityManager cm = (ConnectivityManager) parent in initializeBenchmarks() local
196 cm.getActiveNetworkInfo(); in initializeBenchmarks()
/frameworks/base/tests/vcn/java/com/android/server/vcn/
DUnderlyingNetworkTrackerTest.java175 final ConnectivityManager cm = mock(ConnectivityManager.class); in testNetworkCallbacksRegisteredOnStartupForTestMode() local
176 setupSystemService(mContext, cm, Context.CONNECTIVITY_SERVICE, ConnectivityManager.class); in testNetworkCallbacksRegisteredOnStartupForTestMode()
190 verify(cm) in testNetworkCallbacksRegisteredOnStartupForTestMode()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNetworkRegistrationManager.java278 ComponentName cm = new ComponentName(packageName, className); in bindService() local
279 intent = new Intent(NetworkService.SERVICE_INTERFACE).setComponent(cm); in bindService()
DMultiSimSettingController.java405 CarrierConfigManager cm = (CarrierConfigManager) mContext.getSystemService( in onCarrierConfigChanged() local
407 if (cm != null && cm.getConfigForSubId(subIds[0]) != null) { in onCarrierConfigChanged()
DDeviceStateMonitor.java299 ConnectivityManager cm = (ConnectivityManager) phone.getContext().getSystemService( in DeviceStateMonitor() local
301 cm.registerNetworkCallback(mWifiNetworkRequest, mNetworkCallback); in DeviceStateMonitor()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DAccessNetworksManager.java333 ComponentName cm = new ComponentName(packageName, className); in bindQualifiedNetworksService() local
335 .setComponent(cm); in bindQualifiedNetworksService()
DDataServiceManager.java448 ComponentName cm = new ComponentName(packageName, className); in bindDataService() local
449 intent = new Intent(DataService.SERVICE_INTERFACE).setComponent(cm); in bindDataService()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
DMediaPlayerPerformance.java321 String cm = "ps mediaserver"; in captureMediaserverInfo() local
326 Process p = Runtime.getRuntime().exec(cm); in captureMediaserverInfo()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetdEventListenerService.java161 public NetdEventListenerService(ConnectivityManager cm) { in NetdEventListenerService() argument
163 mCm = cm; in NetdEventListenerService()
/frameworks/base/core/java/android/app/
DActivity.java1206 final ContentCaptureManager cm = getContentCaptureManager(); in notifyContentCaptureManagerIfNeeded() local
1207 if (cm == null) return; in notifyContentCaptureManagerIfNeeded()
1215 cm.updateWindowAttributes(window.getAttributes()); in notifyContentCaptureManagerIfNeeded()
1217 cm.onActivityCreated(mToken, mShareableActivityToken, getComponentName()); in notifyContentCaptureManagerIfNeeded()
1220 cm.onActivityResumed(); in notifyContentCaptureManagerIfNeeded()
1223 cm.onActivityPaused(); in notifyContentCaptureManagerIfNeeded()
1226 cm.onActivityDestroyed(); in notifyContentCaptureManagerIfNeeded()
1237 final ContentCaptureManager cm = getContentCaptureManager(); in setLocusContextToContentCapture() local
1238 if (cm == null) return; in setLocusContextToContentCapture()
1245 cm.getMainContentCaptureSession().setContentCaptureContext( in setLocusContextToContentCapture()
[all …]
/frameworks/base/services/core/java/com/android/server/
DBootReceiver.java268 Matcher cm = corruptionPattern.matcher(line); in stripSensitiveData()
269 if (cm.find()) return cm.group(0); in stripSensitiveData()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCodecTest.java78 String cm = "dumpsys cpuinfo"; in printCpuInfo() local
82 Process p = Runtime.getRuntime().exec(cm); in printCpuInfo()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCallTracker.java4952 ConnectivityManager cm = (ConnectivityManager) mPhone.getContext() in isWifiConnected() local
4954 if (cm != null) { in isWifiConnected()
4955 NetworkInfo ni = cm.getActiveNetworkInfo(); in isWifiConnected()
4971 ConnectivityManager cm = (ConnectivityManager) mPhone.getContext() in registerForConnectivityChanges() local
4973 if (cm != null) { in registerForConnectivityChanges()
4977 cm.registerNetworkCallback(builder.build(), mNetworkCallback); in registerForConnectivityChanges()
4990 ConnectivityManager cm = (ConnectivityManager) mPhone.getContext() in unregisterForConnectivityChanges() local
4992 if (cm != null) { in unregisterForConnectivityChanges()
4994 cm.unregisterNetworkCallback(mNetworkCallback); in unregisterForConnectivityChanges()

12