Build 1.0_r1(from source)

android.pim
Class ContactsAsyncHelper.ImageTracker

java.lang.Object
  extended by android.pim.ContactsAsyncHelper.ImageTracker
Enclosing class:
ContactsAsyncHelper

public static class ContactsAsyncHelper.ImageTracker
extends Object

public inner class to help out the ContactsAsyncHelper callers with tracking the state of the CallerInfo Queries and image loading. Logic contained herein is used to remove the race conditions that exist as the CallerInfo queries run and mix with the image loads, which then mix with the Phone state changes.


Field Summary
static int DISPLAY_DEFAULT
           
static int DISPLAY_IMAGE
           
static int DISPLAY_UNDEFINED
           
 
Constructor Summary
ContactsAsyncHelper.ImageTracker()
           
 
Method Summary
 int getPhotoState()
          Simple getter for the Photo state.
 Uri getPhotoUri()
          Convenience method used to retrieve the URI representing the Photo file recorded in the attached CallerInfo Object.
 boolean isDifferentImageRequest(com.android.internal.telephony.CallerInfo ci)
          Used to see if the requested call / connection has a different caller attached to it than the one we currently have in the CallCard.
 boolean isDifferentImageRequest(com.android.internal.telephony.Connection connection)
           
 void setPhotoRequest(com.android.internal.telephony.CallerInfo ci)
          Simple setter for the CallerInfo object.
 void setPhotoState(int state)
          Simple setter for the Photo state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISPLAY_UNDEFINED

public static final int DISPLAY_UNDEFINED
See Also:
Constant Field Values

DISPLAY_IMAGE

public static final int DISPLAY_IMAGE
See Also:
Constant Field Values

DISPLAY_DEFAULT

public static final int DISPLAY_DEFAULT
See Also:
Constant Field Values
Constructor Detail

ContactsAsyncHelper.ImageTracker

public ContactsAsyncHelper.ImageTracker()
Method Detail

isDifferentImageRequest

public boolean isDifferentImageRequest(com.android.internal.telephony.CallerInfo ci)
Used to see if the requested call / connection has a different caller attached to it than the one we currently have in the CallCard.


isDifferentImageRequest

public boolean isDifferentImageRequest(com.android.internal.telephony.Connection connection)

setPhotoRequest

public void setPhotoRequest(com.android.internal.telephony.CallerInfo ci)
Simple setter for the CallerInfo object.


getPhotoUri

public Uri getPhotoUri()
Convenience method used to retrieve the URI representing the Photo file recorded in the attached CallerInfo Object.


setPhotoState

public void setPhotoState(int state)
Simple setter for the Photo state.


getPhotoState

public int getPhotoState()
Simple getter for the Photo state.


Build 1.0_r1(from source)

Please submit a feedback, bug or feature