import android.text.Editable;\r
import android.text.InputType;\r
import android.text.TextWatcher;\r
+import android.util.Log;\r
import android.view.KeyEvent;\r
import android.view.MotionEvent;\r
import android.view.View;\r
*/\r
@Override\r
protected void onSaveInstanceState(Bundle outState) {\r
- //Log.wtf(TAG, "onSaveInstanceState init" );\r
+ Log.wtf(TAG, "onSaveInstanceState init" );\r
super.onSaveInstanceState(outState);\r
\r
/// global state\r
outState.putInt(KEY_OAUTH2_GET_ACCESS_TOKEN_OP_ID, mOauth2GetAccessTokenOpId);\r
outState.putInt(KEY_GET_USER_NAME_OP_ID, mGetUserNameOpId);\r
\r
- //Log.wtf(TAG, "onSaveInstanceState end" );\r
+ Log.wtf(TAG, "onSaveInstanceState end" );\r
}\r
\r
\r
\r
@Override\r
protected void onPause() {\r
- //Log.wtf(TAG, "onPause init" );\r
+ Log.wtf(TAG, "onPause init" );\r
if (mOperationsServiceBinder != null) {\r
- //Log.wtf(TAG, "unregistering to listen for operation callbacks" );\r
+ Log.wtf(TAG, "unregistering to listen for operation callbacks" );\r
mOperationsServiceBinder.removeOperationListener(this);\r
}\r
\r
mHostUrlInput.setOnFocusChangeListener(null);\r
\r
super.onPause();\r
- //Log.wtf(TAG, "onPause end" );\r
+ Log.wtf(TAG, "onPause end" );\r
}\r
\r
@Override\r
queryParameters);\r
\r
if (mOperationsServiceBinder != null) {\r
- //Log.wtf(TAG, "getting access token..." );\r
+ Log.wtf(TAG, "getting access token..." );\r
mOauth2GetAccessTokenOpId = mOperationsServiceBinder.newOperation(getServerInfoIntent);\r
}\r
}\r
getServerInfoIntent.putExtra(OperationsService.EXTRA_SERVER_URL, uri);\r
getServerInfoIntent.putExtra(OperationsService.EXTRA_AUTH_TOKEN_TYPE, mAuthTokenType);\r
if (mOperationsServiceBinder != null) {\r
- //Log.wtf(TAG, "checking server..." );\r
+ Log.wtf(TAG, "checking server..." );\r
mGetServerInfoOpId = mOperationsServiceBinder.newOperation(getServerInfoIntent);\r
}\r
\r
getUserNameIntent.putExtra(OperationsService.EXTRA_FOLLOW_REDIRECTS, followRedirects);\r
\r
if (mOperationsServiceBinder != null) {\r
- //Log_OC.wtf(TAG, "starting getRemoteUserNameOperation..." );\r
+ Log_OC.wtf(TAG, "starting getRemoteUserNameOperation..." );\r
mGetUserNameOpId = mOperationsServiceBinder.newOperation(getUserNameIntent);\r
}\r
}\r
\r
\r
private void doOnResumeAndBound() {\r
- //Log.wtf(TAG, "registering to listen for operation callbacks" );\r
+ Log.wtf(TAG, "registering to listen for operation callbacks" );\r
mOperationsServiceBinder.addOperationListener(AuthenticatorActivity.this, mHandler);\r
\r
\r
RemoteOperationResult result = \r
mOperationsServiceBinder.getOperationResultIfFinished(mGetServerInfoOpId);\r
if (result != null) {\r
- //Log_OC.wtf(TAG, "found result of operation finished while rotating");\r
+ Log_OC.wtf(TAG, "found result of operation finished while rotating");\r
onGetServerInfoFinish(result);\r
}\r
\r
mOperationsServiceBinder.getOperationResultIfFinished(\r
mOauth2GetAccessTokenOpId);\r
if (result != null) {\r
- //Log_OC.wtf(TAG, "found result of operation finished while rotating");\r
+ Log_OC.wtf(TAG, "found result of operation finished while rotating");\r
onGetOAuthAccessTokenFinish(result);\r
}\r
\r
RemoteOperationResult result = \r
mOperationsServiceBinder.getOperationResultIfFinished(mExistenceCheckOpId);\r
if (result != null) {\r
- //Log_OC.wtf(TAG, "found result of operation finished while rotating");\r
+ Log_OC.wtf(TAG, "found result of operation finished while rotating");\r
if (AccountTypeUtils.getAuthTokenTypeSamlSessionCookie(\r
MainApp.getAccountType()).equals(mAuthTokenType)) {\r
onSamlBasedFederatedSingleSignOnAuthorizationStart(result);\r
RemoteOperationResult result = \r
mOperationsServiceBinder.getOperationResultIfFinished(mGetUserNameOpId);\r
if (result != null) {\r
- //Log_OC.wtf(TAG, "found result of operation finished while rotating");\r
+ Log_OC.wtf(TAG, "found result of operation finished while rotating");\r
onGetUserNameFinish(result);\r
}\r
\r
@Override\r
public void onServiceConnected(ComponentName component, IBinder service) {\r
if (component.equals(new ComponentName(AuthenticatorActivity.this, OperationsService.class))) {\r
- //Log_OC.wtf(TAG, "Operations service connected");\r
+ Log_OC.wtf(TAG, "Operations service connected");\r
mOperationsServiceBinder = (OperationsServiceBinder) service;\r
\r
doOnResumeAndBound();\r
import android.os.Looper;
import android.os.Message;
import android.os.Process;
+import android.util.Log;
import android.util.Pair;
public class OperationsService extends Service {
*/
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
- //Log.wtf(TAG, "onStartCommand init" );
+ Log.wtf(TAG, "onStartCommand init" );
Message msg = mServiceHandler.obtainMessage();
msg.arg1 = startId;
mServiceHandler.sendMessage(msg);
- //Log.wtf(TAG, "onStartCommand end" );
+ Log.wtf(TAG, "onStartCommand end" );
return START_NOT_STICKY;
}
@Override
public void onDestroy() {
- //Log.wtf(TAG, "onDestroy init" );
+ Log.wtf(TAG, "onDestroy init" );
super.onDestroy();
- //Log.wtf(TAG, "Clear mOperationResults" );
+ Log.wtf(TAG, "Clear mOperationResults" );
mOperationResults.clear();
- //Log.wtf(TAG, "onDestroy end" );
+ Log.wtf(TAG, "onDestroy end" );
}
*/
@Override
public IBinder onBind(Intent intent) {
- //Log.wtf(TAG, "onBind" );
+ Log.wtf(TAG, "onBind" );
return mBinder;
}
}
public RemoteOperationResult getOperationResultIfFinished(int operationId) {
- //Log_OC.wtf(TAG, "Searching result for operation with id " + operationId);
+ Log_OC.wtf(TAG, "Searching result for operation with id " + operationId);
return mOperationResults.remove(operationId);
}
*/
private void nextOperation() {
- //Log.wtf(TAG, "nextOperation init" );
+ Log.wtf(TAG, "nextOperation init" );
Pair<Target, RemoteOperation> next = null;
synchronized(mPendingOperations) {