Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 40) sorted by relevance

12

/core/core-telecom/integration-tests/testicsapp/src/main/java/androidx/core/telecom/test/services/
DCallAudioRouteResolver.kt66 data class EndpointEntry(val endpoint: CallAudioEndpoint, val device: BluetoothDevice? = null) in <lambda>() constant in androidx.core.telecom.test.services.EndpointEntry
158 if (endpoint.device == null) return false in <lambda>()
159 onRequestBluetoothAudio(endpoint.device) in <lambda>()
192 val device: BluetoothDevice? = callAudioState.activeBluetoothDevice in <lambda>() constant
193 if (device?.address != null) { in <lambda>()
195 id = device.address, in <lambda>()
197 frameworkName = getName(device) in <lambda>()
200 val exactMatch = mEndpoints.value.firstOrNull { it.device == device } in <lambda>()
205 frameworkName = device?.let { getName(it) } in <lambda>()
264 callAudioState.supportedBluetoothDevices.map { device -> in <lambda>() method
[all …]
/core/core-telecom/src/main/java/androidx/core/telecom/internal/
DBluetoothProfileListener.kt109 for (device in proxy.connectedDevices) { in <lambda>() constant
110 endpoints.add(makeEndpoint(device)) in <lambda>()
133 private fun getBluetoothDeviceName(device: BluetoothDevice): String { in <lambda>()
136 name = device.name in <lambda>()
143 private fun getBluetoothDeviceAddress(device: BluetoothDevice): String { in <lambda>()
146 address = device.address in <lambda>()
153 private fun makeEndpoint(device: BluetoothDevice): CallEndpointCompat { in <lambda>()
154 val bluetoothDeviceName = getBluetoothDeviceName(device) in <lambda>()
167 callEndpoint.mMackAddress = getBluetoothDeviceAddress(device) in <lambda>()
DPreCallEndpointsUpdater.kt49 for (device in mCurrentDevices) { constant in androidx.core.telecom.internal.PreCallEndpointsUpdater
50 if (device.isBluetoothType()) {
51 mBluetoothEndpoints[device.name.toString()] = device
53 mNonBluetoothEndpoints[device.type] = device
/core/uwb/uwb/src/main/java/androidx/core/uwb/impl/
DUwbClientSessionScopeAospImpl.kt106 val device = UwbDevice() in <lambda>() constant
109 device.address = address in <lambda>()
110 peerList.add(device) in <lambda>()
136 override fun onRangingInitialized(device: UwbDevice) { in <lambda>()
139 androidx.core.uwb.UwbDevice(UwbAddress(device.address?.address!!)) in <lambda>()
144 override fun onRangingResult(device: UwbDevice, position: RangingPosition) { in <lambda>()
147 androidx.core.uwb.UwbDevice(UwbAddress(device.address?.address!!)), in <lambda>()
158 override fun onRangingSuspended(device: UwbDevice, reason: Int) { in <lambda>()
161 androidx.core.uwb.UwbDevice(UwbAddress(device.address?.address!!)) in <lambda>()
DUwbClientSessionScopeImpl.kt141 override fun onRangingInitialized(device: UwbDevice) { in <lambda>()
144 androidx.core.uwb.UwbDevice(UwbAddress(device.address.address)) in <lambda>()
149 override fun onRangingResult(device: UwbDevice, position: RangingPosition) { in <lambda>()
152 androidx.core.uwb.UwbDevice(UwbAddress(device.address.address)), in <lambda>()
163 override fun onRangingSuspended(device: UwbDevice, reason: Int) { in <lambda>()
166 androidx.core.uwb.UwbDevice(UwbAddress(device.address.address)) in <lambda>()
/core/uwb/uwb/src/main/java/androidx/core/uwb/
DRangingResult.kt22 public abstract val device: UwbDevice constant in androidx.core.uwb.RangingResult
30 override val device: UwbDevice, constant in androidx.core.uwb.RangingResult.RangingResultPosition
35 public class RangingResultPeerDisconnected(override val device: UwbDevice) : RangingResult() constant in androidx.core.uwb.RangingResult.RangingResultPeerDisconnected
38 public class RangingResultInitialized(override val device: UwbDevice) : RangingResult() constant in androidx.core.uwb.RangingResult.RangingResultInitialized
/core/uwb/uwb/src/androidTest/java/androidx/core/uwb/impl/
DUwbControllerSessionScopeImplTest.kt100 assertThat(rangingResult!!.device.address.address).isEqualTo(NEIGHBOR_1) in testAddControlee_success()
111 assertThat(rangingResult!!.device.address.address).isEqualTo(NEIGHBOR_2) in testAddControlee_success()
136 assertThat(rangingResult!!.device.address.address).isEqualTo(NEIGHBOR_1) in testRemoveControlee_success()
147 assertThat(rangingResult!!.device.address.address).isEqualTo(NEIGHBOR_1) in testRemoveControlee_success()
193 assertThat(rangingResult!!.device.address.address).isEqualTo(NEIGHBOR_1) in testAddControleeIndividualKeyCase_success()
204 assertThat(rangingResult!!.device.address.address).isEqualTo(NEIGHBOR_2) in testAddControleeIndividualKeyCase_success()
/core/core-splashscreen/src/androidTest/java/androidx/core/splashscreen/test/
DSplashScreenTests.kt32 private lateinit var device: UiDevice variable in androidx.core.splashscreen.test.SplashScreenTests
36 device = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) in setUp()
42 startActivityWithSplashScreen(SplashScreenWithIconBgTestActivity::class, device) { in iconBackgroundSetForIconTheme()
51 startActivityWithSplashScreen(SplashScreenTestActivity::class, device) { in noIconBackgroundOnDefaultTheme()
DSplashScreenTestUtils.kt42 device: UiDevice, in startActivityWithSplashScreen()
53 val launcherPackage: String = device.launcherPackageName in startActivityWithSplashScreen()
55 device.wait(Until.hasObject(By.pkg(launcherPackage).depth(0)), LAUNCH_TIMEOUT) in startActivityWithSplashScreen()
89 device.wait(Until.hasObject(By.pkg(BASIC_SAMPLE_PACKAGE).depth(0)), LAUNCH_TIMEOUT) in startActivityWithSplashScreen()
DSplashscreenParametrizedTest.kt60 private lateinit var device: UiDevice variable in androidx.core.splashscreen.test.SplashscreenParametrizedTest
77 device = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) in setUp()
218 startActivityWithSplashScreen(SplashScreenStability1::class, device) { in endStateStableWithAndWithoutListener()
230 startActivityWithSplashScreen(SplashScreenStability1::class, device) { in endStateStableWithAndWithoutListener()
242 startActivityWithSplashScreen(SplashScreenStability2::class, device) { in endStateStableWithAndWithoutListener()
252 startActivityWithSplashScreen(SplashScreenStability2::class, device) { in endStateStableWithAndWithoutListener()
467 return startActivityWithSplashScreen(activityClass, device, intentModifier) in startActivityWithSplashScreen()
/core/uwb/uwb-rxjava3/src/androidTest/java/androidx/core/uwb/rxjava3/mock/
DTestUwbClientSessionScope.kt88 override fun onRangingInitialized(device: UwbDevice) { in <lambda>()
92 override fun onRangingResult(device: UwbDevice, position: RangingPosition) { in <lambda>()
95 androidx.core.uwb.UwbDevice(UwbAddress(device.address.address)), in <lambda>()
106 override fun onRangingSuspended(device: UwbDevice, reason: Int) { in <lambda>()
109 androidx.core.uwb.UwbDevice(UwbAddress(device.address.address)) in <lambda>()
DTestUwbClient.kt126 fun disconnectPeer(device: UwbDevice) { in disconnectPeer()
127 callback.onRangingSuspended(device, 0) in disconnectPeer()
/core/uwb/uwb/src/main/stableAidl/androidx/core/uwb/backend/
DIRangingSessionCallback.aidl33 void onRangingInitialized(in UwbDevice device); in onRangingInitialized() argument
34 void onRangingResult(in UwbDevice device, in RangingPosition position); in onRangingResult() argument
35 void onRangingSuspended(in UwbDevice device, int reason); in onRangingSuspended() argument
/core/uwb/uwb/api/aidlRelease/current/androidx/core/uwb/backend/
DIRangingSessionCallback.aidl37 oneway void onRangingInitialized(in androidx.core.uwb.backend.UwbDevice device); in onRangingInitialized() argument
38 …oneway void onRangingResult(in androidx.core.uwb.backend.UwbDevice device, in androidx.core.uwb.ba… in onRangingResult() argument
39 oneway void onRangingSuspended(in androidx.core.uwb.backend.UwbDevice device, int reason); in onRangingSuspended() argument
/core/core-telecom/integration-tests/testicsapp/src/main/java/androidx/core/telecom/test/
DCompatibility.kt62 fun getBluetoothDeviceAlias(device: BluetoothDevice): Result<String?> { in getBluetoothDeviceAlias()
64 Api30Impl.getBluetoothDeviceAlias(device) in getBluetoothDeviceAlias()
118 fun getBluetoothDeviceAlias(device: BluetoothDevice): Result<String?> { in getBluetoothDeviceAlias()
120 Result.success(device.alias) in getBluetoothDeviceAlias()
/core/core/src/androidTest/java/androidx/core/view/
DViewConfigurationCompatTest.java66 InputDevice device = findInputDevice(SOURCE_TOUCHSCREEN); in scaledFlingThresholds_withDeviceParams_apiPre34() local
67 if (device == null) { in scaledFlingThresholds_withDeviceParams_apiPre34()
75 device.getId(), in scaledFlingThresholds_withDeviceParams_apiPre34()
82 device.getId(), in scaledFlingThresholds_withDeviceParams_apiPre34()
/core/uwb/uwb/api/
Dcurrent.txt110 property public abstract androidx.core.uwb.UwbDevice device;
114 ctor public RangingResult.RangingResultInitialized(androidx.core.uwb.UwbDevice device);
116 property public androidx.core.uwb.UwbDevice device;
120 ctor public RangingResult.RangingResultPeerDisconnected(androidx.core.uwb.UwbDevice device);
122 property public androidx.core.uwb.UwbDevice device;
126 …ctor public RangingResult.RangingResultPosition(androidx.core.uwb.UwbDevice device, androidx.core.…
129 property public androidx.core.uwb.UwbDevice device;
Drestricted_current.txt110 property public abstract androidx.core.uwb.UwbDevice device;
114 ctor public RangingResult.RangingResultInitialized(androidx.core.uwb.UwbDevice device);
116 property public androidx.core.uwb.UwbDevice device;
120 ctor public RangingResult.RangingResultPeerDisconnected(androidx.core.uwb.UwbDevice device);
122 property public androidx.core.uwb.UwbDevice device;
126 …ctor public RangingResult.RangingResultPosition(androidx.core.uwb.UwbDevice device, androidx.core.…
129 property public androidx.core.uwb.UwbDevice device;
/core/haptics/haptics/api/
Drestricted_current.txt54 method public androidx.core.haptics.device.HapticDeviceProfile getDeviceProfile();
57 property public abstract androidx.core.haptics.device.HapticDeviceProfile deviceProfile;
67 package androidx.core.haptics.device {
84 …> hardwareOptimizedPredefinedEffectsHint, optional androidx.core.haptics.device.HapticCompositionP…
85 method public androidx.core.haptics.device.HapticCompositionProfile getCompositionProfile();
89 property public androidx.core.haptics.device.HapticCompositionProfile compositionProfile;
195 …method public androidx.core.haptics.signal.HapticSignal? resolve(androidx.core.haptics.device.Hapt…
208 …method public androidx.core.haptics.signal.HapticSignal? resolve(androidx.core.haptics.device.Hapt…
237 …method public androidx.core.haptics.signal.HapticSignal? resolve(androidx.core.haptics.device.Hapt…
Dcurrent.txt54 method public androidx.core.haptics.device.HapticDeviceProfile getDeviceProfile();
57 property public abstract androidx.core.haptics.device.HapticDeviceProfile deviceProfile;
67 package androidx.core.haptics.device {
84 …> hardwareOptimizedPredefinedEffectsHint, optional androidx.core.haptics.device.HapticCompositionP…
85 method public androidx.core.haptics.device.HapticCompositionProfile getCompositionProfile();
89 property public androidx.core.haptics.device.HapticCompositionProfile compositionProfile;
195 …method public androidx.core.haptics.signal.HapticSignal? resolve(androidx.core.haptics.device.Hapt…
208 …method public androidx.core.haptics.signal.HapticSignal? resolve(androidx.core.haptics.device.Hapt…
237 …method public androidx.core.haptics.signal.HapticSignal? resolve(androidx.core.haptics.device.Hapt…
/core/core/src/main/java/androidx/core/view/
DViewConfigurationCompat.java367 InputDevice device = InputDevice.getDevice(id); in isInputDeviceInfoValid() local
368 return device != null && device.getMotionRange(axis, source) != null; in isInputDeviceInfoValid()
/core/core-performance/src/main/java/androidx/core/performance/
DDefaultDevicePerformance.kt57 val device = Build.DEVICE in getMediaPerformanceClassFromFingerprint() constant
60 val synthesized = "$brand/$product/$device:$release" in getMediaPerformanceClassFromFingerprint()
/core/haptics/haptics/src/main/java/androidx/core/haptics/impl/
DHapticManagerImpl.kt24 import androidx.core.haptics.device.HapticCompositionProfile in <lambda>()
25 import androidx.core.haptics.device.HapticDeviceProfile in <lambda>()
/core/haptics/haptics/src/androidTest/java/androidx/core/haptics/
DGetHapticDeviceProfileTest.kt20 import androidx.core.haptics.device.HapticCompositionProfile in <lambda>()
21 import androidx.core.haptics.device.HapticDeviceProfile in <lambda>()
/core/uwb/uwb/src/androidTest/java/androidx/core/uwb/mock/
DTestUwbClient.kt127 fun disconnectPeer(device: UwbDevice) { in disconnectPeer()
128 callback.onRangingSuspended(device, 0) in disconnectPeer()

12