Android Open Source - AppSearchWidget Launch Stats






From Project

Back to project page AppSearchWidget.

License

The source code is released under:

Apache License

If you think the Android project AppSearchWidget listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.example.testwidget;
/*from ww  w .j a  v  a2  s .co m*/
public class LaunchStats {
  private int mUsageCount;
  private long mLastLaunchTimeSeconds;
  
  public LaunchStats(int usageCount, long lastLaunchTimeSeconds) {
    mUsageCount = usageCount;
    mLastLaunchTimeSeconds = lastLaunchTimeSeconds;
  }
  
  public void setUsageCount(int usageCount) {
    mUsageCount = usageCount;
  }
  
  public void incrementUsageCount() {
    mUsageCount++;
  }
  
  public int getUsageCount() {
    return mUsageCount;
  }
  
  public void setLastLaunchTimeSeconds(long lastLaunchTimeSeconds) {
    mLastLaunchTimeSeconds = lastLaunchTimeSeconds;
  }
  
  public long getLastLaunchTimeSeconds() {
    return mLastLaunchTimeSeconds;
  }
}




Java Source Code List

com.example.testwidget.AppLaunchCountComparator.java
com.example.testwidget.AppLaunchIntentService.java
com.example.testwidget.AppLaunchTimeComparator.java
com.example.testwidget.AppListRemoteViewsService.java
com.example.testwidget.AppListViewFactory.java
com.example.testwidget.AppSearchService.java
com.example.testwidget.ApplicationListItem.java
com.example.testwidget.Constants.java
com.example.testwidget.InputHandlerService.java
com.example.testwidget.KeyImageButton.java
com.example.testwidget.KeyInputHandler.java
com.example.testwidget.KeyboardMode.java
com.example.testwidget.LaunchCountBookKeeper.java
com.example.testwidget.LaunchStats.java
com.example.testwidget.LetterIntent.java
com.example.testwidget.LettersWidgetProvider.java
com.example.testwidget.MainActivity.java
com.example.testwidget.NewsWidgetProvider.java
com.example.testwidget.ResourceAlphabetMapEnglish.java