Examples of DeviceHandle


Examples of org.usb4java.DeviceHandle

     */
    @Test(expected = IllegalStateException.class)
    public void testGetStringDescriptorAsciiWithUninitializedHandle()
    {
        assumeUsbTestsEnabled();
        LibUsb.getStringDescriptorAscii(new DeviceHandle(), (byte) 0,
            new StringBuffer());
    }
View Full Code Here

Examples of org.usb4java.DeviceHandle

     */
    @Test(expected = IllegalStateException.class)
    public void testGetBosDescriptorWithUninitializedHandle()
    {
        assumeUsbTestsEnabled();
        LibUsb.getBosDescriptor(new DeviceHandle(), new BosDescriptor());
    }
View Full Code Here

Examples of org.usb4java.DeviceHandle

     */
    @Test(expected = IllegalStateException.class)
    public void testGetDescriptorWithUninitializedHandle()
    {
        assumeUsbTestsEnabled();
        LibUsb.getDescriptor(new DeviceHandle(), (byte) 0, (byte) 0,
            ByteBuffer.allocateDirect(1));
    }
View Full Code Here

Examples of org.usb4java.DeviceHandle

     */
    @Test(expected = IllegalStateException.class)
    public void testGetStringDescriptorWithUninitializedHandle()
    {
        assumeUsbTestsEnabled();
        LibUsb.getStringDescriptor(new DeviceHandle(), (byte) 0, (short) 0,
            ByteBuffer.allocateDirect(1));
    }
View Full Code Here

Examples of org.usb4java.DeviceHandle

     */
    @Test(expected = IllegalStateException.class)
    public void testControlTransferWithUninitializedHandle()
    {
        assumeUsbTestsEnabled();
        LibUsb.controlTransfer(new DeviceHandle(), (byte) 0, (byte) 0,
            (short) 0, (short) 0, ByteBuffer.allocateDirect(1), 0);
    }
View Full Code Here

Examples of org.usb4java.DeviceHandle

     */
    @Test(expected = IllegalStateException.class)
    public void testBulkTransferWithUninitializedHandle()
    {
        assumeUsbTestsEnabled();
        LibUsb.bulkTransfer(new DeviceHandle(), (byte) 0,
            ByteBuffer.allocateDirect(1), BufferUtils.allocateIntBuffer(), 0);
    }
View Full Code Here

Examples of org.usb4java.DeviceHandle

     */
    @Test(expected = IllegalStateException.class)
    public void testInterruptTransferWithUninitializedHandle()
    {
        assumeUsbTestsEnabled();
        LibUsb.interruptTransfer(new DeviceHandle(), (byte) 0,
            ByteBuffer.allocateDirect(1), BufferUtils.allocateIntBuffer(), 0);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.