test_class.declarator: mCallbackFlag
test_class.modifier: private
test_class.original_string: private CallbackFlag mCallbackFlag;
test_class.type: CallbackFlag
test_class.var_name: mCallbackFlag
test_class.declarator: mFramework
test_class.modifier: private
test_class.original_string: private HaloFramework mFramework;
test_class.type: HaloFramework
test_class.var_name: mFramework
test_class.file: sdk/halo-framework/src/test/java/com/mobgen/halo/android/framework/toolbox/threading/DefaultThreadManagerTest.java
test_class.identifier: DefaultThreadManagerTest
test_class.superclass: extends HaloRobolectricTest
test_case.body: @Test
      public void thatCanCreateADefaultThreadManagerWithPoolQueuePolicy() {
  
          DefaultThreadManager defaultThreadManager = new DefaultThreadManager();
          Future future = defaultThreadManager.enqueue(Threading.POOL_QUEUE_POLICY, givenARunnable(mCallbackFlag));
          assertThat(mCallbackFlag.isFlagged()).isFalse();
          assertThat(future).isNotNull();
      }
test_case.class_method_signature: DefaultThreadManagerTest.thatCanCreateADefaultThreadManagerWithPoolQueuePolicy()
test_case.full_signature: @Test public void thatCanCreateADefaultThreadManagerWithPoolQueuePolicy()
test_case.identifier: thatCanCreateADefaultThreadManagerWithPoolQueuePolicy
test_case.invocations: enqueue givenARunnable isFalse assertThat isFlagged isNotNull assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void thatCanCreateADefaultThreadManagerWithPoolQueuePolicy()
focal_class.declarator: KEEP_ALIVE_TIME = 1
focal_class.modifier: private static final
focal_class.original_string: private static final int KEEP_ALIVE_TIME = 1;
focal_class.type: int
focal_class.var_name: KEEP_ALIVE_TIME
focal_class.declarator: KEEP_ALIVE_TIME_UNIT = TimeUnit.SECONDS
focal_class.modifier: private static final
focal_class.original_string: private static final TimeUnit KEEP_ALIVE_TIME_UNIT = TimeUnit.SECONDS;
focal_class.type: TimeUnit
focal_class.var_name: KEEP_ALIVE_TIME_UNIT
focal_class.declarator: NUMBER_OF_CORES = Runtime.getRuntime().availableProcessors()
focal_class.modifier: private static final
focal_class.original_string: private static final int NUMBER_OF_CORES = Runtime.getRuntime().availableProcessors();
focal_class.type: int
focal_class.var_name: NUMBER_OF_CORES
focal_class.declarator: CORE_POOL_SIZE = NUMBER_OF_CORES + 1
focal_class.modifier: private static final
focal_class.original_string: private static final int CORE_POOL_SIZE = NUMBER_OF_CORES + 1;
focal_class.type: int
focal_class.var_name: CORE_POOL_SIZE
focal_class.declarator: MAXIMUM_POOL_SIZE = NUMBER_OF_CORES * 2 + 1
focal_class.modifier: private static final
focal_class.original_string: private static final int MAXIMUM_POOL_SIZE = NUMBER_OF_CORES * 2 + 1;
focal_class.type: int
focal_class.var_name: MAXIMUM_POOL_SIZE
focal_class.declarator: mPoolQueue
focal_class.modifier: private
focal_class.original_string: private ExecutorService mPoolQueue;
focal_class.type: ExecutorService
focal_class.var_name: mPoolQueue
focal_class.declarator: mSingleQueue
focal_class.modifier: private
focal_class.original_string: private ExecutorService mSingleQueue;
focal_class.type: ExecutorService
focal_class.var_name: mSingleQueue
focal_class.file: sdk/halo-framework/src/main/java/com/mobgen/halo/android/framework/toolbox/threading/DefaultThreadManager.java
focal_class.identifier: DefaultThreadManager
focal_class.class_method_signature: DefaultThreadManager.DefaultThreadManager()
focal_class.full_signature: public  DefaultThreadManager()
focal_class.identifier: DefaultThreadManager
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  DefaultThreadManager()
focal_class.class_method_signature: DefaultThreadManager.enqueue(@Threading.Policy int thread, @NonNull Runnable runnable)
focal_class.full_signature: @Override public Future enqueue(@Threading.Policy int thread, @NonNull Runnable runnable)
focal_class.identifier: enqueue
focal_class.modifiers: @Override public
focal_class.parameters: (@Threading.Policy int thread, @NonNull Runnable runnable)
focal_class.return: Future
focal_class.signature: Future enqueue(@Threading.Policy int thread, @NonNull Runnable runnable)
focal_class.superclass: extends HaloThreadManager
focal_method.body: @Override
      public Future enqueue(@Threading.Policy int thread, @NonNull Runnable runnable) {
          Future<?> future;
          switch (thread) {
              case Threading.POOL_QUEUE_POLICY:
                  future = mPoolQueue.submit(runnable);
                  break;
              case Threading.SINGLE_QUEUE_POLICY:
                  future = mSingleQueue.submit(runnable);
                  break;
              case Threading.SAME_THREAD_POLICY:
                  future = new FutureTask<>(runnable, null);
                  runnable.run();
                  break;
              default:
                  throw new HaloConfigurationException("Unsupported option or an Action operation");
          }
          return future;
      }
focal_method.class_method_signature: DefaultThreadManager.enqueue(@Threading.Policy int thread, @NonNull Runnable runnable)
focal_method.full_signature: @Override public Future enqueue(@Threading.Policy int thread, @NonNull Runnable runnable)
focal_method.identifier: enqueue
focal_method.invocations: submit submit run
focal_method.modifiers: @Override public
focal_method.parameters: (@Threading.Policy int thread, @NonNull Runnable runnable)
focal_method.return: Future
focal_method.signature: Future enqueue(@Threading.Policy int thread, @NonNull Runnable runnable)