test_class.declarator: analytics
test_class.original_string: Analytics analytics;
test_class.type: Analytics
test_class.var_name: analytics
test_class.file: collect_app/src/test/java/org/odk/collect/android/activities/InstanceUploaderListActivityTest.java
test_class.identifier: InstanceUploaderListActivityTest
test_case.body: @Test
      public void clickingChangeView_thenClickingShowAll_sendsAnalyticsEvent() {
          InstanceUploaderListActivity activity = Robolectric.setupActivity(InstanceUploaderListActivity.class);
  
          activity.onOptionsItemSelected(new RoboMenuItem(R.id.menu_change_view));
          AlertDialog dialog = ShadowAlertDialog.getLatestAlertDialog();
          shadowOf(dialog).clickOnItem(1);
  
          verify(analytics).logEvent("FilterSendForms", "SentAndUnsent");
      }
test_case.class_method_signature: InstanceUploaderListActivityTest.clickingChangeView_thenClickingShowAll_sendsAnalyticsEvent()
test_case.full_signature: @Test public void clickingChangeView_thenClickingShowAll_sendsAnalyticsEvent()
test_case.identifier: clickingChangeView_thenClickingShowAll_sendsAnalyticsEvent
test_case.invocations: setupActivity onOptionsItemSelected getLatestAlertDialog clickOnItem shadowOf logEvent verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void clickingChangeView_thenClickingShowAll_sendsAnalyticsEvent()
focal_class.declarator: SHOW_ALL_MODE = "showAllMode"
focal_class.modifier: private static final
focal_class.original_string: private static final String SHOW_ALL_MODE = "showAllMode";
focal_class.type: String
focal_class.var_name: SHOW_ALL_MODE
focal_class.declarator: INSTANCE_UPLOADER_LIST_SORTING_ORDER = "instanceUploaderListSortingOrder"
focal_class.modifier: private static final
focal_class.original_string: private static final String INSTANCE_UPLOADER_LIST_SORTING_ORDER = "instanceUploaderListSortingOrder";
focal_class.type: String
focal_class.var_name: INSTANCE_UPLOADER_LIST_SORTING_ORDER
focal_class.declarator: INSTANCE_UPLOADER = 0
focal_class.modifier: public static final
focal_class.original_string: public static final int INSTANCE_UPLOADER = 0;
focal_class.type: int
focal_class.var_name: INSTANCE_UPLOADER
focal_class.declarator: uploadButton
focal_class.modifier: @BindView(R.id.upload_button)
focal_class.original_string: @BindView(R.id.upload_button)
      Button uploadButton;
focal_class.type: Button
focal_class.var_name: uploadButton
focal_class.declarator: smsUploadButton
focal_class.modifier: @BindView(R.id.sms_upload_button)
focal_class.original_string: @BindView(R.id.sms_upload_button)
      Button smsUploadButton;
focal_class.type: Button
focal_class.var_name: smsUploadButton
focal_class.declarator: toggleSelsButton
focal_class.modifier: @BindView(R.id.toggle_button)
focal_class.original_string: @BindView(R.id.toggle_button)
      Button toggleSelsButton;
focal_class.type: Button
focal_class.var_name: toggleSelsButton
focal_class.declarator: instancesDao
focal_class.modifier: private
focal_class.original_string: private InstancesDao instancesDao;
focal_class.type: InstancesDao
focal_class.var_name: instancesDao
focal_class.declarator: instanceSyncTask
focal_class.modifier: private
focal_class.original_string: private InstanceSyncTask instanceSyncTask;
focal_class.type: InstanceSyncTask
focal_class.var_name: instanceSyncTask
focal_class.declarator: showAllMode
focal_class.modifier: public
focal_class.original_string: public boolean showAllMode;
focal_class.type: boolean
focal_class.var_name: showAllMode
focal_class.declarator: autoSendOngoing = true
focal_class.modifier: private
focal_class.original_string: private boolean autoSendOngoing = true;
focal_class.type: boolean
focal_class.var_name: autoSendOngoing
focal_class.declarator: smsForegroundReceiver = new BroadcastReceiver() {
          @Override
          public void onReceive(Context context, Intent intent) {
              //Stops the notification from being sent to others that are listening for this broadcast.
              abortBroadcast();
  
              //deletes submission since the app is in the foreground and the NotificationReceiver won't be triggered.
              if (intent.hasExtra(SMS_INSTANCE_ID)) {
                  deleteIfSubmissionCompleted(intent.getStringExtra(SMS_INSTANCE_ID));
              }
          }
      }
