sorted up source codes

This commit is contained in:
2017-01-10 19:21:54 +08:00
parent 2cd3863ad4
commit cada6f005e
22 changed files with 271 additions and 137 deletions

View File

@@ -8,7 +8,7 @@
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/classes" />
</content>
<orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library>

View File

@@ -1,7 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EntryPointsManager">
<entry_points version="2.0" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_3" default="false" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_3" default="false" project-jdk-name="JDK-1.8" project-jdk-type="JavaSDK" />
</project>

View File

@@ -2,7 +2,7 @@
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/sirius_code_robot.iml" filepath="$PROJECT_DIR$/.idea/sirius_code_robot.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/irext_reverser.iml" filepath="$PROJECT_DIR$/.idea/irext_reverser.iml" />
</modules>
</component>
</project>

View File

@@ -2,29 +2,28 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="94fe425f-648a-43eb-bc0a-533a6bc9a614" name="Default" comment="">
<change type="DELETED" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/gen/com/yuekongtest/irdemo/BuildConfig.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/gen/com/yuekongtest/irdemo/Manifest.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/gen/com/yuekongtest/irdemo/R.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/libs/arm64-v8a/libirdecode2.so" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/libs/armeabi-v7a/libirdecode2.so" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/libs/armeabi/libirdecode2.so" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/libs/x86/libirdecode2.so" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/libs/x86_64/libirdecode2.so" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/src/com/yuekongtest/irdemo/IRDemoApplication.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/src/com/yuekongtest/irdemo/MainActivity.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/src/com/yuekongtest/irdemo/utils/FileUtils.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/src/com/yuekongtest/remote/bean/TVCommand.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/src/com/yuekongtest/remote/bean/TVLib.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/src/com/yuekongtest/remote/bean/jnibean/JNIACStatus.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/src/com/yuekongtest/remote/bean/jnibean/JNITemperatureRange.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/src/com/yuekongtest/remote/generic/TVDecoder.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/src/com/yuekongtest/remote/service/DecodeService.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/SiriusCodeRobot.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/model/Brand.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/model/BrandCategoryRel.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/model/BrandRemoteRel.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/model/Category.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/model/City.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/model/IPTV.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/model/KeyInstance.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/model/KeyTemplate.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/model/Operator.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/model/RemoteIndex.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/model/RemoteInstance.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/model/RemoteTemplate.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/model/SPStbRel.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/robot/RemoteEncoder.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/robot/RemoteIndexGenerator.java" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/utils/VeDate.java" afterPath="" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/modules.xml" afterPath="$PROJECT_DIR$/.idea/modules.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/../../EndeCode/sirius_decode/.idea/workspace.xml" afterPath="$PROJECT_DIR$/../../EndeCode/sirius_decode/.idea/workspace.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/../../EndeCode/sirius_decode/include/sirius_decode.h" afterPath="$PROJECT_DIR$/../../EndeCode/sirius_decode/include/sirius_decode.h" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/AndroidManifest.xml" afterPath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/AndroidManifest.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/res/layout/activity_main.xml" afterPath="$PROJECT_DIR$/../../IRDemo/irdemo/IRDemo/res/layout/activity_main.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/META-INF/MANIFEST.MF" afterPath="$PROJECT_DIR$/src/META-INF/MANIFEST.MF" />
<change type="MOVED" beforePath="$PROJECT_DIR$/.idea/sirius_code_robot.iml" afterPath="$PROJECT_DIR$/.idea/irext_reverser.iml" />
</list>
<ignored path="code_robot.iws" />
<ignored path=".idea/workspace.xml" />
@@ -44,7 +43,40 @@
<favorites_list name="code_robot" />
</component>
<component name="FileEditorManager">
<leaf />
<leaf>
<file leaf-file-name="IRextReverser.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/com/irext/reverser/IRextReverser.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="48">
<caret line="3" column="2" lean-forward="true" selection-start-line="3" selection-start-column="2" selection-end-line="3" selection-end-column="2" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="RemoteEncoder.java" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/com/irext/reverser/robot/RemoteEncoder.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="503">
<caret line="71" column="30" lean-forward="true" selection-start-line="71" selection-start-column="30" selection-end-line="71" selection-end-column="30" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="RemoteIndexGenerator.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/com/irext/reverser/robot/RemoteIndexGenerator.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="223">
<caret line="102" column="15" lean-forward="false" selection-start-line="102" selection-start-column="15" selection-end-line="102" selection-end-column="15" />
<folding />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
@@ -53,6 +85,24 @@
</list>
</option>
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>com.yuekong.sirius.ircoderobot</find>
<find>yuekong</find>
<find>ucon</find>
<find>UCON</find>
<find>yk</find>
</findStrings>
<replaceStrings>
<replace>com.irext.reverser</replace>
<replace>irext</replace>
<replace>IREXT</replace>
</replaceStrings>
<dirStrings>
<dir>D:\Project\Github_Work\irext\src\ir_reverser\src\com\irext\reverser</dir>
<dir>D:\Project\Github_Work\irext\src\ir_reverser</dir>
</dirStrings>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/../.." />
</component>
@@ -92,6 +142,10 @@
<option value="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/SiriusCodeRobot.java" />
<option value="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/robot/RemoteEncoder.java" />
<option value="$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/robot/RemoteIndexGenerator.java" />
<option value="$PROJECT_DIR$/src/com/irext/reverser/IRextReverser.java" />
<option value="$PROJECT_DIR$/src/META-INF/MANIFEST.MF" />
<option value="$PROJECT_DIR$/src/com/irext/reverser/robot/RemoteIndexGenerator.java" />
<option value="$PROJECT_DIR$/src/com/irext/reverser/robot/RemoteEncoder.java" />
</list>
</option>
</component>
@@ -114,8 +168,8 @@
<component name="ProjectFrameBounds">
<option name="x" value="-8" />
<option name="y" value="-8" />
<option name="width" value="1382" />
<option name="height" value="754" />
<option name="width" value="1696" />
<option name="height" value="1035" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectView">
@@ -134,16 +188,25 @@
</navigator>
<panes>
<pane id="Scope" />
<pane id="Scratches" />
<pane id="ProjectPane">
<subPane>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="code_robot" />
<option name="myItemId" value="ir_reverser" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="code_robot" />
<option name="myItemId" value="ir_reverser" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="ir_reverser" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="ir_reverser" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
@@ -153,17 +216,48 @@
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="code_robot" />
<option name="myItemId" value="ir_reverser" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="code_robot" />
<option name="myItemId" value="ir_reverser" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="src" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="reverser" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="ir_reverser" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="ir_reverser" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="src" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="reverser" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="robot" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
</subPane>
</pane>
<pane id="PackagesPane" />
<pane id="Scratches" />
</panes>
</component>
<component name="PropertiesComponent">
@@ -176,6 +270,8 @@
<property name="project.structure.side.proportion" value="0.2" />
<property name="settings.editor.selected.configurable" value="configurable.group.editor" />
<property name="settings.editor.splitter.proportion" value="0.22890484" />
<property name="nodejs_interpreter_path" value="C:/Program Files/nodejs/node" />
<property name="js.eslint.eslintPackage" value="" />
</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
@@ -190,6 +286,34 @@
<predefined_log_file id="idea.log" enabled="true" />
<method />
</configuration>
<configuration default="true" type="AndroidRunConfigurationType" factoryName="Android App">
<module name="" />
<option name="DEPLOY" value="true" />
<option name="ARTIFACT_NAME" value="" />
<option name="PM_INSTALL_OPTIONS" value="" />
<option name="ACTIVITY_EXTRA_FLAGS" value="" />
<option name="MODE" value="default_activity" />
<option name="TARGET_SELECTION_MODE" value="SHOW_DIALOG" />
<option name="PREFERRED_AVD" value="" />
<option name="CLEAR_LOGCAT" value="false" />
<option name="SHOW_LOGCAT_AUTOMATICALLY" value="false" />
<option name="SKIP_NOOP_APK_INSTALLATIONS" value="true" />
<option name="FORCE_STOP_RUNNING_APP" value="true" />
<option name="DEBUGGER_TYPE" value="Java" />
<option name="USE_LAST_SELECTED_DEVICE" value="false" />
<option name="PREFERRED_AVD" value="" />
<Java />
<Profilers>
<option name="ENABLE_ADVANCED_PROFILING" value="true" />
<option name="GAPID_ENABLED" value="false" />
<option name="GAPID_DISABLE_PCS" value="false" />
<option name="SUPPORT_LIB_ENABLED" value="true" />
<option name="INSTRUMENTATION_ENABLED" value="true" />
</Profilers>
<option name="DEEP_LINK" value="" />
<option name="ACTIVITY_CLASS" value="" />
<method />
</configuration>
<configuration default="true" type="AndroidTestRunConfigurationType" factoryName="Android Tests">
<module name="" />
<option name="TESTING_TYPE" value="0" />
@@ -441,6 +565,12 @@
<envs />
<method />
</configuration>
<configuration default="true" type="JavaScriptTestRunnerProtractor" factoryName="Protractor">
<config-file value="" />
<node-interpreter value="project" />
<envs />
<method />
</configuration>
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
<method />
</configuration>
@@ -521,7 +651,7 @@
<method />
</configuration>
<configuration default="true" type="js.build_tools.npm" factoryName="npm">
<command value="run-script" />
<command value="run" />
<scripts />
<node-interpreter value="project" />
<envs />
@@ -536,7 +666,7 @@
<configuration default="false" name="sirius_code_robot" type="Application" factoryName="Application">
<output_file path="D:/1.txt" is_save="true" />
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<option name="MAIN_CLASS_NAME" value="com.yuekong.sirius.ircoderobot.SiriusCodeRobot" />
<option name="MAIN_CLASS_NAME" value="com.yuekong.sirius.ircoderobot.IRextReverser" />
<option name="VM_PARAMETERS" value="" />
<option name="PROGRAM_PARAMETERS" value="0 D:\Project\Lab_Work\sirius\sirius_code_extension\SourceDB D:\Project\Lab_Work\sirius\sirius_code_extension\SourceDB\yuekong_ac_i localhost sirius_generic root root" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />
@@ -661,15 +791,16 @@
<workItem from="1479874953534" duration="117000" />
<workItem from="1479993533008" duration="278000" />
<workItem from="1480403573630" duration="74000" />
<workItem from="1484047018105" duration="283000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="260376000" />
<option name="totallyTimeSpent" value="260659000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1382" height="754" extended-state="6" />
<editor active="false" />
<frame x="-8" y="-8" width="1696" height="1035" extended-state="6" />
<editor active="true" />
<layout>
<window_info id="Palette" 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="3" side_tool="false" content_ui="tabs" />
<window_info id="TODO" 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="6" side_tool="false" content_ui="tabs" />
@@ -679,27 +810,27 @@
<window_info id="Capture Analysis" 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="3" side_tool="false" content_ui="tabs" />
<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.7334071" sideWeight="0.5021322" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32995737" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<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="7" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.57522124" sideWeight="0.4978678" order="2" side_tool="false" content_ui="tabs" />
<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="7" side_tool="false" content_ui="tabs" />
<window_info id="Properties" 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="4" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32964602" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Capture Tool" active="false" anchor="left" 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" />
<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="3" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.16544656" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.1405868" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="Database" 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="3" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.20022884" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<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" />
<window_info id="Ant Build" active="false" anchor="right" 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" />
<window_info id="UI Designer" active="false" anchor="left" 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" />
<window_info id="Theme 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="4" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Message" 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="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32853982" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32743362" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
</layout>
</component>
<component name="TypeScriptGeneratedFilesManager">
@@ -725,34 +856,6 @@
<option name="FILTER_TARGETS" value="false" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/model/SPStbRel.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="80">
<caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/model/City.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="208">
<caret line="16" column="0" lean-forward="false" selection-start-line="16" selection-start-column="0" selection-end-line="16" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/model/BrandRemoteRel.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1152">
<caret line="97" column="43" lean-forward="false" selection-start-line="97" selection-start-column="43" selection-end-line="97" selection-end-column="43" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/model/Category.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="560">
<caret line="38" column="33" lean-forward="false" selection-start-line="38" selection-start-column="33" selection-end-line="38" selection-end-column="33" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/com/yuekong/sirius/ircoderobot/SiriusCodeRobot.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
@@ -1034,6 +1137,40 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/META-INF/MANIFEST.MF">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="16">
<caret line="1" column="44" lean-forward="false" selection-start-line="1" selection-start-column="44" selection-end-line="1" selection-end-column="44" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/com/irext/reverser/IRextReverser.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="48">
<caret line="3" column="2" lean-forward="true" selection-start-line="3" selection-start-column="2" selection-end-line="3" selection-end-column="2" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/com/irext/reverser/robot/RemoteIndexGenerator.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="223">
<caret line="102" column="15" lean-forward="false" selection-start-line="102" selection-start-column="15" selection-end-line="102" selection-end-column="15" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/com/irext/reverser/robot/RemoteEncoder.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="503">
<caret line="71" column="30" lean-forward="true" selection-start-line="71" selection-start-column="30" selection-end-line="71" selection-end-column="30" />
<folding />
</state>
</provider>
</entry>
</component>
<component name="masterDetails">
<states>

