зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1351805 part 1 - Create a org.mozilla.gecko.fxa.devices package. r=Grisha,nalexander
MozReview-Commit-ID: FjJmRiHlqEg --HG-- extra : rebase_source : 0342756d408c89c82e2afbf3c561fd2efad9cb4f
This commit is contained in:
Родитель
1de783d5aa
Коммит
96c75ddc3d
|
@ -831,10 +831,10 @@ sync_java_files = [TOPSRCDIR + '/mobile/android/services/src/main/java/org/mozil
|
||||||
'fxa/authenticator/FxAccountLoginDelegate.java',
|
'fxa/authenticator/FxAccountLoginDelegate.java',
|
||||||
'fxa/authenticator/FxAccountLoginException.java',
|
'fxa/authenticator/FxAccountLoginException.java',
|
||||||
'fxa/authenticator/FxADefaultLoginStateMachineDelegate.java',
|
'fxa/authenticator/FxADefaultLoginStateMachineDelegate.java',
|
||||||
|
'fxa/devices/FxAccountDevice.java',
|
||||||
|
'fxa/devices/FxAccountDeviceRegistrator.java',
|
||||||
'fxa/FirefoxAccounts.java',
|
'fxa/FirefoxAccounts.java',
|
||||||
'fxa/FxAccountConstants.java',
|
'fxa/FxAccountConstants.java',
|
||||||
'fxa/FxAccountDevice.java',
|
|
||||||
'fxa/FxAccountDeviceRegistrator.java',
|
|
||||||
'fxa/FxAccountPushHandler.java',
|
'fxa/FxAccountPushHandler.java',
|
||||||
'fxa/login/BaseRequestDelegate.java',
|
'fxa/login/BaseRequestDelegate.java',
|
||||||
'fxa/login/Cohabiting.java',
|
'fxa/login/Cohabiting.java',
|
||||||
|
|
|
@ -19,7 +19,6 @@ import org.json.JSONException;
|
||||||
import org.mozilla.gecko.background.fxa.FxAccountUtils;
|
import org.mozilla.gecko.background.fxa.FxAccountUtils;
|
||||||
import org.mozilla.gecko.fxa.FirefoxAccounts;
|
import org.mozilla.gecko.fxa.FirefoxAccounts;
|
||||||
import org.mozilla.gecko.fxa.FxAccountConstants;
|
import org.mozilla.gecko.fxa.FxAccountConstants;
|
||||||
import org.mozilla.gecko.fxa.FxAccountDeviceRegistrator;
|
|
||||||
import org.mozilla.gecko.fxa.authenticator.AndroidFxAccount;
|
import org.mozilla.gecko.fxa.authenticator.AndroidFxAccount;
|
||||||
import org.mozilla.gecko.fxa.login.Engaged;
|
import org.mozilla.gecko.fxa.login.Engaged;
|
||||||
import org.mozilla.gecko.fxa.login.State;
|
import org.mozilla.gecko.fxa.login.State;
|
||||||
|
|
|
@ -25,7 +25,7 @@ import org.mozilla.gecko.TelemetryContract;
|
||||||
import org.mozilla.gecko.annotation.ReflectionTarget;
|
import org.mozilla.gecko.annotation.ReflectionTarget;
|
||||||
import org.mozilla.gecko.db.BrowserDB;
|
import org.mozilla.gecko.db.BrowserDB;
|
||||||
import org.mozilla.gecko.fxa.FxAccountConstants;
|
import org.mozilla.gecko.fxa.FxAccountConstants;
|
||||||
import org.mozilla.gecko.fxa.FxAccountDeviceRegistrator;
|
import org.mozilla.gecko.fxa.devices.FxAccountDeviceRegistrator;
|
||||||
import org.mozilla.gecko.fxa.FxAccountPushHandler;
|
import org.mozilla.gecko.fxa.FxAccountPushHandler;
|
||||||
import org.mozilla.gecko.fxa.authenticator.AndroidFxAccount;
|
import org.mozilla.gecko.fxa.authenticator.AndroidFxAccount;
|
||||||
import org.mozilla.gecko.fxa.login.State;
|
import org.mozilla.gecko.fxa.login.State;
|
||||||
|
|
|
@ -8,7 +8,7 @@ import org.mozilla.gecko.background.fxa.FxAccountClient20.AccountStatusResponse;
|
||||||
import org.mozilla.gecko.background.fxa.FxAccountClient20.RecoveryEmailStatusResponse;
|
import org.mozilla.gecko.background.fxa.FxAccountClient20.RecoveryEmailStatusResponse;
|
||||||
import org.mozilla.gecko.background.fxa.FxAccountClient20.RequestDelegate;
|
import org.mozilla.gecko.background.fxa.FxAccountClient20.RequestDelegate;
|
||||||
import org.mozilla.gecko.background.fxa.FxAccountClient20.TwoKeys;
|
import org.mozilla.gecko.background.fxa.FxAccountClient20.TwoKeys;
|
||||||
import org.mozilla.gecko.fxa.FxAccountDevice;
|
import org.mozilla.gecko.fxa.devices.FxAccountDevice;
|
||||||
import org.mozilla.gecko.sync.ExtendedJSONObject;
|
import org.mozilla.gecko.sync.ExtendedJSONObject;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
|
@ -13,7 +13,7 @@ import org.mozilla.gecko.background.fxa.FxAccountClientException.FxAccountClient
|
||||||
import org.mozilla.gecko.background.fxa.FxAccountClientException.FxAccountClientRemoteException;
|
import org.mozilla.gecko.background.fxa.FxAccountClientException.FxAccountClientRemoteException;
|
||||||
import org.mozilla.gecko.fxa.FxAccountConstants;
|
import org.mozilla.gecko.fxa.FxAccountConstants;
|
||||||
import org.mozilla.gecko.Locales;
|
import org.mozilla.gecko.Locales;
|
||||||
import org.mozilla.gecko.fxa.FxAccountDevice;
|
import org.mozilla.gecko.fxa.devices.FxAccountDevice;
|
||||||
import org.mozilla.gecko.sync.ExtendedJSONObject;
|
import org.mozilla.gecko.sync.ExtendedJSONObject;
|
||||||
import org.mozilla.gecko.sync.Utils;
|
import org.mozilla.gecko.sync.Utils;
|
||||||
import org.mozilla.gecko.sync.crypto.HKDF;
|
import org.mozilla.gecko.sync.crypto.HKDF;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
package org.mozilla.gecko.fxa;
|
package org.mozilla.gecko.fxa.devices;
|
||||||
|
|
||||||
import org.mozilla.gecko.sync.ExtendedJSONObject;
|
import org.mozilla.gecko.sync.ExtendedJSONObject;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
package org.mozilla.gecko.fxa;
|
package org.mozilla.gecko.fxa.devices;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
|
@ -22,7 +22,7 @@ import org.mozilla.gecko.background.fxa.SkewHandler;
|
||||||
import org.mozilla.gecko.browserid.JSONWebTokenUtils;
|
import org.mozilla.gecko.browserid.JSONWebTokenUtils;
|
||||||
import org.mozilla.gecko.fxa.FirefoxAccounts;
|
import org.mozilla.gecko.fxa.FirefoxAccounts;
|
||||||
import org.mozilla.gecko.fxa.FxAccountConstants;
|
import org.mozilla.gecko.fxa.FxAccountConstants;
|
||||||
import org.mozilla.gecko.fxa.FxAccountDeviceRegistrator;
|
import org.mozilla.gecko.fxa.devices.FxAccountDeviceRegistrator;
|
||||||
import org.mozilla.gecko.fxa.authenticator.AccountPickler;
|
import org.mozilla.gecko.fxa.authenticator.AccountPickler;
|
||||||
import org.mozilla.gecko.fxa.authenticator.AndroidFxAccount;
|
import org.mozilla.gecko.fxa.authenticator.AndroidFxAccount;
|
||||||
import org.mozilla.gecko.fxa.authenticator.FxADefaultLoginStateMachineDelegate;
|
import org.mozilla.gecko.fxa.authenticator.FxADefaultLoginStateMachineDelegate;
|
||||||
|
@ -34,7 +34,6 @@ import org.mozilla.gecko.fxa.login.State.StateLabel;
|
||||||
import org.mozilla.gecko.fxa.sync.FxAccountSyncDelegate.Result;
|
import org.mozilla.gecko.fxa.sync.FxAccountSyncDelegate.Result;
|
||||||
import org.mozilla.gecko.sync.BackoffHandler;
|
import org.mozilla.gecko.sync.BackoffHandler;
|
||||||
import org.mozilla.gecko.sync.GlobalSession;
|
import org.mozilla.gecko.sync.GlobalSession;
|
||||||
import org.mozilla.gecko.sync.MetaGlobal;
|
|
||||||
import org.mozilla.gecko.sync.PrefsBackoffHandler;
|
import org.mozilla.gecko.sync.PrefsBackoffHandler;
|
||||||
import org.mozilla.gecko.sync.SharedPreferencesClientsDataDelegate;
|
import org.mozilla.gecko.sync.SharedPreferencesClientsDataDelegate;
|
||||||
import org.mozilla.gecko.sync.SyncConfiguration;
|
import org.mozilla.gecko.sync.SyncConfiguration;
|
||||||
|
|
|
@ -6,7 +6,6 @@ package org.mozilla.gecko.sync;
|
||||||
|
|
||||||
import org.mozilla.gecko.background.fxa.FxAccountUtils;
|
import org.mozilla.gecko.background.fxa.FxAccountUtils;
|
||||||
import org.mozilla.gecko.fxa.FirefoxAccounts;
|
import org.mozilla.gecko.fxa.FirefoxAccounts;
|
||||||
import org.mozilla.gecko.fxa.FxAccountDeviceRegistrator;
|
|
||||||
import org.mozilla.gecko.fxa.authenticator.AndroidFxAccount;
|
import org.mozilla.gecko.fxa.authenticator.AndroidFxAccount;
|
||||||
import org.mozilla.gecko.sync.delegates.ClientsDataDelegate;
|
import org.mozilla.gecko.sync.delegates.ClientsDataDelegate;
|
||||||
import org.mozilla.gecko.util.HardwareUtils;
|
import org.mozilla.gecko.util.HardwareUtils;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* Any copyright is dedicated to the Public Domain.
|
/* Any copyright is dedicated to the Public Domain.
|
||||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||||
|
|
||||||
package org.mozilla.gecko.fxa;
|
package org.mozilla.gecko.fxa.devices;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
|
@ -6,7 +6,6 @@ package org.mozilla.gecko.fxa.login;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
import org.mozilla.gecko.background.fxa.FxAccountClient;
|
import org.mozilla.gecko.background.fxa.FxAccountClient;
|
||||||
import org.mozilla.gecko.background.fxa.FxAccountClient20;
|
|
||||||
import org.mozilla.gecko.background.fxa.FxAccountClient20.AccountStatusResponse;
|
import org.mozilla.gecko.background.fxa.FxAccountClient20.AccountStatusResponse;
|
||||||
import org.mozilla.gecko.background.fxa.FxAccountClient20.RequestDelegate;
|
import org.mozilla.gecko.background.fxa.FxAccountClient20.RequestDelegate;
|
||||||
import org.mozilla.gecko.background.fxa.FxAccountClient20.RecoveryEmailStatusResponse;
|
import org.mozilla.gecko.background.fxa.FxAccountClient20.RecoveryEmailStatusResponse;
|
||||||
|
@ -15,7 +14,7 @@ import org.mozilla.gecko.background.fxa.FxAccountClient20.LoginResponse;
|
||||||
import org.mozilla.gecko.background.fxa.FxAccountClientException.FxAccountClientRemoteException;
|
import org.mozilla.gecko.background.fxa.FxAccountClientException.FxAccountClientRemoteException;
|
||||||
import org.mozilla.gecko.background.fxa.FxAccountRemoteError;
|
import org.mozilla.gecko.background.fxa.FxAccountRemoteError;
|
||||||
import org.mozilla.gecko.background.fxa.FxAccountUtils;
|
import org.mozilla.gecko.background.fxa.FxAccountUtils;
|
||||||
import org.mozilla.gecko.fxa.FxAccountDevice;
|
import org.mozilla.gecko.fxa.devices.FxAccountDevice;
|
||||||
import org.mozilla.gecko.browserid.MockMyIDTokenFactory;
|
import org.mozilla.gecko.browserid.MockMyIDTokenFactory;
|
||||||
import org.mozilla.gecko.browserid.RSACryptoImplementation;
|
import org.mozilla.gecko.browserid.RSACryptoImplementation;
|
||||||
import org.mozilla.gecko.sync.ExtendedJSONObject;
|
import org.mozilla.gecko.sync.ExtendedJSONObject;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче