Resource index identifying multiple resource instances and selecting most appropriate UI resource instance based on weighted resource request conditions
First Claim
Patent Images
1. A method comprising:
- receiving, from an application running on a computing device, a request for a user interface (UI) resource item, the request having one or more associated request conditions, the UI resource item generically identifying a UI resource and the UI resource item having multiple UI resource instances, each UI resource instance identifying a particular value for the UI resource item as well as one or more resource instance conditions under which the particular value for the UI resource item is appropriate, each of the one or more associated request conditions having different weights;
determining, at a decision module of the computing device and using a resource index that includes the multiple UI resource instances of the UI resource item on the computing device, one of the multiple UI resource instances that includes one or more resource instance conditions that satisfy the request conditions, the request conditions identifying one or more display characteristics desired by the application, the determining including applying the different weights of the one or more associated request conditions, wherein the determining further comprisesdetermining whether one or more of the multiple UI resource instances have resource instance conditions that satisfy all of the request conditions, andidentifying as the one UI resource instance a most appropriate UI resource instance of the multiple UI resource instances in response to one or more of the multiple UI resource instances not having resource conditions that satisfy all of the request conditions; and
returning, from the decision module, the one UI resource instance to the application.
2 Assignments
0 Petitions
Accused Products
Abstract
A resource index on a computing device identifies multiple resource instances (e.g., multiple user interface (UI) resource instances) of multiple resource items (e.g., of multiple UI resource items), each resource instance having one or more resource instance conditions. In response to a request for a resource item received from an application, a determination is made based on the resource index of one of the multiple resource instances that satisfy conditions associated with the request, and the one of the multiple resource instances is returned to the application. Additionally, the resource index can be used to identify potential errors in running an application in various potential contexts.
87 Citations
20 Claims
-
1. A method comprising:
-
receiving, from an application running on a computing device, a request for a user interface (UI) resource item, the request having one or more associated request conditions, the UI resource item generically identifying a UI resource and the UI resource item having multiple UI resource instances, each UI resource instance identifying a particular value for the UI resource item as well as one or more resource instance conditions under which the particular value for the UI resource item is appropriate, each of the one or more associated request conditions having different weights; determining, at a decision module of the computing device and using a resource index that includes the multiple UI resource instances of the UI resource item on the computing device, one of the multiple UI resource instances that includes one or more resource instance conditions that satisfy the request conditions, the request conditions identifying one or more display characteristics desired by the application, the determining including applying the different weights of the one or more associated request conditions, wherein the determining further comprises determining whether one or more of the multiple UI resource instances have resource instance conditions that satisfy all of the request conditions, and identifying as the one UI resource instance a most appropriate UI resource instance of the multiple UI resource instances in response to one or more of the multiple UI resource instances not having resource conditions that satisfy all of the request conditions; and returning, from the decision module, the one UI resource instance to the application. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A computing device comprising:
-
one or more processors; and one or more computer storage media having stored thereon multiple instructions that, when executed by the one or more processors, cause the one or more processors to; receive, from an application running on the computing device, a request for a user interface (UI) resource item, the request having multiple request conditions identifying one or more UI display characteristics desired by the application, each of the multiple request conditions having different weights; determine, at the computing device and based on a resource index that identifies multiple UI resource instances of the UI resource item, the UI resource item generically identifying a UI resource, each UI resource instance identifying particular data to be displayed as part of the UI for the application as well as one or more resource instance conditions under which the particular data for the UI resource item is appropriate, different UI resource instances identifying different particular data, one of the multiple UI resource instances that satisfies the request conditions, the resource index having been generated by including, in the resource index, multiple application indexes received at the computing device for the application, wherein the one of the multiple UI resource instances that satisfies the request conditions is a UI resource instance having resource conditions that satisfy the multiple request conditions; wherein to determine the one of the multiple UI resource instances that satisfies the request conditions is to apply the different weights of the multiple request conditions, determine whether one or more of the multiple UI resource instances have resource instance conditions that satisfy all of the request conditions, and identify as the one UI resource instance a most appropriate UI resource instance of the multiple UI resource instances in response to one or more of the multiple UI resource instances not having resource conditions that satisfy all of the request conditions; and return the one UI resource instance to the application, the one UI resource instance including a value of the one UI resource instance or a reference to the value of the one UI resource instance. - View Dependent Claims (13)
-
-
14. A computing device comprising:
one or more processors; and one or more computer storage media having stored thereon multiple instructions that, when executed by the one or more processors, cause the one or more processors to perform acts comprising; receiving, from an application running on the computing device, a request for a user interface (UI) resource item, the request having one or more associated request conditions, the UI resource item generically identifying a UI resource and the UI resource item having multiple UI resource instances, each UI resource instance identifying a particular value for the UI resource item as well as one or more resource instance conditions under which the particular value for the UI resource item is appropriate, each of the one or more associated request conditions having different weights; determining, at a decision module of the computing device and using a resource index that includes the multiple UI resource instances of the UI resource item on the computing device, one of the multiple UI resource instances that includes one or more resource instance conditions that satisfy the request conditions, the request conditions identifying one or more display characteristics desired by the application, the determining including applying the different weights of the one or more associated request conditions, wherein the determining further comprises; determining whether one or more of the multiple UI resource instances have resource instance conditions that satisfy all of the request conditions, and identifying as the one UI resource instance a most appropriate UI resource instance of the multiple UI resource instances in response to one or more of the multiple UI resource instances not having resource conditions that satisfy all of the request conditions; and returning, from the decision module, the one UI resource instance to the application. - View Dependent Claims (15, 16, 17, 18, 19, 20)
Specification