Skip navigation links
A B C D E F G I L M N P R S T V W 

A

acquireLock() - Method in class com.twofortyfouram.spackle.power.PartialWakeLock
Acquire a partial WakeLock.
acquireLockIfNotHeld() - Method in class com.twofortyfouram.spackle.power.PartialWakeLock
Similar to PartialWakeLock.acquireLock(), but only acquires a lock if PartialWakeLock.isHeld() returns false.
afterDoingWork(Context) - Method in class com.twofortyfouram.spackle.power.PartialWakeLockForService
Call to issue after the service completes its work.
AlarmManagerCompat - Class in com.twofortyfouram.spackle
Provides backwards and forwards compatibility with the AlarmManager, specifically with changes to the alarm manager APIs.
AlarmManagerCompat.AlarmToken - Class in com.twofortyfouram.spackle
Effectively immutable class representing a token used to set an alarm.
AlarmManagerCompat.AlarmType - Annotation Type in com.twofortyfouram.spackle
Defines the possible values for the alarm manager type.
always(String, Object...) - Static method in class com.twofortyfouram.log.Lumberjack
Always log a message, because this method is not stripped out by ProGuard/DexGuard by default.
AndroidSdkVersion - Class in com.twofortyfouram.spackle
Utility class to determine information about the environment the app is running in.
AppBuildInfo - Class in com.twofortyfouram.spackle
Determines information about the build of the app that is running.
APPLICATION_ID - Static variable in class com.twofortyfouram.spackle.BuildConfig
 
areBundlesEqual(Bundle, Bundle) - Static method in class com.twofortyfouram.spackle.bundle.BundleComparer
Performs an key-value comparison of two Bundle instances.
attr() - Constructor for class com.twofortyfouram.spackle.R.attr
 

B

beforeDoingWork(Context) - Method in class com.twofortyfouram.spackle.power.PartialWakeLockForService
Call to issue within prior to starting the service's work, typically in either Service.onStartCommand(android.content.Intent, int, int) or IntentService.onHandleIntent(Intent).
beforeStartingService(Context) - Method in class com.twofortyfouram.spackle.power.PartialWakeLockForService
Call to issue immediately before calling ContextWrapper.startService(android.content.Intent).
beginSection(String) - Static method in class com.twofortyfouram.spackle.TraceCompat
 
bool() - Constructor for class com.twofortyfouram.spackle.R.bool
 
BUILD_TYPE - Static variable in class com.twofortyfouram.spackle.BuildConfig
 
BuildConfig - Class in com.twofortyfouram.spackle
 
BuildConfig() - Constructor for class com.twofortyfouram.spackle.BuildConfig
 
BundleComparer - Class in com.twofortyfouram.spackle.bundle
Utility class to compare two Bundle instances.
BundleKeyComparator - Class in com.twofortyfouram.spackle.bundle
A comparator that can sort the keys of a Bundle.
BundleKeyComparator() - Constructor for class com.twofortyfouram.spackle.bundle.BundleKeyComparator
 
BundlePrinter - Class in com.twofortyfouram.spackle.bundle
Utility class to print a Bundle to a String.
BundleScrubber - Class in com.twofortyfouram.spackle.bundle
Scrubs Intents and Bundles of invalid extras, preventing Intent fuzzing and denial-of-service attacks from malicious applications.

C

cancel(AlarmManagerCompat.AlarmToken) - Method in class com.twofortyfouram.spackle.AlarmManagerCompat
Cancels the alarm, on a best-effort basis.
cleanContext(Context) - Static method in class com.twofortyfouram.spackle.ContextUtil
Gets the Application Context of context to prevent memory leaks from Activity, Service, or similar contexts.
com.twofortyfouram.log - package com.twofortyfouram.log
 
com.twofortyfouram.spackle - package com.twofortyfouram.spackle
 
com.twofortyfouram.spackle.bundle - package com.twofortyfouram.spackle.bundle
 
