IT. Expert System.

Android Reference

BluetoothStressTest


android.bluetooth

Class BluetoothStressTest



  • public class BluetoothStressTest
    extends InstrumentationTestCase
    Stress test suite for Bluetooth related functions. Includes tests for enabling/disabling bluetooth, enabling/disabling discoverable mode, starting/stopping scans, connecting/disconnecting to HFP, A2DP, HID, PAN profiles, and verifying that remote connections/disconnections occur for the PAN profile.

    This test suite uses BluetoothTestRunner to for parameters such as the number of iterations and the addresses of remote Bluetooth devices.

    • Constructor Detail

      • BluetoothStressTest

        public BluetoothStressTest()
    • Method Detail

      • tearDown

        protected void tearDown()
                         throws Exception
        Description copied from class: InstrumentationTestCase
        Make sure all resources are cleaned up and garbage collected before moving on to the next test. Subclasses that override this method should make sure they call super.tearDown() at the end of the overriding method.
        Overrides:
        tearDown in class InstrumentationTestCase
        Throws:
        Exception
      • testEnable

        public void testEnable()
        Stress test for enabling and disabling Bluetooth.
      • testDiscoverable

        public void testDiscoverable()
        Stress test for putting the device in and taking the device out of discoverable mode.
      • testScan

        public void testScan()
        Stress test for starting and stopping Bluetooth scans.
      • testEnablePan

        public void testEnablePan()
        Stress test for enabling and disabling the PAN NAP profile.
      • testPair

        public void testPair()
        Stress test for pairing and unpairing with a remote device.

        In this test, the local device initiates pairing with a remote device, and then unpairs with the device after the pairing has successfully completed.

      • testAcceptPair

        public void testAcceptPair()
        Stress test for accepting a pairing request and unpairing with a remote device.

        In this test, the local device waits for a pairing request from a remote device. It accepts the request and then unpairs after the paring has successfully completed.

      • testConnectA2dp

        public void testConnectA2dp()
        Stress test for connecting and disconnecting with an A2DP source.

        In this test, the local device plays the role of an A2DP sink, and initiates connections and disconnections with an A2DP source.

      • testConnectHeadset

        public void testConnectHeadset()
        Stress test for connecting and disconnecting the HFP with a hands free device.

        In this test, the local device plays the role of an HFP audio gateway, and initiates connections and disconnections with a hands free device.

      • testConnectInput

        public void testConnectInput()
        Stress test for connecting and disconnecting with a HID device.

        In this test, the local device plays the role of a HID host, and initiates connections and disconnections with a HID device.

      • testConnectPan

        public void testConnectPan()
        Stress test for connecting and disconnecting with a PAN NAP.

        In this test, the local device plays the role of a PANU, and initiates connections and disconnections with a NAP.

      • testIncomingPanConnection

        public void testIncomingPanConnection()
        Stress test for verifying a PANU connecting and disconnecting with the device.

        In this test, the local device plays the role of a NAP which a remote PANU connects and disconnects from.

      • testStartStopSco

        public void testStartStopSco()
        Stress test for verifying that AudioManager can open and close SCO connections.

        In this test, a HSP connection is opened with an external headset and the SCO connection is repeatibly opened and closed.



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 514 / 158855848. Delta: 0.08950 с