Partial implementation for the favorite and available printer tracking.
1. Added a dedicated class that keeps track of the user's favorite printers based on past usage. We keep the last 50 uses and assign a decreasing weight to older historical use records. The printer whose records' sum is the largest is considered the favorite for the user and so on. 2. Factored out the printer discovery logic from the print job config activity into a separate available printers provider class. It encapsulates all the logic to communicated with the remote print services to discover printers, keep track of added, updated, and removed printers. 3. Preliminary scetch of the printer chooser acitivty that will show all the printers. Change-Id: I5524665f2a9a565f186db85214d5e41a44f4812e
Loading
Please register or sign in to comment