├── docs
├── .gitignore
├── changelog.rst
├── index.rst
└── intro.rst
├── settings.gradle
├── daydreaming
├── src
│ ├── main
│ │ ├── res
│ │ │ ├── values
│ │ │ │ ├── passes.xml
│ │ │ │ ├── name.xml
│ │ │ │ ├── dimens.xml
│ │ │ │ ├── themes.xml
│ │ │ │ ├── styles.xml
│ │ │ │ ├── ui_typography.xml
│ │ │ │ └── ui_colors.xml
│ │ │ ├── raw
│ │ │ │ ├── notification.wav
│ │ │ │ └── description
│ │ │ ├── drawable-mdpi
│ │ │ │ ├── erase.png
│ │ │ │ ├── resize
│ │ │ │ ├── airship.png
│ │ │ │ ├── helice1.png
│ │ │ │ ├── helice2.png
│ │ │ │ ├── helice3.png
│ │ │ │ ├── helice4.png
│ │ │ │ ├── helice5.png
│ │ │ │ ├── logo_mb.png
│ │ │ │ ├── icon_about.png
│ │ │ │ ├── icon_male.png
│ │ │ │ ├── icon_terms.png
│ │ │ │ ├── icon_test.png
│ │ │ │ ├── logo_cnrs.png
│ │ │ │ ├── logo_ehess.png
│ │ │ │ ├── logo_ens.png
│ │ │ │ ├── logo_gis.png
│ │ │ │ ├── logo_isc.png
│ │ │ │ ├── logo_ucl.png
│ │ │ │ ├── status_ok.png
│ │ │ │ ├── cloud_bottom.png
│ │ │ │ ├── conic_light.png
│ │ │ │ ├── daydreaming.png
│ │ │ │ ├── erase_yellow.png
│ │ │ │ ├── ic_glossary.png
│ │ │ │ ├── icon_female.png
│ │ │ │ ├── status_wrong.png
│ │ │ │ ├── tickbox_both.png
│ │ │ │ ├── tickbox_box.png
│ │ │ │ ├── button_finish.png
│ │ │ │ ├── button_garbage.png
│ │ │ │ ├── dashboard_arrow.png
│ │ │ │ ├── ic_glossary_y.png
│ │ │ │ ├── icon_glossary.png
│ │ │ │ ├── status_loading.png
│ │ │ │ ├── status_ok_blue.png
│ │ │ │ ├── button_cloud_next.png
│ │ │ │ ├── cloud_description.png
│ │ │ │ ├── icon_about_yellow.png
│ │ │ │ ├── icon_description.png
│ │ │ │ ├── icon_notif_blink.png
│ │ │ │ ├── icon_notif_sound.png
│ │ │ │ ├── icon_questionmark.png
│ │ │ │ ├── icon_terms_yellow.png
│ │ │ │ ├── status_wrong_blue.png
│ │ │ │ ├── button_app_settings.png
│ │ │ │ ├── button_finish_yellow.png
│ │ │ │ ├── button_location_home.png
│ │ │ │ ├── button_location_work.png
│ │ │ │ ├── create_your_question.png
│ │ │ │ ├── icon_glossary_yellow.png
│ │ │ │ ├── icon_notif_vibrate.png
│ │ │ │ ├── person_description.png
│ │ │ │ ├── status_loading_blue.png
│ │ │ │ ├── button_cloud_test_item.png
│ │ │ │ ├── icon_questionmark_blue.png
│ │ │ │ ├── icon_time_window_from.png
│ │ │ │ ├── icon_time_window_until.png
│ │ │ │ ├── logo_science_en_poche.png
│ │ │ │ ├── button_cloud_next_yellow.png
│ │ │ │ ├── button_location_commuting.png
│ │ │ │ ├── button_location_outside.png
│ │ │ │ ├── icon_description_yellow.png
│ │ │ │ ├── icon_questionmark_yellow.png
│ │ │ │ ├── button_app_settings_yellow.png
│ │ │ │ ├── button_location_home_yellow.png
│ │ │ │ ├── button_location_publicplace.png
│ │ │ │ ├── button_location_work_yellow.png
│ │ │ │ ├── button_cloud_test_item_small.png
│ │ │ │ ├── button_cloud_test_item_yellow.png
│ │ │ │ ├── button_location_outside_yellow.png
│ │ │ │ ├── button_cloud_test_item_selected.png
│ │ │ │ ├── button_location_commuting_yellow.png
│ │ │ │ ├── ic_stat_notify_small_daydreaming.png
│ │ │ │ ├── button_cloud_test_item_yellow_small.png
│ │ │ │ ├── button_location_publicplace_yellow.png
│ │ │ │ ├── button_cloud_test_item_selected_small.png
│ │ │ │ ├── button_cloud_test_item_selected_yellow.png
│ │ │ │ └── button_cloud_test_item_selected_yellow_small.png
│ │ │ ├── drawable-hdpi
│ │ │ │ ├── airship.png
│ │ │ │ ├── android.png
│ │ │ │ ├── helice1.png
│ │ │ │ ├── helice2.png
│ │ │ │ ├── helice3.png
│ │ │ │ ├── helice4.png
│ │ │ │ ├── helice5.png
│ │ │ │ ├── icon_about.png
│ │ │ │ ├── icon_male.png
│ │ │ │ ├── icon_terms.png
│ │ │ │ ├── icon_test.png
│ │ │ │ ├── status_ok.png
│ │ │ │ ├── cloud_terms.png
│ │ │ │ ├── daydreaming.png
│ │ │ │ ├── ic_glossary.png
│ │ │ │ ├── icon_female.png
│ │ │ │ ├── status_wrong.png
│ │ │ │ ├── tickbox_both.png
│ │ │ │ ├── tickbox_box.png
│ │ │ │ ├── tickbox_tick.png
│ │ │ │ ├── button_finish.png
│ │ │ │ ├── button_garbage.png
│ │ │ │ ├── dashboard_arrow.png
│ │ │ │ ├── ic_glossary_y.png
│ │ │ │ ├── icon_glossary.png
│ │ │ │ ├── status_loading.png
│ │ │ │ ├── button_cloud_next.png
│ │ │ │ ├── icon_about_yellow.png
│ │ │ │ ├── icon_description.png
│ │ │ │ ├── icon_questionmark.png
│ │ │ │ ├── icon_terms_yellow.png
│ │ │ │ ├── button_app_settings.png
│ │ │ │ ├── button_finish_yellow.png
│ │ │ │ ├── ic_menu_daydreaming.png
│ │ │ │ ├── icon_glossary_yellow.png
│ │ │ │ ├── button_cloud_next_yellow.png
│ │ │ │ ├── ic_launcher_daydreaming.png
│ │ │ │ ├── icon_description_yellow.png
│ │ │ │ ├── button_app_settings_yellow.png
│ │ │ │ └── ic_stat_notify_small_daydreaming.png
│ │ │ ├── drawable-xhdpi
│ │ │ │ ├── android.png
│ │ │ │ ├── helice5.png
│ │ │ │ ├── icon_male.png
│ │ │ │ ├── icon_test.png
│ │ │ │ ├── status_ok.png
│ │ │ │ ├── cloud_terms.png
│ │ │ │ ├── daydreaming.png
│ │ │ │ ├── ic_glossary.png
│ │ │ │ ├── icon_about.png
│ │ │ │ ├── icon_female.png
│ │ │ │ ├── icon_terms.png
│ │ │ │ ├── tickbox_box.png
│ │ │ │ ├── button_finish.png
│ │ │ │ ├── button_garbage.png
│ │ │ │ ├── ic_glossary_y.png
│ │ │ │ ├── icon_glossary.png
│ │ │ │ ├── status_loading.png
│ │ │ │ ├── status_wrong.png
│ │ │ │ ├── tickbox_both.png
│ │ │ │ ├── tickbox_tick.png
│ │ │ │ ├── dashboard_arrow.png
│ │ │ │ ├── icon_description.png
│ │ │ │ ├── button_app_settings.png
│ │ │ │ ├── button_cloud_next.png
│ │ │ │ ├── ic_menu_daydreaming.png
│ │ │ │ ├── icon_about_yellow.png
│ │ │ │ ├── icon_questionmark.png
│ │ │ │ ├── icon_terms_yellow.png
│ │ │ │ ├── button_finish_yellow.png
│ │ │ │ ├── icon_glossary_yellow.png
│ │ │ │ ├── button_cloud_next_yellow.png
│ │ │ │ ├── icon_description_yellow.png
│ │ │ │ ├── button_app_settings_yellow.png
│ │ │ │ └── ic_stat_notify_small_daydreaming.png
│ │ │ ├── drawable
│ │ │ │ ├── button_garbage.png
│ │ │ │ ├── empty.xml
│ │ │ │ ├── yellow_rectangle.xml
│ │ │ │ ├── red_rectangle.xml
│ │ │ │ ├── white_rectangle.xml
│ │ │ │ ├── white_background.xml
│ │ │ │ ├── dark_blue_rectangle.xml
│ │ │ │ ├── profile_spinner_box_yellow.xml
│ │ │ │ ├── scrollbar_vertical_thumb.xml
│ │ │ │ ├── scrollbar_vertical_thumb_blue.xml
│ │ │ │ ├── profile_spinner_box.xml
│ │ │ │ ├── button_erase_data_selector.xml
│ │ │ │ ├── icon_about_selector.xml
│ │ │ │ ├── icon_terms_selector.xml
│ │ │ │ ├── button_finish_selector.xml
│ │ │ │ ├── icon_glossary_selector.xml
│ │ │ │ ├── red_rectangle_selector.xml
│ │ │ │ ├── icon_description_selector.xml
│ │ │ │ ├── slider_white_bg.xml
│ │ │ │ ├── white_rectangle_selector.xml
│ │ │ │ ├── button_cloud_next_selector.xml
│ │ │ │ ├── dark_blue_rect_button_selector.xml
│ │ │ │ ├── icon_instructions_selector.xml
│ │ │ │ ├── icon_questionmark_selector.xml
│ │ │ │ ├── settings_icon_selector.xml
│ │ │ │ ├── light_blue_rect_button_selector.xml
│ │ │ │ ├── profile_spinner_box_selector.xml
│ │ │ │ ├── button_location_home_selector.xml
│ │ │ │ ├── button_location_work_selector.xml
│ │ │ │ ├── button_location_outside_selector.xml
│ │ │ │ ├── choice_item_image_selector.xml
│ │ │ │ ├── button_location_commuting_selector.xml
│ │ │ │ ├── button_location_publicplace_selector.xml
│ │ │ │ ├── choice_item_image_selected_selector.xml
│ │ │ │ ├── custom_checkbox.xml
│ │ │ │ ├── question_slider_progress.xml
│ │ │ │ ├── blue_background.xml
│ │ │ │ ├── animated_helix.xml
│ │ │ │ ├── blue_background_test_border.xml
│ │ │ │ ├── yellow_rect_button.xml
│ │ │ │ ├── dark_blue_rect_button.xml
│ │ │ │ ├── light_blue_rect_button.xml
│ │ │ │ ├── ui_layered_background.xml
│ │ │ │ ├── ui_layered_background_test.xml
│ │ │ │ ├── settings_icon.xml
│ │ │ │ └── question_slider_thumb.xml
│ │ │ ├── layout
│ │ │ │ ├── question_matrix_choice_inter_view.xml
│ │ │ │ ├── question_layout.xml
│ │ │ │ ├── question_matrix_choice_row.xml
│ │ │ │ ├── activity_results.xml
│ │ │ │ ├── spinner_layout.xml
│ │ │ │ ├── return_to_dashboard_button.xml
│ │ │ │ ├── question_matrix_choice.xml
│ │ │ │ ├── beginend_questionnaire_layout.xml
│ │ │ │ ├── question_matrix_choice_item.xml
│ │ │ │ ├── question_multiple_choice_item.xml
│ │ │ │ ├── question_auto_list_item_view.xml
│ │ │ │ ├── spinner_layout_icon.xml
│ │ │ │ └── glossary_item_layout.xml
│ │ │ ├── anim
│ │ │ │ ├── mainfadein.xml
│ │ │ │ ├── splashfadeout.xml
│ │ │ │ ├── push_bottom_in.xml
│ │ │ │ ├── push_left_in.xml
│ │ │ │ ├── push_left_out.xml
│ │ │ │ ├── push_right_in.xml
│ │ │ │ ├── push_right_out.xml
│ │ │ │ ├── push_top_in.xml
│ │ │ │ ├── push_top_out.xml
│ │ │ │ └── push_bottom_out.xml
│ │ │ ├── color
│ │ │ │ ├── choice_item_text_selector.xml
│ │ │ │ └── choice_item_text_selected_selector.xml
│ │ │ └── values-v13
│ │ │ │ └── themes.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── brainydroid
│ │ │ │ └── daydreaming
│ │ │ │ ├── db
│ │ │ │ ├── BaseObject.java
│ │ │ │ ├── ConsistencyException.java
│ │ │ │ ├── LocationPointFactory.java
│ │ │ │ ├── ParametersSyntaxException.java
│ │ │ │ ├── Views.java
│ │ │ │ ├── ModelJsonFactory.java
│ │ │ │ ├── JsonParametersException.java
│ │ │ │ ├── TypedStatusModel.java
│ │ │ │ ├── SequenceJsonFactory.java
│ │ │ │ ├── Storage.java
│ │ │ │ ├── IQuestionDescriptionDetails.java
│ │ │ │ └── LocationPointJsonFactory.java
│ │ │ │ ├── sequence
│ │ │ │ ├── IAnswer.java
│ │ │ │ ├── PageFactory.java
│ │ │ │ ├── PreLoadCallback.java
│ │ │ │ ├── QuestionFactory.java
│ │ │ │ ├── SequenceFactory.java
│ │ │ │ ├── IQuestion.java
│ │ │ │ ├── PageGroupFactory.java
│ │ │ │ ├── PreLoadable.java
│ │ │ │ ├── IPageGroup.java
│ │ │ │ ├── IPage.java
│ │ │ │ ├── ISequence.java
│ │ │ │ ├── BuildableOrderable.java
│ │ │ │ ├── ListReverser.java
│ │ │ │ ├── AutoListAnswer.java
│ │ │ │ ├── MatrixChoiceAnswer.java
│ │ │ │ ├── MultipleChoiceAnswer.java
│ │ │ │ ├── ManySlidersAnswer.java
│ │ │ │ ├── Location.java
│ │ │ │ ├── SliderAnswer.java
│ │ │ │ ├── StarRatingAnswer.java
│ │ │ │ ├── Node.java
│ │ │ │ ├── QuestionBuilder.java
│ │ │ │ └── PageBuilder.java
│ │ │ │ ├── ui
│ │ │ │ ├── filtering
│ │ │ │ │ ├── FiltererFactory.java
│ │ │ │ │ ├── IDistance.java
│ │ │ │ │ ├── AutoCompleteAdapterFactory.java
│ │ │ │ │ ├── Timer.java
│ │ │ │ │ ├── SuperHamming.java
│ │ │ │ │ ├── Tree.java
│ │ │ │ │ ├── DoubleStringKey.java
│ │ │ │ │ └── CachingDistance.java
│ │ │ │ ├── firstlaunchsequence
│ │ │ │ │ ├── ScrollViewListener.java
│ │ │ │ │ └── ScrollViewExt.java
│ │ │ │ ├── sequences
│ │ │ │ │ ├── ButtonListener.java
│ │ │ │ │ └── IQuestionViewAdapter.java
│ │ │ │ ├── TimePickerFragment.java
│ │ │ │ ├── dashboard
│ │ │ │ │ └── DescriptionActivity.java
│ │ │ │ ├── AlphaLinearLayout.java
│ │ │ │ ├── AlphaButton.java
│ │ │ │ └── AlphaImageButton.java
│ │ │ │ ├── network
│ │ │ │ ├── SntpClientCallback.java
│ │ │ │ ├── ProfileWrapperFactory.java
│ │ │ │ ├── CryptoStorageCallback.java
│ │ │ │ ├── ParametersStorageCallback.java
│ │ │ │ ├── HttpConversationCallback.java
│ │ │ │ ├── ResultsWrapperFactory.java
│ │ │ │ ├── ServerErrorWrapper.java
│ │ │ │ ├── AuthContent.java
│ │ │ │ ├── JWS.java
│ │ │ │ ├── ProfileWrapper.java
│ │ │ │ ├── HttpGetData.java
│ │ │ │ ├── JWSSignature.java
│ │ │ │ ├── ServerError.java
│ │ │ │ ├── ProfileDataFactory.java
│ │ │ │ ├── Result.java
│ │ │ │ ├── ProfileFactory.java
│ │ │ │ ├── ResultsWrapper.java
│ │ │ │ ├── HttpPutData.java
│ │ │ │ └── HttpPostData.java
│ │ │ │ └── background
│ │ │ │ ├── QuestionsUpdateCallback.java
│ │ │ │ ├── ServiceConnectionCallback.java
│ │ │ │ ├── LocationCallback.java
│ │ │ │ └── BootReceiver.java
│ │ └── assets
│ │ │ └── fonts
│ │ │ ├── Roboto-Black.ttf
│ │ │ ├── Roboto-Bold.ttf
│ │ │ ├── Roboto-Light.ttf
│ │ │ ├── Roboto-Thin.ttf
│ │ │ ├── Roboto-Italic.ttf
│ │ │ ├── Roboto-Medium.ttf
│ │ │ ├── Roboto-Regular.ttf
│ │ │ ├── Roboto-BoldItalic.ttf
│ │ │ ├── Roboto-Condensed.ttf
│ │ │ ├── Roboto-ThinItalic.ttf
│ │ │ ├── Roboto-BlackItalic.ttf
│ │ │ ├── Roboto-BoldCondensed.ttf
│ │ │ ├── Roboto-LightItalic.ttf
│ │ │ ├── Roboto-MediumItalic.ttf
│ │ │ ├── RobotoSpecimenBook.pdf
│ │ │ ├── Roboto-CondensedItalic.ttf
│ │ │ └── Roboto-BoldCondensedItalic.ttf
│ ├── beta
│ │ └── res
│ │ │ └── values
│ │ │ └── name.xml
│ ├── qa
│ │ ├── res
│ │ │ ├── drawable
│ │ │ │ └── ic_launcher_daydreaming.png
│ │ │ ├── drawable-hdpi
│ │ │ │ └── ic_launcher_daydreaming.png
│ │ │ ├── drawable-mdpi
│ │ │ │ └── ic_launcher_daydreaming.png
│ │ │ └── drawable-xhdpi
│ │ │ │ └── ic_launcher_daydreaming.png
│ │ └── java
│ │ │ └── com
│ │ │ └── brainydroid
│ │ │ └── daydreaming
│ │ │ ├── network
│ │ │ └── ServerConfig.java
│ │ │ └── background
│ │ │ └── LoggerConfig.java
│ ├── debug
│ │ ├── res
│ │ │ ├── drawable
│ │ │ │ └── ic_launcher_daydreaming.png
│ │ │ ├── drawable-hdpi
│ │ │ │ └── ic_launcher_daydreaming.png
│ │ │ ├── drawable-mdpi
│ │ │ │ └── ic_launcher_daydreaming.png
│ │ │ └── drawable-xhdpi
│ │ │ │ └── ic_launcher_daydreaming.png
│ │ └── java
│ │ │ └── com
│ │ │ └── brainydroid
│ │ │ └── daydreaming
│ │ │ ├── network
│ │ │ └── ServerConfig.java
│ │ │ └── background
│ │ │ └── LoggerConfig.java
│ └── release
│ │ ├── res
│ │ ├── drawable
│ │ │ └── ic_launcher_daydreaming.png
│ │ ├── drawable-hdpi
│ │ │ └── ic_launcher_daydreaming.png
│ │ ├── drawable-mdpi
│ │ │ └── ic_launcher_daydreaming.png
│ │ └── drawable-xhdpi
│ │ │ └── ic_launcher_daydreaming.png
│ │ └── java
│ │ └── com
│ │ └── brainydroid
│ │ └── daydreaming
│ │ ├── network
│ │ └── ServerConfig.java
│ │ └── background
│ │ └── LoggerConfig.java
└── .gitignore
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── library
├── src
│ └── main
│ │ ├── res
│ │ ├── drawable
│ │ │ ├── cling.png
│ │ │ ├── button.xml
│ │ │ ├── cling_button_bg.xml
│ │ │ └── button_normal.xml
│ │ ├── drawable-hdpi
│ │ │ ├── hand.png
│ │ │ ├── btn_cling_normal.9.png
│ │ │ └── btn_cling_pressed.9.png
│ │ ├── drawable-mdpi
│ │ │ ├── hand.png
│ │ │ ├── btn_cling_normal.9.png
│ │ │ └── btn_cling_pressed.9.png
│ │ ├── drawable-xhdpi
│ │ │ ├── hand.png
│ │ │ ├── cling_bleached.png
│ │ │ ├── btn_cling_normal.9.png
│ │ │ ├── cling_bleached_old.png
│ │ │ └── btn_cling_pressed.9.png
│ │ ├── values
│ │ │ ├── strings.xml
│ │ │ ├── ids.xml
│ │ │ └── dimens.xml
│ │ └── layout
│ │ │ ├── showcase_button.xml
│ │ │ └── handy.xml
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ └── com
│ │ └── github
│ │ └── amlcurran
│ │ └── showcaseview
│ │ ├── targets
│ │ ├── Target.java
│ │ ├── Reflector.java
│ │ ├── PointTarget.java
│ │ └── ViewTarget.java
│ │ ├── Calculator.java
│ │ ├── AnimationFactory.java
│ │ ├── ShowcaseDrawer.java
│ │ └── ApiUtils.java
├── COPYING
├── project.properties
├── build.gradle
└── gradle.properties
├── TEST.md
├── .gitignore
├── RELEASE-CHECKLIST.md
├── passes.template.xml
├── bumpVersion.sh
├── README.md
├── deploy.sh
├── .travis.yml
└── COPYING
/docs/.gitignore:
--------------------------------------------------------------------------------
1 | # Sphinx build directory
2 | _build
3 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':daydreaming'
2 | include ':library'
--------------------------------------------------------------------------------
/daydreaming/src/main/res/values/passes.xml:
--------------------------------------------------------------------------------
1 | ../../../../../passes.local.xml
--------------------------------------------------------------------------------
/docs/changelog.rst:
--------------------------------------------------------------------------------
1 | .. _changelog:
2 |
3 | .. include:: ../CHANGELOG.md
4 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/library/src/main/res/drawable/cling.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/library/src/main/res/drawable/cling.png
--------------------------------------------------------------------------------
/TEST.md:
--------------------------------------------------------------------------------
1 | Test
2 | ====
3 |
4 | Things that we must test. Add to this list when you merge a new feature, remove
5 | from this list once tested!
6 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/hand.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/library/src/main/res/drawable-hdpi/hand.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/hand.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/library/src/main/res/drawable-mdpi/hand.png
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/db/BaseObject.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.db;
2 |
3 | public class BaseObject { }
4 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/raw/notification.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/raw/notification.wav
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/hand.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/library/src/main/res/drawable-xhdpi/hand.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/erase.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/erase.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/resize:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | y=0
3 | for i in *.png
4 | do y=$((y+1))
5 | convert -resize 50% "$i" "$i.png"
6 | done
7 |
--------------------------------------------------------------------------------
/daydreaming/src/main/assets/fonts/Roboto-Black.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/assets/fonts/Roboto-Black.ttf
--------------------------------------------------------------------------------
/daydreaming/src/main/assets/fonts/Roboto-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/assets/fonts/Roboto-Bold.ttf
--------------------------------------------------------------------------------
/daydreaming/src/main/assets/fonts/Roboto-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/assets/fonts/Roboto-Light.ttf
--------------------------------------------------------------------------------
/daydreaming/src/main/assets/fonts/Roboto-Thin.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/assets/fonts/Roboto-Thin.ttf
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/IAnswer.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | public interface IAnswer {}
4 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/airship.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/airship.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/android.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/android.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/helice1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/helice1.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/helice2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/helice2.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/helice3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/helice3.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/helice4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/helice4.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/helice5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/helice5.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/airship.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/airship.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/helice1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/helice1.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/helice2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/helice2.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/helice3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/helice3.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/helice4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/helice4.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/helice5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/helice5.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/logo_mb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/logo_mb.png
--------------------------------------------------------------------------------
/daydreaming/src/main/assets/fonts/Roboto-Italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/assets/fonts/Roboto-Italic.ttf
--------------------------------------------------------------------------------
/daydreaming/src/main/assets/fonts/Roboto-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/assets/fonts/Roboto-Medium.ttf
--------------------------------------------------------------------------------
/daydreaming/src/main/assets/fonts/Roboto-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/assets/fonts/Roboto-Regular.ttf
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/icon_about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/icon_about.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/icon_male.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/icon_male.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/icon_terms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/icon_terms.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/icon_test.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/icon_test.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/status_ok.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/status_ok.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_about.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_male.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_male.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_terms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_terms.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_test.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_test.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/logo_cnrs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/logo_cnrs.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/logo_ehess.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/logo_ehess.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/logo_ens.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/logo_ens.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/logo_gis.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/logo_gis.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/logo_isc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/logo_isc.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/logo_ucl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/logo_ucl.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/status_ok.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/status_ok.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/android.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/android.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/helice5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/helice5.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/icon_male.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/icon_male.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/icon_test.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/icon_test.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/status_ok.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/status_ok.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/button_garbage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable/button_garbage.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/values/name.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Daydreaming
4 |
--------------------------------------------------------------------------------
/daydreaming/src/beta/res/values/name.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Daydreaming Beta
4 |
--------------------------------------------------------------------------------
/daydreaming/src/main/assets/fonts/Roboto-BoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/assets/fonts/Roboto-BoldItalic.ttf
--------------------------------------------------------------------------------
/daydreaming/src/main/assets/fonts/Roboto-Condensed.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/assets/fonts/Roboto-Condensed.ttf
--------------------------------------------------------------------------------
/daydreaming/src/main/assets/fonts/Roboto-ThinItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/assets/fonts/Roboto-ThinItalic.ttf
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/cloud_terms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/cloud_terms.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/ic_glossary.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/ic_glossary.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/icon_female.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/icon_female.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/status_wrong.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/status_wrong.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/tickbox_both.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/tickbox_both.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/tickbox_box.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/tickbox_box.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/tickbox_tick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/tickbox_tick.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/cloud_bottom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/cloud_bottom.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/conic_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/conic_light.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/erase_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/erase_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/ic_glossary.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/ic_glossary.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_female.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_female.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/status_wrong.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/status_wrong.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/tickbox_both.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/tickbox_both.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/tickbox_box.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/tickbox_box.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/cloud_terms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/cloud_terms.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/ic_glossary.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/ic_glossary.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/icon_about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/icon_about.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/icon_female.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/icon_female.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/icon_terms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/icon_terms.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/tickbox_box.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/tickbox_box.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/cling_bleached.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/library/src/main/res/drawable-xhdpi/cling_bleached.png
--------------------------------------------------------------------------------
/daydreaming/src/main/assets/fonts/Roboto-BlackItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/assets/fonts/Roboto-BlackItalic.ttf
--------------------------------------------------------------------------------
/daydreaming/src/main/assets/fonts/Roboto-BoldCondensed.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/assets/fonts/Roboto-BoldCondensed.ttf
--------------------------------------------------------------------------------
/daydreaming/src/main/assets/fonts/Roboto-LightItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/assets/fonts/Roboto-LightItalic.ttf
--------------------------------------------------------------------------------
/daydreaming/src/main/assets/fonts/Roboto-MediumItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/assets/fonts/Roboto-MediumItalic.ttf
--------------------------------------------------------------------------------
/daydreaming/src/main/assets/fonts/RobotoSpecimenBook.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/assets/fonts/RobotoSpecimenBook.pdf
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/button_finish.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/button_finish.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/button_garbage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/button_garbage.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/dashboard_arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/dashboard_arrow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/ic_glossary_y.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/ic_glossary_y.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/icon_glossary.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/icon_glossary.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/status_loading.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/status_loading.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_finish.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_finish.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_garbage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_garbage.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/dashboard_arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/dashboard_arrow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/ic_glossary_y.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/ic_glossary_y.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_glossary.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_glossary.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/status_loading.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/status_loading.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/status_ok_blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/status_ok_blue.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/button_finish.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/button_finish.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/button_garbage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/button_garbage.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/ic_glossary_y.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/ic_glossary_y.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/icon_glossary.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/icon_glossary.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/status_loading.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/status_loading.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/status_wrong.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/status_wrong.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/tickbox_both.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/tickbox_both.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/tickbox_tick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/tickbox_tick.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/btn_cling_normal.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/library/src/main/res/drawable-hdpi/btn_cling_normal.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/btn_cling_pressed.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/library/src/main/res/drawable-hdpi/btn_cling_pressed.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/btn_cling_normal.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/library/src/main/res/drawable-mdpi/btn_cling_normal.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/btn_cling_pressed.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/library/src/main/res/drawable-mdpi/btn_cling_pressed.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/btn_cling_normal.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/library/src/main/res/drawable-xhdpi/btn_cling_normal.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/cling_bleached_old.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/library/src/main/res/drawable-xhdpi/cling_bleached_old.png
--------------------------------------------------------------------------------
/daydreaming/src/main/assets/fonts/Roboto-CondensedItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/assets/fonts/Roboto-CondensedItalic.ttf
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/button_cloud_next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/button_cloud_next.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/icon_about_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/icon_about_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/icon_description.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/icon_description.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/icon_questionmark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/icon_questionmark.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/icon_terms_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/icon_terms_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_cloud_next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_cloud_next.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/cloud_description.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/cloud_description.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_about_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_about_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_description.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_description.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_notif_blink.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_notif_blink.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_notif_sound.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_notif_sound.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_questionmark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_questionmark.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_terms_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_terms_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/status_wrong_blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/status_wrong_blue.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/dashboard_arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/dashboard_arrow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/icon_description.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/icon_description.png
--------------------------------------------------------------------------------
/daydreaming/src/qa/res/drawable/ic_launcher_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/qa/res/drawable/ic_launcher_daydreaming.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/btn_cling_pressed.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/library/src/main/res/drawable-xhdpi/btn_cling_pressed.9.png
--------------------------------------------------------------------------------
/daydreaming/src/debug/res/drawable/ic_launcher_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/debug/res/drawable/ic_launcher_daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/button_app_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/button_app_settings.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/button_finish_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/button_finish_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/ic_menu_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/ic_menu_daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/icon_glossary_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/icon_glossary_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_app_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_app_settings.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_finish_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_finish_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_location_home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_location_home.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_location_work.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_location_work.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/create_your_question.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/create_your_question.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_glossary_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_glossary_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_notif_vibrate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_notif_vibrate.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/person_description.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/person_description.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/status_loading_blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/status_loading_blue.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/button_app_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/button_app_settings.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/button_cloud_next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/button_cloud_next.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/ic_menu_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/ic_menu_daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/icon_about_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/icon_about_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/icon_questionmark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/icon_questionmark.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/icon_terms_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/icon_terms_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/assets/fonts/Roboto-BoldCondensedItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/assets/fonts/Roboto-BoldCondensedItalic.ttf
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/db/ConsistencyException.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.db;
2 |
3 | public class ConsistencyException extends Exception {}
4 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_cloud_test_item.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_cloud_test_item.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_questionmark_blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_questionmark_blue.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_time_window_from.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_time_window_from.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_time_window_until.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_time_window_until.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/logo_science_en_poche.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/logo_science_en_poche.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/button_finish_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/button_finish_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/icon_glossary_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/icon_glossary_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/qa/res/drawable-hdpi/ic_launcher_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/qa/res/drawable-hdpi/ic_launcher_daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/qa/res/drawable-mdpi/ic_launcher_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/qa/res/drawable-mdpi/ic_launcher_daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/qa/res/drawable-xhdpi/ic_launcher_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/qa/res/drawable-xhdpi/ic_launcher_daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/release/res/drawable/ic_launcher_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/release/res/drawable/ic_launcher_daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/debug/res/drawable-hdpi/ic_launcher_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/debug/res/drawable-hdpi/ic_launcher_daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/debug/res/drawable-mdpi/ic_launcher_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/debug/res/drawable-mdpi/ic_launcher_daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/debug/res/drawable-xhdpi/ic_launcher_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/debug/res/drawable-xhdpi/ic_launcher_daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/button_cloud_next_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/button_cloud_next_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/ic_launcher_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/ic_launcher_daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/icon_description_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/icon_description_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_cloud_next_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_cloud_next_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_location_commuting.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_location_commuting.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_location_outside.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_location_outside.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_description_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_description_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/icon_questionmark_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/icon_questionmark_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/button_cloud_next_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/button_cloud_next_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/icon_description_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/icon_description_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/button_app_settings_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/button_app_settings_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_app_settings_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_app_settings_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_location_home_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_location_home_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_location_publicplace.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_location_publicplace.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_location_work_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_location_work_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/button_app_settings_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/button_app_settings_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/release/res/drawable-hdpi/ic_launcher_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/release/res/drawable-hdpi/ic_launcher_daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/release/res/drawable-mdpi/ic_launcher_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/release/res/drawable-mdpi/ic_launcher_daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/release/res/drawable-xhdpi/ic_launcher_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/release/res/drawable-xhdpi/ic_launcher_daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_cloud_test_item_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_cloud_test_item_small.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_cloud_test_item_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_cloud_test_item_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_location_outside_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_location_outside_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-hdpi/ic_stat_notify_small_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-hdpi/ic_stat_notify_small_daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_cloud_test_item_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_cloud_test_item_selected.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_location_commuting_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_location_commuting_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/ic_stat_notify_small_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/ic_stat_notify_small_daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/PageFactory.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | public interface PageFactory {
4 |
5 | public Page create();
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_cloud_test_item_yellow_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_cloud_test_item_yellow_small.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_location_publicplace_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_location_publicplace_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-xhdpi/ic_stat_notify_small_daydreaming.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-xhdpi/ic_stat_notify_small_daydreaming.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_cloud_test_item_selected_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_cloud_test_item_selected_small.png
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/PreLoadCallback.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | public interface PreLoadCallback {
4 |
5 | public void onPreLoaded();
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/QuestionFactory.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | public interface QuestionFactory {
4 |
5 | public Question create();
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/SequenceFactory.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | public interface SequenceFactory {
4 |
5 | public Sequence create();
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_cloud_test_item_selected_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_cloud_test_item_selected_yellow.png
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/db/LocationPointFactory.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.db;
2 |
3 | public interface LocationPointFactory {
4 |
5 | public LocationPoint create();
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/IQuestion.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | abstract public interface IQuestion {
4 |
5 | public String getQuestionName();
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/PageGroupFactory.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | public interface PageGroupFactory {
4 |
5 | public PageGroup create();
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/empty.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/daydreaming/.gitignore:
--------------------------------------------------------------------------------
1 | # gradle files
2 | build
3 | .gradle
4 |
5 | # IntelliJ IDEA files
6 | .idea/
7 | gen-external-apklibs/
8 | out/
9 | *.iml
10 | *.ipr
11 | *.iws
12 |
13 | # Signed APKs
14 | daydreaming-*+release.apk
15 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/ui/filtering/FiltererFactory.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.ui.filtering;
2 |
3 | public interface FiltererFactory {
4 |
5 | public Filterer create();
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable-mdpi/button_cloud_test_item_selected_yellow_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daydreaming-experiment/app/HEAD/daydreaming/src/main/res/drawable-mdpi/button_cloud_test_item_selected_yellow_small.png
--------------------------------------------------------------------------------
/daydreaming/src/main/res/layout/question_matrix_choice_inter_view.xml:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/SntpClientCallback.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | public interface SntpClientCallback {
4 |
5 | public void onTimeReceived(SntpClient sntpClient);
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/ProfileWrapperFactory.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 |
4 | public interface ProfileWrapperFactory {
5 |
6 | public ProfileWrapper create(Profile profile);
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/yellow_rectangle.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/red_rectangle.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 47dp
4 | 48dp
5 | 64dp
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/CryptoStorageCallback.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | public interface CryptoStorageCallback {
4 |
5 | public void onCryptoStorageReady(boolean hasKeyPairAndMaiId);
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/white_rectangle.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/background/QuestionsUpdateCallback.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.background;
2 |
3 | public interface QuestionsUpdateCallback {
4 |
5 | public void onQuestionsUpdateStatusChange(String status);
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/ParametersStorageCallback.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | public interface ParametersStorageCallback {
4 |
5 | public void onParametersStorageReady(boolean areParametersUpdated);
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/HttpConversationCallback.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | public interface HttpConversationCallback {
4 |
5 | public void onHttpConversationFinished(boolean success, String serverAnswer);
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Jul 23 14:31:43 CEST 2014
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-1.12-all.zip
7 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/PreLoadable.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | public interface PreLoadable {
4 |
5 | public boolean isPreLoaded();
6 |
7 | public void onPreLoaded(PreLoadCallback preLoadCallback);
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/white_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/db/ParametersSyntaxException.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.db;
2 |
3 | public class ParametersSyntaxException extends Exception {
4 |
5 | public ParametersSyntaxException(Exception e) {
6 | super(e);
7 | }
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/db/Views.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.db;
2 |
3 | public class Views {
4 |
5 | public static class Public {}
6 |
7 | public static class Internal extends Public {}
8 |
9 | public static class Ignored {}
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/ui/filtering/IDistance.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.ui.filtering;
2 |
3 | public interface IDistance {
4 |
5 | public int distance(String s, String t);
6 |
7 | public int metaDistance(String s, MetaString ms);
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/ui/firstlaunchsequence/ScrollViewListener.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.ui.firstlaunchsequence;
2 |
3 | public interface ScrollViewListener {
4 | void onScrollChanged(ScrollViewExt scrollView,
5 | int x, int y, int oldx, int oldy);
6 | }
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/ResultsWrapperFactory.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | import java.util.ArrayList;
4 |
5 | public interface ResultsWrapperFactory {
6 |
7 | public ResultsWrapper create(ArrayList datas);
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/dark_blue_rectangle.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/anim/mainfadein.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/color/choice_item_text_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
6 |
7 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/profile_spinner_box_yellow.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # gradle files
2 | build
3 | .gradle
4 |
5 | # Local configuration file (sdk path, etc)
6 | local.properties
7 |
8 | # Passwords file
9 | passes.local.xml
10 |
11 | # IntelliJ IDEA files
12 | .idea/
13 | gen-external-apklibs/
14 | out/
15 | *.iml
16 | *.ipr
17 | *.iws
18 |
19 | # Vim files
20 | .ropeproject
21 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/scrollbar_vertical_thumb.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/scrollbar_vertical_thumb_blue.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/profile_spinner_box.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/button_erase_data_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/color/choice_item_text_selected_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
6 |
7 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/icon_about_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/icon_terms_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/ui/filtering/AutoCompleteAdapterFactory.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.ui.filtering;
2 |
3 | import com.brainydroid.daydreaming.ui.filtering.AutoCompleteAdapter;
4 |
5 | public interface AutoCompleteAdapterFactory {
6 |
7 | public AutoCompleteAdapter create();
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/button_finish_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/icon_glossary_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/red_rectangle_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/icon_description_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/slider_white_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/white_rectangle_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/layout/question_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/anim/splashfadeout.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/button_cloud_next_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/dark_blue_rect_button_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/icon_instructions_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/icon_questionmark_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/settings_icon_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/light_blue_rect_button_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/profile_spinner_box_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/IPageGroup.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | import java.util.ArrayList;
4 |
5 | abstract public interface IPageGroup {
6 |
7 | public String getName();
8 |
9 | public String getFriendlyName();
10 |
11 | public ArrayList extends IPage> getPages();
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/button_location_home_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/button_location_work_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/ui/sequences/ButtonListener.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.ui.sequences;
2 |
3 | import com.brainydroid.daydreaming.ui.firstlaunchsequence.ScrollViewExt;
4 |
5 | public interface ButtonListener {
6 | void onScrollChanged(ScrollViewExt scrollView,
7 | int x, int y, int oldx, int oldy);
8 | }
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/button_location_outside_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/choice_item_image_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/button_location_commuting_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/button_location_publicplace_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/IPage.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | import com.brainydroid.daydreaming.db.QuestionPositionDescription;
4 |
5 | import java.util.ArrayList;
6 |
7 | abstract public interface IPage {
8 |
9 | public String getName();
10 |
11 | public ArrayList extends IQuestion> getQuestions();
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/anim/push_bottom_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/anim/push_left_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/anim/push_left_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/anim/push_right_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/anim/push_right_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/anim/push_top_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/anim/push_top_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/anim/push_bottom_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/ISequence.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | import java.util.ArrayList;
4 |
5 | abstract public interface ISequence {
6 |
7 | public String getName();
8 |
9 | public String getType();
10 |
11 | public String getIntro();
12 |
13 | public ArrayList extends IPageGroup> getPageGroups();
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/choice_item_image_selected_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/db/ModelJsonFactory.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.db;
2 |
3 | abstract public class ModelJsonFactory,
4 | S extends ModelStorage, F extends ModelJsonFactory> {
5 |
6 | private static String TAG = "ModelJsonFactory";
7 |
8 | abstract public M createFromJson(String jsonContent);
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/layout/question_matrix_choice_row.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/custom_checkbox.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/values-v13/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/question_slider_progress.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
6 |
7 | -
10 |
11 |
12 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/db/JsonParametersException.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.db;
2 |
3 | public class JsonParametersException extends Exception {
4 |
5 | public JsonParametersException(String msg) {
6 | super(msg);
7 | }
8 |
9 | public JsonParametersException(String msg, Throwable cause) {
10 | super(msg, cause);
11 | }
12 |
13 | public JsonParametersException(Throwable cause) {
14 | super(cause);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/ServerErrorWrapper.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | import com.brainydroid.daydreaming.db.Views;
4 | import com.fasterxml.jackson.annotation.JsonView;
5 |
6 | public class ServerErrorWrapper {
7 |
8 | private static String TAG = "ServerErrorWrapper";
9 |
10 | @JsonView(Views.Public.class)
11 | private ServerError error;
12 |
13 | public ServerError getError() {
14 | return error;
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/blue_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/animated_helix.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/blue_background_test_border.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/yellow_rect_button.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
9 |
10 |
11 |
15 |
16 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/dark_blue_rect_button.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
9 |
10 |
11 |
15 |
16 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/light_blue_rect_button.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
9 |
10 |
11 |
15 |
16 |
--------------------------------------------------------------------------------
/docs/index.rst:
--------------------------------------------------------------------------------
1 | .. daydreaming documentation master file, created by
2 | sphinx-quickstart on Sun Jan 20 19:54:18 2013.
3 | You can adapt this file completely to your liking, but it should at least
4 | contain the root `toctree` directive.
5 |
6 | Welcome to daydreaming's documentation!
7 | =======================================
8 |
9 | Contents:
10 |
11 | .. toctree::
12 | :maxdepth: 2
13 |
14 | intro
15 | description
16 | testing
17 | changelog
18 |
19 |
20 |
21 | Indices and tables
22 | ==================
23 |
24 | * :ref:`genindex`
25 | * :ref:`search`
26 |
27 |
--------------------------------------------------------------------------------
/daydreaming/src/qa/java/com/brainydroid/daydreaming/network/ServerConfig.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | public class ServerConfig {
4 |
5 | public static String YE_URL_API = "/v1";
6 | public static String YE_URL_PROFILES = YE_URL_API + "/profiles";
7 | public static String YE_URL_RESULTS = YE_URL_API + "/results";
8 |
9 | public static int NETWORK_TIMEOUT = 10 * 1000; // 10 seconds
10 |
11 | public static String PARAMETERS_URL_BASE =
12 | "https://raw.githubusercontent.com/daydreaming-experiment/parameters/master/grammar-v3.2/{}.json";
13 | }
14 |
--------------------------------------------------------------------------------
/daydreaming/src/release/java/com/brainydroid/daydreaming/network/ServerConfig.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | public class ServerConfig {
4 |
5 | public static String YE_URL_API = "/v1";
6 | public static String YE_URL_PROFILES = YE_URL_API + "/profiles";
7 | public static String YE_URL_RESULTS = YE_URL_API + "/results";
8 |
9 | public static int NETWORK_TIMEOUT = 10 * 1000; // 10 seconds
10 |
11 | public static String PARAMETERS_URL_BASE =
12 | "https://raw.githubusercontent.com/daydreaming-experiment/parameters/master/grammar-v3.2/{}.json";
13 | }
14 |
--------------------------------------------------------------------------------
/daydreaming/src/debug/java/com/brainydroid/daydreaming/network/ServerConfig.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | public class ServerConfig {
4 |
5 | public static String YE_URL_API = "/v1";
6 | public static String YE_URL_PROFILES = YE_URL_API + "/profiles";
7 | public static String YE_URL_RESULTS = YE_URL_API + "/results";
8 |
9 | public static int NETWORK_TIMEOUT = 10 * 1000; // 10 seconds
10 |
11 | public static String PARAMETERS_URL_BASE =
12 | "https://raw.githubusercontent.com/daydreaming-experiment/parameters/master/grammar-v3.2/{}.json";
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/AuthContent.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | import com.brainydroid.daydreaming.db.Views;
4 | import com.fasterxml.jackson.annotation.JsonView;
5 |
6 | import java.util.Calendar;
7 |
8 | public class AuthContent {
9 |
10 | private static String TAG = "AuthContent";
11 |
12 | @JsonView(Views.Public.class)
13 | private String id = null;
14 | @JsonView(Views.Public.class)
15 | private int timestamp = -1;
16 |
17 | public AuthContent(String id, int timestamp) {
18 | this.id = id;
19 | this.timestamp = timestamp;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/JWS.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | import com.brainydroid.daydreaming.db.Views;
4 | import com.fasterxml.jackson.annotation.JsonView;
5 |
6 | import java.util.ArrayList;
7 |
8 | public class JWS {
9 |
10 | @JsonView(Views.Public.class)
11 | private String payload;
12 | @JsonView(Views.Public.class)
13 | private ArrayList signatures;
14 |
15 | public JWS() {}
16 |
17 | public JWS(String payload, ArrayList jwsSignatures) {
18 | this.payload = payload;
19 | this.signatures = jwsSignatures;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/ui/filtering/Timer.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.ui.filtering;
2 |
3 | import java.util.Calendar;
4 | import java.util.HashMap;
5 |
6 | public class Timer {
7 |
8 | private static String TAG = "Timer";
9 |
10 | private HashMap running = new HashMap();
11 |
12 | public void start(String name) {
13 | running.put(name, now());
14 | }
15 |
16 | public long finish(String name) {
17 | return now() - running.remove(name);
18 | }
19 |
20 | private long now() {
21 | return Calendar.getInstance().getTimeInMillis();
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/layout/activity_results.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
15 |
16 |
--------------------------------------------------------------------------------
/RELEASE-CHECKLIST.md:
--------------------------------------------------------------------------------
1 | Release checklist
2 | =================
3 |
4 | Once you've started a release branch, *immediately* do the following:
5 | * Bump app version (use the `bumpVersion.sh` script)
6 | * Check the parameters URLs in the `ServerConfig` classes (debug, qa, release) are good (e.g. non-dev)
7 | * Update `GRAMMAR-VERSIONS.md` with the parameter grammar version used in the release you're about to do
8 | * Update `CHANGELOG.md` with this version's changes
9 | * Build, check everything still works
10 | * Run `sign.sh ` to create signed and zip-aligned APKs
11 | * Run `deploy.sh ` to deploy APKs to website
12 | * Upload APK(s) to the Play Store
13 |
--------------------------------------------------------------------------------
/passes.template.xml:
--------------------------------------------------------------------------------
1 |
15 |
16 |
17 | XXXXX
18 | XXXXX
19 |
20 |
--------------------------------------------------------------------------------
/library/COPYING:
--------------------------------------------------------------------------------
1 | Copying
2 | =======
3 |
4 | Unless otherwise noted, all code under this folder is:
5 |
6 | Copyright 2014 Alex Curran
7 |
8 | Licensed under the Apache License, Version 2.0 (the "License");
9 | you may not use this code except in compliance with the License.
10 | You may obtain a copy of the License at
11 |
12 | http://www.apache.org/licenses/LICENSE-2.0
13 |
14 | Unless required by applicable law or agreed to in writing, software
15 | distributed under the License is distributed on an "AS IS" BASIS,
16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 | See the License for the specific language governing permissions and
18 | limitations under the License.
19 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/ui/sequences/IQuestionViewAdapter.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.ui.sequences;
2 |
3 | import android.app.Activity;
4 | import android.view.ViewGroup;
5 | import android.widget.LinearLayout;
6 | import android.widget.RelativeLayout;
7 |
8 | import com.brainydroid.daydreaming.sequence.Question;
9 |
10 | public interface IQuestionViewAdapter {
11 |
12 | public void setQuestion(Question question);
13 |
14 | public LinearLayout inflate(Activity activity, RelativeLayout outerPageLayout,
15 | LinearLayout parentLayout);
16 |
17 | public boolean validate();
18 |
19 | public void saveAnswer();
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/ProfileWrapper.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | import com.brainydroid.daydreaming.db.Views;
4 | import com.fasterxml.jackson.annotation.JsonView;
5 | import com.google.inject.Inject;
6 | import com.google.inject.assistedinject.Assisted;
7 |
8 | public class ProfileWrapper {
9 |
10 | @JsonView(Views.Public.class)
11 | private Profile profile;
12 |
13 | public ProfileWrapper() {}
14 |
15 | @Inject
16 | public ProfileWrapper(@Assisted Profile profile) {
17 | this.profile = profile;
18 | }
19 |
20 | public synchronized Profile getProfile() {
21 | return profile;
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/background/ServiceConnectionCallback.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.background;
2 |
3 | /**
4 | * Interface for callbacks used when a {@link LocationServiceConnection}
5 | * has connected to its {@link LocationService}.
6 | *
7 | * @author Sébastien Lerique
8 | * @author Vincent Adam
9 | * @see LocationService
10 | * @see LocationServiceConnection
11 | */
12 | public interface ServiceConnectionCallback {
13 |
14 | /**
15 | * Should be called by the connection ({@link
16 | * LocationServiceConnection} once it is connected to the service
17 | * ({@link LocationService}).
18 | */
19 | public void onServiceConnected();
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/BuildableOrderable.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 |
4 | import com.brainydroid.daydreaming.db.JsonParametersException;
5 | import com.brainydroid.daydreaming.db.QuestionDescription;
6 |
7 | import java.util.ArrayList;
8 |
9 | public interface BuildableOrderable,C> {
10 |
11 | public String getName();
12 |
13 | public Position getPosition();
14 |
15 | public C build(Sequence sequence);
16 |
17 | public void validateInitialization(
18 | ArrayList parentArray, ArrayList questionDescriptions)
19 | throws JsonParametersException;
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/daydreaming/src/qa/java/com/brainydroid/daydreaming/background/LoggerConfig.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.background;
2 |
3 | /**
4 | * Configuration for the whole application logging (system logs and toasts).
5 | *
6 | * @author Sébastien Lerique
7 | * @author Vincent Adam
8 | */
9 | public class LoggerConfig {
10 |
11 | /** Whether to show debug toasts or not */
12 | public static boolean TOASTD = false;
13 |
14 | /** Whether to log at info level or not */
15 | public static boolean LOGI = true;
16 |
17 | /** Whether to log at verbose level or not */
18 | public static boolean LOGV = true;
19 |
20 | /** Whether to log at debug level or not */
21 | public static boolean LOGD = true;
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/daydreaming/src/debug/java/com/brainydroid/daydreaming/background/LoggerConfig.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.background;
2 |
3 | /**
4 | * Configuration for the whole application logging (system logs and toasts).
5 | *
6 | * @author Sébastien Lerique
7 | * @author Vincent Adam
8 | */
9 | public class LoggerConfig {
10 |
11 | /** Whether to show debug toasts or not */
12 | public static boolean TOASTD = true;
13 |
14 | /** Whether to log at info level or not */
15 | public static boolean LOGI = true;
16 |
17 | /** Whether to log at verbose level or not */
18 | public static boolean LOGV = true;
19 |
20 | /** Whether to log at debug level or not */
21 | public static boolean LOGD = true;
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/daydreaming/src/release/java/com/brainydroid/daydreaming/background/LoggerConfig.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.background;
2 |
3 | /**
4 | * Configuration for the whole application logging (system logs and toasts).
5 | *
6 | * @author Sébastien Lerique
7 | * @author Vincent Adam
8 | */
9 | public class LoggerConfig {
10 |
11 | /** Whether to show debug toasts or not */
12 | public static boolean TOASTD = false;
13 |
14 | /** Whether to log at info level or not */
15 | public static boolean LOGI = true;
16 |
17 | /** Whether to log at verbose level or not */
18 | public static boolean LOGV = true;
19 |
20 | /** Whether to log at debug level or not */
21 | public static boolean LOGD = true;
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/background/LocationCallback.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.background;
2 |
3 | import android.location.Location;
4 |
5 | /**
6 | * Interface for callbacks used when location data is received.
7 | *
8 | * @author Sébastien Lerique
9 | * @author Vincent Adam
10 | * @see com.brainydroid.daydreaming.db.LocationPoint
11 | * @see com.brainydroid.daydreaming.db.Question
12 | * @see LocationService
13 | * @see LocationServiceConnection
14 | */
15 | public interface LocationCallback {
16 |
17 | /**
18 | * Should be called by the class having received location information.
19 | *
20 | * @param location The {@link Location} received
21 | */
22 | public void onLocationReceived(Location location);
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/library/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 | OK
20 |
21 |
--------------------------------------------------------------------------------
/bumpVersion.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | if [ $# != 1 ]
6 | then
7 | echo "Usage: $(basename $0) version-name"
8 | exit
9 | fi
10 |
11 | VERSION_NAME="$1"
12 | BUILD=daydreaming/build.gradle
13 |
14 | echo "Updating version name to ${VERSION_NAME} ..."
15 |
16 | ## Update daydreaming/build.gradle
17 | echo "Updating $BUILD ..."
18 | TMP1="$(tempfile)"
19 | TMP2="$(tempfile)"
20 |
21 | # First the version name
22 | cat $BUILD | sed "s/versionName \"[^\"]*\"/versionName \"${VERSION_NAME}\"/" > "$TMP1"
23 |
24 | # Then bump the version code
25 | VERSION_CODE=$(cat $BUILD | grep 'versionCode ' | sed 's/^ *versionCode //')
26 | (( VERSION_CODE += 1 ))
27 | cat "$TMP1" | sed "s/versionCode .*/versionCode ${VERSION_CODE}/" > "$TMP2"
28 |
29 | cp "$TMP2" $BUILD
30 | rm "$TMP1"
31 | rm "$TMP2"
32 |
33 | echo "Done."
34 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/ui_layered_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | -
5 |
8 |
9 |
10 |
11 | -
12 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/HttpGetData.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | public class HttpGetData {
4 |
5 | @SuppressWarnings("UnusedDeclaration")
6 | private static String TAG = "HttpGetData";
7 |
8 | private final String getUrl;
9 | private final HttpConversationCallback httpConversationCallback;
10 |
11 | public HttpGetData(String getUrl, HttpConversationCallback httpConversationCallback) {
12 | this.getUrl = getUrl;
13 | this.httpConversationCallback = httpConversationCallback;
14 | }
15 |
16 | public synchronized String getGetUrl() {
17 | return getUrl;
18 | }
19 |
20 | public synchronized HttpConversationCallback getHttpConversationCallback() {
21 | return httpConversationCallback;
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/ui_layered_background_test.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | -
5 |
8 |
9 |
10 |
11 | -
12 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/layout/spinner_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/db/TypedStatusModel.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.db;
2 |
3 | import com.brainydroid.daydreaming.background.Logger;
4 | import com.fasterxml.jackson.annotation.JsonView;
5 |
6 | public abstract class TypedStatusModel,
7 | S extends TypedStatusModelStorage, F extends ModelJsonFactory>
8 | extends StatusModel {
9 |
10 | private static String TAG = "TypedStatusModel";
11 |
12 | @JsonView(Views.Public.class)
13 | protected String type;
14 |
15 | protected synchronized void setType(String type) {
16 | Logger.v(TAG, "Setting type");
17 | this.type = type;
18 | saveIfSync();
19 | }
20 |
21 | public synchronized String getType() {
22 | return type;
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/ui/filtering/SuperHamming.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.ui.filtering;
2 |
3 | public class SuperHamming extends CachingDistance implements IDistance {
4 |
5 | private static String TAG = "SuperHamming";
6 |
7 | @Override
8 | protected int computeDistance(String s, String t) {
9 | String shortest, longest;
10 | if (s.length() <= t.length()) {
11 | shortest = s;
12 | longest = t;
13 | } else {
14 | shortest = t;
15 | longest = s;
16 | }
17 |
18 | int l = shortest.length();
19 | int realHamming = 0;
20 | for (int i = 0; i < l; i++)
21 | realHamming += shortest.charAt(i) == longest.charAt(i) ? 0 : 1;
22 |
23 | return realHamming + longest.length() - l;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/library/src/main/res/values/ids.xml:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/library/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/button.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/JWSSignature.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | import com.brainydroid.daydreaming.db.Views;
4 | import com.fasterxml.jackson.annotation.JsonProperty;
5 | import com.fasterxml.jackson.annotation.JsonView;
6 |
7 | public class JWSSignature {
8 |
9 | @JsonProperty("protected")
10 | @JsonView(Views.Public.class)
11 | private String protected_;
12 | @JsonView(Views.Public.class)
13 | private String signature;
14 |
15 | public JWSSignature() {}
16 |
17 | public JWSSignature(String protected_, String signature) {
18 | this.protected_ = protected_;
19 | this.signature = signature;
20 | }
21 |
22 | public synchronized String getProtected() {
23 | return protected_;
24 | }
25 |
26 | public synchronized String getSignature() {
27 | return signature;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/layout/return_to_dashboard_button.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
19 |
20 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/ListReverser.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | import java.util.Iterator;
4 | import java.util.List;
5 | import java.util.ListIterator;
6 |
7 | class ListReverser implements Iterable {
8 |
9 | private ListIterator listIterator;
10 |
11 | public ListReverser(List wrappedList) {
12 | this.listIterator = wrappedList.listIterator(wrappedList.size());
13 | }
14 |
15 | public Iterator iterator() {
16 | return new Iterator() {
17 |
18 | public boolean hasNext() {
19 | return listIterator.hasPrevious();
20 | }
21 |
22 | public T next() {
23 | return listIterator.previous();
24 | }
25 |
26 | public void remove() {
27 | listIterator.remove();
28 | }
29 |
30 | };
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/showcase_button.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/AutoListAnswer.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | import com.brainydroid.daydreaming.background.Logger;
4 | import com.brainydroid.daydreaming.db.Views;
5 | import com.fasterxml.jackson.annotation.JacksonInject;
6 | import com.fasterxml.jackson.annotation.JsonView;
7 | import com.google.inject.Inject;
8 |
9 | import java.util.HashSet;
10 |
11 | public class AutoListAnswer implements IAnswer {
12 |
13 | @SuppressWarnings("FieldCanBeLocal")
14 | private static String TAG = "AutoListAnswer";
15 |
16 | // Json-marked members cannot be injected, or else the json-deserialized value is overridden
17 | @JsonView(Views.Public.class)
18 | HashSet choices = new HashSet();
19 |
20 | public synchronized void addChoice(String choice) {
21 | Logger.v(TAG, "Adding choice {0}", choice);
22 | choices.add(choice);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/MatrixChoiceAnswer.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | import com.brainydroid.daydreaming.background.Logger;
4 | import com.brainydroid.daydreaming.db.Views;
5 | import com.fasterxml.jackson.annotation.JacksonInject;
6 | import com.fasterxml.jackson.annotation.JsonView;
7 | import com.google.inject.Inject;
8 |
9 | import java.util.HashSet;
10 |
11 | public class MatrixChoiceAnswer implements IAnswer {
12 |
13 | @SuppressWarnings("FieldCanBeLocal")
14 | private static String TAG = "MatrixChoiceAnswer";
15 |
16 | // Json-marked members cannot be injected, or else the json-deserialized value is overridden
17 | @JsonView(Views.Public.class)
18 | HashSet choices = new HashSet();
19 |
20 | public synchronized void addChoice(String choice) {
21 | Logger.v(TAG, "Adding choice {0}", choice);
22 | choices.add(choice);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/ServerError.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | import android.content.Context;
4 | import android.widget.Toast;
5 |
6 | import com.brainydroid.daydreaming.background.Logger;
7 | import com.brainydroid.daydreaming.db.Views;
8 | import com.fasterxml.jackson.annotation.JsonView;
9 | import com.google.inject.Inject;
10 |
11 | public class ServerError {
12 |
13 | private static String TAG = "ServerError";
14 |
15 | @Inject Context context;
16 |
17 | @JsonView(Views.Public.class)
18 | private int status_code = -1;
19 | @JsonView(Views.Public.class)
20 | private String type = null;
21 | @JsonView(Views.Public.class)
22 | private String message = null;
23 |
24 | public void debugToastError() {
25 | Logger.td(context, "Server returned error:\nstatus_code: {0}\ntype: {1}\nmessage: {2}",
26 | status_code, type, message);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/handy.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/MultipleChoiceAnswer.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | import com.brainydroid.daydreaming.background.Logger;
4 | import com.brainydroid.daydreaming.db.Views;
5 | import com.fasterxml.jackson.annotation.JacksonInject;
6 | import com.fasterxml.jackson.annotation.JsonView;
7 | import com.google.inject.Inject;
8 |
9 | import java.util.HashSet;
10 |
11 | public class MultipleChoiceAnswer implements IAnswer {
12 |
13 | @SuppressWarnings("FieldCanBeLocal")
14 | private static String TAG = "MultipleChoiceAnswer";
15 |
16 | // Json-marked members cannot be injected, or else the json-deserialized value is overridden
17 | @JsonView(Views.Public.class)
18 | HashSet choices = new HashSet();
19 |
20 | public synchronized void addChoice(String choice) {
21 | Logger.v(TAG, "Adding choice {0}", choice);
22 | choices.add(choice);
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/ProfileDataFactory.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | import com.google.inject.assistedinject.Assisted;
4 |
5 | import java.util.HashMap;
6 |
7 | public interface ProfileDataFactory {
8 |
9 | public ProfileData create(@Assisted("age") String age,
10 | @Assisted("gender") String gender,
11 | @Assisted("education") String education,
12 | @Assisted("motherTongue") String motherTongue,
13 | @Assisted("parametersVersion") String parametersVersion,
14 | @Assisted("appVersionName") String appVersionName,
15 | @Assisted("appVersionCode") int appVersionCode,
16 | @Assisted("mode") String mode,
17 | @Assisted("botherWindowMapJson") String botherWindowMapJson);
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/ManySlidersAnswer.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | import com.brainydroid.daydreaming.background.Logger;
4 | import com.brainydroid.daydreaming.db.Views;
5 | import com.fasterxml.jackson.annotation.JsonView;
6 | import com.google.inject.Inject;
7 |
8 | import java.util.HashMap;
9 |
10 | public class ManySlidersAnswer implements IAnswer {
11 |
12 | @SuppressWarnings("FieldCanBeLocal")
13 | private static String TAG = "ManySlidersAnswer";
14 |
15 | // Json-marked members cannot be injected, or else the json-deserialized value is overridden
16 | @JsonView(Views.Public.class)
17 | HashMap sliders = new HashMap();
18 |
19 | public synchronized void addSlider(String sliderText, int sliderValue) {
20 | Logger.v(TAG, "Adding slider {0} with value {1}", sliderText, sliderValue);
21 | sliders.put(sliderText, sliderValue);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
12 |
16 |
17 |
21 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/cling_button_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/Location.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | import com.brainydroid.daydreaming.db.Views;
4 | import com.fasterxml.jackson.annotation.JacksonInject;
5 | import com.fasterxml.jackson.annotation.JsonView;
6 | import com.google.inject.Inject;
7 |
8 | public class Location {
9 |
10 | private static String TAG = "Location";
11 |
12 | @JsonView(Views.Public.class)
13 | private double latitude;
14 | @JsonView(Views.Public.class)
15 | private double longitude;
16 | @JsonView(Views.Public.class)
17 | private double altitude;
18 | @JsonView(Views.Public.class)
19 | private float accuracy;
20 |
21 | public Location() {}
22 |
23 | public Location(android.location.Location location) {
24 | latitude = location.getLatitude();
25 | longitude = location.getLongitude();
26 | altitude = location.getAltitude();
27 | accuracy = location.getAccuracy();
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/SliderAnswer.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | import com.brainydroid.daydreaming.background.Logger;
4 | import com.brainydroid.daydreaming.db.Views;
5 | import com.fasterxml.jackson.annotation.JacksonInject;
6 | import com.fasterxml.jackson.annotation.JsonView;
7 | import com.google.inject.Inject;
8 |
9 | import java.util.HashMap;
10 |
11 | public class SliderAnswer implements IAnswer {
12 |
13 | @SuppressWarnings("FieldCanBeLocal")
14 | private static String TAG = "SliderAnswer";
15 |
16 | // Json-marked members cannot be injected, or else the json-deserialized value is overridden
17 | @JsonView(Views.Public.class)
18 | HashMap sliders = new HashMap();
19 |
20 | public synchronized void addAnswer(String text, int position) {
21 | Logger.v(TAG, "Adding answer {0} at position {1}", text, position);
22 | sliders.put(text, position);
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/StarRatingAnswer.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | import com.brainydroid.daydreaming.background.Logger;
4 | import com.brainydroid.daydreaming.db.Views;
5 | import com.fasterxml.jackson.annotation.JacksonInject;
6 | import com.fasterxml.jackson.annotation.JsonView;
7 | import com.google.inject.Inject;
8 |
9 | import java.util.HashMap;
10 |
11 | public class StarRatingAnswer implements IAnswer {
12 |
13 | @SuppressWarnings("FieldCanBeLocal")
14 | private static String TAG = "StarRatingAnswer";
15 |
16 | // Json-marked members cannot be injected, or else the json-deserialized value is overridden
17 | @JsonView(Views.Public.class)
18 | HashMap starRatings = new HashMap();
19 |
20 | public synchronized void addAnswer(String text, float rating) {
21 | Logger.v(TAG, "Adding answer {0} at position {1}", text, rating);
22 | starRatings.put(text, rating);
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/raw/description:
--------------------------------------------------------------------------------
1 | This application is part of a research project that seeks to better understand the experience of daydreaming.
2 |
3 | Our goal is twofold: describe the richness of human mental life and understand the conditions causing people to daydream.
4 |
5 | The Daydreaming app is very easy to use. Several times a day, the app will ask you to answer a few questions about your current surroundings, activities and thoughts. You will also fill some questionnaires at the very beginning, and a couple of question every morning and every evening.
6 |
7 | That’s it! After a few weeks of using the app, you will unlock a “See Results” sections summarizing your responses. You’ll get to discover what kind of daydreamer you are!
8 |
9 | Before starting, you will be asked to answer a few questions about yourself. This should only take a few minutes, and only needs to be done once.
10 |
11 | More information:
12 | http://www.daydreaming-the-app.net
13 |
14 | Or contact us:
15 | contact@daydreaming-the-app.net
16 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/ui/filtering/Tree.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.ui.filtering;
2 |
3 | import java.util.HashMap;
4 |
5 | public class Tree {
6 |
7 | private static String TAG = "Tree";
8 |
9 | private T data;
10 | private HashMap> children = new HashMap>();
11 |
12 | public Tree() {}
13 |
14 | public Tree(T data) {
15 | this.data = data;
16 | }
17 |
18 | public T getData() {
19 | return data;
20 | }
21 |
22 | public void setData(T data) {
23 | this.data = data;
24 | }
25 |
26 | public boolean hasEdge(int e) {
27 | return children.containsKey(e);
28 | }
29 |
30 | public void addChild(int e, T child) {
31 | children.put(e, new Tree(child));
32 | }
33 |
34 | public Tree getChild(int e) {
35 | return children.get(e);
36 | }
37 |
38 | public HashMap> getChildren() {
39 | return children;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/layout/question_matrix_choice.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
15 |
16 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/Result.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | import com.brainydroid.daydreaming.db.Views;
4 | import com.fasterxml.jackson.annotation.JsonView;
5 |
6 | public class Result {
7 |
8 | @SuppressWarnings({"FieldCanBeLocal", "UnusedDeclaration"})
9 | @JsonView(Views.Public.class)
10 | private String profile_id;
11 | @JsonView(Views.Public.class)
12 | private T result_data;
13 |
14 | // These are defined so that deserialization doesn't fail, but are never used
15 | @JsonView(Views.Ignored.class)
16 | private String created_at;
17 | @JsonView(Views.Ignored.class)
18 | private String exp_id;
19 | @JsonView(Views.Ignored.class)
20 | private String id;
21 |
22 | public Result() {}
23 |
24 | public Result(String profile_id, T result_data) {
25 | this.profile_id = profile_id;
26 | this.result_data = result_data;
27 | }
28 |
29 | public synchronized T getData() {
30 | return result_data;
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/library/src/main/java/com/github/amlcurran/showcaseview/targets/Target.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.github.amlcurran.showcaseview.targets;
18 |
19 | import android.graphics.Point;
20 |
21 | public interface Target {
22 | Target NONE = new Target() {
23 | @Override
24 | public Point getPoint() {
25 | return new Point(1000000, 1000000);
26 | }
27 | };
28 |
29 | public Point getPoint();
30 | }
31 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/db/SequenceJsonFactory.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.db;
2 |
3 | import com.brainydroid.daydreaming.background.ErrorHandler;
4 | import com.brainydroid.daydreaming.background.Logger;
5 | import com.brainydroid.daydreaming.sequence.Sequence;
6 | import com.google.inject.Inject;
7 |
8 | import org.json.JSONException;
9 |
10 | public class SequenceJsonFactory extends ModelJsonFactory {
11 |
12 | @SuppressWarnings("FieldCanBeLocal")
13 | private static String TAG = "SequenceJsonFactory";
14 |
15 | @Inject Json json;
16 | @Inject ErrorHandler errorHandler;
17 |
18 | @Override
19 | public Sequence createFromJson(String jsonContent) {
20 | Logger.v(TAG, "Creating sequence from json");
21 | try {
22 | return json.fromJson(jsonContent, Sequence.class);
23 | } catch (JSONException e) {
24 | errorHandler.handleBaseJsonError(jsonContent, e);
25 | throw new RuntimeException(e);
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/ProfileFactory.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | import com.google.inject.assistedinject.Assisted;
4 |
5 | public interface ProfileFactory {
6 |
7 | public Profile create(@Assisted("expId") String expId,
8 | @Assisted("vkPem") String vkPem);
9 | public Profile create(@Assisted("expId") String expId,
10 | @Assisted("age") String age,
11 | @Assisted("gender") String gender,
12 | @Assisted("education") String education,
13 | @Assisted("motherTongue") String motherTongue,
14 | @Assisted("parametersVersion") String parametersVersion,
15 | @Assisted("appVersionName") String appVersionName,
16 | @Assisted("appVersionCode") int appVersionCode,
17 | @Assisted("mode") String mode,
18 | @Assisted("botherWindowMapJson") String botherWindowMapJson);
19 | }
20 |
--------------------------------------------------------------------------------
/library/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 | 12dp
20 | 24dp
21 | 0dp
22 | 47dp
23 | 48dp
24 | 64dp
25 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/db/Storage.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.db;
2 |
3 | import android.app.Application;
4 | import android.database.sqlite.SQLiteDatabase;
5 | import android.database.sqlite.SQLiteOpenHelper;
6 | import com.google.inject.Inject;
7 | import com.google.inject.Singleton;
8 |
9 | // Class to create SQLite database for both polls and questions
10 | @Singleton
11 | public class Storage extends SQLiteOpenHelper {
12 |
13 | @SuppressWarnings("UnusedDeclaration")
14 | private static String TAG = "Storage";
15 |
16 | private static final int DATABASE_VERSION = 2;
17 | private static final String DATABASE_NAME = "Storage";
18 |
19 | @Inject
20 | public Storage(Application application) {
21 | super(application, DATABASE_NAME, null, DATABASE_VERSION);
22 | }
23 |
24 | @Override
25 | public synchronized void onCreate(SQLiteDatabase db) {}
26 |
27 | @Override
28 | public synchronized void onUpgrade(SQLiteDatabase db, int oldVersion,
29 | int newVersion) { }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/layout/beginend_questionnaire_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
24 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Daydreaming app
2 | ===============
3 |
4 | `master`: [](https://travis-ci.org/daydreaming-experiment/app)
5 |
6 | `develop`: [](https://travis-ci.org/daydreaming-experiment/app)
7 |
8 | Daydreaming is a pilot cognitive science experiment that studies
9 | **mind-wandering** patterns by using smartphones. It takes advantage of *in
10 | vivo* possibilities, that is measurements that are not usually possible in a
11 | lab.
12 |
13 | This experiment is part of the larger
14 | [Science-en-Poche](http://www.iscpif.fr/sep) project, making it easier for
15 | researchers and citizens to develop apps with user input and feedback loops. It
16 | works with [Yelandur](https://github.com/science-en-poche/yelandur) as backend
17 | server to collect data for the experiment. Last but not least, it's free
18 | software (GPLv3).
19 |
20 | Any contribution is very welcome! You can get up and running by having a
21 | look at the `CONTRIBUTING.md` document.
22 |
--------------------------------------------------------------------------------
/deploy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | if [ $# != 1 ]; then
6 | echo "Usage: $(basename $0) "
7 | exit 1
8 | fi
9 |
10 | version=$1
11 |
12 | echo "##"
13 | echo "## Copying daydreaming-{production,beta}-$version+release.apk to server"
14 | echo "##"
15 | echo
16 |
17 | rsync -vhP daydreaming/daydreaming-production-$version+release.apk daydreaming@74.207.250.156:daydreaming/srv/releases/
18 | rsync -vhP daydreaming/daydreaming-beta-$version+release.apk daydreaming@74.207.250.156:daydreaming/srv/releases/
19 |
20 | echo
21 | echo "##"
22 | echo "## Setting symlinks for daydreaming-{production,beta}-latest.apk on server"
23 | echo "##"
24 | echo
25 |
26 | ssh daydreaming@74.207.250.156 "cd daydreaming/srv/releases; unlink daydreaming-production-latest.apk; ln -s daydreaming-production-$version+release.apk daydreaming-production-latest.apk"
27 | ssh daydreaming@74.207.250.156 "cd daydreaming/srv/releases; unlink daydreaming-beta-latest.apk; ln -s daydreaming-beta-$version+release.apk daydreaming-beta-latest.apk"
28 |
29 | echo "##"
30 | echo "## All done!"
31 | echo "##"
32 | echo
33 |
--------------------------------------------------------------------------------
/library/src/main/java/com/github/amlcurran/showcaseview/targets/Reflector.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.github.amlcurran.showcaseview.targets;
18 |
19 | import android.view.View;
20 | import android.view.ViewParent;
21 |
22 | interface Reflector {
23 | View getHomeButton();
24 |
25 | void showcaseActionItem(int itemId);
26 |
27 | ViewParent getActionBarView();
28 |
29 | public enum ActionBarType {
30 | STANDARD, APP_COMPAT, ACTIONBAR_SHERLOCK
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/layout/question_matrix_choice_item.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
16 |
17 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/ui/TimePickerFragment.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.ui;
2 |
3 | import android.app.Dialog;
4 | import android.app.TimePickerDialog;
5 | import android.os.Bundle;
6 | import android.support.v4.app.DialogFragment;
7 | import android.text.format.DateFormat;
8 | import android.widget.TimePicker;
9 |
10 | import java.util.Calendar;
11 |
12 | public abstract class TimePickerFragment extends DialogFragment
13 | implements TimePickerDialog.OnTimeSetListener {
14 |
15 | @Override
16 | public Dialog onCreateDialog(Bundle savedInstanceState) {
17 | // Use the current time as the default values for the picker
18 | final Calendar c = Calendar.getInstance();
19 | int hour = c.get(Calendar.HOUR_OF_DAY);
20 | int minute = c.get(Calendar.MINUTE);
21 |
22 | // Create a new instance of TimePickerDialog and return it
23 | return new TimePickerDialog(getActivity(), this, hour, minute,
24 | DateFormat.is24HourFormat(getActivity()));
25 | }
26 |
27 | public abstract void onTimeSet(TimePicker view, int hourOfDay, int minute);
28 |
29 |
30 |
31 | }
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: java
2 |
3 | # Install our dependencies
4 | before_install:
5 | # Copy template passwords file to local file
6 | - cp "passes.template.xml" "passes.local.xml"
7 |
8 | # Don't mess with the main repository
9 | - export MAIN_REPO="$(pwd)"
10 | - cd ..
11 |
12 | # Get some shared libs or else the SDK executables aren't found
13 | - sudo apt-get update -qq
14 | - sudo apt-get install -qq ia32-libs ia32-libs-multiarch libgphoto2-2:i386 libsane:i386 libgd2-xpm:i386
15 |
16 | # Install what we need from the SDK
17 | - wget -O android-sdk-linux.tgz http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
18 | - tar xzf android-sdk-linux.tgz
19 | - export ANDROID_HOME="$(pwd)/android-sdk-linux"
20 | - export PATH="${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools"
21 | # Partition downloads into licence groups, otherwise `echo "y"` doesn't work
22 | - echo "y" | android update sdk --all --no-ui --force --filter build-tools-21.1.0,android-21,platform-tools,extra-android-support
23 | - echo "y" | android update sdk --all --no-ui --force --filter extra-android-m2repository
24 |
25 | # Come back into main repository
26 | - cd ${MAIN_REPO}
27 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/layout/question_multiple_choice_item.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
16 |
17 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/ui/firstlaunchsequence/ScrollViewExt.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.ui.firstlaunchsequence;
2 |
3 | import android.content.Context;
4 | import android.util.AttributeSet;
5 | import android.widget.ScrollView;
6 |
7 | public class ScrollViewExt extends ScrollView {
8 | private ScrollViewListener scrollViewListener = null;
9 | public ScrollViewExt(Context context) {
10 | super(context);
11 | }
12 |
13 | public ScrollViewExt(Context context, AttributeSet attrs, int defStyle) {
14 | super(context, attrs, defStyle);
15 | }
16 |
17 | public ScrollViewExt(Context context, AttributeSet attrs) {
18 | super(context, attrs);
19 | }
20 |
21 | public void setScrollViewListener(ScrollViewListener scrollViewListener) {
22 | this.scrollViewListener = scrollViewListener;
23 | }
24 |
25 | @Override
26 | protected void onScrollChanged(int l, int t, int oldl, int oldt) {
27 | super.onScrollChanged(l, t, oldl, oldt);
28 | if (scrollViewListener != null) {
29 | scrollViewListener.onScrollChanged(this, l, t, oldl, oldt);
30 | }
31 | }
32 |
33 |
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/db/IQuestionDescriptionDetails.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.db;
2 |
3 | import com.brainydroid.daydreaming.sequence.PreLoadable;
4 |
5 | /**
6 | * Interface to implement to represent details of a question.
7 | *
8 | * See {@link QuestionPositionDescription} for further details on how this interface plays
9 | * along with the other classes and interfaces.
10 | *
11 | * @author Sébastien Lerique
12 | * @author Vincent Adam
13 | * @see QuestionPositionDescription
14 | */
15 | public interface IQuestionDescriptionDetails extends PreLoadable {
16 |
17 | /**
18 | * Get the type of question for which this instance is the details field.
19 | *
20 | *
21 | * @return Question type
22 | */
23 | public String getType();
24 |
25 | public Object getPreLoadedObject();
26 |
27 | /**
28 | * Validate the question details are properly initialized.
29 | *
30 | * Throw a {@link com.brainydroid.daydreaming.db.JsonParametersException} if not.
31 | *
32 | * @throws JsonParametersException
33 | */
34 | public void validateInitialization() throws JsonParametersException;
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/library/src/main/java/com/github/amlcurran/showcaseview/Calculator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.github.amlcurran.showcaseview;
18 |
19 | import android.graphics.Point;
20 | import android.view.View;
21 |
22 | /**
23 | * Calculates various items for use with ShowcaseView
24 | */
25 | class Calculator {
26 |
27 | static Point getShowcasePointFromView(View view) {
28 | Point result = new Point();
29 | result.x = view.getLeft() + view.getWidth() / 2;
30 | result.y = view.getTop() + view.getHeight() / 2;
31 | return result;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/settings_icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
7 |
8 |
9 |
10 |
11 | -
12 |
15 |
16 |
17 |
18 |
19 | -
20 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/ResultsWrapper.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | import com.brainydroid.daydreaming.db.Views;
4 | import com.fasterxml.jackson.annotation.JsonView;
5 | import com.google.inject.Inject;
6 | import com.google.inject.assistedinject.Assisted;
7 |
8 | import java.util.ArrayList;
9 |
10 | public class ResultsWrapper {
11 |
12 | @SuppressWarnings("UnusedDeclaration")
13 | private static String TAG = "ResultsWrapper";
14 |
15 | @JsonView(Views.Public.class)
16 | private ArrayList> results;
17 |
18 | public ResultsWrapper() {}
19 |
20 | @Inject
21 | public ResultsWrapper(CryptoStorage cryptoStorage,
22 | @Assisted ArrayList datas) {
23 | String maiId = cryptoStorage.getMaiId();
24 | results = new ArrayList>();
25 | for (T data : datas) {
26 | results.add(new Result(maiId, data));
27 | }
28 | }
29 |
30 | public synchronized ArrayList getDatas() {
31 | ArrayList datas = new ArrayList();
32 | for (Result result : results) {
33 | datas.add(result.getData());
34 | }
35 |
36 | return datas;
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/Node.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | import com.brainydroid.daydreaming.db.Util;
4 | import com.brainydroid.daydreaming.db.Views;
5 | import com.fasterxml.jackson.annotation.JsonView;
6 | import com.google.inject.Inject;
7 |
8 | import java.util.ArrayList;
9 |
10 | public class Node {
11 |
12 | private static String TAG = "Node";
13 |
14 | @Inject Util util;
15 |
16 | @JsonView(Views.Internal.class)
17 | private T data;
18 | // Json-marked members cannot be injected, or else the json-deserialized value is overridden
19 | @JsonView(Views.Internal.class)
20 | private ArrayList> children = new ArrayList>();
21 |
22 | @Inject
23 | public Node(T data) {
24 | this.data = data;
25 | }
26 |
27 | public void add(Node child) {
28 | children.add(child);
29 | }
30 |
31 | public T getData() {
32 | return data;
33 | }
34 |
35 | public ArrayList> getChildren() {
36 | return children;
37 | }
38 |
39 | public void shuffle() {
40 | util.shuffle(children);
41 | for (Node child : children) {
42 | child.shuffle();
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/ui/filtering/DoubleStringKey.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.ui.filtering;
2 |
3 | public class DoubleStringKey {
4 |
5 | private static String TAG = "DoubleStringKey";
6 |
7 | private String first;
8 | private String second;
9 |
10 | public DoubleStringKey(String first, String second) {
11 | this.first = first;
12 | this.second = second;
13 | }
14 |
15 | @Override
16 | public int hashCode() {
17 | return (first + second).hashCode() + (second + first).hashCode();
18 | }
19 |
20 | @Override
21 | public boolean equals(Object o) {
22 | if (o == this) return true;
23 | if (o == null || !(o instanceof DoubleStringKey)) return false;
24 | DoubleStringKey k = DoubleStringKey.class.cast(o);
25 | return (first.equals(k.getFirst()) && second.equals(k.getSecond())) ||
26 | (first.equals(k.getSecond()) && second.equals(k.getFirst()));
27 | }
28 |
29 | public String getFirst() {
30 | return first;
31 | }
32 |
33 | public String getSecond() {
34 | return second;
35 | }
36 |
37 | public String toString() {
38 | return "<" + first + "," + second + ">";
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/library/project.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2014 Alex Curran
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | #
16 |
17 | # This file is automatically generated by Android Tools.
18 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
19 | #
20 | # This file must be checked in Version Control Systems.
21 | #
22 | # To customize properties used by the Ant build system edit
23 | # "ant.properties", and override values to adapt the script to your
24 | # project structure.
25 | #
26 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
27 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
28 |
29 | android.library=true
30 | # Project target.
31 | target=android-19
32 |
--------------------------------------------------------------------------------
/library/src/main/java/com/github/amlcurran/showcaseview/targets/PointTarget.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.github.amlcurran.showcaseview.targets;
18 |
19 | import android.graphics.Point;
20 |
21 | /**
22 | * Showcase a specific x/y co-ordinate on the screen.
23 | */
24 | public class PointTarget implements Target {
25 |
26 | private final Point mPoint;
27 |
28 | public PointTarget(Point point) {
29 | mPoint = point;
30 | }
31 |
32 | public PointTarget(int xValue, int yValue) {
33 | mPoint = new Point(xValue, yValue);
34 | }
35 |
36 | @Override
37 | public Point getPoint() {
38 | return mPoint;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/library/src/main/java/com/github/amlcurran/showcaseview/AnimationFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.github.amlcurran.showcaseview;
18 |
19 | import android.graphics.Point;
20 | import android.view.View;
21 |
22 | interface AnimationFactory {
23 | void fadeInView(View target, long duration, AnimationStartListener listener);
24 |
25 | void fadeOutView(View target, long duration, AnimationEndListener listener);
26 |
27 | void animateTargetToPoint(ShowcaseView showcaseView, Point point);
28 |
29 | public interface AnimationStartListener {
30 | void onAnimationStart();
31 | }
32 |
33 | public interface AnimationEndListener {
34 | void onAnimationEnd();
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/layout/question_auto_list_item_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
20 |
21 |
31 |
32 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/background/BootReceiver.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.background;
2 |
3 | import android.content.Context;
4 | import android.content.Intent;
5 | import com.google.inject.Inject;
6 | import roboguice.receiver.RoboBroadcastReceiver;
7 |
8 | /**
9 | * Start {@link ProbeSchedulerService} and {@link LocationPointService} when boot
10 | * is completed.
11 | *
12 | * These services are only started if the first launch has been completed
13 | * (i.e. the user has registered and is participating in the experiment).
14 | *
15 | * @author Sébastien Lerique
16 | * @author Vincent Adam
17 | * @see ProbeSchedulerService
18 | * @see LocationPointService
19 | */
20 | public class BootReceiver extends RoboBroadcastReceiver {
21 |
22 | @SuppressWarnings("FieldCanBeLocal")
23 | private static String TAG = "BootReceiver";
24 |
25 | @Inject StatusManager statusManager;
26 |
27 | @Override
28 | public void handleReceive(Context context, Intent intent) {
29 |
30 | // Were we called because the boot just completed?
31 | String action = intent.getAction();
32 | if (action.equals(Intent.ACTION_BOOT_COMPLETED)) {
33 | Logger.d(TAG, "BootReceiver started for ACTION_BOOT_COMPLETED");
34 | statusManager.launchAllServices();
35 | }
36 | }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/layout/spinner_layout_icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
16 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/library/src/main/java/com/github/amlcurran/showcaseview/ShowcaseDrawer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.github.amlcurran.showcaseview;
18 |
19 | import android.graphics.Bitmap;
20 | import android.graphics.Canvas;
21 |
22 | /**
23 | * Created by curraa01 on 13/10/2013.
24 | */
25 | interface ShowcaseDrawer {
26 |
27 | void setShowcaseColour(int color);
28 |
29 | void drawShowcase(Bitmap buffer, float x, float y, float scaleMultiplier);
30 |
31 | int getShowcaseWidth();
32 |
33 | int getShowcaseHeight();
34 |
35 | float getBlockedRadius();
36 |
37 | void setBackgroundColour(int backgroundColor);
38 |
39 | void erase(Bitmap bitmapBuffer);
40 |
41 | void drawToCanvas(Canvas canvas, Bitmap bitmapBuffer);
42 | }
43 |
--------------------------------------------------------------------------------
/library/src/main/java/com/github/amlcurran/showcaseview/ApiUtils.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.github.amlcurran.showcaseview;
18 |
19 | import android.annotation.TargetApi;
20 | import android.os.Build;
21 | import android.view.View;
22 |
23 | public class ApiUtils {
24 |
25 | public boolean isCompatWith(int versionCode) {
26 | return Build.VERSION.SDK_INT >= versionCode;
27 | }
28 |
29 | public boolean isCompatWithHoneycomb() {
30 | return isCompatWith(Build.VERSION_CODES.HONEYCOMB);
31 | }
32 |
33 | @TargetApi(14)
34 | public void setFitsSystemWindowsCompat(View view) {
35 | if (isCompatWith(Build.VERSION_CODES.ICE_CREAM_SANDWICH)) {
36 | view.setFitsSystemWindows(true);
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/HttpPutData.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | public class HttpPutData {
4 |
5 | @SuppressWarnings("UnusedDeclaration")
6 | private static String TAG = "HttpPutData";
7 |
8 | private final String putUrl;
9 | private String putString = null;
10 | private String contentType = null;
11 | private final HttpConversationCallback httpConversationCallback;
12 |
13 | public HttpPutData(String putUrl,
14 | HttpConversationCallback httpConversationCallback) {
15 | this.putUrl = putUrl;
16 | this.httpConversationCallback = httpConversationCallback;
17 | }
18 |
19 | public synchronized String getPutUrl() {
20 | return putUrl;
21 | }
22 |
23 | public synchronized String getPutString() {
24 | return putString;
25 | }
26 |
27 | public synchronized void setPutString(String putString) {
28 | this.putString = putString;
29 | }
30 |
31 | public synchronized String getContentType() {
32 | return contentType;
33 | }
34 |
35 | public synchronized void setContentType(String contentType) {
36 | this.contentType = contentType;
37 | }
38 |
39 | public synchronized HttpConversationCallback
40 | getHttpConversationCallback() {
41 | return httpConversationCallback;
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/QuestionBuilder.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | import com.brainydroid.daydreaming.background.Logger;
4 | import com.brainydroid.daydreaming.db.ParametersStorage;
5 | import com.brainydroid.daydreaming.db.QuestionDescription;
6 | import com.brainydroid.daydreaming.db.QuestionPositionDescription;
7 | import com.google.inject.Inject;
8 |
9 | public class QuestionBuilder {
10 |
11 | @SuppressWarnings("FieldCanBeLocal")
12 | private static String TAG = "QuestionBuilder";
13 |
14 | @Inject QuestionFactory questionFactory;
15 | @Inject ParametersStorage parametersStorage;
16 |
17 | public Question build(QuestionPositionDescription questionPositionDescription,
18 | Sequence sequence) {
19 | Logger.v(TAG, "Building question from description {0} (referencing questionName {1}",
20 | questionPositionDescription.getName(),
21 | questionPositionDescription.getQuestionName());
22 | QuestionDescription questionDescription = parametersStorage.getQuestionDescription(
23 | questionPositionDescription.getQuestionName());
24 |
25 | Question question = questionFactory.create();
26 | question.importFromQuestionDescription(questionDescription);
27 | question.setSequence(sequence);
28 | return question;
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/network/HttpPostData.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.network;
2 |
3 | public class HttpPostData {
4 |
5 | @SuppressWarnings("UnusedDeclaration")
6 | private static String TAG = "HttpPostData";
7 |
8 | private final String postUrl;
9 | private String postString = null;
10 | private String contentType = null;
11 | private final HttpConversationCallback httpConversationCallback;
12 |
13 | public HttpPostData(String postUrl,
14 | HttpConversationCallback httpConversationCallback) {
15 | this.postUrl = postUrl;
16 | this.httpConversationCallback = httpConversationCallback;
17 | }
18 |
19 | public synchronized String getPostUrl() {
20 | return postUrl;
21 | }
22 |
23 | public synchronized String getPostString() {
24 | return postString;
25 | }
26 |
27 | public synchronized void setPostString(String postString) {
28 | this.postString = postString;
29 | }
30 |
31 | public synchronized String getContentType() {
32 | return contentType;
33 | }
34 |
35 | public synchronized void setContentType(String contentType) {
36 | this.contentType = contentType;
37 | }
38 |
39 | public synchronized HttpConversationCallback
40 | getHttpConversationCallback() {
41 | return httpConversationCallback;
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/library/build.gradle:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | buildscript {
18 | repositories {
19 | mavenCentral()
20 | }
21 |
22 | dependencies {
23 | classpath 'com.android.tools.build:gradle:0.12.0'
24 | }
25 | }
26 |
27 | apply plugin: 'com.android.library'
28 | apply plugin: 'maven'
29 |
30 | dependencies {
31 | repositories {
32 | mavenCentral()
33 | }
34 | }
35 |
36 | android {
37 | compileSdkVersion Integer.parseInt(COMPILE_SDK)
38 | buildToolsVersion BUILD_TOOLS_VERSION
39 |
40 | defaultConfig {
41 | versionName VERSION_NAME
42 | versionCode Integer.parseInt(VERSION_CODE)
43 | targetSdkVersion Integer.parseInt(TARGET_SDK)
44 | minSdkVersion Integer.parseInt(MIN_SDK)
45 | }
46 | }
47 |
48 | apply from: 'gradle-mvn-push.gradle'
49 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/sequence/PageBuilder.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.sequence;
2 |
3 | import com.brainydroid.daydreaming.background.Logger;
4 | import com.brainydroid.daydreaming.db.PageDescription;
5 | import com.brainydroid.daydreaming.db.QuestionPositionDescription;
6 | import com.google.inject.Inject;
7 |
8 | import java.util.ArrayList;
9 |
10 | public class PageBuilder {
11 |
12 | @SuppressWarnings("FieldCanBeLocal")
13 | private static String TAG = "PageBuilder";
14 |
15 | @Inject private PageFactory pageFactory;
16 | @Inject private QuestionBuilder questionBuilder;
17 | @Inject private Orderer orderer;
18 |
19 | public Page build(PageDescription pageDescription, Sequence sequence) {
20 | Logger.v(TAG, "Building page from description {}", pageDescription.getName());
21 |
22 | ArrayList questionPositionDescriptions = pageDescription.getQuestions();
23 | BuildableOrder buildableOrder =
24 | orderer.buildOrder(pageDescription.getNSlots(), questionPositionDescriptions);
25 |
26 | Page page = pageFactory.create();
27 | page.importFromPageDescription(pageDescription);
28 | page.setQuestions(buildableOrder.build(sequence));
29 | page.setSequence(sequence);
30 | return page;
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/button_normal.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 | -
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | -
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/layout/glossary_item_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
13 |
14 |
20 |
21 |
27 |
28 |
29 |
36 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/db/LocationPointJsonFactory.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.db;
2 |
3 | import com.brainydroid.daydreaming.background.ErrorHandler;
4 | import com.brainydroid.daydreaming.background.Logger;
5 | import com.google.inject.Inject;
6 |
7 | import org.json.JSONException;
8 |
9 | /**
10 | * Create {@link LocationPoint}s whenever we need an instance that can't be
11 | * injected with Guice.
12 | *
13 | * Guice handles the implementation of this interface,
14 | * we only need to register it in a module (which is done in {@link
15 | * com.brainydroid.daydreaming.ui.AppModule}.
16 | *
17 | * @author Sébastien Lerique
18 | * @author Vincent Adam
19 | * @see LocationPoint
20 | */
21 | public class LocationPointJsonFactory
22 | extends ModelJsonFactory {
23 |
24 | @SuppressWarnings("FieldCanBeLocal")
25 | private static String TAG = "LocationPointJsonFactory";
26 |
27 | @Inject Json json;
28 | @Inject ErrorHandler errorHandler;
29 |
30 | public LocationPoint createFromJson(String jsonContent) {
31 | Logger.v(TAG, "Creating locationPoint from json");
32 | try {
33 | return json.fromJson(jsonContent, LocationPoint.class);
34 | } catch (JSONException e) {
35 | errorHandler.handleBaseJsonError(jsonContent, e);
36 | throw new RuntimeException(e);
37 | }
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/ui/dashboard/DescriptionActivity.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.ui.dashboard;
2 |
3 | import android.view.LayoutInflater;
4 | import android.view.View;
5 | import android.view.ViewGroup;
6 | import com.brainydroid.daydreaming.R;
7 | import com.brainydroid.daydreaming.background.Logger;
8 | import com.brainydroid.daydreaming.ui.firstlaunchsequence.FirstLaunch01DescriptionActivity;
9 | import roboguice.inject.ContentView;
10 |
11 | @ContentView(R.layout.activity_first_launch_description)
12 | public class DescriptionActivity extends FirstLaunch01DescriptionActivity {
13 |
14 | @SuppressWarnings("FieldCanBeLocal")
15 | private static String TAG = "DescriptionActivity";
16 |
17 | @Override
18 | public void checkFirstLaunch() { }
19 |
20 | @Override
21 | public void setButton() {
22 | nextButton.setVisibility(View.INVISIBLE);
23 | nextButton.setClickable(false);
24 | ViewGroup parent = (ViewGroup)findViewById(R.id.firstLaunchDescription_main_layout);
25 | LayoutInflater.from(this).inflate(R.layout.return_to_dashboard_button, parent, true);
26 | }
27 |
28 | @Override
29 | public void backHook() {
30 | Logger.v(TAG, "Setting vertical slide transition");
31 | overridePendingTransition(R.anim.push_bottom_in, R.anim.push_bottom_out);
32 | }
33 |
34 | public void onClick_backToDashboard(View v) {
35 | onBackPressed();
36 | }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/docs/intro.rst:
--------------------------------------------------------------------------------
1 | .. _intro:
2 |
3 | Introduction
4 | ============
5 |
6 |
7 | About
8 | -----
9 |
10 | Daydreaming is a pilot cognitive science experiment using smartphones. It takes advantage of *in vivo* possibilities, that is measurements that are not usually possible in a lab.
11 |
12 | The aim of the experiment is to explore some aspects of what is called **mind wandering**. Mind wandering is when we start thinking of things that aren't directly related to our environment. Thinking in the future, in the past, thinking of people who aren't there, are all simple examples of mind wandering. It turns out we human beings mind-wander a significant portion of our time.
13 |
14 | The technical side of the experiment consists of two parts:
15 |
16 | * An Android application, `daydreaming `_; these pages document its behaviour.
17 | * A general-purpose server, `yelandur `_; it receives data sent to it by the app from Android devices.
18 |
19 |
20 | This documentation
21 | ------------------
22 |
23 | :ref:`description` describes in full detail the behaviour of the app. Its target audience is researchers interested in the details of the protocol, and of course any other person interested in the experiment.
24 |
25 | :ref:`testing` explains how the app can be tested, to make sure it behaves as described in :ref:`description`.
26 |
27 | :ref:`changelog` describes the changes introduced in the successive versions of the app.
28 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/values/ui_typography.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
12 |
15 |
16 |
19 |
20 |
23 |
24 |
27 |
28 |
31 |
32 |
33 |
34 |
37 |
38 |
41 |
42 |
45 |
46 |
49 |
50 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/values/ui_colors.xml:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
19 |
20 | #224894
21 | #00000000
22 |
23 |
24 |
25 | #00A2D4
26 | #EBFBFF
27 | #ff0000
28 | #ff0000
29 |
30 | #DFEEF2
31 | #EBFBFF
32 | #00617F
33 | #e3f5fb
34 | #000000
35 | #ede66d
36 |
37 | #c60032
38 |
39 |
40 |
--------------------------------------------------------------------------------
/library/gradle.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2014 Alex Curran
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | #
16 |
17 | VERSION_CODE=50101
18 | VERSION_NAME=5.1.0-SNAPSHOT
19 | GROUP=com.github.amlcurran.showcaseview
20 |
21 | POM_NAME=ShowcaseView library
22 | POM_ARTIFACT_ID=library
23 | POM_PACKAGING=aar
24 |
25 | POM_DESCRIPTION=Highlight the best bits of your app to users quickly, simply, and cool...ly
26 | POM_URL=https://github.com/amlcurran/ShowcaseView/tree/new-scv
27 | POM_SCM_URL=https://github.com/amlcurran/ShowcaseView/tree/new-scv
28 | POM_SCM_CONNECTION=scm:git@github.com:amlcurran/ShowcaseView.git
29 | POM_SCM_DEV_CONNECTION=scm:git@github.com:amlcurran/ShowcaseView.git
30 | POM_LICENCE_NAME=The Apache Software License, Version 2.0
31 | POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
32 | POM_LICENCE_DIST=repo
33 | POM_DEVELOPER_ID=amlcurran
34 | POM_DEVELOPER_NAME=Alex Curran
35 |
36 | BUILD_TOOLS_VERSION=21.1.0
37 | COMPILE_SDK=21
38 | MIN_SDK=11
39 | TARGET_SDK=21
40 |
--------------------------------------------------------------------------------
/COPYING:
--------------------------------------------------------------------------------
1 | Copying
2 | =======
3 |
4 | Code
5 | ----
6 |
7 | Unless otherwise noted (as in the library/ directory), all code under this
8 | folder is:
9 |
10 | Copyright 2014 Sébastien Lerique and Vincent Adam
11 |
12 | Licensed under the GNU General Public License, Version 3 (the "License");
13 | you may not use this code except in compliance with the License.
14 | You may obtain a copy of the License at
15 |
16 | https://www.gnu.org/licenses/gpl-3.0.html
17 |
18 | Unless required by applicable law or agreed to in writing, software
19 | distributed under the License is distributed on an "AS IS" BASIS,
20 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | See the License for the specific language governing permissions and
22 | limitations under the License.
23 |
24 | Artwork
25 | -------
26 |
27 | Unless otherwise noted, all artwork under this directory is:
28 |
29 | Copyright 2014 Gislain Delaire
30 |
31 | Licensed under the Creative Commons Attribution-ShareAlike 4.0 International
32 | license (the "License"); you may not use this artwork except in compliance with
33 | the License. You may obtain a copy of the License at
34 |
35 | https://creativecommons.org/licenses/by-sa/4.0/
36 |
37 | Unless required by applicable law or agreed to in writing, artwork
38 | distributed under the License is distributed on an "AS IS" BASIS,
39 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
40 | See the License for the specific language governing permissions and
41 | limitations under the License.
42 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/ui/AlphaLinearLayout.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.ui;
2 |
3 | import android.annotation.TargetApi;
4 | import android.content.Context;
5 | import android.os.Build;
6 | import android.util.AttributeSet;
7 | import android.view.animation.AlphaAnimation;
8 | import android.widget.LinearLayout;
9 |
10 | import com.brainydroid.daydreaming.background.Logger;
11 |
12 | public class AlphaLinearLayout extends LinearLayout {
13 |
14 | @SuppressWarnings("FieldCanBeLocal")
15 | private static String TAG = "AlphaLinearLayout";
16 |
17 | @SuppressWarnings("UnusedDeclaration")
18 | public AlphaLinearLayout(Context context) {
19 | super(context);
20 | }
21 |
22 | @SuppressWarnings("UnusedDeclaration")
23 | public AlphaLinearLayout(Context context, AttributeSet attrs) {
24 | super(context, attrs);
25 | }
26 |
27 | // Missing public AlphaLinearLayout(Context context, AttributeSet attrs, int defStyle)
28 | // since it requires API >= 11
29 |
30 | @TargetApi(11)
31 | @Override
32 | public void setAlpha(float alpha) {
33 | Logger.v(TAG, "Setting alpha to {}", alpha);
34 |
35 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
36 | super.setAlpha(alpha);
37 | } else {
38 | AlphaAnimation animation = new AlphaAnimation(alpha, alpha);
39 | animation.setDuration(0);
40 | animation.setFillAfter(true);
41 | startAnimation(animation);
42 | }
43 | }
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/ui/AlphaButton.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.ui;
2 |
3 | import android.annotation.TargetApi;
4 | import android.content.Context;
5 | import android.os.Build;
6 | import android.util.AttributeSet;
7 | import android.view.animation.AlphaAnimation;
8 | import android.widget.Button;
9 |
10 | import com.brainydroid.daydreaming.background.Logger;
11 |
12 | public class AlphaButton extends Button {
13 |
14 | @SuppressWarnings("FieldCanBeLocal")
15 | private static final String TAG = "AlphaButton";
16 |
17 | @SuppressWarnings("UnusedDeclaration")
18 | public AlphaButton(Context context) {
19 | super(context);
20 | }
21 |
22 | @SuppressWarnings("UnusedDeclaration")
23 | public AlphaButton(Context context, AttributeSet attrs) {
24 | super(context, attrs);
25 | }
26 |
27 | @SuppressWarnings("UnusedDeclaration")
28 | public AlphaButton(Context context, AttributeSet attrs, int defStyle) {
29 | super(context, attrs, defStyle);
30 | }
31 |
32 | @TargetApi(11)
33 | @Override
34 | public void setAlpha(float alpha) {
35 | Logger.v(TAG, "Setting alpha to {}", alpha);
36 |
37 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
38 | super.setAlpha(alpha);
39 | } else {
40 | AlphaAnimation animation = new AlphaAnimation(alpha, alpha);
41 | animation.setDuration(0);
42 | animation.setFillAfter(true);
43 | startAnimation(animation);
44 | }
45 | }
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/library/src/main/java/com/github/amlcurran/showcaseview/targets/ViewTarget.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Alex Curran
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.github.amlcurran.showcaseview.targets;
18 |
19 | import android.app.Activity;
20 | import android.graphics.Point;
21 | import android.view.View;
22 |
23 | /**
24 | * Target a view on the screen. This will centre the target on the view.
25 | */
26 | public class ViewTarget implements Target {
27 |
28 | private final View mView;
29 |
30 | public ViewTarget(View view) {
31 | mView = view;
32 | }
33 |
34 | public ViewTarget(int viewId, Activity activity) {
35 | mView = activity.findViewById(viewId);
36 | }
37 |
38 | @Override
39 | public Point getPoint() {
40 | int[] location = new int[2];
41 | mView.getLocationInWindow(location);
42 | int x = location[0] + mView.getWidth() / 2;
43 | int y = location[1] + mView.getHeight() / 2;
44 | return new Point(x, y);
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/ui/AlphaImageButton.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.ui;
2 |
3 | import android.annotation.TargetApi;
4 | import android.content.Context;
5 | import android.os.Build;
6 | import android.util.AttributeSet;
7 | import android.view.animation.AlphaAnimation;
8 | import android.widget.ImageButton;
9 | import com.brainydroid.daydreaming.background.Logger;
10 |
11 | public class AlphaImageButton extends ImageButton {
12 |
13 | @SuppressWarnings("FieldCanBeLocal")
14 | private static String TAG = "AlphaImageButton";
15 |
16 | @SuppressWarnings("UnusedDeclaration")
17 | public AlphaImageButton(Context context) {
18 | super(context);
19 | }
20 |
21 | @SuppressWarnings("UnusedDeclaration")
22 | public AlphaImageButton(Context context, AttributeSet attrs) {
23 | super(context, attrs);
24 | }
25 |
26 | @SuppressWarnings("UnusedDeclaration")
27 | public AlphaImageButton(Context context, AttributeSet attrs, int defStyle) {
28 | super(context, attrs, defStyle);
29 | }
30 |
31 | @TargetApi(11)
32 | @Override
33 | public void setAlpha(float alpha) {
34 | Logger.v(TAG, "Setting alpha to {}", alpha);
35 |
36 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
37 | super.setAlpha(alpha);
38 | } else {
39 | AlphaAnimation animation = new AlphaAnimation(alpha, alpha);
40 | animation.setDuration(0);
41 | animation.setFillAfter(true);
42 | startAnimation(animation);
43 | }
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/daydreaming/src/main/res/drawable/question_slider_thumb.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | -
5 |
6 |
9 |
10 |
11 |
12 |
13 | -
17 |
18 |
19 |
22 |
23 |
24 | -
28 |
29 |
30 |
31 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/daydreaming/src/main/java/com/brainydroid/daydreaming/ui/filtering/CachingDistance.java:
--------------------------------------------------------------------------------
1 | package com.brainydroid.daydreaming.ui.filtering;
2 |
3 | import java.util.ArrayList;
4 | import java.util.Collections;
5 | import java.util.HashMap;
6 |
7 | public abstract class CachingDistance implements IDistance {
8 |
9 | private HashMap cache = new HashMap();
10 |
11 | public int distance(String s, String t) {
12 | DoubleStringKey st = new DoubleStringKey(s ,t);
13 | if (!cache.containsKey(st)) {
14 | cache.put(st, computeDistance(s, t));
15 | }
16 |
17 | return cache.get(st);
18 | }
19 |
20 | public int metaDistance(String s, MetaString ms) {
21 | ArrayList distances = new ArrayList();
22 |
23 | distances.add(distance(s, ms.getLower()));
24 | // If we're a substring, consider it exact
25 | if (isSubString(s, ms.getLower()))
26 | return 0;
27 | for (String token : ms.getTokens()) {
28 | if (isSubString(s, token))
29 | return 0;
30 | distances.add(distance(s, token));
31 | }
32 | for (String tag : ms.getTags()) {
33 | if (isSubString(s, tag))
34 | return 0;
35 | distances.add(distance(s, tag));
36 | }
37 | return Collections.min(distances);
38 | }
39 |
40 | private static boolean isSubString(String s, String t) {
41 | return s.length() <= t.length() && s.equals(t.substring(0, s.length()));
42 | }
43 |
44 | protected abstract int computeDistance(String s, String t);
45 | }
46 |
--------------------------------------------------------------------------------