focal_class.modifier: private final
focal_class.original_string: private final BroadcastReceiver smsForegroundReceiver = new BroadcastReceiver() {
          @Override
          public void onReceive(Context context, Intent intent) {
              //Stops the notification from being sent to others that are listening for this broadcast.
              abortBroadcast();
  
              //deletes submission since the app is in the foreground and the NotificationReceiver won't be triggered.
              if (intent.hasExtra(SMS_INSTANCE_ID)) {
                  deleteIfSubmissionCompleted(intent.getStringExtra(SMS_INSTANCE_ID));
              }
          }
      };
focal_class.type: BroadcastReceiver
focal_class.var_name: smsForegroundReceiver
focal_class.declarator: smsService
focal_class.modifier: @Inject
focal_class.original_string: @Inject
      SmsService smsService;
focal_class.type: SmsService
focal_class.var_name: smsService
focal_class.declarator: smsSubmissionManager
focal_class.modifier: @Inject
focal_class.original_string: @Inject
      SmsSubmissionManagerContract smsSubmissionManager;
focal_class.type: SmsSubmissionManagerContract
focal_class.var_name: smsSubmissionManager
focal_class.declarator: analytics
focal_class.modifier: @Inject
focal_class.original_string: @Inject
      Analytics analytics;
focal_class.type: Analytics
focal_class.var_name: analytics
focal_class.declarator: permissionUtils
focal_class.modifier: @Inject
focal_class.original_string: @Inject
      PermissionUtils permissionUtils;
focal_class.type: PermissionUtils
focal_class.var_name: permissionUtils
focal_class.file: collect_app/src/main/java/org/odk/collect/android/activities/InstanceUploaderListActivity.java
focal_class.identifier: InstanceUploaderListActivity
focal_class.interfaces: implements
          OnLongClickListener, DiskSyncListener, AdapterView.OnItemClickListener, LoaderManager.LoaderCallbacks<Cursor>
