repo
stringlengths
1
191
file
stringlengths
23
351
code
stringlengths
0
5.32M
file_length
int64
0
5.32M
avg_line_length
float64
0
2.9k
max_line_length
int64
0
288k
extension_type
stringclasses
1 value
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/service/KeyCachingService.java
/** * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is d...
12,750
36.283626
148
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/service/MasterSecretIntentService.java
package org.thoughtcrime.securesms.service; import android.app.IntentService; import android.content.Intent; import android.support.annotation.Nullable; import org.thoughtcrime.securesms.crypto.MasterSecret; public abstract class MasterSecretIntentService extends IntentService { public MasterSecretIntentService(S...
593
26
93
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/service/MessageRetrievalService.java
package org.thoughtcrime.securesms.service; import android.app.Service; import android.content.Context; import android.content.Intent; import android.os.IBinder; import android.util.Log; import org.thoughtcrime.securesms.ApplicationContext; import org.thoughtcrime.securesms.dependencies.InjectableType; import org.tho...
6,192
32.475676
117
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/service/MmsListener.java
/** * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is d...
2,525
31.805195
91
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/service/QuickResponseService.java
package org.thoughtcrime.securesms.service; import android.content.Intent; import android.support.annotation.Nullable; import android.telephony.TelephonyManager; import android.text.TextUtils; import android.util.Log; import android.widget.Toast; import org.thoughtcrime.securesms.R; import org.thoughtcrime.securesms....
2,660
38.132353
139
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/service/RegistrationNotifier.java
package org.thoughtcrime.securesms.service; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.support.v4.app.NotificationCompat; import org.t...
1,287
41.933333
124
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/service/RegistrationService.java
package org.thoughtcrime.securesms.service; import android.app.Service; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Binder; import android.os.Handler; import android.os.IBinder; import android.util.Log; ...
15,468
38.971576
133
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/service/SmsDeliveryListener.java
package org.thoughtcrime.securesms.service; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.telephony.SmsMessage; import android.util.Log; import org.thoughtcrime.securesms.ApplicationContext; import org.thoughtcrime.securesms.jobs.SmsSentJob; im...
1,753
32.09434
121
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/service/SmsListener.java
/** * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is d...
6,243
33.882682
151
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/sms/IncomingEncryptedMessage.java
package org.thoughtcrime.securesms.sms; public class IncomingEncryptedMessage extends IncomingTextMessage { public IncomingEncryptedMessage(IncomingTextMessage base, String newBody) { super(base, newBody); } @Override public IncomingTextMessage withMessageBody(String body) { return new IncomingEncryp...
421
21.210526
77
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/sms/IncomingEndSessionMessage.java
package org.thoughtcrime.securesms.sms; public class IncomingEndSessionMessage extends IncomingTextMessage { public IncomingEndSessionMessage(IncomingTextMessage base) { this(base, base.getMessageBody()); } public IncomingEndSessionMessage(IncomingTextMessage base, String newBody) { super(base, newBody...
548
22.869565
78
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/sms/IncomingGroupMessage.java
package org.thoughtcrime.securesms.sms; import static org.whispersystems.textsecure.internal.push.TextSecureProtos.GroupContext; public class IncomingGroupMessage extends IncomingTextMessage { private final GroupContext groupContext; public IncomingGroupMessage(IncomingTextMessage base, GroupContext groupContex...
838
24.424242
97
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/sms/IncomingJoinedMessage.java
package org.thoughtcrime.securesms.sms; import org.whispersystems.libaxolotl.util.guava.Optional; import org.whispersystems.textsecure.api.messages.TextSecureGroup; public class IncomingJoinedMessage extends IncomingTextMessage { public IncomingJoinedMessage(String sender) { super(sender, 1, System.currentTime...
515
21.434783
91
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/sms/IncomingPreKeyBundleMessage.java
package org.thoughtcrime.securesms.sms; public class IncomingPreKeyBundleMessage extends IncomingTextMessage { public IncomingPreKeyBundleMessage(IncomingTextMessage base, String newBody) { super(base, newBody); } @Override public IncomingPreKeyBundleMessage withMessageBody(String messageBody) { retu...
452
21.65
80
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/sms/IncomingTextMessage.java
package org.thoughtcrime.securesms.sms; import android.os.Parcel; import android.os.Parcelable; import android.telephony.SmsMessage; import org.thoughtcrime.securesms.util.GroupUtil; import org.whispersystems.libaxolotl.util.guava.Optional; import org.whispersystems.textsecure.api.messages.TextSecureGroup; import org...
6,638
30.023364
119
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/sms/MessageSender.java
/** * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is d...
11,937
38.013072
153
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/sms/OutgoingEncryptedMessage.java
package org.thoughtcrime.securesms.sms; import org.thoughtcrime.securesms.recipients.Recipient; import org.thoughtcrime.securesms.recipients.Recipients; public class OutgoingEncryptedMessage extends OutgoingTextMessage { public OutgoingEncryptedMessage(Recipients recipients, String body) { super(recipients, bo...
634
23.423077
80
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/sms/OutgoingEndSessionMessage.java
package org.thoughtcrime.securesms.sms; public class OutgoingEndSessionMessage extends OutgoingTextMessage { public OutgoingEndSessionMessage(OutgoingTextMessage base) { this(base, base.getMessageBody()); } public OutgoingEndSessionMessage(OutgoingTextMessage message, String body) { super(message, body...
521
21.695652
78
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/sms/OutgoingKeyExchangeMessage.java
package org.thoughtcrime.securesms.sms; import org.thoughtcrime.securesms.recipients.Recipients; public class OutgoingKeyExchangeMessage extends OutgoingTextMessage { public OutgoingKeyExchangeMessage(Recipients recipients, String message) { super(recipients, message); } private OutgoingKeyExchangeMessage...
592
22.72
84
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/sms/OutgoingPrekeyBundleMessage.java
package org.thoughtcrime.securesms.sms; public class OutgoingPrekeyBundleMessage extends OutgoingTextMessage { public OutgoingPrekeyBundleMessage(OutgoingTextMessage message, String body) { super(message, body); } @Override public boolean isPreKeyBundle() { return true; } @Override public Out...
423
20.2
80
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/sms/OutgoingTextMessage.java
package org.thoughtcrime.securesms.sms; import org.thoughtcrime.securesms.database.model.SmsMessageRecord; import org.thoughtcrime.securesms.recipients.Recipients; public class OutgoingTextMessage { private final Recipients recipients; private final String message; public OutgoingTextMessage(Recipients re...
1,640
25.901639
120
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/sms/SmsTransportDetails.java
/** * Copyright (C) 2011 Whisper Systems * Copyright (C) 2014 Open Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option...
924
34.576923
72
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/sms/TelephonyServiceState.java
package org.thoughtcrime.securesms.sms; import android.content.Context; import android.os.Looper; import android.telephony.PhoneStateListener; import android.telephony.ServiceState; import android.telephony.TelephonyManager; public class TelephonyServiceState { public boolean isConnected(Context context) { Lis...
2,211
22.784946
112
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/transport/InsecureFallbackApprovalException.java
package org.thoughtcrime.securesms.transport; public class InsecureFallbackApprovalException extends Exception { public InsecureFallbackApprovalException(String detailMessage) { super(detailMessage); } public InsecureFallbackApprovalException(Throwable e) { super(e); } }
290
23.25
66
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/transport/RetryLaterException.java
package org.thoughtcrime.securesms.transport; import java.io.IOException; public class RetryLaterException extends Exception { public RetryLaterException(Exception e) { super(e); } }
193
18.4
52
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/transport/UndeliverableMessageException.java
package org.thoughtcrime.securesms.transport; public class UndeliverableMessageException extends Exception { public UndeliverableMessageException() { } public UndeliverableMessageException(String detailMessage) { super(detailMessage); } public UndeliverableMessageException(String detailMessage, Throwab...
468
23.684211
83
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/AbstractCursorLoader.java
package org.thoughtcrime.securesms.util; import android.content.Context; import android.database.Cursor; import android.support.v4.content.AsyncTaskLoader; /** * A Loader similar to CursorLoader that doesn't require queries to go through the ContentResolver * to get the benefits of reloading when content has change...
2,081
21.879121
98
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/Base64.java
package org.thoughtcrime.securesms.util; /** * <p>Encodes and decodes to and from Base64 notation.</p> * <p>Homepage: <a href="http://iharder.net/base64">http://iharder.net/base64</a>.</p> * * <p>Example:</p> * * <code>String encoded = Base64.encode( myByteArray );</code> * <br /> * <code>byte[] myByteArray ...
87,371
40.665236
137
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/BitmapDecodingException.java
package org.thoughtcrime.securesms.util; public class BitmapDecodingException extends Throwable { public BitmapDecodingException(String s) { super(s); } }
164
19.625
56
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/BitmapUtil.java
package org.thoughtcrime.securesms.util; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Bitmap.CompressFormat; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.ImageFormat; import android.graphics.Rect; import android.graphics.YuvIm...
11,435
37.897959
155
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/CharacterCalculator.java
/** * Copyright (C) 2015 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is d...
1,251
33.777778
91
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/Conversions.java
/** * Copyright (C) 2014 Open Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program...
5,465
29.198895
87
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/DateUtils.java
/** * Copyright (C) 2014 Open Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program...
4,025
40.081633
118
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/Dialogs.java
/** * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is d...
1,571
35.55814
85
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/DirectoryHelper.java
package org.thoughtcrime.securesms.util; import android.accounts.Account; import android.accounts.AccountManager; import android.content.ContentResolver; import android.content.Context; import android.content.OperationApplicationException; import android.os.RemoteException; import android.provider.ContactsContract; im...
10,294
40.015936
132
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/DynamicIntroTheme.java
package org.thoughtcrime.securesms.util; import android.app.Activity; import org.thoughtcrime.securesms.R; public class DynamicIntroTheme extends DynamicTheme { @Override protected int getSelectedTheme(Activity activity) { String theme = TextSecurePreferences.getTheme(activity); if (theme.equals("dark")...
418
23.647059
71
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/DynamicLanguage.java
package org.thoughtcrime.securesms.util; import android.app.Activity; import android.app.Service; import android.content.Context; import android.content.Intent; import android.content.res.Configuration; import android.text.TextUtils; import java.util.Locale; public class DynamicLanguage { private static final Str...
2,162
27.84
94
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/DynamicNoActionBarTheme.java
package org.thoughtcrime.securesms.util; import android.app.Activity; import org.thoughtcrime.securesms.R; public class DynamicNoActionBarTheme extends DynamicTheme { @Override protected int getSelectedTheme(Activity activity) { String theme = TextSecurePreferences.getTheme(activity); if (theme.equals("...
426
24.117647
72
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/DynamicTheme.java
package org.thoughtcrime.securesms.util; import android.app.Activity; import android.content.Intent; import org.thoughtcrime.securesms.R; public class DynamicTheme { public static final String DARK = "dark"; public static final String LIGHT = "light"; private int currentTheme; public void onCreate(Activi...
1,130
24.704545
64
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/FutureTaskListener.java
/** * Copyright (C) 2014 Open Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program...
862
36.521739
72
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/GroupUtil.java
package org.thoughtcrime.securesms.util; import android.content.Context; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.util.Log; import org.thoughtcrime.securesms.R; import org.thoughtcrime.securesms.recipients.RecipientFactory; import org.thoughtcrime.securesms...
3,245
31.787879
127
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/Hex.java
/** * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is d...
4,012
27.870504
112
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/JsonUtils.java
package org.thoughtcrime.securesms.util; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; public class JsonUtils { private static final ObjectMapper objectMapp...
1,092
27.763158
97
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/LRUCache.java
package org.thoughtcrime.securesms.util; import java.util.LinkedHashMap; import java.util.Map; public class LRUCache<K,V> extends LinkedHashMap<K,V> { private final int maxSize; public LRUCache(int maxSize) { this.maxSize = maxSize; } @Override protected boolean removeEldestEntry (Map.Entry<K,V> elde...
361
18.052632
63
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/LinkedBlockingLifoQueue.java
package org.thoughtcrime.securesms.util; import org.thoughtcrime.securesms.util.deque.LinkedBlockingDeque; public class LinkedBlockingLifoQueue<E> extends LinkedBlockingDeque<E> { @Override public void put(E runnable) throws InterruptedException { super.putFirst(runnable); } @Override public boolean ad...
490
20.347826
72
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/ListenableFutureTask.java
/** * Copyright (C) 2014 Open Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program...
2,907
25.925926
92
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/MediaUtil.java
package org.thoughtcrime.securesms.util; import android.content.Context; import android.graphics.Bitmap; import android.net.Uri; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.text.TextUtils; import android.util.Log; import android.webkit.MimeTypeMap; import org....
4,848
32.441379
130
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/MmsCharacterCalculator.java
package org.thoughtcrime.securesms.util; public class MmsCharacterCalculator extends CharacterCalculator { private static final int MAX_SIZE = 5000; @Override public CharacterState calculateCharacters(int charactersSpent) { return new CharacterState(1, MAX_SIZE - charactersSpent, MAX_SIZE); } }
311
25
71
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/NumberUtil.java
/** * Copyright (C) 2012 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is d...
1,865
30.627119
83
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/ParcelUtil.java
package org.thoughtcrime.securesms.util; import android.os.Parcel; import android.os.Parcelable; public class ParcelUtil { public static byte[] serialize(Parcelable parceable) { Parcel parcel = Parcel.obtain(); parceable.writeToParcel(parcel, 0); byte[] bytes = parcel.marshall(); parcel.recycle(); ...
706
23.37931
80
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/ProgressDialogAsyncTask.java
package org.thoughtcrime.securesms.util; import android.app.ProgressDialog; import android.content.Context; import android.os.AsyncTask; import java.lang.ref.WeakReference; public abstract class ProgressDialogAsyncTask<Params, Progress, Result> extends AsyncTask<Params, Progress, Result> { private final WeakRefere...
1,258
28.97619
117
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/PushCharacterCalculator.java
/** * Copyright (C) 2015 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is d...
1,006
36.296296
72
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/RedPhoneCallTypes.java
/** * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is d...
905
36.75
72
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/ResUtil.java
/** * Copyright (C) 2015 Open Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program...
2,331
34.876923
88
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/Rfc5724Uri.java
/* * Copyright (C) 2015 Open Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program ...
2,492
29.777778
100
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/SaveAttachmentTask.java
package org.thoughtcrime.securesms.util; import android.content.Context; import android.content.DialogInterface.OnClickListener; import android.media.MediaScannerConnection; import android.net.Uri; import android.os.Environment; import android.support.v7.app.AlertDialog; import android.util.Log; import android.webkit....
6,008
36.092593
128
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/SelectedRecipientsAdapter.java
package org.thoughtcrime.securesms.util; import android.content.Context; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageButt...
4,968
29.115152
101
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/ServiceUtil.java
package org.thoughtcrime.securesms.util; import android.app.Activity; import android.app.NotificationManager; import android.content.Context; import android.media.AudioManager; import android.net.ConnectivityManager; import android.telephony.TelephonyManager; import android.view.WindowManager; import android.view.inpu...
1,341
35.27027
89
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/ShortCodeUtil.java
package org.thoughtcrime.securesms.util; import android.support.annotation.NonNull; import android.util.Log; import com.google.i18n.phonenumbers.NumberParseException; import com.google.i18n.phonenumbers.PhoneNumberUtil; import com.google.i18n.phonenumbers.Phonenumber; import com.google.i18n.phonenumbers.ShortNumberIn...
1,417
31.227273
106
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/SmilUtil.java
package org.thoughtcrime.securesms.util; import android.util.Log; import org.thoughtcrime.securesms.dom.smil.SmilDocumentImpl; import org.thoughtcrime.securesms.dom.smil.parser.SmilXmlSerializer; import org.thoughtcrime.securesms.mms.PartParser; import org.w3c.dom.smil.SMILDocument; import org.w3c.dom.smil.SMILElemen...
4,642
33.909774
108
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/SmsCharacterCalculator.java
/** * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is d...
1,493
32.954545
82
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/SpanUtil.java
package org.thoughtcrime.securesms.util; import android.graphics.Typeface; import android.text.Spannable; import android.text.SpannableString; import android.text.style.ForegroundColorSpan; import android.text.style.RelativeSizeSpan; import android.text.style.StyleSpan; public class SpanUtil { public static CharSe...
1,488
36.225
118
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/TaggedFutureTask.java
/** * Copyright (C) 2014 Open Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program...
1,269
27.863636
72
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/TelephonyUtil.java
package org.thoughtcrime.securesms.util; import android.content.Context; import android.content.res.Configuration; import android.net.ConnectivityManager; import android.telephony.TelephonyManager; import android.util.Log; public class TelephonyUtil { private static final String TAG = TelephonyUtil.class.getSimpleN...
1,720
40.97561
112
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/TextSecurePreferences.java
package org.thoughtcrime.securesms.util; import android.content.Context; import android.content.SharedPreferences; import android.hardware.Camera.CameraInfo; import android.os.Build; import android.preference.PreferenceManager; import android.provider.Settings; import android.support.annotation.ArrayRes; import androi...
24,388
42.629696
124
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/Trimmer.java
package org.thoughtcrime.securesms.util; import android.app.ProgressDialog; import android.content.Context; import android.os.AsyncTask; import android.widget.Toast; import org.thoughtcrime.securesms.R; import org.thoughtcrime.securesms.database.DatabaseFactory; import org.thoughtcrime.securesms.database.ThreadDataba...
2,055
30.151515
130
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/Util.java
/** * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is d...
11,495
28.85974
131
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/VersionTracker.java
package org.thoughtcrime.securesms.util; import android.content.Context; import android.content.pm.PackageManager; import java.io.IOException; public class VersionTracker { public static int getLastSeenVersion(Context context) { return TextSecurePreferences.getLastVersionCode(context); } public static v...
607
24.333333
76
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/ViewUtil.java
/** * Copyright (C) 2015 Open Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program...
6,298
33.994444
116
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/VisibleForTesting.java
package org.thoughtcrime.securesms.util; public @interface VisibleForTesting { }
82
15.6
40
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/WorkerThread.java
/** * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is d...
1,315
25.857143
72
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/concurrent/AssertedSuccessListener.java
package org.thoughtcrime.securesms.util.concurrent; import org.thoughtcrime.securesms.util.concurrent.ListenableFuture.Listener; import java.util.concurrent.ExecutionException; public abstract class AssertedSuccessListener<T> implements Listener<T> { @Override public void onFailure(ExecutionException e) { th...
353
26.230769
76
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/concurrent/ListenableFuture.java
package org.thoughtcrime.securesms.util.concurrent; import java.util.concurrent.ExecutionException; public interface ListenableFuture<T> { void addListener(Listener<T> listener); public interface Listener<T> { public void onSuccess(T result); public void onFailure(ExecutionException e); } }
309
22.846154
51
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/concurrent/SettableFuture.java
package org.thoughtcrime.securesms.util.concurrent; import java.util.LinkedList; import java.util.List; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; public class SettableFuture<T> implements Futu...
2,696
22.867257
91
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/deque/BlockingDeque.java
/* * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to the public domain, as explained at * http://creativecommons.org/licenses/publicdomain */ package org.thoughtcrime.securesms.util.deque; import java.util.Iterator; import java.util.NoSuchElementException; import java...
25,241
39.910859
79
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/deque/Deque.java
/* * Written by Doug Lea and Josh Bloch with assistance from members of * JCP JSR-166 Expert Group and released to the public domain, as explained * at http://creativecommons.org/licenses/publicdomain */ package org.thoughtcrime.securesms.util.deque; import java.util.Collection; import java.util.Iterator; import ...
22,370
39.235612
79
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/securesms/util/deque/LinkedBlockingDeque.java
/* * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to the public domain, as explained at * http://creativecommons.org/licenses/publicdomain */ /* * This wasn't included until Android API level 9, so we're duplicating * it here for backwards compatibility. */ packag...
36,114
29.323258
80
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/ContentType.java
/* * Copyright (C) 2007-2008 Esmertec AG. * Copyright (C) 2007-2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lice...
10,060
42.743478
99
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/InvalidHeaderValueException.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
1,285
29.619048
85
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/MmsException.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
1,645
25.983607
78
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/AcknowledgeInd.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
2,671
28.688889
80
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/Base64.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
5,356
30.886905
75
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/CharacterSets.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
5,934
33.306358
76
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/DeliveryInd.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
3,680
25.482014
75
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/EncodedStringValue.java
/* * Copyright (C) 2007-2008 Esmertec AG. * Copyright (C) 2007-2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lice...
8,745
29.687719
87
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/GenericPdu.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
3,041
25.684211
79
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/MultimediaMessagePdu.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
3,475
22.019868
75
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/NotificationInd.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
8,762
29.217241
81
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/NotifyRespInd.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
3,518
29.6
80
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/PduBody.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
5,359
26.916667
79
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/PduComposer.java
/* * Copyright (C) 2007-2008 Esmertec AG. * Copyright (C) 2007-2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lice...
38,944
31.864979
99
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/PduContentTypes.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
6,299
55.756757
76
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/PduHeaders.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
31,432
41.941257
103
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/PduParser.java
/* * Copyright (C) 2007-2008 Esmertec AG. * Copyright (C) 2007-2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lice...
76,050
38.609896
100
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/PduPart.java
/* * Copyright (C) 2007-2008 Esmertec AG. * Copyright (C) 2007-2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lice...
12,504
30.029777
79
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/QuotedPrintable.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
2,404
33.855072
84
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/ReadOrigInd.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
4,088
25.551948
79
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/ReadRecInd.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
4,014
26.689655
83
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/RetrieveConf.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
8,635
27.69103
81
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/ws/com/google/android/mms/pdu/SendConf.java
/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
3,406
27.872881
81
java