摘要:
Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for providing a user with feedback regarding power consumption in a battery-operated electronic device. In one aspect, a method performed by data processing apparatus includes identifying, using the data processing apparatus, usage of a hardware component of a battery-operated electronic device that includes the data processing apparatus, attributing the usage of the hardware component to the hardware component or to a software application that uses the hardware component, recording, using the data processing apparatus, a power consumption resulting from the usage, and presenting power consumption feedback to a user using the data processing apparatus. The power consumption feedback identifies the hardware component or the software application of the electronic device and the power consumption resulting from the usage.
摘要:
A method and system is provided for customizing Java API implementations. A plurality of class files is obtained, wherein the class files are capable of being used together to provide a plurality of functional behaviors to an application. A feature marker is then associated with each of the class files based on a functionality provided by the class file. Each feature marker indicates a particular functionality provided by the plurality of class files. Particular class files are then selected from the plurality of class files based on the feature markers associated with the particular class files. The plurality of class files can comprise a first JAR file, and the selected class files can be used to generate a second JAR file. The second JAR file can also exclude class files that are not selected. Further, non-Java based native files, if any, utilized by the plurality of class files can also be customized to a subset of the original native files in a similar manner.
摘要:
Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for providing a user with feedback regarding power consumption in a battery-operated electronic device. In one aspect, a method performed by data processing apparatus includes identifying, using the data processing apparatus, usage of a hardware component of a battery-operated electronic device that includes the data processing apparatus, attributing the usage of the hardware component to the hardware component or to a software application that uses the hardware component, recording, using the data processing apparatus, a power consumption resulting from the usage, and presenting power consumption feedback to a user using the data processing apparatus. The power consumption feedback identifies the hardware component or the software application of the electronic device and the power consumption resulting from the usage.
摘要:
Methods, systems, and apparatus, including computer programs encoded on computer storage media, for resolving keystrokes. One of the methods includes receiving a first keystroke and a second keystroke input by a user on a keyboard. The first keystroke corresponds to a first key on the keyboard and the second keystroke corresponds to a second key on the keyboard that is different from the first key. The first keystroke and the second keystroke are determined to have been input at substantially the same time and the first key is determined to be adjacent the second key on the keyboard. In response to the determinations, a suggestion is generated that only one of the two keystrokes was intended to be input.
摘要:
A method and apparatus for providing plug-in media decoders. Embodiments provide a “plug-in” decoder architecture that allows software decoders to be transparently downloaded, along with media data. User applications are able to support new media types as long as the corresponding plug-in decoder is available with the media data. Persistent storage requirements are decreased because the downloaded decoder is transient, existing in application memory for the duration of execution of the user application. The architecture also supports use of plug-in decoders already installed in the user computer. One embodiment is implemented with object-based class files executed in a virtual machine to form a media application. A media data type is determined from incoming media data, and used to generate a class name for a corresponding codec (coder-decoder) object. A class path vector is searched, including the source location of the incoming media data, to determine the location of the codec class file for the given class name. When the desired codec class file is located, the virtual machine's class loader loads the class file for integration into the media application. If the codec class file is located across the network at the source location of the media data; the class loader downloads the codec class file from the network. Once the class file is loaded into the virtual machine, an instance of the codec class is created within the media application to decode/decompress the media data as appropriate for the media data type.
摘要:
The subject matter of this document can be implemented in, among other things, a method that includes displaying, on a user interface of a computing device, a base portion of a keyboard. The method further includes receiving, on the user interface, a user input that includes initiating a contact at a first region of the user interface that is associated with the base portion of the keyboard, moving the contact, while maintaining connection with the user interface, to a second region of the user interface that is outside the first region and that is associated with an extended portion of the keyboard, and releasing the contact at a location within the second region. The method further includes activating a selection in the extended portion of the keyboard based on the location within the second region at which the contact is released.
摘要:
The subject matter of this specification can be implemented in, among other things, a computer-implemented touch screen user interface method that includes displaying a plurality of keys of a virtual keyboard on a touch screen computer interface, wherein the keys each include initial labels and a first key has multi-modal input capability that include a first mode in which the key is tapped and a second mode in which the key is slid across. The method further includes identifying an occurrence of sliding motion in a first direction by a user on the touch screen and over the first key. The method further includes determining modified key labels for at least some of the plurality of keys. The method further includes displaying the plurality of keys with the modified labels in response to identifying the occurrence of sliding motion on the touch screen and over the first key.
摘要:
A computer-implemented user interface method includes displaying on a touch screen a potion of a large scale graphical space that is at least multiples larger than the device display, receiving from a user of the device an input to pan within the graphical space, automatically generating a pop up graphical panning control in response to receiving the user input, and receiving a user input to the panning control and providing panning in the graphical space, wherein movement of the panning control in a single selection is able to pan the display across a substantial portion of the large scale graphical space.
摘要:
A mobile multimedia framework API is provided that is capable of operation in mobile hardware devices. The mobile multimedia framework API includes a playback interface, controls, an event listener, an error list, exceptions, events, control types, and protocol handlers. Advantageously, a memory size of the mobile multimedia framework API is less than 100 kilobytes.
摘要:
A method and apparatus for providing plug-in media decoders. Embodiments provide a “plug-in” decoder architecture that allows software decoders to be transparently downloaded, along with media data. User applications are able to support new media types as long as the corresponding plug-in decoder is available with the media data. Persistent storage requirements are decreased because the downloaded decoder is transient, existing in application memory for the duration of execution of the user application. The architecture also supports use of plug-in decoders already installed in the user computer. One embodiment is implemented with object-based class files executed in a virtual machine to form a media application. A media data type is determined from incoming media data, and used to generate a class name for a corresponding codec (coder-decoder) object. A class path vector is searched, including the source location of the incoming media data, to determine the location of the codec class file for the given class name. When the desired codec class file is located, the virtual machine's class loader loads the class file for integration into the media application. If the codec class file is located across the network at the source location of the media data, the class loader downloads the codec class file from the network. Once the class file is loaded into the virtual machine, an instance of the codec class is created within the media application to decode/decompress the media data as appropriate for the media data type.