com.twofortyfouram.spackle.power - package com.twofortyfouram.spackle.power
 
com_twofortyfouram_log_is_debug - Static variable in class com.twofortyfouram.spackle.R.bool
 
com_twofortyfouram_log_tag - Static variable in class com.twofortyfouram.spackle.R.string
 
compare(String, String) - Method in class com.twofortyfouram.spackle.bundle.BundleKeyComparator
Performs String comparison, with handling of null values.
ContextUtil - Class in com.twofortyfouram.spackle
Utilities for interaction with Context.

D

d(String, Object...) - Static method in class com.twofortyfouram.log.Lumberjack
Log a message.
DEBUG - Static variable in class com.twofortyfouram.spackle.BuildConfig
 
dumpWakeLockUsage() - Static method in class com.twofortyfouram.spackle.power.PartialWakeLock
Dumps cumulative WakeLock usage from this class and PartialWakeLockForService.

E

e(String, Object...) - Static method in class com.twofortyfouram.log.Lumberjack
Log a message.
endSection() - Static method in class com.twofortyfouram.spackle.TraceCompat
 

F

FLAVOR - Static variable in class com.twofortyfouram.spackle.BuildConfig
 
formatMessage(String, Object...) - Static method in class com.twofortyfouram.log.Lumberjack
Helper for varargs.

G

getApplicationName(Context) - Static method in class com.twofortyfouram.spackle.AppBuildInfo
Gets the name of the application or the package name if the application has no name.
getBoolean(Context, String) - Static method in class com.twofortyfouram.spackle.ResourceUtil
Returns a resource from a string name, rather than an integer ID.
getInstance(Context) - Static method in class com.twofortyfouram.spackle.AlarmManagerCompat
 
getPermissionStatus(Context, String) - Static method in class com.twofortyfouram.spackle.PermissionCompat
Dynamically checks app permissions at runtime, with forward and backward compatibility for pre-Marshmallow and post-Mashmallow permission behavior.
getPositionForIdInArray(Context, int, int) - Static method in class com.twofortyfouram.spackle.ResourceUtil
Gets the first position of an element in a typed array.
getResourceIdForPositionInArray(Context, int, int) - Static method in class com.twofortyfouram.spackle.ResourceUtil
Gets the resource ID of an element in a typed array.
getVersionCode(Context) - Static method in class com.twofortyfouram.spackle.AppBuildInfo
Gets the "versionCode" in the AndroidManifest.
getVersionName(Context) - Static method in class com.twofortyfouram.spackle.AppBuildInfo
Gets the "versionName" in the AndroidManifest.

I

i(String, Object...) - Static method in class com.twofortyfouram.log.Lumberjack
Log a message.
init(Context) - Static method in class com.twofortyfouram.log.Lumberjack
Initializes logging.
isAtLeastSdk(int) - Static method in class com.twofortyfouram.spackle.AndroidSdkVersion
 
isHeld() - Method in class com.twofortyfouram.spackle.power.PartialWakeLock
Determine whether a WakeLock is held.
isMainThread() - Static method in class com.twofortyfouram.spackle.ThreadUtil
 

L

Lumberjack - Class in com.twofortyfouram.log
Brawny and flannel-clad indeed, this class takes care of all your logging needs.

M

MapCompat - Class in com.twofortyfouram.spackle
Compatibility class for creating Maps efficiently across different Android platform versions.

N

newHandlerThread(String, ThreadUtil.ThreadPriority) - Static method in class com.twofortyfouram.spackle.ThreadUtil
Obtains a new, started HandlerThread.
newInstance(Context, String, boolean) - Static method in class com.twofortyfouram.spackle.power.PartialWakeLock
Constructs a new PartialWakeLock.
newMap(int) - Static method in class com.twofortyfouram.spackle.MapCompat
Constructs a new Map initialized with capacity.
noteSlowCall(String) - Static method in class com.twofortyfouram.spackle.StrictModeCompat
Notes a slow method call.

