Code example for LocationManager

Methods: setTestProviderLocation

0
		hasGGA = false;
		hasRMC=false;
		if (fix != null){
			Log.v(LOG_TAG, "New Fix: "+System.currentTimeMillis()+" "+fix);
			if (lm != null && mockGpsEnabled){
				lm.setTestProviderLocation(mockLocationProvider, fix);
				Log.v(LOG_TAG, "New Fix notified to Location Manager: "+mockLocationProvider);
			} 
			this.fix = null;
		} 
	} 
	 
	private void notifyStatusChanged(int status, Bundle extras, long updateTime){
		fixTime = null;
		hasGGA = false;
		hasRMC=false;
		if (this.mockStatus != status){
			Log.d(LOG_TAG, "New mockStatus: "+System.currentTimeMillis()+" "+status);
			if (lm != null && mockGpsEnabled){
				lm.setTestProviderStatus(mockLocationProvider, status, extras, updateTime);
				// lm.setTestProviderStatus(mockLocationProvider, status, extras, SystemClock.elapsedRealtime());