mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-23 17:22:16 -05:00
rename to openintents namespace
This commit is contained in:
parent
438ccd480e
commit
f6fc6caa1c
@ -474,7 +474,7 @@
|
|||||||
android:label="TODO reg"
|
android:label="TODO reg"
|
||||||
android:process=":crypto" >
|
android:process=":crypto" >
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="com.android.crypto.REGISTER" />
|
<action android:name="org.openintents.crypto.REGISTER" />
|
||||||
|
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
@ -486,7 +486,7 @@
|
|||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:process=":crypto" >
|
android:process=":crypto" >
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="com.android.crypto.ICryptoService" />
|
<action android:name="org.openintents.crypto.ICryptoService" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
||||||
<meta-data
|
<meta-data
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.crypto;
|
package org.openintents.crypto;
|
||||||
|
|
||||||
// Declare CryptoError so AIDL can find it and knows that it implements the parcelable protocol.
|
// Declare CryptoError so AIDL can find it and knows that it implements the parcelable protocol.
|
||||||
parcelable CryptoError;
|
parcelable CryptoError;
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.crypto;
|
package org.openintents.crypto;
|
||||||
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
@ -14,7 +14,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.crypto;
|
package org.openintents.crypto;
|
||||||
|
|
||||||
|
import org.openintents.crypto.ICryptoService;
|
||||||
|
|
||||||
import android.content.ComponentName;
|
import android.content.ComponentName;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@ -66,7 +68,7 @@ public class CryptoServiceConnection {
|
|||||||
Log.d(TAG, "not bound yet");
|
Log.d(TAG, "not bound yet");
|
||||||
|
|
||||||
Intent serviceIntent = new Intent();
|
Intent serviceIntent = new Intent();
|
||||||
serviceIntent.setAction("com.android.crypto.ICryptoService");
|
serviceIntent.setAction("org.openintents.crypto.ICryptoService");
|
||||||
serviceIntent.setPackage(cryptoProviderPackageName); // TODO: test
|
serviceIntent.setPackage(cryptoProviderPackageName); // TODO: test
|
||||||
mApplicationContext.bindService(serviceIntent, mCryptoServiceConnection,
|
mApplicationContext.bindService(serviceIntent, mCryptoServiceConnection,
|
||||||
Context.BIND_AUTO_CREATE);
|
Context.BIND_AUTO_CREATE);
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.crypto;
|
package org.openintents.crypto;
|
||||||
|
|
||||||
// Declare CryptoSignatureResult so AIDL can find it and knows that it implements the parcelable protocol.
|
// Declare CryptoSignatureResult so AIDL can find it and knows that it implements the parcelable protocol.
|
||||||
parcelable CryptoSignatureResult;
|
parcelable CryptoSignatureResult;
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.crypto;
|
package org.openintents.crypto;
|
||||||
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
@ -14,10 +14,10 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.crypto;
|
package org.openintents.crypto;
|
||||||
|
|
||||||
import com.android.crypto.CryptoSignatureResult;
|
import org.openintents.crypto.CryptoSignatureResult;
|
||||||
import com.android.crypto.CryptoError;
|
import org.openintents.crypto.CryptoError;
|
||||||
|
|
||||||
interface ICryptoCallback {
|
interface ICryptoCallback {
|
||||||
|
|
||||||
@ -27,6 +27,4 @@ interface ICryptoCallback {
|
|||||||
|
|
||||||
|
|
||||||
oneway void onError(in CryptoError error);
|
oneway void onError(in CryptoError error);
|
||||||
|
|
||||||
oneway void onActivityRequired(in Intent intent);
|
|
||||||
}
|
}
|
@ -14,9 +14,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.crypto;
|
package org.openintents.crypto;
|
||||||
|
|
||||||
import com.android.crypto.ICryptoCallback;
|
import org.openintents.crypto.ICryptoCallback;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* All methods are oneway, which means they are asynchronous and non-blocking.
|
* All methods are oneway, which means they are asynchronous and non-blocking.
|
@ -20,6 +20,9 @@ import java.io.ByteArrayInputStream;
|
|||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
|
import org.openintents.crypto.CryptoError;
|
||||||
|
import org.openintents.crypto.CryptoSignatureResult;
|
||||||
import org.sufficientlysecure.keychain.Constants;
|
import org.sufficientlysecure.keychain.Constants;
|
||||||
import org.sufficientlysecure.keychain.Id;
|
import org.sufficientlysecure.keychain.Id;
|
||||||
import org.sufficientlysecure.keychain.helper.PgpMain;
|
import org.sufficientlysecure.keychain.helper.PgpMain;
|
||||||
@ -29,10 +32,8 @@ import org.sufficientlysecure.keychain.R;
|
|||||||
import org.sufficientlysecure.keychain.service.KeychainIntentService;
|
import org.sufficientlysecure.keychain.service.KeychainIntentService;
|
||||||
import org.sufficientlysecure.keychain.service.PassphraseCacheService;
|
import org.sufficientlysecure.keychain.service.PassphraseCacheService;
|
||||||
|
|
||||||
import com.android.crypto.CryptoError;
|
import org.openintents.crypto.ICryptoCallback;
|
||||||
import com.android.crypto.ICryptoCallback;
|
import org.openintents.crypto.ICryptoService;
|
||||||
import com.android.crypto.ICryptoService;
|
|
||||||
import com.android.crypto.CryptoSignatureResult;
|
|
||||||
|
|
||||||
import android.app.Service;
|
import android.app.Service;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@ -89,7 +90,8 @@ public class CryptoService extends Service {
|
|||||||
// passphrase!
|
// passphrase!
|
||||||
Intent intent = new Intent(CryptoActivity.ACTION_CACHE_PASSPHRASE);
|
Intent intent = new Intent(CryptoActivity.ACTION_CACHE_PASSPHRASE);
|
||||||
intent.putExtra(CryptoActivity.EXTRA_SECRET_KEY_ID, secretKeyId);
|
intent.putExtra(CryptoActivity.EXTRA_SECRET_KEY_ID, secretKeyId);
|
||||||
callback.onActivityRequired(intent);
|
// TODO: start activity bind to service from activity send back intent on success
|
||||||
|
// callback.onActivityRequired(intent);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user