code: private void checkCurrentThread(String methodName) {
  		if (Looper.myLooper() == Looper.getMainLooper()) {
  			Log.w(TAG, String.format(WRONG_THREAD_MSG, mServiceDescriptor.getServiceName(), methodName));
  		}
  	}
docs: Checks if the current thread is the main thread, if so it logs a wrning.