Changeset 16447


Ignore:
Timestamp:
Aug 1, 2016, 3:32:03 PM (3 years ago)
Author:
jesteves
Message:

Added SecondMotionDetector?, which uses AsyncTasks? to run the detector.

Location:
internals/2016/screencastmultiplayergame_control/trunk/SampleApps
Files:
1896 added
3 edited

Legend:

Unmodified
Added
Removed
  • internals/2016/screencastmultiplayergame_control/trunk/SampleApps/FirstMotionDetector/.idea/misc.xml

    r16441 r16447  
    3838    <ConfirmationsSetting value="0" id="Remove" />
    3939  </component>
    40   <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
     40  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
    4141    <output url="file://$PROJECT_DIR$/build/classes" />
    4242  </component>
     
    4444    <option name="id" value="Android" />
    4545  </component>
     46  <component name="SvnBranchConfigurationManager">
     47    <option name="mySupportsUserInfoFilter" value="true" />
     48  </component>
    4649</project>
  • internals/2016/screencastmultiplayergame_control/trunk/SampleApps/FirstMotionDetector/.idea/workspace.xml

    r16441 r16447  
    11<?xml version="1.0" encoding="UTF-8"?>
    22<project version="4">
     3  <component name="AndroidLayouts">
     4    <shared>
     5      <config />
     6    </shared>
     7  </component>
    38  <component name="ChangeListManager">
    4     <list default="true" id="88290530-8776-4428-9d0b-a69fe15c80e9" name="Default" comment="" />
     9    <list default="true" id="88290530-8776-4428-9d0b-a69fe15c80e9" name="Default" comment="">
     10      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
     11      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
     12      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/java/com/caixamagica/firstmotiondetector/MotionDetection.java" afterPath="$PROJECT_DIR$/app/src/main/java/com/caixamagica/firstmotiondetector/MotionDetection.java" />
     13    </list>
    514    <ignored path="FirstMotionDetector.iws" />
    615    <ignored path=".idea/workspace.xml" />
     
    2534        <entry file="file://$PROJECT_DIR$/app/src/main/java/com/caixamagica/firstmotiondetector/MainActivity.java">
    2635          <provider selected="true" editor-type-id="text-editor">
    27             <state vertical-scroll-proportion="-5.6296296">
    28               <caret line="20" column="26" selection-start-line="20" selection-start-column="25" selection-end-line="20" selection-end-column="26" />
     36            <state vertical-scroll-proportion="0.0">
     37              <caret line="18" column="56" selection-start-line="18" selection-start-column="56" selection-end-line="18" selection-end-column="56" />
     38              <folding />
     39            </state>
     40          </provider>
     41        </entry>
     42      </file>
     43      <file leaf-file-name="activity_main.xml" pinned="false" current-in-tab="false">
     44        <entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml">
     45          <provider editor-type-id="android-designer">
     46            <state />
     47          </provider>
     48          <provider selected="true" editor-type-id="text-editor">
     49            <state vertical-scroll-proportion="-0.0">
     50              <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="68" selection-end-column="0" />
     51              <folding />
     52            </state>
     53          </provider>
     54        </entry>
     55      </file>
     56      <file leaf-file-name="activity_motion_detection.xml" pinned="false" current-in-tab="false">
     57        <entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_motion_detection.xml">
     58          <provider editor-type-id="android-designer">
     59            <state />
     60          </provider>
     61          <provider selected="true" editor-type-id="text-editor">
     62            <state vertical-scroll-proportion="-3.5625">
     63              <caret line="19" column="48" selection-start-line="19" selection-start-column="48" selection-end-line="19" selection-end-column="48" />
    2964              <folding />
    3065            </state>
     
    3570        <entry file="file://$PROJECT_DIR$/app/src/main/java/com/caixamagica/firstmotiondetector/MotionDetection.java">
    3671          <provider selected="true" editor-type-id="text-editor">
    37             <state vertical-scroll-proportion="0.35771066">
    38               <caret line="107" column="42" selection-start-line="107" selection-start-column="42" selection-end-line="107" selection-end-column="42" />
     72            <state vertical-scroll-proportion="6.772655">
     73              <caret line="284" column="43" selection-start-line="284" selection-start-column="43" selection-end-line="284" selection-end-column="43" />
    3974              <folding>
    4075                <element signature="imports" expanded="true" />
     
    4378                <element signature="e#8298#8805#0" expanded="true" />
    4479                <element signature="e#8804#8805#0" expanded="true" />
    45                 <element signature="e#10496#11065#0" expanded="true" />
    46                 <element signature="e#11064#11065#0" expanded="true" />
    47                 <element signature="e#11519#11885#0" expanded="true" />
    48                 <element signature="e#11884#11885#0" expanded="true" />
    49                 <element signature="e#12383#12384#0" expanded="true" />
    50                 <element signature="e#12432#12433#0" expanded="true" />
     80                <element signature="e#10500#11069#0" expanded="true" />
     81                <element signature="e#11068#11069#0" expanded="true" />
     82                <element signature="e#11523#11889#0" expanded="true" />
     83                <element signature="e#11888#11889#0" expanded="true" />
     84                <element signature="e#12387#12388#0" expanded="true" />
     85                <element signature="e#12436#12437#0" expanded="true" />
    5186              </folding>
    5287            </state>
     
    16751710        <option value="$PROJECT_DIR$/app/src/main/java/com/caixamagica/firstmotiondetector/MotionDetector.java" />
    16761711        <option value="$PROJECT_DIR$/app/src/main/java/com/caixamagica/firstmotiondetector/VerticalMotionDetector.java" />
     1712        <option value="$PROJECT_DIR$/app/src/main/res/layout/activity_motion_detection.xml" />
    16771713        <option value="$PROJECT_DIR$/app/src/main/java/com/caixamagica/firstmotiondetector/MotionDetection.java" />
    16781714      </list>
     
    17291765              <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidModuleNode" />
    17301766            </PATH_ELEMENT>
     1767            <PATH_ELEMENT>
     1768              <option name="myItemId" value="res" />
     1769              <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidResFolderNode" />
     1770            </PATH_ELEMENT>
     1771          </PATH>
     1772          <PATH>
     1773            <PATH_ELEMENT>
     1774              <option name="myItemId" value="FirstMotionDetector" />
     1775              <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidViewProjectNode" />
     1776            </PATH_ELEMENT>
     1777            <PATH_ELEMENT>
     1778              <option name="myItemId" value="app" />
     1779              <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidModuleNode" />
     1780            </PATH_ELEMENT>
     1781            <PATH_ELEMENT>
     1782              <option name="myItemId" value="res" />
     1783              <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidResFolderNode" />
     1784            </PATH_ELEMENT>
     1785            <PATH_ELEMENT>
     1786              <option name="myItemId" value="layout" />
     1787              <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidResFolderTypeNode" />
     1788            </PATH_ELEMENT>
    17311789          </PATH>
    17321790          <PATH>
     
    17601818              <option name="myItemId" value="firstmotiondetector" />
    17611819              <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidPsiDirectoryNode" />
     1820            </PATH_ELEMENT>
     1821          </PATH>
     1822          <PATH>
     1823            <PATH_ELEMENT>
     1824              <option name="myItemId" value="FirstMotionDetector" />
     1825              <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidViewProjectNode" />
     1826            </PATH_ELEMENT>
     1827            <PATH_ELEMENT>
     1828              <option name="myItemId" value="app" />
     1829              <option name="myItemType" value="com.android.tools.idea.navigator.nodes.AndroidModuleNode" />
    17621830            </PATH_ELEMENT>
    17631831          </PATH>
     
    20362104  </component>
    20372105  <component name="ShelveChangesManager" show_recycled="false" />
     2106  <component name="SvnConfiguration" cleanupOnStartRun="true">
     2107    <configuration>$USER_HOME$/.subversion</configuration>
     2108  </component>
     2109  <component name="SvnFileUrlMappingImpl">
     2110    <option name="myMappingRoots">
     2111      <list>
     2112        <SvnCopyRootSimple>
     2113          <option name="myVcsRoot" value="$PROJECT_DIR$" />
     2114          <option name="myCopyRoot" value="$PROJECT_DIR$" />
     2115        </SvnCopyRootSimple>
     2116        <SvnCopyRootSimple>
     2117          <option name="myVcsRoot" value="$PROJECT_DIR$/.idea" />
     2118          <option name="myCopyRoot" value="$PROJECT_DIR$/.idea" />
     2119        </SvnCopyRootSimple>
     2120        <SvnCopyRootSimple>
     2121          <option name="myVcsRoot" value="$PROJECT_DIR$/app" />
     2122          <option name="myCopyRoot" value="$PROJECT_DIR$/app" />
     2123        </SvnCopyRootSimple>
     2124      </list>
     2125    </option>
     2126    <option name="myMoreRealMappingRoots">
     2127      <list>
     2128        <SvnCopyRootSimple>
     2129          <option name="myVcsRoot" value="$PROJECT_DIR$" />
     2130          <option name="myCopyRoot" value="$PROJECT_DIR$" />
     2131        </SvnCopyRootSimple>
     2132      </list>
     2133    </option>
     2134  </component>
    20382135  <component name="TaskManager">
    20392136    <task active="true" id="Default" summary="Default task">
     
    20562153      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
    20572154      <window_info id="Android Monitor" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
     2155      <window_info id="Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
    20582156      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
    20592157      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
     
    20632161      <window_info id="Gradle Console" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
    20642162      <window_info id="Designer" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
    2065       <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.20840065" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
     2163      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.20840065" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
    20662164      <window_info id="Gradle" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
    20672165      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
     
    20942192      </provider>
    20952193    </entry>
     2194    <entry file="file://$PROJECT_DIR$/app/src/main/java/com/caixamagica/firstmotiondetector/VerticalMotionDetector.java">
     2195      <provider selected="true" editor-type-id="text-editor">
     2196        <state vertical-scroll-proportion="-15.074074">
     2197          <caret line="62" column="0" selection-start-line="62" selection-start-column="0" selection-end-line="62" selection-end-column="0" />
     2198          <folding />
     2199        </state>
     2200      </provider>
     2201    </entry>
     2202    <entry file="file://$PROJECT_DIR$/app/src/main/java/com/caixamagica/firstmotiondetector/MainActivity.java">
     2203      <provider selected="true" editor-type-id="text-editor">
     2204        <state vertical-scroll-proportion="0.0">
     2205          <caret line="18" column="56" selection-start-line="18" selection-start-column="56" selection-end-line="18" selection-end-column="56" />
     2206          <folding />
     2207        </state>
     2208      </provider>
     2209    </entry>
     2210    <entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml">
     2211      <provider editor-type-id="android-designer">
     2212        <state />
     2213      </provider>
     2214      <provider selected="true" editor-type-id="text-editor">
     2215        <state vertical-scroll-proportion="-0.0">
     2216          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="68" selection-end-column="0" />
     2217          <folding />
     2218        </state>
     2219      </provider>
     2220    </entry>
     2221    <entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_motion_detection.xml">
     2222      <provider editor-type-id="android-designer">
     2223        <state />
     2224      </provider>
     2225      <provider selected="true" editor-type-id="text-editor">
     2226        <state vertical-scroll-proportion="-3.5625">
     2227          <caret line="19" column="48" selection-start-line="19" selection-start-column="48" selection-end-line="19" selection-end-column="48" />
     2228          <folding />
     2229        </state>
     2230      </provider>
     2231    </entry>
    20962232    <entry file="file://$PROJECT_DIR$/app/src/main/java/com/caixamagica/firstmotiondetector/MotionDetector.java">
    20972233      <provider selected="true" editor-type-id="text-editor">
     
    21022238      </provider>
    21032239    </entry>
    2104     <entry file="file://$PROJECT_DIR$/app/src/main/java/com/caixamagica/firstmotiondetector/MainActivity.java">
    2105       <provider selected="true" editor-type-id="text-editor">
    2106         <state vertical-scroll-proportion="-5.6296296">
    2107           <caret line="20" column="26" selection-start-line="20" selection-start-column="25" selection-end-line="20" selection-end-column="26" />
    2108           <folding />
    2109         </state>
    2110       </provider>
    2111     </entry>
    2112     <entry file="file://$PROJECT_DIR$/app/src/main/java/com/caixamagica/firstmotiondetector/VerticalMotionDetector.java">
    2113       <provider selected="true" editor-type-id="text-editor">
    2114         <state vertical-scroll-proportion="-15.074074">
    2115           <caret line="62" column="0" selection-start-line="62" selection-start-column="0" selection-end-line="62" selection-end-column="0" />
    2116           <folding />
    2117         </state>
    2118       </provider>
    2119     </entry>
    21202240    <entry file="file://$PROJECT_DIR$/app/src/main/java/com/caixamagica/firstmotiondetector/MotionDetection.java">
    21212241      <provider selected="true" editor-type-id="text-editor">
    2122         <state vertical-scroll-proportion="0.35771066">
    2123           <caret line="107" column="42" selection-start-line="107" selection-start-column="42" selection-end-line="107" selection-end-column="42" />
     2242        <state vertical-scroll-proportion="6.772655">
     2243          <caret line="284" column="43" selection-start-line="284" selection-start-column="43" selection-end-line="284" selection-end-column="43" />
    21242244          <folding>
    21252245            <element signature="imports" expanded="true" />
     
    21282248            <element signature="e#8298#8805#0" expanded="true" />
    21292249            <element signature="e#8804#8805#0" expanded="true" />
    2130             <element signature="e#10496#11065#0" expanded="true" />
    2131             <element signature="e#11064#11065#0" expanded="true" />
    2132             <element signature="e#11519#11885#0" expanded="true" />
    2133             <element signature="e#11884#11885#0" expanded="true" />
    2134             <element signature="e#12383#12384#0" expanded="true" />
    2135             <element signature="e#12432#12433#0" expanded="true" />
     2250            <element signature="e#10500#11069#0" expanded="true" />
     2251            <element signature="e#11068#11069#0" expanded="true" />
     2252            <element signature="e#11523#11889#0" expanded="true" />
     2253            <element signature="e#11888#11889#0" expanded="true" />
     2254            <element signature="e#12387#12388#0" expanded="true" />
     2255            <element signature="e#12436#12437#0" expanded="true" />
    21362256          </folding>
    21372257        </state>
  • internals/2016/screencastmultiplayergame_control/trunk/SampleApps/FirstMotionDetector/app/src/main/java/com/caixamagica/firstmotiondetector/MotionDetection.java

    r16441 r16447  
    283283
    284284        public synchronized void enqueueLooperThread(final MotionDetector newTask) {
    285             // TODO perceber esta parte
     285            // TODO perceber bem esta parte
    286286            mLooperThreadHandler.post(new Runnable() {
    287287                @Override
Note: See TracChangeset for help on using the changeset viewer.