View File

@@ -1,3 +1,3 @@
Manifest-Version: 1.0
Main-Class: com.yuekong.sirius.ircoderobot.SiriusCodeRobot
Main-Class: com.irext.reverser.IRextReverser

View File

@@ -1,16 +1,16 @@
/*
* Created by strawmanbobi
* 2016-07-18
* 2017-01-10
*
* Sirius IRDA code generating robot
* IR reverse engineering robot for IREXT
*/
package com.yuekong.sirius.ircoderobot;
package com.irext.reverser;
import com.yuekong.sirius.ircoderobot.robot.RemoteEncoder;
import com.yuekong.sirius.ircoderobot.robot.RemoteIndexGenerator;
import com.irext.reverser.robot.RemoteEncoder;
import com.irext.reverser.robot.RemoteIndexGenerator;
public class SiriusCodeRobot {
public class IRextReverser {
private final static int FUNCTION_GENERATE_REMOTE_INDEX = 0;
private final static int FUNCTION_GENERATE_REMOTE_BINARY = 1;
@@ -25,7 +25,7 @@ public class SiriusCodeRobot {
case FUNCTION_GENERATE_REMOTE_INDEX: {
if (7 != args.length) {
System.out.println("invalid parameter");
System.out.println("Please call this method like SiriusCodeRobot [function_code = 0] " +
System.out.println("Please call this method like IRextReverser [function_code = 0] " +
"[source_xml_file_base] [ac_bin_file_base] [db_host] [db_name] [db_user] " +
"[db_password]");
return;
@@ -47,7 +47,7 @@ public class SiriusCodeRobot {
case FUNCTION_GENERATE_REMOTE_BINARY: {
if (10 != args.length) {
System.out.println("invalid parameter");
System.out.println("Please call this method like SiriusCodeRobot [function_code = 1] " +
System.out.println("Please call this method like IRextReverser [function_code = 1] " +
"[source_xml_file_base] [output_xml_file_base] [encoder_python_file] " +
"[encoder_python_base] [output_bin_file_base] [db_host] [db_name] [db_user] " +
"[db_password]");

View File

@@ -3,7 +3,7 @@
* 2016-07-18
*/
package com.yuekong.sirius.ircoderobot.model;
package com.irext.reverser.model;
public class Brand {

View File

@@ -3,7 +3,7 @@
* 2016-07-18
*/
package com.yuekong.sirius.ircoderobot.model;
package com.irext.reverser.model;
public class BrandCategoryRel {

View File

@@ -3,7 +3,7 @@
* 2015-07-18
*/
package com.yuekong.sirius.ircoderobot.model;
package com.irext.reverser.model;
public class BrandRemoteRel {

View File

@@ -3,7 +3,7 @@
* 2015-07-18
*/
package com.yuekong.sirius.ircoderobot.model;
package com.irext.reverser.model;
public class Category {

View File

@@ -3,7 +3,7 @@
* 2016-07-18
*/
package com.yuekong.sirius.ircoderobot.model;
package com.irext.reverser.model;
public class City {

View File

@@ -3,7 +3,7 @@
* 2015-07-26
*/
package com.yuekong.sirius.ircoderobot.model;
package com.irext.reverser.model;
import java.util.List;

View File

@@ -3,7 +3,7 @@
* 2016-08-05
*/
package com.yuekong.sirius.ircoderobot.model;
package com.irext.reverser.model;
public class KeyInstance {

View File

@@ -3,7 +3,7 @@
* 2016-07-18
*/
package com.yuekong.sirius.ircoderobot.model;
package com.irext.reverser.model;
public class KeyTemplate {

View File

@@ -3,7 +3,7 @@
* 2016-07-18
*/
package com.yuekong.sirius.ircoderobot.model;
package com.irext.reverser.model;
public class Operator {

View File

@@ -3,7 +3,7 @@
* 2016-07-20
*/
package com.yuekong.sirius.ircoderobot.model;
package com.irext.reverser.model;
public class RemoteIndex {

View File

@@ -3,7 +3,7 @@
* 2016-08-05
*/
package com.yuekong.sirius.ircoderobot.model;
package com.irext.reverser.model;
import java.util.List;

View File

@@ -3,7 +3,7 @@
* 2016-07-22
*/
package com.yuekong.sirius.ircoderobot.model;
package com.irext.reverser.model;
import java.util.List;

View File

@@ -3,7 +3,7 @@
* 2015-07-20
*/
package com.yuekong.sirius.ircoderobot.model;
package com.irext.reverser.model;
public class SPStbRel {

View File

@@ -3,12 +3,12 @@
* 2016-08-01
*/
package com.yuekong.sirius.ircoderobot.robot;
package com.irext.reverser.robot;
import com.mysql.jdbc.Connection;
import com.mysql.jdbc.PreparedStatement;
import com.yuekong.sirius.ircoderobot.model.KeyInstance;
import com.yuekong.sirius.ircoderobot.model.RemoteInstance;
import com.irext.reverser.model.KeyInstance;
import com.irext.reverser.model.RemoteInstance;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
@@ -51,14 +51,14 @@ public class RemoteEncoder {
private static final String NODE_REMOTE_KEY_ID = "id";
private static final String NODE_REMOTE_KEY_PULSE = "pulse";
private static final String EX_NODE_UCON_DOCUMENT = "DOCUMENT";
private static final String EX_NODE_UCON_REMOTE = "remote_controller";
private static final String EX_NODE_UCON_ID = "id";
private static final String EX_NODE_UCON_EXTS = "exts";
private static final String EX_NODE_UCON_EXT = "ext";
private static final String EX_NODE_UCON_TAG = "tag";
private static final String EX_NODE_UCON_TAG_VALUE = "value";
private static final String EX_NODE_UCON_TAG_TYPE = "type";
private static final String EX_NODE_IREXT_DOCUMENT = "DOCUMENT";
private static final String EX_NODE_IREXT_REMOTE = "remote_controller";
private static final String EX_NODE_IREXT_ID = "id";
private static final String EX_NODE_IREXT_EXTS = "exts";
private static final String EX_NODE_IREXT_EXT = "ext";
private static final String EX_NODE_IREXT_TAG = "tag";
private static final String EX_NODE_IREXT_TAG_VALUE = "value";
private static final String EX_NODE_IREXT_TAG_TYPE = "type";
// connection and data source base
private String sourceXmlFileBasePath;
@@ -205,29 +205,29 @@ public class RemoteEncoder {
DocumentBuilder builder = factory.newDocumentBuilder();
Document remoteDocument = builder.newDocument();
remoteDocument.setXmlVersion("1.0");
Element remoteRoot = remoteDocument.createElement(EX_NODE_UCON_DOCUMENT);
Element remoteRoot = remoteDocument.createElement(EX_NODE_IREXT_DOCUMENT);
remoteDocument.appendChild(remoteRoot);
Element remoteControllerElement = remoteDocument.createElement(EX_NODE_UCON_REMOTE);
Element remoteControllerElement = remoteDocument.createElement(EX_NODE_IREXT_REMOTE);
remoteRoot.appendChild(remoteControllerElement);
Element idElement = remoteDocument.createElement(EX_NODE_UCON_ID);
Element idElement = remoteDocument.createElement(EX_NODE_IREXT_ID);
idElement.setTextContent(String.valueOf(remoteInstance.getmRemoteTemplateID()));
remoteControllerElement.appendChild(idElement);
Element extsElement = remoteDocument.createElement(EX_NODE_UCON_EXTS);
Element extsElement = remoteDocument.createElement(EX_NODE_IREXT_EXTS);
remoteControllerElement.appendChild(extsElement);
List<KeyInstance> keyInstanceList = remoteInstance.getmKeyInstanceList();
if (null != keyInstanceList) {
System.out.println("Will add " + keyInstanceList.size() + " keys to this remote");
for (KeyInstance keyInstance : keyInstanceList) {
Element extElement = remoteDocument.createElement(EX_NODE_UCON_EXT);
Element tagElement = remoteDocument.createElement(EX_NODE_UCON_TAG);
Element extElement = remoteDocument.createElement(EX_NODE_IREXT_EXT);
Element tagElement = remoteDocument.createElement(EX_NODE_IREXT_TAG);
tagElement.setTextContent(String.valueOf(keyInstance.getmKeyTemplateID()));
Element tagValueElement = remoteDocument.createElement(EX_NODE_UCON_TAG_VALUE);
Element tagValueElement = remoteDocument.createElement(EX_NODE_IREXT_TAG_VALUE);
tagValueElement.setTextContent(String.valueOf(keyInstance.getmKeyValue()));
Element tagTypeElement = remoteDocument.createElement(EX_NODE_UCON_TAG_TYPE);
Element tagTypeElement = remoteDocument.createElement(EX_NODE_IREXT_TAG_TYPE);
tagTypeElement.setTextContent(String.valueOf(keyInstance.getmKeyType()));
extElement.appendChild(tagElement);
@@ -257,7 +257,7 @@ public class RemoteEncoder {
////////// step 5 - compress key-tag files into binary with dynamic python encoder //////////
// collect output files
// NOTE: skip step 5 for UCON SIRIUS
// NOTE: skip step 5 for IREXT SIRIUS
/*
System.out.println("collecting output xml files...");
getXMLSourceFiles(outputXmlFileBasePath);

View File

@@ -3,12 +3,12 @@
* 2016-07-20
*/
package com.yuekong.sirius.ircoderobot.robot;
package com.irext.reverser.robot;
import com.mysql.jdbc.Connection;
import com.mysql.jdbc.PreparedStatement;
import com.mysql.jdbc.ResultSet;
import com.yuekong.sirius.ircoderobot.model.*;
import com.irext.reverser.model.*;
import org.w3c.dom.*;
import javax.xml.parsers.DocumentBuilder;
@@ -100,9 +100,9 @@ public class RemoteIndexGenerator {
private static final String NODE_REMOTE_KEY_ID = "id";
private static final String NODE_REMOTE_KEY_PULSE = "pulse";
// kookong-ucon cateogry mapping
// the index of array indicates kookong device type ID while the value of array indicates UCONs'
// NOTE: IPTV in UCON remote index system is separated from STB, so it should not be in this table
// kookong-irext cateogry mapping
// the index of array indicates kookong device type ID while the value of array indicates IREXTs'
// NOTE: IPTV in IREXT remote index system is separated from STB, so it should not be in this table
private static final int[] catetoryMapping = {
3, // STB
5, // IPTV
@@ -834,14 +834,14 @@ public class RemoteIndexGenerator {
brandRemoteRel.getmKookongBrandID())) {
// count this brand only if it hasn't been counted yet
int uconCategoryID = getUCONCategoryIDFromCategory(category.getmKookongCategoryID());
String uconCategoryName = getUCONCategoryNameFromCategory(category.getmKookongCategoryID());
System.out.println(uconCategoryID + ", " + uconCategoryName + ", " +
int irextCategoryID = getIREXTCategoryIDFromCategory(category.getmKookongCategoryID());
String irextCategoryName = getIREXTCategoryNameFromCategory(category.getmKookongCategoryID());
System.out.println(irextCategoryID + ", " + irextCategoryName + ", " +
brand.getmBrandName() + ", rank = " + brandRemoteRel.getmPriority());
// insert this brand into brand table
String sqlString = "SELECT * FROM brand WHERE brand_id = " +
"'" + brand.getmKookongBrandID() + "' AND category_id = '" + uconCategoryID + "';";
"'" + brand.getmKookongBrandID() + "' AND category_id = '" + irextCategoryID + "';";
PreparedStatement statement = (PreparedStatement) mConnection.prepareStatement(sqlString);
ResultSet resultSet = (ResultSet) statement.executeQuery();
if(resultSet.next()) {
@@ -860,8 +860,8 @@ public class RemoteIndexGenerator {
(PreparedStatement) mConnection.prepareStatement(innerSqlString);
innerStatement.setInt(1, brand.getmKookongBrandID());
innerStatement.setString(2, brand.getmBrandName());
innerStatement.setInt(3, uconCategoryID);
innerStatement.setString(4, uconCategoryName);
innerStatement.setInt(3, irextCategoryID);
innerStatement.setString(4, irextCategoryName);
innerStatement.setInt(5, 1);
innerStatement.setString(6, "2016-07-26 17:00:00");
innerStatement.setInt(7, brandRemoteRel.getmPriority());
@@ -912,7 +912,7 @@ public class RemoteIndexGenerator {
int priority = spStbRel.getmPriority();
String appliedVersion = "V0.0.0";
String bannedVersion = "V99.0.0";
String inputSource = "CodeRobot_V1.0@ucon";
String inputSource = "CodeRobot_V1.0@irext";
String sqlString = "SELECT * FROM remote_index WHERE category_id = 3 AND city_code = '" + cityCode +
"' AND operator_id = '" + operatorID + "' AND remote_template_id = '" + remoteTemplateID + "';";
@@ -985,9 +985,9 @@ public class RemoteIndexGenerator {
int priority = (remoteIndexCountForIPTVperBrand + 1) * 10;
String appliedVersion = "V0.0.0";
String bannedVersion = "V99.0.0";
String inputSource = "CodeRobot_V1.0@ucon";
String inputSource = "CodeRobot_V1.0@irext";
// NOTE: brandID in remote_index table indicates the id of UCON brand
// NOTE: brandID in remote_index table indicates the id of IREXT brand
String sqlString = "SELECT * FROM remote_index WHERE category_id = 5 AND brand_id = '" + brandID +
"' AND remote_template_id = '" + remoteTemplateID + "';";
PreparedStatement statement = (PreparedStatement) mConnection.prepareStatement(sqlString);
@@ -1054,12 +1054,12 @@ public class RemoteIndexGenerator {
int remoteTemplateID = brandRemoteRel.getmKookongRemoteID();
if (5 == kookongCategoryID) {
if (false == isInIntArray(mValidACIDList, remoteTemplateID, mValidACIDList.length)) {
System.out.println("This AC is invalid for UCON : " + remoteTemplateID);
System.out.println("This AC is invalid for IREXT : " + remoteTemplateID);
continue;
}
}
int categoryID = getUCONCategoryIDFromCategory(kookongCategoryID);
String categoryName = getUCONCategoryNameFromCategory(kookongCategoryID);
int categoryID = getIREXTCategoryIDFromCategory(kookongCategoryID);
String categoryName = getIREXTCategoryNameFromCategory(kookongCategoryID);
int kookongBrandID = brandRemoteRel.getmKookongBrandID();
String brandName = "";
int brandID = 0;
@@ -1078,9 +1078,9 @@ public class RemoteIndexGenerator {
int priority = brandRemoteRel.getmPriority();
String appliedVersion = "V0.0.0";
String bannedVersion = "V99.0.0";
String inputSource = "CodeRobot_V1.0@ucon";
String inputSource = "CodeRobot_V1.0@irext";
// NOTE: brandID in remote_index table indicates the id of UCON brand
// NOTE: brandID in remote_index table indicates the id of IREXT brand
String sqlString = "SELECT * FROM remote_index WHERE category_id = '" + categoryID +"'" +
" AND brand_id = '" + brandID + "' AND remote_template_id = '" + remoteTemplateID + "';";
PreparedStatement statement = (PreparedStatement) mConnection.prepareStatement(sqlString);
@@ -1263,7 +1263,7 @@ public class RemoteIndexGenerator {
}
}
System.out.println(remoteIndexCount + " remote index found by category " +
getUCONCategoryNameFromCategory(categoryID));
getIREXTCategoryNameFromCategory(categoryID));
// have some debug on key hits
for (KeyTemplate keyTemplate : mKeyTemplateList) {
@@ -1380,11 +1380,11 @@ public class RemoteIndexGenerator {
return false;
}
private int getUCONCategoryIDFromCategory(int kookongCategoryID) {
private int getIREXTCategoryIDFromCategory(int kookongCategoryID) {
return catetoryMapping[kookongCategoryID];
}
private String getUCONCategoryNameFromCategory(int kookongCategoryID) {
private String getIREXTCategoryNameFromCategory(int kookongCategoryID) {
return categoryNameMapping[kookongCategoryID];
}

View File

@@ -2,7 +2,7 @@
* Created by Strawmanbobi on 2015-08-30.
*/
package com.yuekong.sirius.ircoderobot.utils;
package com.irext.reverser.utils;
import java.text.*;
import java.util.Calendar;