This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Units of speed | |
*/ | |
enum class SpeedUnits { | |
BITS_PER_SEC { override fun toString(): String = "Bits/s" }, | |
BYTES_PER_SEC { override fun toString(): String = "Bytes/s" }, | |
KBITS_PER_SEC { override fun toString(): String = "KBits/s" }, | |
MBITS_PER_SEC { override fun toString(): String = "MBits/s" } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dmedeiros.rx.utils | |
import rx.Completable | |
import rx.Single | |
import java.util.concurrent.CountDownLatch | |
import java.util.concurrent.ExecutionException | |
import java.util.concurrent.Executors | |
import java.util.concurrent.ThreadFactory | |
import java.util.concurrent.TimeUnit.MILLISECONDS | |
import java.util.concurrent.atomic.AtomicInteger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dpmedeiros.android.util | |
import android.app.Activity | |
import android.content.ActivityNotFoundException | |
import android.content.Intent | |
import android.content.IntentSender | |
import android.support.annotation.MainThread | |
/** | |
* Extensions to Android's Activity class allowing a caller to request a result from another activity and get notified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dpmedeiros.androidtestsupportlibrary; | |
import android.os.Handler; | |
import android.os.Looper; | |
import org.mockito.invocation.InvocationOnMock; | |
import org.mockito.stubbing.Answer; | |
import org.powermock.api.mockito.PowerMockito; | |
import java.util.concurrent.Executors; |