Loading framework/tests/bumble/src/android/bluetooth/DckL2capTest.kt +2 −0 Original line number Diff line number Diff line Loading @@ -137,6 +137,7 @@ public class DckL2capTest() : Closeable { } @Test @VirtualOnly fun testSend() { Log.d(TAG, "testSend") val remoteDevice = Loading Loading @@ -189,6 +190,7 @@ public class DckL2capTest() : Closeable { } @Test @VirtualOnly fun testReceive() { Log.d(TAG, "testReceive: Connect L2CAP") var bluetoothSocket: BluetoothSocket? Loading framework/tests/bumble/src/android/bluetooth/LeScanningTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -354,6 +354,7 @@ public class LeScanningTest { } @Test @VirtualOnly public void startBleScan_withServiceData() { advertiseWithBumbleWithServiceData(); Loading framework/tests/bumble/src/android/bluetooth/VirtualOnly.java 0 → 100644 +28 −0 Original line number Diff line number Diff line /* * Copyright (C) 2024 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package android.bluetooth; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD, ElementType.TYPE}) public @interface VirtualOnly { String value() default ""; } framework/tests/bumble/src/android/bluetooth/hid/HidHostDualModeTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -49,6 +49,7 @@ import android.bluetooth.BluetoothManager; import android.bluetooth.BluetoothProfile; import android.bluetooth.BluetoothUuid; import android.bluetooth.PandoraDevice; import android.bluetooth.VirtualOnly; import android.bluetooth.test_utils.EnableBluetoothRule; import android.content.BroadcastReceiver; import android.content.Context; Loading Loading @@ -92,6 +93,7 @@ import java.util.Arrays; /** Test cases for {@link BluetoothHidHost}. */ @SuppressLint("MissingPermission") @RunWith(AndroidJUnit4.class) @VirtualOnly public class HidHostDualModeTest { private static final String TAG = HidHostDualModeTest.class.getSimpleName(); private static final String BUMBLE_DEVICE_NAME = "Bumble"; Loading framework/tests/bumble/src/android/bluetooth/hid/HidHostTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ import android.bluetooth.BluetoothHidHost; import android.bluetooth.BluetoothManager; import android.bluetooth.BluetoothProfile; import android.bluetooth.PandoraDevice; import android.bluetooth.VirtualOnly; import android.bluetooth.cts.EnableBluetoothRule; import android.content.BroadcastReceiver; import android.content.Context; Loading Loading @@ -91,6 +92,7 @@ import java.util.concurrent.TimeUnit; /** Test cases for {@link BluetoothHidHost}. */ @RunWith(AndroidJUnit4.class) @VirtualOnly public class HidHostTest { private static final String TAG = HidHostTest.class.getSimpleName(); private static final Duration INTENT_TIMEOUT = Duration.ofSeconds(10); Loading Loading
framework/tests/bumble/src/android/bluetooth/DckL2capTest.kt +2 −0 Original line number Diff line number Diff line Loading @@ -137,6 +137,7 @@ public class DckL2capTest() : Closeable { } @Test @VirtualOnly fun testSend() { Log.d(TAG, "testSend") val remoteDevice = Loading Loading @@ -189,6 +190,7 @@ public class DckL2capTest() : Closeable { } @Test @VirtualOnly fun testReceive() { Log.d(TAG, "testReceive: Connect L2CAP") var bluetoothSocket: BluetoothSocket? Loading
framework/tests/bumble/src/android/bluetooth/LeScanningTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -354,6 +354,7 @@ public class LeScanningTest { } @Test @VirtualOnly public void startBleScan_withServiceData() { advertiseWithBumbleWithServiceData(); Loading
framework/tests/bumble/src/android/bluetooth/VirtualOnly.java 0 → 100644 +28 −0 Original line number Diff line number Diff line /* * Copyright (C) 2024 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package android.bluetooth; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD, ElementType.TYPE}) public @interface VirtualOnly { String value() default ""; }
framework/tests/bumble/src/android/bluetooth/hid/HidHostDualModeTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -49,6 +49,7 @@ import android.bluetooth.BluetoothManager; import android.bluetooth.BluetoothProfile; import android.bluetooth.BluetoothUuid; import android.bluetooth.PandoraDevice; import android.bluetooth.VirtualOnly; import android.bluetooth.test_utils.EnableBluetoothRule; import android.content.BroadcastReceiver; import android.content.Context; Loading Loading @@ -92,6 +93,7 @@ import java.util.Arrays; /** Test cases for {@link BluetoothHidHost}. */ @SuppressLint("MissingPermission") @RunWith(AndroidJUnit4.class) @VirtualOnly public class HidHostDualModeTest { private static final String TAG = HidHostDualModeTest.class.getSimpleName(); private static final String BUMBLE_DEVICE_NAME = "Bumble"; Loading
framework/tests/bumble/src/android/bluetooth/hid/HidHostTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ import android.bluetooth.BluetoothHidHost; import android.bluetooth.BluetoothManager; import android.bluetooth.BluetoothProfile; import android.bluetooth.PandoraDevice; import android.bluetooth.VirtualOnly; import android.bluetooth.cts.EnableBluetoothRule; import android.content.BroadcastReceiver; import android.content.Context; Loading Loading @@ -91,6 +92,7 @@ import java.util.concurrent.TimeUnit; /** Test cases for {@link BluetoothHidHost}. */ @RunWith(AndroidJUnit4.class) @VirtualOnly public class HidHostTest { private static final String TAG = HidHostTest.class.getSimpleName(); private static final Duration INTENT_TIMEOUT = Duration.ofSeconds(10); Loading