Examples of DeviceCapabilityManager


Examples of com.volantis.mcs.protocols.capability.DeviceCapabilityManager

       
        if (device != null) {                   
            ProtocolConfiguration config =
                    (ProtocolConfiguration) device.getProtocolConfiguration();
            if (config != null) {
                DeviceCapabilityManager deviceCapabilityManager =
                        config.getDeviceCapabilityManager();

                if (deviceCapabilityManager != null) {
                    emulator = determineEmulator(
                            attributes, deviceCapabilityManager, supportsCSS);
View Full Code Here

Examples of com.volantis.mcs.protocols.capability.DeviceCapabilityManager

        config.initialize(device, builder);

        // Get the default device element capabilities.
        Set expectedDefaults = config.defaultElementCapabilities;
        DeviceCapabilityManager manager =
                config.getDeviceCapabilityManager();

        final String[] supportedElements = new String[] {"td", "blink", "div",
                                                         "marquee", "hr",
                                                         "strike", "u"};
        int numSupportedElements = supportedElements.length;

        // Check that unspecified values are unspecified.
        int actualNumber = 0;

        for (int i = 0; i < numSupportedElements; i++) {
            String elementName = supportedElements[i];
            DeviceElementCapability dec =
                    manager.getDeviceElementCapability(elementName, true);
            if (!expectedDefaults.contains(dec)) {
                // Commented out due to bugs in support level detection
                // assertEquals(CapabilitySupportLevel.NONE,
                //         dec.getElementSupportLevel());
            } else {
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.