P

PartialWakeLock - Class in com.twofortyfouram.spackle.power
Manages partial WakeLocks.
PartialWakeLockForService - Class in com.twofortyfouram.spackle.power
Manages a partial WakeLock for Service in a thread-safe manner.
PartialWakeLockForService(String) - Constructor for class com.twofortyfouram.spackle.power.PartialWakeLockForService
Construct a new WakeLock helper.
PermissionCompat - Class in com.twofortyfouram.spackle
 
PermissionCompat.PermissionStatus - Enum in com.twofortyfouram.spackle
 

R

R - Class in com.twofortyfouram.spackle
 
R() - Constructor for class com.twofortyfouram.spackle.R
 
R.attr - Class in com.twofortyfouram.spackle
 
R.bool - Class in com.twofortyfouram.spackle
 
R.string - Class in com.twofortyfouram.spackle
 
releaseLock() - Method in class com.twofortyfouram.spackle.power.PartialWakeLock
Release a WakeLock previously acquired.
releaseLockIfHeld() - Method in class com.twofortyfouram.spackle.power.PartialWakeLock
Like PartialWakeLock.releaseLock() but only releases if PartialWakeLock.isHeld() returns true.
ResourceUtil - Class in com.twofortyfouram.spackle
Utilities for interaction with Android application resources.

S

scrub(Intent) - Static method in class com.twofortyfouram.spackle.bundle.BundleScrubber
Scrubs an Intent for bad extras in Intent.getExtras().
scrub(Bundle) - Static method in class com.twofortyfouram.spackle.bundle.BundleScrubber
Scrubs a Bundle for bad extras.
setExact(Context, int, long, PendingIntent, long, long) - Method in class com.twofortyfouram.spackle.AlarmManagerCompat
This method schedules exact alarms with support for the new exact alarm behavior KitKat, works around the minimum alarm interval of 5 seconds for Lollipop, and provides best-effort workarounds for the idling behavior of Marshmallow.
setStrictMode(boolean) - Static method in class com.twofortyfouram.spackle.StrictModeCompat
Enables/disables strict mode with default policies to detect all violations and log them.
StrictModeCompat - Class in com.twofortyfouram.spackle
A wrapper class to use StrictMode without worrying about backwards compatibility.
string() - Constructor for class com.twofortyfouram.spackle.R.string
 

T

ThreadUtil - Class in com.twofortyfouram.spackle
Provides Android-specific thread management.
ThreadUtil.ThreadPriority - Enum in com.twofortyfouram.spackle
Rich enum for the Android thread priority levels.
toString(Bundle) - Static method in class com.twofortyfouram.spackle.bundle.BundlePrinter
Convert a Bundle into a string representation.
toString() - Method in class com.twofortyfouram.spackle.power.PartialWakeLock
 
toString() - Method in class com.twofortyfouram.spackle.power.PartialWakeLockForService
 
TraceCompat - Class in com.twofortyfouram.spackle
Compatibility wrapper for Trace.

V

v(String, Object...) - Static method in class com.twofortyfouram.log.Lumberjack
Log a message.
valueOf(String) - Static method in enum com.twofortyfouram.spackle.PermissionCompat.PermissionStatus
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.twofortyfouram.spackle.ThreadUtil.ThreadPriority
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.twofortyfouram.spackle.PermissionCompat.PermissionStatus
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.twofortyfouram.spackle.ThreadUtil.ThreadPriority
Returns an array containing the constants of this enum type, in the order they are declared.
VERSION_CODE - Static variable in class com.twofortyfouram.spackle.BuildConfig
 
VERSION_NAME - Static variable in class com.twofortyfouram.spackle.BuildConfig
 

W

w(String, Object...) - Static method in class com.twofortyfouram.log.Lumberjack
Log a message.
A B C D E F G I L M N P R S T V W 
Skip navigation links