focal_class.class_method_signature: InstanceUploaderListActivity.onCreate(Bundle savedInstanceState)
focal_class.full_signature: @Override public void onCreate(Bundle savedInstanceState)
focal_class.identifier: onCreate
focal_class.modifiers: @Override public
focal_class.parameters: (Bundle savedInstanceState)
focal_class.return: void
focal_class.signature: void onCreate(Bundle savedInstanceState)
focal_class.class_method_signature: InstanceUploaderListActivity.onUploadButtonsClicked(Button button)
focal_class.full_signature: @OnClick({R.id.upload_button, R.id.sms_upload_button}) public void onUploadButtonsClicked(Button button)
focal_class.identifier: onUploadButtonsClicked
focal_class.modifiers: @OnClick({R.id.upload_button, R.id.sms_upload_button}) public
focal_class.parameters: (Button button)
focal_class.return: void
focal_class.signature: void onUploadButtonsClicked(Button button)
focal_class.class_method_signature: InstanceUploaderListActivity.setupUploadButtons()
focal_class.full_signature: private void setupUploadButtons()
focal_class.identifier: setupUploadButtons
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void setupUploadButtons()
focal_class.class_method_signature: InstanceUploaderListActivity.init()
focal_class.full_signature:  void init()
focal_class.identifier: init
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: InstanceUploaderListActivity.updateAutoSendStatus()
focal_class.full_signature: private void updateAutoSendStatus()
focal_class.identifier: updateAutoSendStatus
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateAutoSendStatus()
focal_class.class_method_signature: InstanceUploaderListActivity.onResume()
focal_class.full_signature: @Override protected void onResume()
focal_class.identifier: onResume
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onResume()
focal_class.class_method_signature: InstanceUploaderListActivity.onPause()
focal_class.full_signature: @Override protected void onPause()
focal_class.identifier: onPause
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onPause()
focal_class.class_method_signature: InstanceUploaderListActivity.syncComplete(@NonNull String result)
focal_class.full_signature: @Override public void syncComplete(@NonNull String result)
focal_class.identifier: syncComplete
focal_class.modifiers: @Override public
focal_class.parameters: (@NonNull String result)
focal_class.return: void
focal_class.signature: void syncComplete(@NonNull String result)
focal_class.class_method_signature: InstanceUploaderListActivity.uploadSelectedFiles(int buttonId)
focal_class.full_signature: private void uploadSelectedFiles(int buttonId)
focal_class.identifier: uploadSelectedFiles
focal_class.modifiers: private
focal_class.parameters: (int buttonId)
focal_class.return: void
focal_class.signature: void uploadSelectedFiles(int buttonId)
focal_class.class_method_signature: InstanceUploaderListActivity.onCreateOptionsMenu(Menu menu)
focal_class.full_signature: @Override public boolean onCreateOptionsMenu(Menu menu)
focal_class.identifier: onCreateOptionsMenu
focal_class.modifiers: @Override public
focal_class.parameters: (Menu menu)
focal_class.return: boolean
focal_class.signature: boolean onCreateOptionsMenu(Menu menu)
focal_class.class_method_signature: InstanceUploaderListActivity.onOptionsItemSelected(MenuItem item)
focal_class.full_signature: @Override public boolean onOptionsItemSelected(MenuItem item)
focal_class.identifier: onOptionsItemSelected
focal_class.modifiers: @Override public
focal_class.parameters: (MenuItem item)
focal_class.return: boolean
focal_class.signature: boolean onOptionsItemSelected(MenuItem item)
focal_class.class_method_signature: InstanceUploaderListActivity.createPreferencesMenu()
focal_class.full_signature: private void createPreferencesMenu()
focal_class.identifier: createPreferencesMenu
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void createPreferencesMenu()
focal_class.class_method_signature: InstanceUploaderListActivity.onItemClick(AdapterView<?> parent, View view, int position, long rowId)
focal_class.full_signature: @Override public void onItemClick(AdapterView<?> parent, View view, int position, long rowId)
focal_class.identifier: onItemClick
focal_class.modifiers: @Override public
focal_class.parameters: (AdapterView<?> parent, View view, int position, long rowId)
focal_class.return: void
focal_class.signature: void onItemClick(AdapterView<?> parent, View view, int position, long rowId)
focal_class.class_method_signature: InstanceUploaderListActivity.onSaveInstanceState(Bundle outState)
focal_class.full_signature: @Override protected void onSaveInstanceState(Bundle outState)
focal_class.identifier: onSaveInstanceState
focal_class.modifiers: @Override protected
focal_class.parameters: (Bundle outState)
focal_class.return: void
focal_class.signature: void onSaveInstanceState(Bundle outState)
focal_class.class_method_signature: InstanceUploaderListActivity.onActivityResult(int requestCode, int resultCode, Intent intent)
focal_class.full_signature: @Override protected void onActivityResult(int requestCode, int resultCode, Intent intent)
focal_class.identifier: onActivityResult
focal_class.modifiers: @Override protected
focal_class.parameters: (int requestCode, int resultCode, Intent intent)
focal_class.return: void
focal_class.signature: void onActivityResult(int requestCode, int resultCode, Intent intent)
focal_class.class_method_signature: InstanceUploaderListActivity.setupAdapter()
focal_class.full_signature: private void setupAdapter()
focal_class.identifier: setupAdapter
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void setupAdapter()
focal_class.class_method_signature: InstanceUploaderListActivity.getSortingOrderKey()
focal_class.full_signature: @Override protected String getSortingOrderKey()
focal_class.identifier: getSortingOrderKey
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getSortingOrderKey()
focal_class.class_method_signature: InstanceUploaderListActivity.updateAdapter()
focal_class.full_signature: @Override protected void updateAdapter()
focal_class.identifier: updateAdapter
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateAdapter()
focal_class.class_method_signature: InstanceUploaderListActivity.onCreateLoader(int id, Bundle args)
focal_class.full_signature: @NonNull @Override public Loader<Cursor> onCreateLoader(int id, Bundle args)
focal_class.identifier: onCreateLoader
focal_class.modifiers: @NonNull @Override public
focal_class.parameters: (int id, Bundle args)
focal_class.return: Loader<Cursor>
focal_class.signature: Loader<Cursor> onCreateLoader(int id, Bundle args)
focal_class.class_method_signature: InstanceUploaderListActivity.onLoadFinished(@NonNull Loader<Cursor> loader, Cursor cursor)
focal_class.full_signature: @Override public void onLoadFinished(@NonNull Loader<Cursor> loader, Cursor cursor)
focal_class.identifier: onLoadFinished
focal_class.modifiers: @Override public
focal_class.parameters: (@NonNull Loader<Cursor> loader, Cursor cursor)
focal_class.return: void
focal_class.signature: void onLoadFinished(@NonNull Loader<Cursor> loader, Cursor cursor)
focal_class.class_method_signature: InstanceUploaderListActivity.onLoaderReset(@NonNull Loader<Cursor> loader)
focal_class.full_signature: @Override public void onLoaderReset(@NonNull Loader<Cursor> loader)
focal_class.identifier: onLoaderReset
focal_class.modifiers: @Override public
focal_class.parameters: (@NonNull Loader<Cursor> loader)
focal_class.return: void
focal_class.signature: void onLoaderReset(@NonNull Loader<Cursor> loader)
focal_class.class_method_signature: InstanceUploaderListActivity.onLongClick(View v)
focal_class.full_signature: @Override public boolean onLongClick(View v)
focal_class.identifier: onLongClick
focal_class.modifiers: @Override public
focal_class.parameters: (View v)
focal_class.return: boolean
focal_class.signature: boolean onLongClick(View v)
focal_class.class_method_signature: InstanceUploaderListActivity.showSentAndUnsentChoices()
focal_class.full_signature: private boolean showSentAndUnsentChoices()
focal_class.identifier: showSentAndUnsentChoices
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean showSentAndUnsentChoices()
focal_class.class_method_signature: InstanceUploaderListActivity.onDestroy()
focal_class.full_signature: @Override protected void onDestroy()
focal_class.identifier: onDestroy
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onDestroy()
focal_class.class_method_signature: InstanceUploaderListActivity.deleteIfSubmissionCompleted(String instanceId)
focal_class.full_signature: private void deleteIfSubmissionCompleted(String instanceId)
focal_class.identifier: deleteIfSubmissionCompleted
focal_class.modifiers: private
focal_class.parameters: (String instanceId)
focal_class.return: void
focal_class.signature: void deleteIfSubmissionCompleted(String instanceId)
focal_class.superclass: extends InstanceListActivity
focal_method.body: @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          switch (item.getItemId()) {
              case R.id.menu_preferences:
                  createPreferencesMenu();
                  return true;
              case R.id.menu_change_view:
                  showSentAndUnsentChoices();
                  return true;
              case R.id.menu_filter:
  
                  return true;
              case android.R.id.home:
                  super.onBackPressed();
                  break;
          }
          return super.onOptionsItemSelected(item);
      }
focal_method.class_method_signature: InstanceUploaderListActivity.onOptionsItemSelected(MenuItem item)
focal_method.full_signature: @Override public boolean onOptionsItemSelected(MenuItem item)
focal_method.identifier: onOptionsItemSelected
focal_method.invocations: getItemId createPreferencesMenu showSentAndUnsentChoices onBackPressed onOptionsItemSelected
focal_method.modifiers: @Override public
focal_method.parameters: (MenuItem item)
focal_method.return: boolean
focal_method.signature: boolean onOptionsItemSelected(MenuItem item)