├── modules ├── GUI │ ├── apl-client │ │ ├── Bimap.d.ts │ │ ├── APLAction.d.ts │ │ ├── APLContext.d.ts │ │ ├── APLEvent.d.ts │ │ ├── APLRadii.d.ts │ │ ├── APLRect.d.ts │ │ ├── APLComponent.d.ts │ │ ├── @types │ │ │ └── apl-html │ │ │ │ └── lib │ │ │ │ ├── assets │ │ │ │ └── css │ │ │ │ │ └── fonts.css.d.ts │ │ │ │ ├── AudioPlayerWrapper.d.ts │ │ │ │ ├── logging │ │ │ │ ├── LogLevel.d.ts │ │ │ │ ├── LogTransport.d.ts │ │ │ │ ├── LoggerFactory.d.ts │ │ │ │ └── ILogger.d.ts │ │ │ │ ├── CommandFactory.d.ts │ │ │ │ ├── components │ │ │ │ ├── text │ │ │ │ │ └── MeasureMode.d.ts │ │ │ │ ├── avg │ │ │ │ │ ├── Path.d.ts │ │ │ │ │ ├── Group.d.ts │ │ │ │ │ ├── AVG.d.ts │ │ │ │ │ └── VectorGraphic.d.ts │ │ │ │ ├── video │ │ │ │ │ ├── IVideoFactory.d.ts │ │ │ │ │ ├── VideoFactory.d.ts │ │ │ │ │ └── VideoHolder.d.ts │ │ │ │ ├── Container.d.ts │ │ │ │ ├── ActionableComponent.d.ts │ │ │ │ ├── ScrollView.d.ts │ │ │ │ ├── TouchWrapper.d.ts │ │ │ │ ├── Frame.d.ts │ │ │ │ └── Sequence.d.ts │ │ │ │ ├── media │ │ │ │ ├── IMediaEventListener.d.ts │ │ │ │ ├── audio │ │ │ │ │ ├── DefaultAudioPlayer.d.ts │ │ │ │ │ ├── AudioContextProvider.d.ts │ │ │ │ │ ├── SpeechMarks.d.ts │ │ │ │ │ ├── AudioPlayer.d.ts │ │ │ │ │ └── IAudioEventListener.d.ts │ │ │ │ ├── video │ │ │ │ │ ├── HLSVideoPlayer.d.ts │ │ │ │ │ └── VideoPlayer.d.ts │ │ │ │ ├── IMediaSource.d.ts │ │ │ │ ├── PlaybackManager.d.ts │ │ │ │ ├── IPlayer.d.ts │ │ │ │ └── Resource.d.ts │ │ │ │ ├── dts │ │ │ │ ├── Radii.d.ts │ │ │ │ ├── Rect.d.ts │ │ │ │ ├── Logger.d.ts │ │ │ │ ├── StyledText.d.ts │ │ │ │ ├── Keyboard.d.ts │ │ │ │ ├── GraphicElement.d.ts │ │ │ │ ├── Action.d.ts │ │ │ │ ├── Graphic.d.ts │ │ │ │ ├── Event.d.ts │ │ │ │ ├── Content.d.ts │ │ │ │ └── Component.d.ts │ │ │ │ ├── utils │ │ │ │ ├── FontUtils.d.ts │ │ │ │ └── SoftRandom.d.ts │ │ │ │ ├── enums │ │ │ │ ├── FilterType.d.ts │ │ │ │ ├── FontStyle.d.ts │ │ │ │ ├── Position.d.ts │ │ │ │ ├── VideoScale.d.ts │ │ │ │ ├── NoiseFilterKind.d.ts │ │ │ │ ├── CommandPosition.d.ts │ │ │ │ ├── ContainerDirection.d.ts │ │ │ │ ├── ScrollDirection.d.ts │ │ │ │ ├── CommandHighlightMode.d.ts │ │ │ │ ├── AudioTrack.d.ts │ │ │ │ ├── AnimationQuality.d.ts │ │ │ │ ├── LogLevel.d.ts │ │ │ │ ├── TextAlign.d.ts │ │ │ │ ├── Navigation.d.ts │ │ │ │ ├── CommandAudioTrack.d.ts │ │ │ │ ├── GradientType.d.ts │ │ │ │ ├── ImageScale.d.ts │ │ │ │ ├── TextAlignVertical.d.ts │ │ │ │ ├── CommandScrollAlign.d.ts │ │ │ │ ├── VectorGraphicScale.d.ts │ │ │ │ ├── FlexboxAlign.d.ts │ │ │ │ ├── FlexboxJustifyContent.d.ts │ │ │ │ ├── ImageAlign.d.ts │ │ │ │ ├── CommandControlMedia.d.ts │ │ │ │ ├── ComponentType.d.ts │ │ │ │ ├── VectorGraphicAlign.d.ts │ │ │ │ ├── EventProperty.d.ts │ │ │ │ ├── CommandType.d.ts │ │ │ │ ├── GraphicPropertyKey.d.ts │ │ │ │ └── UpdateType.d.ts │ │ │ │ ├── ComponentFactory.d.ts │ │ │ │ └── Content.d.ts │ │ ├── avg │ │ │ ├── GraphicProperties.d.ts │ │ │ ├── APLGraphicElement.d.ts │ │ │ └── APLGraphic.d.ts │ │ ├── package.json │ │ ├── index.d.ts │ │ ├── WebSocketClient.d.ts │ │ ├── APLWSRenderer.d.ts │ │ └── Transforms.d.ts │ ├── js │ │ ├── .gitignore │ │ ├── src │ │ │ ├── assets │ │ │ │ └── horizontal_RGB_color_whitetext.png │ │ │ ├── lib │ │ │ │ ├── config │ │ │ │ │ └── visualCharacteristics │ │ │ │ │ │ ├── IVideo.ts │ │ │ │ │ │ ├── IWindowState.ts │ │ │ │ │ │ ├── IInteractionMode.ts │ │ │ │ │ │ ├── IVisualCharacteristics.ts │ │ │ │ │ │ ├── IDisplayWindow.ts │ │ │ │ │ │ └── IDeviceDisplay.ts │ │ │ │ ├── displayCards │ │ │ │ │ ├── AVSDisplayCards.json │ │ │ │ │ └── AVSDisplayCardSupportedViewports.json │ │ │ │ ├── focus │ │ │ │ │ ├── IFocusBridge.ts │ │ │ │ │ ├── IChannelObserver.ts │ │ │ │ │ ├── FocusResource.ts │ │ │ │ │ ├── FocusState.ts │ │ │ │ │ └── ChannelName.ts │ │ │ │ ├── messages │ │ │ │ │ └── NavigationEvent.ts │ │ │ │ ├── utils │ │ │ │ │ └── timer.ts │ │ │ │ └── activity │ │ │ │ │ └── ActivityEvent.ts │ │ │ ├── components │ │ │ │ ├── aplRendererWindow.css │ │ │ │ ├── voiceChrome.css │ │ │ │ └── sampleHome.css │ │ │ ├── main.tsx │ │ │ └── main.css │ │ ├── typings.d.ts │ │ ├── tsconfig.json │ │ └── package.json │ ├── config │ │ ├── certificates │ │ │ ├── cert_settings.cnf │ │ │ ├── ca_settings.cnf │ │ │ └── generate.sh │ │ └── StartSample.sh │ └── CMakeLists.txt ├── Alexa │ ├── ThirdParty │ │ ├── googletest-release-1.8.0 │ │ │ ├── googlemock │ │ │ │ ├── build-aux │ │ │ │ │ └── .keep │ │ │ │ ├── scripts │ │ │ │ │ └── generator │ │ │ │ │ │ ├── cpp │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ └── utils.py │ │ │ │ │ │ ├── gmock_gen.py │ │ │ │ │ │ └── README │ │ │ │ ├── include │ │ │ │ │ └── gmock │ │ │ │ │ │ └── internal │ │ │ │ │ │ └── custom │ │ │ │ │ │ ├── gmock-generated-actions.h │ │ │ │ │ │ └── gmock-generated-actions.h.pump │ │ │ │ ├── msvc │ │ │ │ │ ├── 2005 │ │ │ │ │ │ └── gmock_config.vsprops │ │ │ │ │ ├── 2010 │ │ │ │ │ │ └── gmock_config.props │ │ │ │ │ └── 2015 │ │ │ │ │ │ └── gmock_config.props │ │ │ │ ├── docs │ │ │ │ │ ├── Documentation.md │ │ │ │ │ ├── v1_5 │ │ │ │ │ │ └── Documentation.md │ │ │ │ │ ├── v1_6 │ │ │ │ │ │ └── Documentation.md │ │ │ │ │ └── v1_7 │ │ │ │ │ │ └── Documentation.md │ │ │ │ └── CONTRIBUTORS │ │ │ ├── googletest │ │ │ │ ├── build-aux │ │ │ │ │ └── .keep │ │ │ │ ├── .gitignore │ │ │ │ ├── xcode │ │ │ │ │ ├── Config │ │ │ │ │ │ ├── TestTarget.xcconfig │ │ │ │ │ │ ├── FrameworkTarget.xcconfig │ │ │ │ │ │ ├── StaticLibraryTarget.xcconfig │ │ │ │ │ │ ├── DebugProject.xcconfig │ │ │ │ │ │ ├── ReleaseProject.xcconfig │ │ │ │ │ │ └── General.xcconfig │ │ │ │ │ ├── Samples │ │ │ │ │ │ └── FrameworkSample │ │ │ │ │ │ │ └── Info.plist │ │ │ │ │ └── Resources │ │ │ │ │ │ └── Info.plist │ │ │ │ ├── docs │ │ │ │ │ ├── V1_5_Documentation.md │ │ │ │ │ ├── Documentation.md │ │ │ │ │ ├── V1_6_Documentation.md │ │ │ │ │ ├── V1_7_Documentation.md │ │ │ │ │ ├── Samples.md │ │ │ │ │ ├── V1_6_Samples.md │ │ │ │ │ └── V1_7_Samples.md │ │ │ │ └── CONTRIBUTORS │ │ │ ├── .gitignore │ │ │ ├── travis.sh │ │ │ └── CMakeLists.txt │ │ ├── rapidjson │ │ │ ├── rapidjson-1.1.0 │ │ │ │ ├── bin │ │ │ │ │ ├── jsonchecker │ │ │ │ │ │ ├── fail29.json │ │ │ │ │ │ ├── fail30.json │ │ │ │ │ │ ├── fail16.json │ │ │ │ │ │ ├── fail31.json │ │ │ │ │ │ ├── fail33.json │ │ │ │ │ │ ├── fail4.json │ │ │ │ │ │ ├── fail8.json │ │ │ │ │ │ ├── fail2.json │ │ │ │ │ │ ├── fail23.json │ │ │ │ │ │ ├── fail24.json │ │ │ │ │ │ ├── fail27.json │ │ │ │ │ │ ├── fail28.json │ │ │ │ │ │ ├── fail19.json │ │ │ │ │ │ ├── fail20.json │ │ │ │ │ │ ├── fail5.json │ │ │ │ │ │ ├── fail6.json │ │ │ │ │ │ ├── fail7.json │ │ │ │ │ │ ├── fail9.json │ │ │ │ │ │ ├── fail11.json │ │ │ │ │ │ ├── fail25.json │ │ │ │ │ │ ├── fail12.json │ │ │ │ │ │ ├── fail14.json │ │ │ │ │ │ ├── fail15.json │ │ │ │ │ │ ├── fail17.json │ │ │ │ │ │ ├── fail21.json │ │ │ │ │ │ ├── fail22.json │ │ │ │ │ │ ├── fail26.json │ │ │ │ │ │ ├── fail3.json │ │ │ │ │ │ ├── fail32.json │ │ │ │ │ │ ├── fail13.json │ │ │ │ │ │ ├── fail18.json │ │ │ │ │ │ ├── pass2.json │ │ │ │ │ │ ├── fail1.json │ │ │ │ │ │ ├── fail10.json │ │ │ │ │ │ ├── pass3.json │ │ │ │ │ │ └── readme.txt │ │ │ │ │ ├── types │ │ │ │ │ │ ├── readme.txt │ │ │ │ │ │ ├── nulls.json │ │ │ │ │ │ └── booleans.json │ │ │ │ │ ├── data │ │ │ │ │ │ ├── readme.txt │ │ │ │ │ │ ├── glossary.json │ │ │ │ │ │ ├── widget.json │ │ │ │ │ │ └── menu.json │ │ │ │ │ └── encodings │ │ │ │ │ │ ├── utf16be.json │ │ │ │ │ │ ├── utf16le.json │ │ │ │ │ │ ├── utf32be.json │ │ │ │ │ │ ├── utf32le.json │ │ │ │ │ │ ├── utf16bebom.json │ │ │ │ │ │ ├── utf16lebom.json │ │ │ │ │ │ ├── utf32bebom.json │ │ │ │ │ │ ├── utf32lebom.json │ │ │ │ │ │ ├── utf8.json │ │ │ │ │ │ └── utf8bom.json │ │ │ │ ├── include_dirs.js │ │ │ │ ├── .gitmodules │ │ │ │ ├── doc │ │ │ │ │ ├── diagram │ │ │ │ │ │ ├── move1.png │ │ │ │ │ │ ├── move2.png │ │ │ │ │ │ ├── move3.png │ │ │ │ │ │ ├── simpledom.png │ │ │ │ │ │ ├── tutorial.png │ │ │ │ │ │ ├── architecture.png │ │ │ │ │ │ ├── utilityclass.png │ │ │ │ │ │ ├── insituparsing.png │ │ │ │ │ │ ├── normalparsing.png │ │ │ │ │ │ ├── iterative-parser-states-diagram.png │ │ │ │ │ │ ├── architecture.dot │ │ │ │ │ │ └── move1.dot │ │ │ │ │ ├── logo │ │ │ │ │ │ └── rapidjson.png │ │ │ │ │ ├── misc │ │ │ │ │ │ ├── footer.html │ │ │ │ │ │ └── header.html │ │ │ │ │ ├── npm.md │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ ├── performance.zh-cn.md │ │ │ │ │ └── performance.md │ │ │ │ ├── RapidJSONConfig.cmake.in │ │ │ │ ├── RapidJSON.pc.in │ │ │ │ ├── docker │ │ │ │ │ └── debian │ │ │ │ │ │ └── Dockerfile │ │ │ │ ├── library.json │ │ │ │ ├── RapidJSONConfigVersion.cmake.in │ │ │ │ ├── .gitattributes │ │ │ │ ├── test │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ ├── perftest │ │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ │ └── perftest.cpp │ │ │ │ │ └── unittest │ │ │ │ │ │ └── strfunctest.cpp │ │ │ │ ├── package.json │ │ │ │ ├── example │ │ │ │ │ ├── simpledom │ │ │ │ │ │ └── simpledom.cpp │ │ │ │ │ ├── pretty │ │ │ │ │ │ └── pretty.cpp │ │ │ │ │ ├── condense │ │ │ │ │ │ └── condense.cpp │ │ │ │ │ ├── simplewriter │ │ │ │ │ │ └── simplewriter.cpp │ │ │ │ │ └── CMakeLists.txt │ │ │ │ ├── CMakeModules │ │ │ │ │ └── FindGTestSrc.cmake │ │ │ │ └── appveyor.yml │ │ │ └── CMakeLists.txt │ │ ├── MultipartParser │ │ │ ├── MultipartParser │ │ │ │ ├── .gitignore │ │ │ │ ├── input.txt │ │ │ │ ├── LICENSE │ │ │ │ └── Rakefile │ │ │ └── CMakeLists.txt │ │ ├── .clang-format │ │ ├── bluez-alsa │ │ │ ├── CMakeLists.txt │ │ │ └── bluez-alsa │ │ │ │ ├── a2dp-rtp.h │ │ │ │ └── LICENSE.txt │ │ ├── CMakeLists.txt │ │ └── googletest.cmake │ ├── doc │ │ ├── avs-logo.png │ │ ├── CMakeLists.txt │ │ └── footer.html │ ├── SmartScreenSDKInterfaces │ │ ├── test │ │ │ ├── CMakeLists.txt │ │ │ └── MockMessageSender.h │ │ └── CMakeLists.txt │ ├── SmartScreenCapabilityAgents │ │ ├── AlexaPresentation │ │ │ ├── CMakeLists.txt │ │ │ ├── test │ │ │ │ └── CMakeLists.txt │ │ │ └── src │ │ │ │ └── CMakeLists.txt │ │ ├── TemplateRuntime │ │ │ ├── CMakeLists.txt │ │ │ ├── test │ │ │ │ └── CMakeLists.txt │ │ │ └── src │ │ │ │ └── CMakeLists.txt │ │ ├── VisualCharacteristics │ │ │ ├── CMakeLists.txt │ │ │ ├── test │ │ │ │ └── CMakeLists.txt │ │ │ └── src │ │ │ │ └── CMakeLists.txt │ │ └── CMakeLists.txt │ ├── ApplicationUtilities │ │ ├── Communication │ │ │ └── CMakeLists.txt │ │ ├── SmartScreenClient │ │ │ └── CMakeLists.txt │ │ └── CMakeLists.txt │ ├── Utils │ │ └── CMakeLists.txt │ ├── pkg-config.pc.cmake │ ├── build │ │ └── cmake │ │ │ ├── A4B.cmake │ │ │ ├── TestOptions.cmake │ │ │ ├── GeneratePkgConfig.cmake │ │ │ ├── PCC.cmake │ │ │ ├── MCC.cmake │ │ │ ├── SpeechEncoder.cmake │ │ │ ├── Metrics.cmake │ │ │ ├── CodeCoverage │ │ │ ├── CTestCustom.cmake.template │ │ │ └── preCTest.sh │ │ │ ├── MediaPlayer.cmake │ │ │ ├── FFmpeg.cmake │ │ │ ├── PortAudio.cmake │ │ │ ├── Platforms.cmake │ │ │ ├── Logger.cmake │ │ │ ├── MRM.cmake │ │ │ ├── PackageConfigs.cmake │ │ │ ├── ESP.cmake │ │ │ ├── Comms.cmake │ │ │ ├── Bluetooth.cmake │ │ │ └── Captions.cmake │ ├── SampleApp │ │ ├── CMakeLists.txt │ │ ├── src │ │ │ ├── AplCoreMetrics.cpp │ │ │ └── SampleEqualizerModeController.cpp │ │ └── include │ │ │ └── SampleApp │ │ │ └── SampleApplicationReturnCodes.h │ └── CMakeLists.txt └── CMakeLists.txt ├── CMakeLists.txt └── issue_template.md /modules/GUI/apl-client/Bimap.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/APLAction.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/APLContext.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/APLEvent.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/APLRadii.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/APLRect.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/APLComponent.d.ts: -------------------------------------------------------------------------------- 1 | export { }; 2 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/assets/css/fonts.css.d.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googlemock/build-aux/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/build-aux/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail29.json: -------------------------------------------------------------------------------- 1 | [0e] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail30.json: -------------------------------------------------------------------------------- 1 | [0e+] -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/AudioPlayerWrapper.d.ts: -------------------------------------------------------------------------------- 1 | export { }; 2 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail16.json: -------------------------------------------------------------------------------- 1 | [\naked] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail31.json: -------------------------------------------------------------------------------- 1 | [0e+-1] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/MultipartParser/MultipartParser/.gitignore: -------------------------------------------------------------------------------- 1 | *.dSYM 2 | multipart 3 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail33.json: -------------------------------------------------------------------------------- 1 | ["mismatch"} -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail4.json: -------------------------------------------------------------------------------- 1 | ["extra comma",] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail8.json: -------------------------------------------------------------------------------- 1 | ["Extra close"]] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googlemock/scripts/generator/cpp/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/.gitignore: -------------------------------------------------------------------------------- 1 | # python 2 | *.pyc 3 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail2.json: -------------------------------------------------------------------------------- 1 | ["Unclosed array" -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail23.json: -------------------------------------------------------------------------------- 1 | ["Bad value", truth] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail24.json: -------------------------------------------------------------------------------- 1 | ['single quote'] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail27.json: -------------------------------------------------------------------------------- 1 | ["line 2 | break"] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail28.json: -------------------------------------------------------------------------------- 1 | ["line\ 2 | break"] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore CI build directory 2 | build/ 3 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail19.json: -------------------------------------------------------------------------------- 1 | {"Missing colon" null} -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail20.json: -------------------------------------------------------------------------------- 1 | {"Double colon":: null} -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail5.json: -------------------------------------------------------------------------------- 1 | ["double extra comma",,] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail6.json: -------------------------------------------------------------------------------- 1 | [ , "<-- missing value"] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail7.json: -------------------------------------------------------------------------------- 1 | ["Comma after the close"], -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail9.json: -------------------------------------------------------------------------------- 1 | {"Extra comma": true,} -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail11.json: -------------------------------------------------------------------------------- 1 | {"Illegal expression": 1 + 2} -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail25.json: -------------------------------------------------------------------------------- 1 | [" tab character in string "] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/.clang-format: -------------------------------------------------------------------------------- 1 | --- 2 | Language: Cpp 3 | BasedOnStyle: None 4 | ... 5 | 6 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail12.json: -------------------------------------------------------------------------------- 1 | {"Illegal invocation": alert()} -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail14.json: -------------------------------------------------------------------------------- 1 | {"Numbers cannot be hex": 0x14} -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail15.json: -------------------------------------------------------------------------------- 1 | ["Illegal backslash escape: \x15"] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail17.json: -------------------------------------------------------------------------------- 1 | ["Illegal backslash escape: \017"] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail21.json: -------------------------------------------------------------------------------- 1 | {"Comma instead of colon", null} -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail22.json: -------------------------------------------------------------------------------- 1 | ["Colon instead of comma": false] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail26.json: -------------------------------------------------------------------------------- 1 | ["tab\ character\ in\ string\ "] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail3.json: -------------------------------------------------------------------------------- 1 | {unquoted_key: "keys must be quoted"} -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail32.json: -------------------------------------------------------------------------------- 1 | {"Comma instead if closing brace": true, -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail13.json: -------------------------------------------------------------------------------- 1 | {"Numbers cannot have leading zeroes": 013} -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail18.json: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]] -------------------------------------------------------------------------------- /modules/GUI/js/.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | node_modules 3 | npm-debug.log 4 | **/**/.DS_Store 5 | .vscode 6 | package-lock.json 7 | 8 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/pass2.json: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail1.json: -------------------------------------------------------------------------------- 1 | "A JSON payload should be an object or array, not a string." -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/fail10.json: -------------------------------------------------------------------------------- 1 | {"Extra value after close": true} "misplaced quoted value" -------------------------------------------------------------------------------- /modules/Alexa/doc/avs-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/doc/avs-logo.png -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/bluez-alsa/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1 FATAL_ERROR) 2 | project(BlueZAlsa LANGUAGES CXX) 3 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory("rapidjson") 2 | add_subdirectory("MultipartParser") 3 | add_subdirectory("bluez-alsa") 4 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/MultipartParser/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1 FATAL_ERROR) 2 | project(MultipartParser LANGUAGES CXX) 3 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/logging/LogLevel.d.ts: -------------------------------------------------------------------------------- 1 | export declare type LogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'silent'; 2 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/types/readme.txt: -------------------------------------------------------------------------------- 1 | Test data obtained from https://github.com/xpol/lua-rapidjson/tree/master/performance 2 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/include_dirs.js: -------------------------------------------------------------------------------- 1 | var path = require('path'); 2 | console.log(path.join(path.relative('.', __dirname), 'include')); 3 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/CommandFactory.d.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | export { }; 5 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "thirdparty/gtest"] 2 | path = thirdparty/gtest 3 | url = https://github.com/google/googletest.git 4 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/data/readme.txt: -------------------------------------------------------------------------------- 1 | sample.json is obtained from http://code.google.com/p/json-test-suite/downloads/detail?name=sample.zip 2 | -------------------------------------------------------------------------------- /modules/GUI/js/src/assets/horizontal_RGB_color_whitetext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/GUI/js/src/assets/horizontal_RGB_color_whitetext.png -------------------------------------------------------------------------------- /modules/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1 FATAL_ERROR) 2 | 3 | # Set project information 4 | project(modules LANGUAGES CXX) 5 | 6 | add_subdirectory("Alexa") 7 | add_subdirectory("GUI") -------------------------------------------------------------------------------- /modules/GUI/apl-client/avg/GraphicProperties.d.ts: -------------------------------------------------------------------------------- 1 | import { Bimap } from "../Bimap"; 2 | import { GraphicPropertyKey } from "apl-html"; 3 | export declare const graphicPropertyBimap: Bimap; 4 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/move1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/move1.png -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/move2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/move2.png -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/move3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/move3.png -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/logo/rapidjson.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/logo/rapidjson.png -------------------------------------------------------------------------------- /modules/Alexa/SmartScreenSDKInterfaces/test/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(INCLUDE_PATH 2 | "${SmartScreenSDKInterfaces_INCLUDE_DIRS}" 3 | "${SmartScreenSDKInterfaces_SOURCE_DIR}/include" 4 | "${SmartScreenSDKInterfaces_SOURCE_DIR}/test") -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/simpledom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/simpledom.png -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/tutorial.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/tutorial.png -------------------------------------------------------------------------------- /modules/Alexa/SmartScreenCapabilityAgents/AlexaPresentation/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1 FATAL_ERROR) 2 | project(AlexaPresentation LANGUAGES CXX) 3 | 4 | add_subdirectory("src") 5 | add_subdirectory("test") 6 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf16be.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf16be.json -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf16le.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf16le.json -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf32be.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf32be.json -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf32le.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf32le.json -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/architecture.png -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/utilityclass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/utilityclass.png -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf16bebom.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf16bebom.json -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf16lebom.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf16lebom.json -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf32bebom.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf32bebom.json -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf32lebom.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf32lebom.json -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/insituparsing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/insituparsing.png -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/normalparsing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/normalparsing.png -------------------------------------------------------------------------------- /modules/Alexa/ApplicationUtilities/Communication/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1 FATAL_ERROR) 2 | project(Communication LANGUAGES CXX) 3 | 4 | include(../../build/BuildDefaults.cmake) 5 | 6 | add_subdirectory("src") 7 | -------------------------------------------------------------------------------- /modules/Alexa/SmartScreenCapabilityAgents/TemplateRuntime/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1 FATAL_ERROR) 2 | project(SmartScreenTemplateRunTime LANGUAGES CXX) 3 | 4 | add_subdirectory("src") 5 | add_subdirectory("test") 6 | -------------------------------------------------------------------------------- /modules/Alexa/SmartScreenCapabilityAgents/VisualCharacteristics/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1 FATAL_ERROR) 2 | project(VisualCharacteristics LANGUAGES CXX) 3 | 4 | add_subdirectory("src") 5 | add_subdirectory("test") 6 | -------------------------------------------------------------------------------- /modules/Alexa/ApplicationUtilities/SmartScreenClient/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1 FATAL_ERROR) 2 | project(SmartScreenClient LANGUAGES CXX) 3 | 4 | include(../../build/BuildDefaults.cmake) 5 | 6 | add_subdirectory("src") 7 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "apl-client", 3 | "version": "1.2.0", 4 | "description": "this version supports APL 1.2", 5 | "repository": "hash:3b02e6f2", 6 | "main": "index.js", 7 | "types": "./index.d.ts" 8 | } 9 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/pass3.json: -------------------------------------------------------------------------------- 1 | { 2 | "JSON Test Pattern pass3": { 3 | "The outermost value": "must be an object or array.", 4 | "In this test": "It is an object." 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest.cmake: -------------------------------------------------------------------------------- 1 | set(GTEST_ROOT ThirdParty/googletest-release-1.8.0) 2 | 3 | add_subdirectory(${GTEST_ROOT} EXCLUDE_FROM_ALL) 4 | include_directories(${GTEST_ROOT}/googlemock/include 5 | ${GTEST_ROOT}/googletest/include) 6 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/jsonchecker/readme.txt: -------------------------------------------------------------------------------- 1 | Test suite from http://json.org/JSON_checker/. 2 | 3 | If the JSON_checker is working correctly, it must accept all of the pass*.json files and reject all of the fail*.json files. 4 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/iterative-parser-states-diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shivasiddharth/alexa-smart-screen-sdk/master/modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/iterative-parser-states-diagram.png -------------------------------------------------------------------------------- /modules/Alexa/ApplicationUtilities/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1) 2 | project(ApplicationUtilities LANGUAGES CXX) 3 | 4 | include(../build/BuildDefaults.cmake) 5 | 6 | add_subdirectory("Communication") 7 | add_subdirectory("SmartScreenClient") 8 | 9 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/MultipartParser/MultipartParser/input.txt: -------------------------------------------------------------------------------- 1 | --abcd 2 | content-type: text/plain 3 | content-disposition: form-data; name="field1"; filename="field1" 4 | foo-bar: abc 5 | x: y 6 | 7 | hello world 8 | 9 | x 10 | 11 | --abcd-- 12 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf8.json: -------------------------------------------------------------------------------- 1 | { 2 | "en":"I can eat glass and it doesn't hurt me.", 3 | "zh-Hant":"我能吞下玻璃而不傷身體。", 4 | "zh-Hans":"我能吞下玻璃而不伤身体。", 5 | "ja":"私はガラスを食べられます。それは私を傷つけません。", 6 | "ko":"나는 유리를 먹을 수 있어요. 그래도 아프지 않아요" 7 | } -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/RapidJSONConfig.cmake.in: -------------------------------------------------------------------------------- 1 | get_filename_component(RAPIDJSON_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) 2 | set(RAPIDJSON_INCLUDE_DIRS "@INCLUDE_INSTALL_DIR@") 3 | message(STATUS "RapidJSON found. Headers: ${RAPIDJSON_INCLUDE_DIRS}") 4 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/encodings/utf8bom.json: -------------------------------------------------------------------------------- 1 | { 2 | "en":"I can eat glass and it doesn't hurt me.", 3 | "zh-Hant":"我能吞下玻璃而不傷身體。", 4 | "zh-Hans":"我能吞下玻璃而不伤身体。", 5 | "ja":"私はガラスを食べられます。それは私を傷つけません。", 6 | "ko":"나는 유리를 먹을 수 있어요. 그래도 아프지 않아요" 7 | } -------------------------------------------------------------------------------- /modules/Alexa/Utils/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1) 2 | 3 | project(Utils LANGUAGES CXX) 4 | 5 | include(../build/BuildDefaults.cmake) 6 | 7 | add_library(Utils INTERFACE) 8 | 9 | target_include_directories(Utils INTERFACE 10 | "${Utils_SOURCE_DIR}/include") 11 | -------------------------------------------------------------------------------- /modules/Alexa/SmartScreenCapabilityAgents/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(CapabilityAgents LANGUAGES CXX) 3 | 4 | include(../build/BuildDefaults.cmake) 5 | 6 | add_subdirectory("AlexaPresentation") 7 | add_subdirectory("TemplateRuntime") 8 | add_subdirectory("VisualCharacteristics") -------------------------------------------------------------------------------- /modules/GUI/js/src/lib/config/visualCharacteristics/IVideo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | 5 | export type VideoCodecs = 6 | 'H_264_41' 7 | | 'H_264_42'; 8 | 9 | export interface IVideo { 10 | codecs : VideoCodecs[]; 11 | } 12 | -------------------------------------------------------------------------------- /modules/GUI/js/typings.d.ts: -------------------------------------------------------------------------------- 1 | declare module "*.json" { 2 | const value: any; 3 | export default value; 4 | } 5 | 6 | declare module "*.png" { 7 | const value: string; 8 | export default value; 9 | } 10 | 11 | declare module "*.wav" { 12 | const value: string; 13 | export default value; 14 | } -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/RapidJSON.pc.in: -------------------------------------------------------------------------------- 1 | includedir=@INCLUDE_INSTALL_DIR@ 2 | 3 | Name: @PROJECT_NAME@ 4 | Description: A fast JSON parser/generator for C++ with both SAX/DOM style API 5 | Version: @LIB_VERSION_STRING@ 6 | URL: https://github.com/miloyip/rapidjson 7 | Cflags: -I${includedir} 8 | -------------------------------------------------------------------------------- /modules/Alexa/pkg-config.pc.cmake: -------------------------------------------------------------------------------- 1 | Name: ${PROJECT_NAME} 2 | Description: ${PROJECT_BRIEF} 3 | Version: ${PROJECT_VERSION} 4 | Requires: ${PKG_CONFIG_REQUIRES} 5 | prefix=${CMAKE_INSTALL_PREFIX} 6 | includedir=${PKG_CONFIG_INCLUDEDIR} 7 | libdir=${PKG_CONFIG_LIBDIR} 8 | Libs: ${PKG_CONFIG_LIBS} 9 | Cflags: ${PKG_CONFIG_CFLAGS} -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/docker/debian/Dockerfile: -------------------------------------------------------------------------------- 1 | # BUILD: docker build -t rapidjson-debian . 2 | # RUN: docker run -it -v "$PWD"/../..:/rapidjson rapidjson-debian 3 | 4 | FROM debian:jessie 5 | 6 | RUN apt-get update && apt-get install -y g++ cmake doxygen valgrind 7 | 8 | ENTRYPOINT ["/bin/bash"] 9 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/components/text/MeasureMode.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * Measure mode for text. 6 | */ 7 | export declare enum MeasureMode { 8 | Undefined = 0, 9 | Exactly = 1, 10 | AtMost = 2 11 | } 12 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1 FATAL_ERROR) 2 | project(RapidJSON LANGUAGES CXX) 3 | 4 | set(RAPIDJSON_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/rapidjson-1.1.0/include" CACHE INTERNAL "") 5 | install(DIRECTORY "${RAPIDJSON_INCLUDE_DIR}" DESTINATION "${ASDK_INCLUDE_INSTALL_DIR}") 6 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/media/IMediaEventListener.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | import { PlaybackState } from './Resource'; 5 | /** 6 | * @ignore 7 | */ 8 | export interface IMediaEventListener { 9 | onEvent(event: PlaybackState): void; 10 | } 11 | -------------------------------------------------------------------------------- /modules/GUI/config/certificates/cert_settings.cnf: -------------------------------------------------------------------------------- 1 | [ v3_req ] 2 | basicConstraints = CA:FALSE 3 | keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment, keyAgreement 4 | extendedKeyUsage = serverAuth,clientAuth 5 | subjectKeyIdentifier = hash 6 | authorityKeyIdentifier = keyid:always,issuer 7 | subjectAltName = DNS:localhost 8 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/xcode/Config/TestTarget.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // TestTarget.xcconfig 3 | // 4 | // These are Test target settings for the gtest framework and examples. It 5 | // is set in the "Based On:" dropdown in the "Target" info dialog. 6 | 7 | PRODUCT_NAME = $(TARGET_NAME) 8 | HEADER_SEARCH_PATHS = ../include 9 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | export * from "./APLWSRenderer"; 5 | export * from "./APLClient"; 6 | export * from "./WebSocketClient"; 7 | export * from "./@types/apl-html/lib/index"; 8 | export { default as APLRenderer } from "./@types/apl-html/lib/index"; 9 | -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/A4B.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Setup the A4B build to enable Alexa For Business. 3 | # 4 | # To build with Alexa For Business support, run the following command, 5 | # cmake -DA4B=ON. 6 | # 7 | 8 | option(A4B "Enable Alexa for Business support." OFF) 9 | 10 | if(A4B) 11 | add_definitions(-DENABLE_REVOKE_AUTH) 12 | endif() 13 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/misc/footer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/TestOptions.cmake: -------------------------------------------------------------------------------- 1 | option(NETWORK_INTEGRATION_TESTS "Enable network integration tests for ACL." OFF) 2 | 3 | if(NETWORK_INTEGRATION_TESTS AND (${CMAKE_SYSTEM_NAME} MATCHES "Linux")) 4 | if(NOT NETWORK_INTERFACE) 5 | message(FATAL_ERROR "Must pass network interface") 6 | endif() 7 | add_definitions(-DNETWORK_INTEGRATION_TESTS) 8 | endif() -------------------------------------------------------------------------------- /modules/Alexa/SmartScreenCapabilityAgents/AlexaPresentation/test/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1 FATAL_ERROR) 2 | 3 | set(INCLUDE_PATH 4 | "${AlexaPresentation_INCLUDE_DIR}" 5 | "${AlexaPresentation_SOURCE_DIR}/include" 6 | "${ASDK_INCLUDE_DIRS}" 7 | "${RAPIDJSON_INCLUDE_DIR}") 8 | 9 | discover_unit_tests("${INCLUDE_PATH}" "AlexaPresentation") 10 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/dts/Radii.d.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | declare namespace APL { 5 | export class Radii { 6 | public topLeft(): number; 7 | public topRight(): number; 8 | public bottomRight(): number; 9 | public bottomLeft(): number; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/dts/Rect.d.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | declare namespace APL { 5 | export class Rect { 6 | private constructor(); 7 | public left: number; 8 | public top: number; 9 | public width: number; 10 | public height: number; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /modules/Alexa/SmartScreenCapabilityAgents/VisualCharacteristics/test/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1 FATAL_ERROR) 2 | 3 | set(INCLUDE_PATH 4 | "${VisualCharacteristics_INCLUDE_DIR}" 5 | "${VisualCharacteristics_SOURCE_DIR}/include" 6 | "${RAPIDJSON_INCLUDE_DIR}" 7 | "${ASDK_INCLUDE_DIRS}") 8 | 9 | discover_unit_tests("${INCLUDE_PATH}" "VisualCharacteristics") 10 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/dts/Logger.d.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | declare namespace APL { 5 | export type CoreLogTransport = (level: number, log: string) => void; 6 | export class Logger extends Deletable { 7 | public static setLogTransport(transport: CoreLogTransport): void; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/GeneratePkgConfig.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generate a .pc pkg_config file for the SDK 3 | # 4 | 5 | CONFIGURE_FILE( 6 | "${PROJECT_SOURCE_DIR}/pkg-config.pc.cmake" 7 | "${PROJECT_BINARY_DIR}/${CMAKE_PROJECT_NAME}.pc" 8 | ) 9 | set(PKG_CONFIG_OUTPUT_PATH ${ASDK_LIB_INSTALL_DIR}/pkgconfig) 10 | install(FILES "${PROJECT_BINARY_DIR}/${CMAKE_PROJECT_NAME}.pc" DESTINATION ${PKG_CONFIG_OUTPUT_PATH}) -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/PCC.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Setup the PhoneCallController compiler options. 3 | # 4 | # To build with PhoneCallController capabilties, specify: 5 | # cmake -DPCC 6 | 7 | option(PCC "Enable the PhoneCallController functionality" OFF) 8 | 9 | if(PCC) 10 | message("Creating ${PROJECT_NAME} with PhoneCallController") 11 | add_definitions(-DENABLE_PCC) 12 | endif() 13 | -------------------------------------------------------------------------------- /modules/GUI/js/src/lib/displayCards/AVSDisplayCards.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "APL", 3 | "version": "1.1", 4 | "import": [ 5 | { 6 | "name": "avs-display-cards", 7 | "version": "1.1.0" 8 | } 9 | ], 10 | "mainTemplate": { 11 | "parameters": [ 12 | "payload" 13 | ], 14 | "item": { 15 | "type": "AVSDisplayCards" 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/components/avg/Path.d.ts: -------------------------------------------------------------------------------- 1 | import { AVG } from './AVG'; 2 | import { VectorGraphic } from './VectorGraphic'; 3 | import { ILogger } from '../../logging/ILogger'; 4 | export declare class Path extends AVG { 5 | constructor(graphic: APL.GraphicElement, component: VectorGraphic, parent: Element, logger: ILogger); 6 | setAllProperties(): void; 7 | updateDirty(): void; 8 | } 9 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/library.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "RapidJSON", 3 | "keywords": "json, sax, dom, parser, generator", 4 | "description": "A fast JSON parser/generator for C++ with both SAX/DOM style API", 5 | "include": "include", 6 | "examples": "example/*/*.cpp", 7 | "repository": 8 | { 9 | "type": "git", 10 | "url": "https://github.com/miloyip/rapidjson" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/MCC.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Setup the MeetingClientController compiler options. 3 | # 4 | # To build with MeetingClientController capabilties, specify: 5 | # cmake -DMCC 6 | 7 | option(MCC "Enable the MeetingClientController functionality" OFF) 8 | 9 | if(MCC) 10 | message("Creating ${PROJECT_NAME} with MeetingClientController") 11 | add_definitions(-DENABLE_MCC) 12 | endif() 13 | -------------------------------------------------------------------------------- /modules/GUI/js/src/components/aplRendererWindow.css: -------------------------------------------------------------------------------- 1 | .aplRendererWindow { 2 | position: absolute; 3 | display: flex; 4 | align-items: flex-end; 5 | justify-content: flex-end; 6 | flex-grow: 1; 7 | height: 100%; 8 | width: 100%; 9 | overflow: hidden; 10 | opacity: 0; 11 | } 12 | 13 | .aplRendererViewport { 14 | display: flex; 15 | box-shadow: 0px 0px 40px 0px rgba(0,0,0,0.5); 16 | } -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/SpeechEncoder.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Setup the OPUS compiler options. 3 | # 4 | # To build with OPUS support, include the following option on the cmake command line. 5 | # cmake 6 | # -OPUS=ON 7 | # 8 | 9 | option(OPUS "Enable OPUS encoding." OFF) 10 | 11 | if(OPUS) 12 | message("Creating ${PROJECT_NAME} with OPUS encoding") 13 | add_definitions(-DENABLE_OPUS) 14 | endif() 15 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/components/video/IVideoFactory.d.ts: -------------------------------------------------------------------------------- 1 | import APLRenderer from '../../APLRenderer'; 2 | import { Component, FactoryFunction } from '../Component'; 3 | import { AbstractVideoComponent } from './AbstractVideoComponent'; 4 | export interface IVideoFactory { 5 | create(renderer: APLRenderer, component: APL.Component, factory: FactoryFunction, parent?: Component): AbstractVideoComponent; 6 | } 7 | -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/Metrics.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Setup the Metrics compiler options. 3 | # 4 | # To build with Metrics support, include the following option on the cmake command line. 5 | # cmake -DMETRICS=ON 6 | # 7 | option(METRICS "Enable Metrics upload." OFF) 8 | 9 | if(METRICS) 10 | message("Creating ${PROJECT_NAME} with Metrics upload") 11 | add_definitions(-DACSDK_ENABLE_METRICS_RECORDING) 12 | endif() -------------------------------------------------------------------------------- /modules/Alexa/SmartScreenSDKInterfaces/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(SmartScreenSDKInterfaces LANGUAGES CXX) 3 | 4 | add_subdirectory("test") 5 | 6 | add_library(SmartScreenSDKInterfaces INTERFACE) 7 | 8 | target_include_directories(SmartScreenSDKInterfaces INTERFACE 9 | "${SmartScreenSDKInterfaces_SOURCE_DIR}/include" 10 | "${SmartScreenSDKInterfaces_SOURCE_DIR}/test") 11 | 12 | asdk_install() 13 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/components/avg/Group.d.ts: -------------------------------------------------------------------------------- 1 | import { AVG } from './AVG'; 2 | import { VectorGraphic } from './VectorGraphic'; 3 | import { ILogger } from '../../logging/ILogger'; 4 | export declare class Group extends AVG { 5 | children: AVG[]; 6 | constructor(graphic: APL.GraphicElement, component: VectorGraphic, parent: Element, logger: ILogger); 7 | setAllProperties(): void; 8 | updateDirty(): void; 9 | } 10 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googlemock/include/gmock/internal/custom/gmock-generated-actions.h: -------------------------------------------------------------------------------- 1 | // This file was GENERATED by command: 2 | // pump.py gmock-generated-actions.h.pump 3 | // DO NOT EDIT BY HAND!!! 4 | 5 | #ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_GENERATED_ACTIONS_H_ 6 | #define GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_GENERATED_ACTIONS_H_ 7 | 8 | #endif // GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_GENERATED_ACTIONS_H_ 9 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/utils/FontUtils.d.ts: -------------------------------------------------------------------------------- 1 | export declare class FontUtils { 2 | private static logger; 3 | private static readonly AMAZON_EMBER_DISPLAY; 4 | private static readonly BOOKERLY; 5 | private static readonly FONT_ALIAS_MAPPING; 6 | private static initialized; 7 | private static initializationCallback; 8 | static initialize(): Promise; 9 | static getFont(fontFamily: string): string; 10 | } 11 | -------------------------------------------------------------------------------- /modules/GUI/js/src/lib/focus/IFocusBridge.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | /** 8 | * Binding interface for JS Shim in AVS SDK. 9 | * 10 | * @export 11 | * @interface IFocusBridge 12 | */ 13 | export interface IFocusBridge { 14 | acquireFocus(channelName : string, token : number) : void; 15 | releaseFocus(channelName : string, token : number) : void; 16 | } 17 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/travis.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | set -evx 3 | env | sort 4 | 5 | mkdir build || true 6 | mkdir build/$GTEST_TARGET || true 7 | cd build/$GTEST_TARGET 8 | cmake -Dgtest_build_samples=ON \ 9 | -Dgmock_build_samples=ON \ 10 | -Dgtest_build_tests=ON \ 11 | -Dgmock_build_tests=ON \ 12 | -DCMAKE_CXX_FLAGS=$CXX_FLAGS \ 13 | ../../$GTEST_TARGET 14 | make 15 | CTEST_OUTPUT_ON_FAILURE=1 make test 16 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/FilterType.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/primitives/filter.h line 26 8 | */ 9 | export declare enum FilterType { 10 | kFilterTypeBlur = 0, 11 | kFilterTypeNoise = 1 12 | } 13 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/media/audio/DefaultAudioPlayer.d.ts: -------------------------------------------------------------------------------- 1 | import { AudioPlayer } from './AudioPlayer'; 2 | import { IAudioEventListener } from './IAudioEventListener'; 3 | import { IAudioContextProvider } from './AudioContextProvider'; 4 | export declare class DefaultAudioPlayer extends AudioPlayer { 5 | protected contextProvider: IAudioContextProvider; 6 | constructor(eventListener: IAudioEventListener); 7 | play(id: string): void; 8 | } 9 | -------------------------------------------------------------------------------- /modules/GUI/js/src/lib/focus/IChannelObserver.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | import { FocusState } from './FocusState'; 8 | 9 | /** 10 | * Interface to be implemented in order to track focusChanged events. 11 | * 12 | * @interface 13 | * @exports 14 | */ 15 | export interface IChannelObserver { 16 | focusChanged(focusState : FocusState, token : number) : void; 17 | } 18 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/ComponentFactory.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | import APLRenderer from './APLRenderer'; 5 | import { Component, IGenericPropType } from './components/Component'; 6 | export declare const componentFactory: (renderer: APLRenderer<{ 7 | }>, component: APL.Component, parent?: Component, ensureLayout?: boolean, insertAt?: number) => Component; 8 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/dts/StyledText.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | declare namespace APL { 5 | export interface TextSpan { 6 | type: number | 'mark'; 7 | start: number; 8 | end: number; 9 | } 10 | export class StyledText { 11 | private constructor(); 12 | public text: string; 13 | public spans: TextSpan[]; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/FontStyle.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/component/componentproperties.h line 54 8 | */ 9 | export declare enum FontStyle { 10 | kFontStyleNormal = 0, 11 | kFontStyleItalic = 1 12 | } 13 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/Position.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/component/componentproperties.h line 124 8 | */ 9 | export declare enum Position { 10 | kPositionAbsolute = 0, 11 | kPositionRelative = 1 12 | } 13 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/VideoScale.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/component/componentproperties.h line 184 8 | */ 9 | export declare enum VideoScale { 10 | kVideoScaleBestFill = 0, 11 | kVideoScaleBestFit = 1 12 | } 13 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1 FATAL_ERROR) 2 | 3 | project(AlexaSmartScreenSDK VERSION 2.0.2 LANGUAGES CXX) 4 | set(PROJECT_BRIEF "A cross-platform, modular SDK for multi modal interaction with the Alexa Voice Service") 5 | configure_file ( 6 | "${PROJECT_SOURCE_DIR}/modules/Alexa/Utils/include/Utils/SmartScreenSDKVersion.h.in" 7 | "${PROJECT_SOURCE_DIR}/modules/Alexa/Utils/include/Utils/SmartScreenSDKVersion.h" 8 | ) 9 | add_subdirectory("modules") 10 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/NoiseFilterKind.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/primitives/filter.h line 44 8 | */ 9 | export declare enum NoiseFilterKind { 10 | kFilterNoiseKindUniform = 0, 11 | kFilterNoiseKindGaussian = 1 12 | } 13 | -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/CodeCoverage/CTestCustom.cmake.template: -------------------------------------------------------------------------------- 1 | set(CTEST_CUSTOM_PRE_TEST "${CMAKE_COVERAGE_SCRIPT_DIR}/preCTest.sh \ 2 | ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} ${CMAKE_COVERAGE_FILENAME} ") 3 | set(CTEST_CUSTOM_POST_TEST "${CMAKE_COVERAGE_SCRIPT_DIR}/postCTest.sh \ 4 | ${CMAKE_CURRENT_BINARY_DIR} ${COVERAGE_FILENAME} ${COVERAGE_REPORT_DIR} \ 5 | ${CMAKE_BINARY_DIR} ${CMAKE_COVERAGE_FILENAME} ${CMAKE_COVERAGE_REPORT_DIR} ${CMAKE_COVERAGE_FINAL_REPORT}") 6 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googlemock/msvc/2005/gmock_config.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/CommandPosition.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/command/commandproperties.h line 58 8 | */ 9 | export declare enum CommandPosition { 10 | kCommandPositionRelative = 0, 11 | kCommandPositionAbsolute = 1 12 | } 13 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.6.2) 2 | 3 | project( googletest-distribution ) 4 | 5 | enable_testing() 6 | 7 | option(BUILD_GTEST "Builds the googletest subproject" OFF) 8 | 9 | #Note that googlemock target already builds googletest 10 | option(BUILD_GMOCK "Builds the googlemock subproject" ON) 11 | 12 | if(BUILD_GMOCK) 13 | add_subdirectory( googlemock ) 14 | elseif(BUILD_GTEST) 15 | add_subdirectory( googletest ) 16 | endif() 17 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/components/video/VideoFactory.d.ts: -------------------------------------------------------------------------------- 1 | import APLRenderer from '../../APLRenderer'; 2 | import { Component, FactoryFunction } from '../Component'; 3 | import { AbstractVideoComponent } from './AbstractVideoComponent'; 4 | import { IVideoFactory } from './IVideoFactory'; 5 | export declare class VideoFactory implements IVideoFactory { 6 | create(renderer: APLRenderer, component: APL.Component, factory: FactoryFunction, parent?: Component): AbstractVideoComponent; 7 | } 8 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/ContainerDirection.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/component/componentproperties.h line 95 8 | */ 9 | export declare enum ContainerDirection { 10 | kContainerDirectionColumn = 0, 11 | kContainerDirectionRow = 1 12 | } 13 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/ScrollDirection.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/component/componentproperties.h line 132 8 | */ 9 | export declare enum ScrollDirection { 10 | kScrollDirectionVertical = 0, 11 | kScrollDirectionHorizontal = 1 12 | } 13 | -------------------------------------------------------------------------------- /modules/Alexa/SmartScreenCapabilityAgents/TemplateRuntime/test/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1 FATAL_ERROR) 2 | 3 | set(INCLUDE_PATH 4 | "${TemplateRuntime_INCLUDE_DIR}" 5 | "${SmartScreenSDKInterfaces_SOURCE_DIR}/test" 6 | "${TemplateRuntime_SOURCE_DIR}/include" 7 | "${RAPIDJSON_INCLUDE_DIR}" 8 | "${ASDK_INCLUDE_DIRS}" 9 | "${SmartScreenSDKInterfaces_SOURCE_DIR}/include" 10 | ) 11 | 12 | discover_unit_tests("${INCLUDE_PATH}" "SmartScreenTemplateRunTime") 13 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/dts/Keyboard.d.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | declare namespace APL { 5 | export class Keyboard { 6 | private constructor(); 7 | public code: string; 8 | public key: string; 9 | public repeat: boolean; 10 | public altKey: boolean; 11 | public ctrlKey: boolean; 12 | public metaKey: boolean; 13 | public shiftKey: boolean; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/CommandHighlightMode.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/command/commandproperties.h line 53 8 | */ 9 | export declare enum CommandHighlightMode { 10 | kCommandHighlightModeLine = 0, 11 | kCommandHighlightModeBlock = 1 12 | } 13 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/components/Container.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | import { Component, FactoryFunction } from './Component'; 5 | import APLRenderer from '../APLRenderer'; 6 | /** 7 | * @ignore 8 | */ 9 | export declare class Container extends Component { 10 | constructor(renderer: APLRenderer, component: APL.Component, factory: FactoryFunction, parent?: Component); 11 | protected isLayout(): boolean; 12 | } 13 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/AudioTrack.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/component/componentproperties.h line 150 8 | */ 9 | export declare enum AudioTrack { 10 | kAudioTrackBackground = 0, 11 | kAudioTrackForeground = 1, 12 | kAudioTrackNone = 2 13 | } 14 | -------------------------------------------------------------------------------- /modules/GUI/js/src/lib/focus/FocusResource.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | export type FocusResourceType = 'AudioContext'; 8 | 9 | /** 10 | * Top-level resource object for focus 11 | */ 12 | export interface IFocusResource { 13 | type : FocusResourceType; 14 | } 15 | 16 | /** 17 | * Audio focus resource 18 | */ 19 | export interface IAudioFocusResource extends IFocusResource { 20 | audioContext : AudioContext; 21 | } 22 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/AnimationQuality.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/content/rootconfig.h line 44 8 | */ 9 | export declare enum AnimationQuality { 10 | kAnimationQualityNone = 0, 11 | kAnimationQualitySlow = 1, 12 | kAnimationQualityNormal = 2 13 | } 14 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/LogLevel.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/utils/log.h line 34 8 | */ 9 | export declare enum LogLevel { 10 | NONE = -1, 11 | TRACE = 0, 12 | DEBUG = 1, 13 | INFO = 2, 14 | WARN = 3, 15 | ERROR = 5, 16 | CRITICAL = 6 17 | } 18 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/TextAlign.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/component/componentproperties.h line 62 8 | */ 9 | export declare enum TextAlign { 10 | kTextAlignAuto = 0, 11 | kTextAlignLeft = 1, 12 | kTextAlignCenter = 2, 13 | kTextAlignRight = 3 14 | } 15 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/dts/GraphicElement.d.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | declare namespace APL { 5 | export class GraphicElement extends Deletable { 6 | public getId(): number; 7 | public getChildCount(): number; 8 | public getChildAt(index: number): APL.GraphicElement; 9 | public getValue(key: number): T; 10 | public getDirtyProperties(): number[]; 11 | public getType(): number; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/media/video/HLSVideoPlayer.d.ts: -------------------------------------------------------------------------------- 1 | import { IMediaEventListener } from '../IMediaEventListener'; 2 | import { VideoPlayer } from './VideoPlayer'; 3 | /** 4 | * @ignore 5 | */ 6 | export declare class HLSVideoPlayer extends VideoPlayer { 7 | private hlsPlayer; 8 | constructor(eventListener: IMediaEventListener); 9 | load(id: string, url: string): Promise; 10 | play(id: string, url: string, offset: number): Promise; 11 | private playHls(url, loadMetadataOnly?); 12 | } 13 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/Navigation.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/component/componentproperties.h line 140 8 | */ 9 | export declare enum Navigation { 10 | kNavigationNormal = 0, 11 | kNavigationNone = 1, 12 | kNavigationWrap = 2, 13 | kNavigationForwardOnly = 3 14 | } 15 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/CommandAudioTrack.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/command/commandproperties.h line 63 8 | */ 9 | export declare enum CommandAudioTrack { 10 | kCommandAudioTrackBackground = 0, 11 | kCommandAudioTrackForeground = 1, 12 | kCommandAudioTrackNone = 2 13 | } 14 | -------------------------------------------------------------------------------- /modules/GUI/js/src/main.tsx: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | 5 | import { App } from './app'; 6 | import * as React from 'react'; 7 | import * as ReactDOM from 'react-dom'; 8 | import './main.css'; 9 | 10 | window.onload = () => { 11 | const container = document.createElement('div'); 12 | container.setAttribute('id', 'root'); 13 | document.getElementsByTagName('body')[0].appendChild(container); 14 | 15 | ReactDOM.render(, document.getElementById('root')); 16 | }; 17 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/GradientType.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/primitives/gradient.h line 35 8 | */ 9 | export declare enum GradientType { 10 | /** Linear gradient */ 11 | LINEAR = 0, 12 | /** Radial gradient, centered about the center of an object */ 13 | RADIAL = 1 14 | } 15 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/npm.md: -------------------------------------------------------------------------------- 1 | ## NPM 2 | 3 | # package.json {#package} 4 | 5 | ~~~~~~~~~~js 6 | { 7 | ... 8 | "dependencies": { 9 | ... 10 | "rapidjson": "git@github.com:miloyip/rapidjson.git" 11 | }, 12 | ... 13 | "gypfile": true 14 | } 15 | ~~~~~~~~~~ 16 | 17 | # binding.gyp {#binding} 18 | 19 | ~~~~~~~~~~js 20 | { 21 | ... 22 | 'targets': [ 23 | { 24 | ... 25 | 'include_dirs': [ 26 | ' void; 14 | -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/MediaPlayer.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Setup the MediaPlayer build. 3 | # 4 | # To build the GStreamer based MediaPlayer, run the following command, 5 | # cmake -DGSTREAMER_MEDIA_PLAYER=ON. 6 | # 7 | # 8 | 9 | option(GSTREAMER_MEDIA_PLAYER "Enable GStreamer based media player." OFF) 10 | 11 | set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH ON) 12 | if(GSTREAMER_MEDIA_PLAYER) 13 | find_package(PkgConfig) 14 | pkg_check_modules(GST REQUIRED gstreamer-1.0>=1.8 gstreamer-app-1.0>=1.8) 15 | add_definitions(-DGSTREAMER_MEDIA_PLAYER) 16 | endif() 17 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/Content.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | export declare class Content { 5 | static create(doc: string): Content; 6 | content: APL.Content; 7 | private constructor(); 8 | getRequestedPackages(): Set; 9 | addPackage(request: APL.ImportRequest, data: string): void; 10 | isError(): boolean; 11 | isReady(): boolean; 12 | isWaiting(): boolean; 13 | addData(name: string, data: string): void; 14 | delete(): void; 15 | } 16 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/ImageScale.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/component/componentproperties.h line 43 8 | */ 9 | export declare enum ImageScale { 10 | kImageScaleNone = 0, 11 | kImageScaleFill = 1, 12 | kImageScaleBestFill = 2, 13 | kImageScaleBestFit = 3, 14 | kImageScaleBestFitDown = 4 15 | } 16 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/TextAlignVertical.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/component/componentproperties.h line 72 8 | */ 9 | export declare enum TextAlignVertical { 10 | kTextAlignVerticalAuto = 0, 11 | kTextAlignVerticalTop = 1, 12 | kTextAlignVerticalCenter = 2, 13 | kTextAlignVerticalBottom = 3 14 | } 15 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/RapidJSONConfigVersion.cmake.in: -------------------------------------------------------------------------------- 1 | SET(PACKAGE_VERSION "@LIB_VERSION_STRING@") 2 | 3 | IF (PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) 4 | SET(PACKAGE_VERSION_EXACT "true") 5 | ENDIF (PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) 6 | IF (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION) 7 | SET(PACKAGE_VERSION_COMPATIBLE "true") 8 | ELSE (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION) 9 | SET(PACKAGE_VERSION_UNSUITABLE "true") 10 | ENDIF (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION) 11 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/CommandScrollAlign.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/command/commandproperties.h line 46 8 | */ 9 | export declare enum CommandScrollAlign { 10 | kCommandScrollAlignFirst = 0, 11 | kCommandScrollAlignCenter = 1, 12 | kCommandScrollAlignLast = 2, 13 | kCommandScrollAlignVisible = 3 14 | } 15 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump: -------------------------------------------------------------------------------- 1 | $$ -*- mode: c++; -*- 2 | $$ This is a Pump source file (http://go/pump). Please use Pump to convert 3 | $$ it to callback-actions.h. 4 | $$ 5 | $var max_callback_arity = 5 6 | $$}} This meta comment fixes auto-indentation in editors. 7 | #ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_GENERATED_ACTIONS_H_ 8 | #define GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_GENERATED_ACTIONS_H_ 9 | 10 | #endif // GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_GENERATED_ACTIONS_H_ 11 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/VectorGraphicScale.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/component/componentproperties.h line 174 8 | */ 9 | export declare enum VectorGraphicScale { 10 | kVectorGraphicScaleNone = 0, 11 | kVectorGraphicScaleFill = 1, 12 | kVectorGraphicScaleBestFill = 2, 13 | kVectorGraphicScaleBestFit = 3 14 | } 15 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/components/avg/AVG.d.ts: -------------------------------------------------------------------------------- 1 | import { VectorGraphic } from './VectorGraphic'; 2 | import { ILogger } from '../../logging/ILogger'; 3 | export declare abstract class AVG { 4 | protected graphic: APL.GraphicElement; 5 | protected component: VectorGraphic; 6 | protected parent: Element; 7 | protected logger: ILogger; 8 | protected element: Element; 9 | constructor(graphic: APL.GraphicElement, component: VectorGraphic, parent: Element, logger: ILogger); 10 | abstract setAllProperties(): any; 11 | abstract updateDirty(): any; 12 | } 13 | -------------------------------------------------------------------------------- /modules/GUI/js/src/lib/config/visualCharacteristics/IWindowState.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | 5 | export interface IWindowInstanceConfiguration { 6 | interactionMode : string; 7 | sizeConfigurationId : string; 8 | } 9 | 10 | export interface IWindowInstance { 11 | id : string; 12 | templateId : string; 13 | token : string; 14 | configuration : IWindowInstanceConfiguration; 15 | } 16 | 17 | export interface IWindowState { 18 | defaultWindowId : string; 19 | instances : IWindowInstance[]; 20 | } 21 | -------------------------------------------------------------------------------- /modules/GUI/js/src/lib/messages/NavigationEvent.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | /** 8 | * Copy of alexaClientSDK/smartScreenSDKInterfaces/NavgationEvent 9 | * 10 | * @enum 11 | * @exports 12 | */ 13 | export enum NavigationEvent { 14 | /** 15 | * Exit screen. 16 | */ 17 | EXIT = 'EXIT', 18 | 19 | /** 20 | * Go back on screen. 21 | */ 22 | BACK = 'BACK', 23 | 24 | /** 25 | * Guard option for unknown event. 26 | */ 27 | UNKNOWN = 'UNKNOWN' 28 | } 29 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/.gitattributes: -------------------------------------------------------------------------------- 1 | # Set the default behavior, in case people don't have core.autocrlf set. 2 | * text=auto 3 | 4 | # Explicitly declare text files you want to always be normalized and converted 5 | # to native line endings on checkout. 6 | *.cpp text 7 | *.h text 8 | *.txt text 9 | *.md text 10 | *.cmake text 11 | *.svg text 12 | *.dot text 13 | *.yml text 14 | *.in text 15 | *.sh text 16 | *.autopkg text 17 | Dockerfile text 18 | 19 | # Denote all files that are truly binary and should not be modified. 20 | *.png binary 21 | *.jpg binary 22 | *.json binary -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/FFmpeg.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Set up FFmpeg specific configurations for the sample app. 3 | # 4 | # To build with FFMpeg, run the following command, 5 | # cmake 6 | # -DFFMPEG_LIB_PATH= 7 | # -DFFMPEG_INCLUDE_DIR= 8 | # 9 | option(FFMPEG_LIB_PATH, "Path to FFmpeg shared libraries") 10 | option(FFMPEG_INCLUDE_DIR, "Path to FFmpeg include directory") 11 | 12 | if (FFMPEG_LIB_PATH AND FFMPEG_INCLUDE_DIR) 13 | message("Including FFmpeg libraries") 14 | link_directories(${FFMPEG_LIB_PATH}) 15 | endif() 16 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/dts/Action.d.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | declare namespace APL { 5 | export class Action extends Deletable { 6 | public resolve(); 7 | public resolveWithArg(arg: number); 8 | public addTerminateCallback(callback: () => void); 9 | public then(callback: (action: Action) => void); 10 | public terminate(); 11 | public isPending(): boolean; 12 | public isTerminated(): boolean; 13 | public isResolved(): boolean; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /modules/Alexa/doc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | find_package(Doxygen ${DOXYGEN_PACKAGE_CONFIG}) 2 | 3 | if(NOT DOXYGEN_FOUND) 4 | message(FATAL "Doxygen is required to generate documentation.") 5 | else() 6 | set(DOXYGEN_CFG_IN doxygen.cfg.in) 7 | set(DOXYGEN_CFG ${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg) 8 | configure_file(${DOXYGEN_CFG_IN} ${DOXYGEN_CFG} @ONLY) 9 | add_custom_target( 10 | doc COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_CFG} 11 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} 12 | COMMENT "Generating API documentation with Doxygen" 13 | VERBATIM) 14 | endif() 15 | -------------------------------------------------------------------------------- /modules/Alexa/SmartScreenCapabilityAgents/AlexaPresentation/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_definitions("-DACSDK_LOG_MODULE=alexaPresentation") 2 | 3 | add_library(AlexaPresentation SHARED 4 | "${CMAKE_CURRENT_LIST_DIR}/AlexaPresentation.cpp") 5 | 6 | target_include_directories(AlexaPresentation 7 | PUBLIC "${AlexaPresentation_SOURCE_DIR}/include" 8 | "${SmartScreenSDKInterfaces_SOURCE_DIR}/include" 9 | "${ASDK_INCLUDE_DIRS}" 10 | "${RAPIDJSON_INCLUDE_DIR}") 11 | 12 | target_link_libraries(AlexaPresentation "${ASDK_LDFLAGS}" SmartScreenSDKInterfaces) 13 | 14 | # install target 15 | asdk_install() -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/dts/Graphic.d.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | declare namespace APL { 5 | export class Graphic extends Deletable { 6 | public getRoot(): APL.GraphicElement; 7 | public isValid(): boolean; 8 | public getIntrinsicHeight(): number; 9 | public getIntrinsicWidth(): number; 10 | public getViewportWidth(): number; 11 | public getViewportHeight(): number; 12 | public clearDirty(): void; 13 | public getDirty(): APL.GraphicElement[]; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/FlexboxAlign.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/component/componentproperties.h line 83 8 | */ 9 | export declare enum FlexboxAlign { 10 | kFlexboxAlignStretch = 0, 11 | kFlexboxAlignCenter = 1, 12 | kFlexboxAlignStart = 2, 13 | kFlexboxAlignEnd = 3, 14 | kFlexboxAlignBaseline = 4, 15 | kFlexboxAlignAuto = 5 16 | } 17 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/utils/SoftRandom.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Super simple random implementation based on linear interpolation. 3 | */ 4 | export declare class SoftRandom { 5 | private static seedValue; 6 | private static DECIMAL_MASK; 7 | /** 8 | * Set random seed. To increased "quality" use of current time is suggested. 9 | * @param seed Random seed. 10 | */ 11 | static seed(seed: number): void; 12 | /** 13 | * Generate random number in sequence. 14 | * Number is in range from 0 to 1 with "uniform" distribution. 15 | */ 16 | static random(): number; 17 | } 18 | -------------------------------------------------------------------------------- /modules/Alexa/SampleApp/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | if ((PORTAUDIO AND GSTREAMER_MEDIA_PLAYER) OR (ANDROID_MEDIA_PLAYER AND ANDROID_MICROPHONE)) 3 | cmake_minimum_required(VERSION 3.1 FATAL_ERROR) 4 | project(SampleApp LANGUAGES CXX) 5 | 6 | include(../build/BuildDefaults.cmake) 7 | 8 | if (PORTAUDIO) 9 | add_definitions("-DPORTAUDIO") 10 | endif() 11 | 12 | if (GSTREAMER_MEDIA_PLAYER) 13 | add_definitions("-DGSTREAMER_MEDIA_PLAYER") 14 | endif() 15 | 16 | add_subdirectory("src") 17 | else() 18 | message("To build the sample app, please enable microphone and media player modules.") 19 | endif() 20 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/test/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | find_package(GTestSrc) 2 | 3 | IF(GTESTSRC_FOUND) 4 | enable_testing() 5 | 6 | if (WIN32 AND (NOT CYGWIN) AND (NOT MINGW)) 7 | set(gtest_disable_pthreads ON) 8 | set(gtest_force_shared_crt ON) 9 | endif() 10 | 11 | add_subdirectory(${GTEST_SOURCE_DIR} ${CMAKE_BINARY_DIR}/googletest) 12 | include_directories(SYSTEM ${GTEST_INCLUDE_DIR}) 13 | 14 | set(TEST_LIBRARIES gtest gtest_main) 15 | 16 | add_custom_target(tests ALL) 17 | add_subdirectory(perftest) 18 | add_subdirectory(unittest) 19 | 20 | ENDIF(GTESTSRC_FOUND) 21 | -------------------------------------------------------------------------------- /modules/GUI/js/src/lib/focus/FocusState.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | /** 8 | * Copy of AVSCommon/AVS/FocusState 9 | * 10 | * @enum 11 | * @exports 12 | */ 13 | export enum FocusState { 14 | /// Represents the highest focus a Channel can have. 15 | FOREGROUND = 'FOREGROUND', 16 | 17 | /// Represents the intermediate level focus a Channel can have. 18 | BACKGROUND = 'BACKGROUND', 19 | 20 | /// This focus is used to represent when a Channel is not being used or when an observer should stop. 21 | NONE = 'NONE' 22 | } 23 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/WebSocketClient.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | import { APLClient } from "./APLClient"; 5 | /** 6 | * Implements the WebSocket version of an APLClient connection. 7 | */ 8 | export declare class WebSocketClient extends APLClient { 9 | private url; 10 | private ws; 11 | constructor(url: string); 12 | start(): Promise; 13 | sendMessage(message: any): void; 14 | private onWebsocketMessage; 15 | private onWebsocketClose; 16 | private onWebsocketOpen; 17 | private onWebsocketError; 18 | private reconnect(); 19 | } 20 | -------------------------------------------------------------------------------- /modules/Alexa/doc/footer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

4 | $projectname $projectnumber - Copyright 2016-$year Amazon.com, Inc. or its affiliates. All Rights Reserved. 5 | 6 | These materials are licensed as "Restricted Program Materials" under the Program 7 | Materials License Agreement (the "Agreement") in connection with the Alexa Voice 8 | Service Program.
9 | 10 | The Agreement is available at https://developer.amazon.com/public/support/pml.html" 11 |
12 |

13 | 14 | 15 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/components/ActionableComponent.d.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | import APLRenderer from '../APLRenderer'; 5 | import { Component, FactoryFunction, IGenericPropType } from './Component'; 6 | /** 7 | * @ignore 8 | */ 9 | export declare class ActionableComponent extends Component { 10 | private focused; 11 | constructor(renderer: APLRenderer, component: APL.Component, factory: FactoryFunction, parent?: Component); 12 | protected focus: () => void; 13 | protected blur: () => void; 14 | } 15 | -------------------------------------------------------------------------------- /modules/GUI/js/src/main.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --display-color: rgb(2, 14, 19); 3 | } 4 | 5 | :focus { 6 | outline: none; 7 | } 8 | 9 | body, html { 10 | overflow: hidden; 11 | background-color: black 12 | } 13 | 14 | * { 15 | user-select: none; 16 | } 17 | 18 | #displayContainer { 19 | position: absolute; 20 | padding: 0; 21 | margin: 0; 22 | 23 | top: 0; 24 | left: 0; 25 | 26 | width: 100%; 27 | height: 100%; 28 | transform-origin: 0 0; 29 | 30 | display: flex; 31 | 32 | flex-direction: column; 33 | justify-content: flex-end; 34 | background-color: var(--display-color); 35 | } 36 | -------------------------------------------------------------------------------- /modules/Alexa/SmartScreenCapabilityAgents/TemplateRuntime/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_definitions("-DACSDK_LOG_MODULE=templateRuntime") 2 | 3 | add_library(SmartScreenTemplateRunTime SHARED 4 | "${CMAKE_CURRENT_LIST_DIR}/TemplateRuntime.cpp") 5 | 6 | target_include_directories(SmartScreenTemplateRunTime 7 | PUBLIC "${SmartScreenTemplateRunTime_SOURCE_DIR}/include" 8 | "${SmartScreenSDKInterfaces_SOURCE_DIR}/include" 9 | "${ASDK_INCLUDE_DIRS}" 10 | "${RAPIDJSON_INCLUDE_DIR}") 11 | 12 | target_link_libraries(SmartScreenTemplateRunTime "${ASDK_LDFLAGS}" SmartScreenSDKInterfaces) 13 | 14 | 15 | # install target 16 | asdk_install() -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/FlexboxJustifyContent.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/component/componentproperties.h line 104 8 | */ 9 | export declare enum FlexboxJustifyContent { 10 | kFlexboxJustifyContentStart = 0, 11 | kFlexboxJustifyContentEnd = 1, 12 | kFlexboxJustifyContentCenter = 2, 13 | kFlexboxJustifyContentSpaceBetween = 3, 14 | kFlexboxJustifyContentSpaceAround = 4 15 | } 16 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/components/ScrollView.d.ts: -------------------------------------------------------------------------------- 1 | import APLRenderer from '../APLRenderer'; 2 | import { Component, FactoryFunction } from './Component'; 3 | import { Scrollable } from './Scrollable'; 4 | /** 5 | * @ignore 6 | */ 7 | export declare class ScrollView extends Scrollable { 8 | constructor(renderer: APLRenderer, component: APL.Component, factory: FactoryFunction, parent?: Component); 9 | init(): void; 10 | /** 11 | * @param component child component 12 | * @returns [offset,size on direction] 13 | * @memberof ScrollViewComponent 14 | */ 15 | getChildTopOffset(component: Component): number; 16 | destroy(): void; 17 | } 18 | -------------------------------------------------------------------------------- /modules/GUI/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1 FATAL_ERROR) 2 | project(GUIClient) 3 | 4 | if(DISABLE_WEBSOCKET_SSL) 5 | set(DISABLE_WEBSOCKET_SSL_VALUE "true") 6 | else() 7 | set(DISABLE_WEBSOCKET_SSL_VALUE "false") 8 | endif() 9 | 10 | add_custom_target(GUIClient ALL 11 | COMMAND "cp" "${CMAKE_CURRENT_SOURCE_DIR}/config/StartSample.sh" "${AlexaSmartScreenSDK_BINARY_DIR}" 12 | COMMAND "npm" "install" 13 | COMMAND "npm" "run" "build" "--" 14 | "--output-path" "${CMAKE_CURRENT_BINARY_DIR}" 15 | "--define" "DISABLE_WEBSOCKET_SSL=${DISABLE_WEBSOCKET_SSL_VALUE}" 16 | WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/js") 17 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/ImageAlign.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/component/componentproperties.h line 28 8 | */ 9 | export declare enum ImageAlign { 10 | kImageAlignBottom = 0, 11 | kImageAlignBottomLeft = 1, 12 | kImageAlignBottomRight = 2, 13 | kImageAlignCenter = 3, 14 | kImageAlignLeft = 4, 15 | kImageAlignRight = 5, 16 | kImageAlignTop = 6, 17 | kImageAlignTopLeft = 7, 18 | kImageAlignTopRight = 8 19 | } 20 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/CommandControlMedia.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/command/commandproperties.h line 69 8 | */ 9 | export declare enum CommandControlMedia { 10 | kCommandControlMediaPlay = 0, 11 | kCommandControlMediaPause = 1, 12 | kCommandControlMediaNext = 2, 13 | kCommandControlMediaPrevious = 3, 14 | kCommandControlMediaRewind = 4, 15 | kCommandControlMediaSeek = 5, 16 | kCommandControlMediaSetTrack = 6 17 | } 18 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/xcode/Config/FrameworkTarget.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // FrameworkTarget.xcconfig 3 | // 4 | // These are Framework target settings for the gtest framework and examples. It 5 | // is set in the "Based On:" dropdown in the "Target" info dialog. 6 | // This file is based on the Xcode Configuration files in: 7 | // http://code.google.com/p/google-toolbox-for-mac/ 8 | // 9 | 10 | // Dynamic libs need to be position independent 11 | GCC_DYNAMIC_NO_PIC = NO 12 | 13 | // Dynamic libs should not have their external symbols stripped. 14 | STRIP_STYLE = non-global 15 | 16 | // Let the user install by specifying the $DSTROOT with xcodebuild 17 | SKIP_INSTALL = NO 18 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rapidjson", 3 | "version": "1.0.4", 4 | "description": "![](doc/logo/rapidjson.png)", 5 | "main": "include_dirs.js", 6 | "directories": { 7 | "doc": "doc", 8 | "example": "example", 9 | "test": "test" 10 | }, 11 | "scripts": { 12 | "test": "echo \"Error: no test specified\" && exit 1" 13 | }, 14 | "repository": { 15 | "type": "git", 16 | "url": "git+https://github.com/miloyip/rapidjson.git" 17 | }, 18 | "author": "", 19 | "license": "ISC", 20 | "bugs": { 21 | "url": "https://github.com/miloyip/rapidjson/issues" 22 | }, 23 | "homepage": "https://github.com/miloyip/rapidjson#readme" 24 | } 25 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/dts/Event.d.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | declare namespace APL { 5 | export class Event extends Deletable { 6 | public getType(): number; 7 | public getValue(key: number): T; 8 | public getComponent(): APL.Component; 9 | public resolve(); 10 | public resolveWithArg(arg: number); 11 | public resolveWithRect(x: number, y: number, width: number, height: number): void; 12 | public addTerminateCallback(callback: () => void); 13 | public isPending(): boolean; 14 | public isTerminated(): boolean; 15 | public isResolved(): boolean; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/PortAudio.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Set up PortAudio libraries for the sample app. 3 | # 4 | # To build with PortAudio, run the following command, 5 | # cmake 6 | # -DPORTAUDIO=ON 7 | # -DPORTAUDIO_LIB_PATH= 8 | # -DPORTAUDIO_INCLUDE_DIR= 9 | # 10 | 11 | option(PORTAUDIO "Enable PortAudio for the sample app." OFF) 12 | 13 | if(PORTAUDIO) 14 | if(NOT PORTAUDIO_LIB_PATH) 15 | message(FATAL_ERROR "Must pass library path of PortAudio to enable it.") 16 | endif() 17 | if(NOT PORTAUDIO_INCLUDE_DIR) 18 | message(FATAL_ERROR "Must pass include dir path of PortAudio to enable it.") 19 | endif() 20 | endif() 21 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/xcode/Config/StaticLibraryTarget.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // StaticLibraryTarget.xcconfig 3 | // 4 | // These are static library target settings for libgtest.a. It 5 | // is set in the "Based On:" dropdown in the "Target" info dialog. 6 | // This file is based on the Xcode Configuration files in: 7 | // http://code.google.com/p/google-toolbox-for-mac/ 8 | // 9 | 10 | // Static libs can be included in bundles so make them position independent 11 | GCC_DYNAMIC_NO_PIC = NO 12 | 13 | // Static libs should not have their internal globals or external symbols 14 | // stripped. 15 | STRIP_STYLE = debugging 16 | 17 | // Let the user install by specifying the $DSTROOT with xcodebuild 18 | SKIP_INSTALL = NO 19 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/data/glossary.json: -------------------------------------------------------------------------------- 1 | { 2 | "glossary": { 3 | "title": "example glossary", 4 | "GlossDiv": { 5 | "title": "S", 6 | "GlossList": { 7 | "GlossEntry": { 8 | "ID": "SGML", 9 | "SortAs": "SGML", 10 | "GlossTerm": "Standard Generalized Markup Language", 11 | "Acronym": "SGML", 12 | "Abbrev": "ISO 8879:1986", 13 | "GlossDef": { 14 | "para": "A meta-markup language, used to create markup languages such as DocBook.", 15 | "GlossSeeAlso": ["GML", "XML"] 16 | }, 17 | "GlossSee": "markup" 18 | } 19 | } 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/components/TouchWrapper.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | import APLRenderer from '../APLRenderer'; 5 | import { Component, FactoryFunction } from './Component'; 6 | import { ActionableComponent } from './ActionableComponent'; 7 | /** 8 | * @ignore 9 | */ 10 | export declare class TouchWrapper extends ActionableComponent { 11 | private pressedDown; 12 | constructor(renderer: APLRenderer, component: APL.Component, factory: FactoryFunction, parent?: Component); 13 | protected isLayout(): boolean; 14 | private onMouseDown; 15 | private onMouseLeave; 16 | private onMouseUp; 17 | private keydown; 18 | private keyup; 19 | } 20 | -------------------------------------------------------------------------------- /modules/GUI/js/src/lib/focus/ChannelName.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | /** 8 | * Copy from AVSCommon/SDKInterfaces/FocusManagerInterface 9 | * @see https://developer.amazon.com/docs/alexa-voice-service/focus-management.html 10 | * 11 | * @enum 12 | * @exports 13 | */ 14 | export enum ChannelName { 15 | /// Dialog Channel name. 16 | DIALOG = 'Dialog', 17 | 18 | /// Alerts Channel name. 19 | ALERTS = 'Alerts', 20 | 21 | /// Communications Channel name. 22 | COMMUNICATIONS = 'Communications', 23 | 24 | /// Content Channel name. 25 | CONTENT = 'Content', 26 | 27 | /// Visual Channel name. 28 | VISUAL = 'Visual' 29 | } 30 | -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/Platforms.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Setup the platform dependent Cmake options. 3 | # 4 | 5 | # Build for Windows is supported 6 | # with MSYS2-MinGW64 shell 7 | # Run cmake with -G"MSYS Makefiles" 8 | if (WIN32) 9 | add_definitions( 10 | # Wingdi.h inclusion causes build error 11 | -DNOGDI 12 | # Gtest has open issue with pthread on MinGW 13 | # See: https://github.com/google/googletest/issues/606 14 | -Dgtest_disable_pthreads=ON 15 | -DNO_SIGPIPE 16 | ) 17 | 18 | # Windows doesn't have rpath so shared libraries should either be 19 | # in the same directory or add them to the path variable. 20 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) 21 | endif() 22 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/ComponentType.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/component/componentproperties.h line 403 8 | */ 9 | export declare enum ComponentType { 10 | kComponentTypeContainer = 0, 11 | kComponentTypeFrame = 1, 12 | kComponentTypeImage = 2, 13 | kComponentTypePager = 3, 14 | kComponentTypeScrollView = 4, 15 | kComponentTypeSequence = 5, 16 | kComponentTypeText = 6, 17 | kComponentTypeTouchWrapper = 7, 18 | kComponentTypeVectorGraphic = 8, 19 | kComponentTypeVideo = 9 20 | } 21 | -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/Logger.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Setup the Logging build. 3 | # 4 | # To enable logging of sensitive data, include the following option on the cmake command line: 5 | # -DACSDK_EMIT_SENSITIVE_LOGS=ON 6 | # Note that this option is only honored in DEBUG builds. 7 | # 8 | 9 | option(ACSDK_EMIT_SENSITIVE_LOGS "Enable Logging of sensitive information." OFF) 10 | 11 | if (ACSDK_EMIT_SENSITIVE_LOGS) 12 | string(TOUPPER ${CMAKE_BUILD_TYPE} BUILD_TYPE_UPPER) 13 | if (BUILD_TYPE_UPPER STREQUAL DEBUG) 14 | message("WARNING: Logging of sensitive information enabled!") 15 | add_definitions(-DACSDK_EMIT_SENSITIVE_LOGS) 16 | else() 17 | message(FATAL_ERROR "FATAL_ERROR: ACSDK_EMIT_SENSITIVE_LOGS=ON in non-DEBUG build.") 18 | endif() 19 | endif() 20 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/VectorGraphicAlign.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/component/componentproperties.h line 159 8 | */ 9 | export declare enum VectorGraphicAlign { 10 | kVectorGraphicAlignBottom = 0, 11 | kVectorGraphicAlignBottomLeft = 1, 12 | kVectorGraphicAlignBottomRight = 2, 13 | kVectorGraphicAlignCenter = 3, 14 | kVectorGraphicAlignLeft = 4, 15 | kVectorGraphicAlignRight = 5, 16 | kVectorGraphicAlignTop = 6, 17 | kVectorGraphicAlignTopLeft = 7, 18 | kVectorGraphicAlignTopRight = 8 19 | } 20 | -------------------------------------------------------------------------------- /modules/GUI/js/src/lib/config/visualCharacteristics/IInteractionMode.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | 5 | import { DeviceMode } from 'apl-client'; 6 | 7 | export type InteractionDistanceUnit = 8 | 'CENTIMETER' 9 | | 'INCHES'; 10 | 11 | export type InteractionSupportType = 12 | 'SUPPORTED' 13 | | 'UNSUPPORTED'; 14 | 15 | export interface IInteractionDistance { 16 | unit : InteractionDistanceUnit; 17 | value : number; 18 | } 19 | 20 | export interface IInteractionMode { 21 | id : string; 22 | uiMode : DeviceMode; 23 | interactionDistance : IInteractionDistance; 24 | touch : InteractionSupportType; 25 | keyboard : InteractionSupportType; 26 | video : InteractionSupportType; 27 | } 28 | -------------------------------------------------------------------------------- /modules/GUI/js/src/lib/utils/timer.ts: -------------------------------------------------------------------------------- 1 | export class Timer { 2 | private callback : () => void; 3 | private timeout : number; 4 | private intervalId? : number; 5 | 6 | constructor(callback : () => void, timeout : number) { 7 | this.callback = callback; 8 | this.timeout = timeout; 9 | } 10 | 11 | public start () { 12 | if (this.intervalId) { 13 | this.stop(); 14 | } 15 | this.intervalId = window.setInterval(this.callback, this.timeout); 16 | } 17 | 18 | public stop () { 19 | clearInterval(this.intervalId); 20 | this.intervalId = undefined; 21 | } 22 | 23 | public static delay(ms : number) { 24 | return new Promise((resolve) => window.setTimeout(resolve, ms)); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/data/widget.json: -------------------------------------------------------------------------------- 1 | {"widget": { 2 | "debug": "on", 3 | "window": { 4 | "title": "Sample Konfabulator Widget", 5 | "name": "main_window", 6 | "width": 500, 7 | "height": 500 8 | }, 9 | "image": { 10 | "src": "Images/Sun.png", 11 | "name": "sun1", 12 | "hOffset": 250, 13 | "vOffset": 250, 14 | "alignment": "center" 15 | }, 16 | "text": { 17 | "data": "Click Here", 18 | "size": 36, 19 | "style": "bold", 20 | "name": "text1", 21 | "hOffset": 250, 22 | "vOffset": 100, 23 | "alignment": "center", 24 | "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;" 25 | } 26 | }} -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/media/audio/AudioContextProvider.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Interface to provide AudioContext 3 | */ 4 | export interface IAudioContextProvider { 5 | /** 6 | * Get audio context on demand 7 | */ 8 | getAudioContext(): Promise; 9 | /** 10 | * Release an audio context 11 | * 12 | * @param audioContext an AudioContext object 13 | */ 14 | releaseAudioContext(audioContext: AudioContext): Promise; 15 | } 16 | /** 17 | * A default audio context provider 18 | */ 19 | export declare class DefaultAudioContextProvider implements IAudioContextProvider { 20 | private audioContext; 21 | getAudioContext(): Promise; 22 | releaseAudioContext(audioContext: AudioContext): Promise; 23 | } 24 | -------------------------------------------------------------------------------- /modules/Alexa/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1 FATAL_ERROR) 2 | 3 | project(AlexaModule LANGUAGES CXX) 4 | 5 | find_package(PkgConfig) 6 | pkg_check_modules(ASDK REQUIRED AlexaClientSDK=1.19.1) 7 | 8 | include(build/BuildDefaults.cmake) 9 | include(tools/Testing.cmake) 10 | 11 | # Set variables for target install and .pc pkg-config file 12 | include(build/cmake/PrepareInstall.cmake) 13 | 14 | # Alexa Client SDK targets. 15 | add_subdirectory("ThirdParty") 16 | add_subdirectory("SmartScreenCapabilityAgents") 17 | add_subdirectory("SmartScreenSDKInterfaces") 18 | add_subdirectory("ApplicationUtilities") 19 | add_subdirectory("SampleApp") 20 | add_subdirectory("doc") 21 | add_subdirectory("Utils") 22 | 23 | # Create .pc pkg-config file 24 | include(build/cmake/GeneratePkgConfig.cmake) 25 | -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/MRM.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Setup the MRM compiler options. 3 | # 4 | # To build with MRM support, include the following option on the cmake command line. 5 | # cmake 6 | # -DMRM=ON 7 | # -DMRM_LIB_PATH= 8 | # -DMRM_INCLUDE_DIR= 9 | # 10 | 11 | option(MRM "Enable Multi-Room-Music (MRM)." OFF) 12 | 13 | if(MRM) 14 | if(NOT MRM_LIB_PATH) 15 | message(FATAL_ERROR "Must pass path to the external library to enable MRM support.") 16 | endif() 17 | if(NOT MRM_INCLUDE_DIR) 18 | message(FATAL_ERROR "Must pass include directory path to enable MRM support.") 19 | endif() 20 | message("Creating ${PROJECT_NAME} with Multi-Room-Music (MRM)") 21 | add_definitions(-DENABLE_MRM) 22 | endif() -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/EventProperty.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/engine/event.h line 133 8 | */ 9 | export declare enum EventProperty { 10 | kEventPropertyAlign = 0, 11 | kEventPropertyArguments = 1, 12 | kEventPropertyAudioTrack = 2, 13 | kEventPropertyCommand = 3, 14 | kEventPropertyComponent = 4, 15 | kEventPropertyComponents = 5, 16 | kEventPropertyDirection = 6, 17 | kEventPropertyHighlightMode = 7, 18 | kEventPropertyPosition = 8, 19 | kEventPropertySource = 9, 20 | kEventPropertyValue = 10 21 | } 22 | -------------------------------------------------------------------------------- /modules/Alexa/SmartScreenCapabilityAgents/VisualCharacteristics/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_definitions("-DACSDK_LOG_MODULE=visualCharacteristics") 2 | 3 | add_library(VisualCharacteristics SHARED 4 | "${CMAKE_CURRENT_LIST_DIR}/VisualCharacteristics.cpp") 5 | 6 | target_include_directories(VisualCharacteristics 7 | PUBLIC "${VisualCharacteristics_SOURCE_DIR}/include" 8 | "${SmartScreenSDKInterfaces_SOURCE_DIR}/include" 9 | "${ASDK_INCLUDE_DIRS}" 10 | "${RAPIDJSON_INCLUDE_DIR}") 11 | 12 | target_link_libraries(VisualCharacteristics "${ASDK_LDFLAGS}" SmartScreenSDKInterfaces) 13 | 14 | if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") 15 | target_link_libraries(VisualCharacteristics "-Wl,-rpath,${ASDK_LIBRARY_DIRS},--disable-new-dtags") 16 | endif() 17 | 18 | # install target 19 | asdk_install() -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/media/IMediaSource.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * MediaTrack defines the source and playback parameters 6 | * @ignore 7 | */ 8 | export interface IMediaSource { 9 | /** 10 | * The actual URL to load the video from 11 | */ 12 | url: string; 13 | /** 14 | * Optional description of this source 15 | */ 16 | description: string; 17 | /** 18 | * Duration of the track in milliseconds 19 | */ 20 | duration: number; 21 | /** 22 | * Number of times to repeat. -1 is repeat forever 23 | */ 24 | repeatCount: number; 25 | /** 26 | * Milliseconds from the start of the track to play from 27 | */ 28 | offset: number; 29 | } 30 | -------------------------------------------------------------------------------- /modules/GUI/js/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "sourceMap": true, 4 | "outDir": "./dist/", 5 | "module": "commonjs", 6 | "moduleResolution": "node", 7 | "charset": "utf-8", 8 | "inlineSources": false, 9 | "alwaysStrict": true, 10 | "declaration": true, 11 | "pretty": true, 12 | "removeComments": false, 13 | "target": "es6", 14 | "lib": [ 15 | "es2015", 16 | "es2016", 17 | "es2017", 18 | "dom" 19 | ], 20 | "noImplicitAny": true, 21 | "jsx": "react", 22 | "types": [ 23 | "node" 24 | ] 25 | }, 26 | "exclude": [ 27 | "node_modules", 28 | "offline-module-cache", 29 | "build", 30 | "coverage", 31 | "dist" 32 | ], 33 | "include": [ 34 | "**/*.ts", 35 | "**/*.tsx" 36 | ] 37 | } 38 | -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/CodeCoverage/preCTest.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [ $# -ne 3 ]; then 3 | printf "USAGE:\n\ 4 | $0 CURRENT_BINARY_DIR TOP_BINARY_DIR TOP_DATA_FILE" 5 | exit 1 6 | fi 7 | 8 | # Current project's binary directory. 9 | CURRENT_BINARY_DIR=$1 10 | # Top project's binary directory 11 | TOP_BINARY_DIR=$2 12 | # Top project's target data filename. 13 | TOP_DATA_FILE=$3 14 | # Reset coverage counters on the top binary directory if the coverage data file does not exist. 15 | if [ ! -f $TOP_DATA_FILE ]; then 16 | lcov -b $TOP_BINARY_DIR -d $TOP_BINARY_DIR -z -q 17 | fi 18 | # Reset coverage counters on the current directory if it is not the same as the top directory. 19 | if [ "$CURRENT_BINARY_DIR" != "$TOP_BINARY_DIR" ]; then 20 | lcov -b $CURRENT_BINARY_DIR -d $CURRENT_BINARY_DIR -z -q 21 | fi 22 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/avg/APLGraphicElement.d.ts: -------------------------------------------------------------------------------- 1 | export declare function toColor(value: string): number; 2 | export declare function toActualSize(value: number): number; 3 | export interface GraphicElementData { 4 | id: number; 5 | children: GraphicElementData[]; 6 | props: { 7 | [key: string]: any; 8 | }; 9 | type: number; 10 | } 11 | export declare class APLGraphicElement implements APL.GraphicElement { 12 | private id; 13 | private type; 14 | private props; 15 | private children; 16 | constructor(data: GraphicElementData); 17 | getId(): number; 18 | getChildCount(): number; 19 | getChildAt(index: number): APL.GraphicElement; 20 | getValue(key: number): T; 21 | getDirtyProperties(): number[]; 22 | getType(): number; 23 | delete(): void; 24 | } 25 | -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/PackageConfigs.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # This module contains variables that define requirements of packages used in the SDK. Keep in mind that these variables 3 | # are intended to be used with `find_package` function of CMAKE, e.g. 4 | # find_package(MyPackage ${MYPACKAGE_PACKAGE_CONFIG}) 5 | # where the variable name should be all capitalized. Therefore when adding new variables here, make sure that it follows 6 | # the syntax of `find_package` that can be found here: @see https://cmake.org/cmake/help/v3.0/command/find_package.html 7 | # 8 | 9 | # Set the minimum version required by CURL. 10 | set(CURL_PACKAGE_CONFIG 7.43.0 REQUIRED) 11 | 12 | # Make the Threads package required. 13 | set(THREADS_PACKAGE_CONFIG REQUIRED) 14 | 15 | # Minimum version of OpenSSL required 16 | set(OPENSSL_MIN_VERSION 1.0.2) 17 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googlemock/msvc/2015/gmock_config.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ../../../googletest 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | $(GTestDir)/include;%(AdditionalIncludeDirectories) 12 | 13 | 14 | 15 | 16 | $(GTestDir) 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/ESP.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Setup the ESP compiler options. 3 | # 4 | # To build with ESP support, include the following option on the cmake command line. 5 | # cmake 6 | # -DESP_PROVIDER=ON 7 | # -DESP_LIB_PATH= 8 | # -DESP_INCLUDE_DIR= 9 | # 10 | 11 | option(ESP_PROVIDER "Enable Echo Spatial Perception (ESP)." OFF) 12 | 13 | if(ESP_PROVIDER) 14 | if(NOT ESP_LIB_PATH) 15 | message(FATAL_ERROR "Must pass library path of ESP to enable it.") 16 | endif() 17 | if(NOT ESP_INCLUDE_DIR) 18 | message(FATAL_ERROR "Must pass include dir path of ESP to enable it.") 19 | endif() 20 | message("Creating ${PROJECT_NAME} with Echo Spatial Perception (ESP)") 21 | add_definitions(-DENABLE_ESP) 22 | endif() 23 | -------------------------------------------------------------------------------- /modules/GUI/js/src/lib/activity/ActivityEvent.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | /** 8 | * Copy of alexaSmartScreenSDK/smartScreenCapabilityAgents/renderingHandler/ActivityEvent 9 | * 10 | * @enum 11 | * @exports 12 | */ 13 | export enum ActivityEvent { 14 | /** 15 | * GUI switched to active state. 16 | */ 17 | ACTIVATED = 'ACTIVATED', 18 | /** 19 | * GUI become inactive. 20 | */ 21 | DEACTIVATED = 'DEACTIVATED', 22 | /** 23 | * GUI processed one-time event. 24 | */ 25 | ONE_TIME = 'ONE_TIME', 26 | /** 27 | * Interrupt event (touch) 28 | */ 29 | INTERRUPT = 'INTERRUPT', 30 | /** 31 | * Guard option for unknown event. 32 | */ 33 | UNKNOWN = 'UNKNOWN' 34 | } 35 | -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/Comms.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Setup the Comms compiler options. 3 | # 4 | # To build with Comms support, include the following option on the cmake command line. 5 | # cmake 6 | # -DCOMMS=ON 7 | # -DCOMMS_LIB_PATH= 8 | # -DCOMMS_INCLUDE_DIR= 9 | # 10 | 11 | option(COMMS "Enable Alexa Comms (Calling)." OFF) 12 | 13 | if(COMMS) 14 | if(NOT COMMS_LIB_PATH) 15 | message(FATAL_ERROR "Must pass library path of AlexaCommsLib to enable Comms.") 16 | endif() 17 | if(NOT COMMS_INCLUDE_DIR) 18 | message(FATAL_ERROR "Must pass include dir path of AlexaCommsLib to enable Comms.") 19 | endif() 20 | message("Creating ${PROJECT_NAME} with Alexa Comms (Calling)") 21 | add_definitions(-DENABLE_COMMS) 22 | endif() 23 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googlemock/msvc/2010/gmock_config.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ../../../googletest 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | $(GTestDir)/include;%(AdditionalIncludeDirectories) 12 | 13 | 14 | 15 | 16 | $(GTestDir) 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/Bluetooth.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Setup the Bluetooth compiler options. 3 | # 4 | # To build with Bluetooth capabilties, specify: 5 | # cmake -DBLUETOOTH_BLUEZ 6 | 7 | option(BLUETOOTH_BLUEZ "Enable BlueZ implementation of the Bluetooth" OFF) 8 | 9 | if(BLUETOOTH_BLUEZ) 10 | message("Creating ${PROJECT_NAME} with BlueZ implementation of Bluetooth") 11 | find_package(PkgConfig) 12 | pkg_check_modules(GIO REQUIRED gio-2.0>=2.4) 13 | pkg_check_modules(GIO_UNIX REQUIRED gio-unix-2.0>=2.4) 14 | pkg_check_modules(SBC REQUIRED) 15 | add_definitions(-DBLUETOOTH_BLUEZ) 16 | # When we have other implementations, add another definition to represent whether Bluetooth is enabled. 17 | # add_definitions(-DBLUETOOTH_ENABLED) 18 | else() 19 | message ("Bluetooth implementation not supported") 20 | endif() 21 | 22 | 23 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googlemock/docs/Documentation.md: -------------------------------------------------------------------------------- 1 | This page lists all documentation wiki pages for Google Mock **(the SVN trunk version)** 2 | - **if you use a released version of Google Mock, please read the documentation for that specific version instead.** 3 | 4 | * [ForDummies](ForDummies.md) -- start here if you are new to Google Mock. 5 | * [CheatSheet](CheatSheet.md) -- a quick reference. 6 | * [CookBook](CookBook.md) -- recipes for doing various tasks using Google Mock. 7 | * [FrequentlyAskedQuestions](FrequentlyAskedQuestions.md) -- check here before asking a question on the mailing list. 8 | 9 | To contribute code to Google Mock, read: 10 | 11 | * [DevGuide](DevGuide.md) -- read this _before_ writing your first patch. 12 | * [Pump Manual](../googletest/docs/PumpManual.md) -- how we generate some of Google Mock's source files. 13 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/example/simpledom/simpledom.cpp: -------------------------------------------------------------------------------- 1 | // JSON simple example 2 | // This example does not handle errors. 3 | 4 | #include "rapidjson/document.h" 5 | #include "rapidjson/writer.h" 6 | #include "rapidjson/stringbuffer.h" 7 | #include 8 | 9 | using namespace rapidjson; 10 | 11 | int main() { 12 | // 1. Parse a JSON string into DOM. 13 | const char* json = "{\"project\":\"rapidjson\",\"stars\":10}"; 14 | Document d; 15 | d.Parse(json); 16 | 17 | // 2. Modify it by DOM. 18 | Value& s = d["stars"]; 19 | s.SetInt(s.GetInt() + 1); 20 | 21 | // 3. Stringify the DOM 22 | StringBuffer buffer; 23 | Writer writer(buffer); 24 | d.Accept(writer); 25 | 26 | // Output {"project":"rapidjson","stars":11} 27 | std::cout << buffer.GetString() << std::endl; 28 | return 0; 29 | } 30 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googlemock/docs/v1_5/Documentation.md: -------------------------------------------------------------------------------- 1 | This page lists all documentation wiki pages for Google Mock **version 1.5.0** -- **if you use a different version of Google Mock, please read the documentation for that specific version instead.** 2 | 3 | * [ForDummies](V1_5_ForDummies.md) -- start here if you are new to Google Mock. 4 | * [CheatSheet](V1_5_CheatSheet.md) -- a quick reference. 5 | * [CookBook](V1_5_CookBook.md) -- recipes for doing various tasks using Google Mock. 6 | * [FrequentlyAskedQuestions](V1_5_FrequentlyAskedQuestions.md) -- check here before asking a question on the mailing list. 7 | 8 | To contribute code to Google Mock, read: 9 | 10 | * DevGuide -- read this _before_ writing your first patch. 11 | * [Pump Manual](http://code.google.com/p/googletest/wiki/PumpManual) -- how we generate some of Google Mock's source files. -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/docs/V1_5_Documentation.md: -------------------------------------------------------------------------------- 1 | This page lists all official documentation wiki pages for Google Test **1.5.0** -- **if you use a different version of Google Test, make sure to read the documentation for that version instead.** 2 | 3 | * [Primer](V1_5_Primer.md) -- start here if you are new to Google Test. 4 | * [Samples](Samples.md) -- learn from examples. 5 | * [AdvancedGuide](V1_5_AdvancedGuide.md) -- learn more about Google Test. 6 | * [XcodeGuide](V1_5_XcodeGuide.md) -- how to use Google Test in Xcode on Mac. 7 | * [Frequently-Asked Questions](V1_5_FAQ.md) -- check here before asking a question on the mailing list. 8 | 9 | To contribute code to Google Test, read: 10 | 11 | * DevGuide -- read this _before_ writing your first patch. 12 | * [PumpManual](V1_5_PumpManual.md) -- how we generate some of Google Test's source files. -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/docs/Documentation.md: -------------------------------------------------------------------------------- 1 | This page lists all documentation wiki pages for Google Test **(the SVN trunk version)** 2 | -- **if you use a released version of Google Test, please read the 3 | documentation for that specific version instead.** 4 | 5 | * [Primer](Primer.md) -- start here if you are new to Google Test. 6 | * [Samples](Samples.md) -- learn from examples. 7 | * [AdvancedGuide](AdvancedGuide.md) -- learn more about Google Test. 8 | * [XcodeGuide](XcodeGuide.md) -- how to use Google Test in Xcode on Mac. 9 | * [Frequently-Asked Questions](FAQ.md) -- check here before asking a question on the mailing list. 10 | 11 | To contribute code to Google Test, read: 12 | 13 | * [DevGuide](DevGuide.md) -- read this _before_ writing your first patch. 14 | * [PumpManual](PumpManual.md) -- how we generate some of Google Test's source files. -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googlemock/docs/v1_6/Documentation.md: -------------------------------------------------------------------------------- 1 | This page lists all documentation wiki pages for Google Mock **1.6** 2 | - **if you use a released version of Google Mock, please read the documentation for that specific version instead.** 3 | 4 | * [ForDummies](V1_6_ForDummies.md) -- start here if you are new to Google Mock. 5 | * [CheatSheet](V1_6_CheatSheet.md) -- a quick reference. 6 | * [CookBook](V1_6_CookBook.md) -- recipes for doing various tasks using Google Mock. 7 | * [FrequentlyAskedQuestions](V1_6_FrequentlyAskedQuestions.md) -- check here before asking a question on the mailing list. 8 | 9 | To contribute code to Google Mock, read: 10 | 11 | * [DevGuide](DevGuide.md) -- read this _before_ writing your first patch. 12 | * [Pump Manual](http://code.google.com/p/googletest/wiki/V1_6_PumpManual) -- how we generate some of Google Mock's source files. -------------------------------------------------------------------------------- /modules/GUI/js/src/lib/config/visualCharacteristics/IVisualCharacteristics.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | 5 | import { IDeviceDisplay } from './IDeviceDisplay'; 6 | import { IDisplayWindowTemplate } from './IDisplayWindow'; 7 | import { IInteractionMode } from './IInteractionMode'; 8 | import { IVideo } from './IVideo'; 9 | 10 | /** 11 | * Wrapper interface for DCF reported characteristics 12 | */ 13 | export interface IVisualCharacteristics { 14 | /** Physical Device Display Characteristics - reported */ 15 | display : IDeviceDisplay; 16 | /** Device Window Configurations - reported */ 17 | windowTemplates : IDisplayWindowTemplate[]; 18 | /** Device Interaction Modes - reported */ 19 | interactionModes : IInteractionMode[]; 20 | /** Device supported Video Codecs - reported */ 21 | video : IVideo; 22 | } 23 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/docs/V1_6_Documentation.md: -------------------------------------------------------------------------------- 1 | This page lists all documentation wiki pages for Google Test **1.6** 2 | -- **if you use a released version of Google Test, please read the 3 | documentation for that specific version instead.** 4 | 5 | * [Primer](V1_6_Primer.md) -- start here if you are new to Google Test. 6 | * [Samples](V1_6_Samples.md) -- learn from examples. 7 | * [AdvancedGuide](V1_6_AdvancedGuide.md) -- learn more about Google Test. 8 | * [XcodeGuide](V1_6_XcodeGuide.md) -- how to use Google Test in Xcode on Mac. 9 | * [Frequently-Asked Questions](V1_6_FAQ.md) -- check here before asking a question on the mailing list. 10 | 11 | To contribute code to Google Test, read: 12 | 13 | * [DevGuide](DevGuide.md) -- read this _before_ writing your first patch. 14 | * [PumpManual](V1_6_PumpManual.md) -- how we generate some of Google Test's source files. -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googlemock/docs/v1_7/Documentation.md: -------------------------------------------------------------------------------- 1 | This page lists all documentation wiki pages for Google Mock **(the SVN trunk version)** 2 | - **if you use a released version of Google Mock, please read the documentation for that specific version instead.** 3 | 4 | * [ForDummies](V1_7_ForDummies.md) -- start here if you are new to Google Mock. 5 | * [CheatSheet](V1_7_CheatSheet.md) -- a quick reference. 6 | * [CookBook](V1_7_CookBook.md) -- recipes for doing various tasks using Google Mock. 7 | * [FrequentlyAskedQuestions](V1_7_FrequentlyAskedQuestions.md) -- check here before asking a question on the mailing list. 8 | 9 | To contribute code to Google Mock, read: 10 | 11 | * [DevGuide](DevGuide.md) -- read this _before_ writing your first patch. 12 | * [Pump Manual](http://code.google.com/p/googletest/wiki/PumpManual) -- how we generate some of Google Mock's source files. -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/media/audio/SpeechMarks.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The type of speech mark 3 | * @ignore 4 | */ 5 | export declare type SpeechMarkType = 'visime' | 'word' | 'sentence'; 6 | /** 7 | * Base type 8 | * @ignore 9 | */ 10 | export interface IBaseMarker { 11 | /** 12 | * Marker type 13 | */ 14 | type: SpeechMarkType; 15 | /** 16 | * Time offset in milliseconds 17 | */ 18 | time: number; 19 | /** 20 | * Value of the marker (defined by type) 21 | */ 22 | value: string; 23 | } 24 | /** 25 | * Extended type for word / sentence marker type 26 | * @ignore 27 | */ 28 | export interface IFragmentMarker extends IBaseMarker { 29 | /** 30 | * Start index in the sentence of this fragment 31 | */ 32 | start: number; 33 | /** 34 | * End index ( +1 ) in the sentence of this fragment 35 | */ 36 | end: number; 37 | } 38 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/docs/V1_7_Documentation.md: -------------------------------------------------------------------------------- 1 | This page lists all documentation wiki pages for Google Test **(the SVN trunk version)** 2 | -- **if you use a released version of Google Test, please read the 3 | documentation for that specific version instead.** 4 | 5 | * [Primer](V1_7_Primer.md) -- start here if you are new to Google Test. 6 | * [Samples](V1_7_Samples.md) -- learn from examples. 7 | * [AdvancedGuide](V1_7_AdvancedGuide.md) -- learn more about Google Test. 8 | * [XcodeGuide](V1_7_XcodeGuide.md) -- how to use Google Test in Xcode on Mac. 9 | * [Frequently-Asked Questions](V1_7_FAQ.md) -- check here before asking a question on the mailing list. 10 | 11 | To contribute code to Google Test, read: 12 | 13 | * [DevGuide](DevGuide.md) -- read this _before_ writing your first patch. 14 | * [PumpManual](V1_7_PumpManual.md) -- how we generate some of Google Test's source files. -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/test/perftest/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(PERFTEST_SOURCES 2 | misctest.cpp 3 | perftest.cpp 4 | platformtest.cpp 5 | rapidjsontest.cpp 6 | schematest.cpp) 7 | 8 | add_executable(perftest ${PERFTEST_SOURCES}) 9 | target_link_libraries(perftest ${TEST_LIBRARIES}) 10 | 11 | add_dependencies(tests perftest) 12 | 13 | find_program(CCACHE_FOUND ccache) 14 | if(CCACHE_FOUND) 15 | set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache) 16 | set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache) 17 | if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") 18 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qunused-arguments -fcolor-diagnostics") 19 | endif() 20 | endif(CCACHE_FOUND) 21 | 22 | IF(NOT (CMAKE_BUILD_TYPE STREQUAL "Debug")) 23 | add_test(NAME perftest 24 | COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/perftest 25 | WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) 26 | ENDIF() 27 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/dts/Content.d.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | declare namespace APL { 5 | export class ImportRef { 6 | public version(): string; 7 | public name(): string; 8 | } 9 | export class ImportRequest { 10 | public isValid(): boolean; 11 | public reference(): ImportRef; 12 | public source(): string; 13 | } 14 | export class Content extends Deletable { 15 | public static create(document: string): Content; 16 | public getRequestedPackages(): Set; 17 | public addPackage(request: ImportRequest, data: string): void; 18 | public isError(): boolean; 19 | public isReady(): boolean; 20 | public isWaiting(): boolean; 21 | public addData(name: string, data: string): void; 22 | public getAPLVersion(): string; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/media/PlaybackManager.d.ts: -------------------------------------------------------------------------------- 1 | import { IMediaSource } from './IMediaSource'; 2 | /** 3 | * Media resource state 4 | * @ignore 5 | */ 6 | export interface IMediaResource { 7 | toRepeat: number; 8 | description: string; 9 | offset: number; 10 | repeatCount: number; 11 | trackIndex: number; 12 | url: string; 13 | id: string; 14 | loaded: boolean; 15 | } 16 | /** 17 | * @ignore 18 | */ 19 | export declare class PlaybackManager { 20 | private current; 21 | private resources; 22 | setup(sources: IMediaSource | IMediaSource[]): void; 23 | getCurrentIndex(): number; 24 | getTrackCount(): number; 25 | getCurrent(): IMediaResource; 26 | next(): IMediaResource; 27 | previous(): IMediaResource; 28 | setCurrent(index: number): void; 29 | hasNext(): boolean; 30 | repeat(): boolean; 31 | private addToPlaylist(index, track); 32 | private reset(); 33 | } 34 | -------------------------------------------------------------------------------- /modules/Alexa/build/cmake/Captions.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Set up Captions specific configurations for the sample app. 3 | # 4 | # To build with Captions, run the following command, 5 | # cmake 6 | # -DCAPTIONS=ON 7 | # -DLIBWEBVTT_LIB_PATH= 8 | # -DLIBWEBVTT_INCLUDE_DIR= 9 | # 10 | 11 | option(CAPTIONS "Enable captions support." OFF) 12 | 13 | if(CAPTIONS) 14 | if(NOT LIBWEBVTT_LIB_PATH) 15 | message(FATAL_ERROR "Must pass path to the external WebVTT parsing library to enable captions support.") 16 | endif() 17 | if(NOT LIBWEBVTT_INCLUDE_DIR) 18 | message(FATAL_ERROR "Must provide the path to the directory containg the header files of the " 19 | "WebVTT parsing library to enable captions support.") 20 | endif() 21 | message("Creating ${PROJECT_NAME} with captions enabled") 22 | add_definitions("-DENABLE_CAPTIONS") 23 | endif() -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/media/audio/AudioPlayer.d.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | import { IAudioEventListener } from './IAudioEventListener'; 5 | export declare type AudioPlayerFactory = (eventListener: IAudioEventListener) => AudioPlayer; 6 | export declare abstract class AudioPlayer { 7 | private eventListener; 8 | private resourceMap; 9 | private currentSource; 10 | private decodePromise; 11 | private static logger; 12 | constructor(eventListener: IAudioEventListener); 13 | prepare(url: string, decodeMarkers: boolean): string; 14 | protected onPlaybackFinished(id: string): void; 15 | protected onError(id: string, reason: string): void; 16 | abstract play(id: string): any; 17 | protected playWithContext(id: string, audioContext: AudioContext): void; 18 | protected cancelPendingAndRemoveCompleted(): void; 19 | flush(): void; 20 | } 21 | -------------------------------------------------------------------------------- /modules/GUI/config/certificates/ca_settings.cnf: -------------------------------------------------------------------------------- 1 | [ ca ] 2 | default_ca = CA_default 3 | 4 | [ CA_default ] 5 | dir = . 6 | default_days = 365 7 | default_crl_days = 30 8 | default_md = sha256 9 | preserve = no 10 | policy = policy_match 11 | database = $dir/index.txt 12 | serial = $dir/certs.seq 13 | 14 | [ policy_match ] 15 | countryName = match 16 | stateOrProvinceName = match 17 | organizationName = match 18 | location = match 19 | commonName = supplied 20 | 21 | [ req ] 22 | distinguished_name = req_distinguished_name 23 | prompt = no 24 | x509_extensions = v3_ca 25 | default_bits = 2048 26 | default_md = sha256 27 | 28 | [ req_distinguished_name ] 29 | C = US 30 | ST = WA 31 | L = Seattle 32 | O = Amazon 33 | CN = MMSDK CA 34 | 35 | [ v3_ca ] 36 | subjectKeyIdentifier = hash 37 | authorityKeyIdentifier = keyid:always,issuer:always 38 | basicConstraints = CA:TRUE 39 | keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment, keyAgreement, keyCertSign 40 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/APLWSRenderer.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | import APLRenderer, { IAPLOptions } from "./@types/apl-html/lib/index"; 5 | import { APLClient } from "./APLClient"; 6 | import { APLComponent } from './APLComponent'; 7 | export interface IAPLWSOptions extends IAPLOptions { 8 | /** 9 | * The client to use to connect to the APLContent server. 10 | */ 11 | client: APLClient; 12 | } 13 | /** 14 | * The main renderer. Create a new one with `const renderer = APLWSRenderer.create(options);` 15 | */ 16 | export declare class APLWSRenderer extends APLRenderer { 17 | componentMapping: { 18 | [id: string]: APLComponent; 19 | }; 20 | /** 21 | * Creates a new renderer 22 | * @param options Options for this instance 23 | */ 24 | static create(options: IAPLWSOptions): APLWSRenderer; 25 | init(): Promise; 26 | destroy(): void; 27 | } 28 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/logging/LoggerFactory.d.ts: -------------------------------------------------------------------------------- 1 | import { ILogger } from './ILogger'; 2 | import { LogTransport } from './LogTransport'; 3 | import { LogLevel } from './LogLevel'; 4 | /** 5 | * Simple wrapper to hide loglevel logger oddity and do set-up. Could be changed to be more generic in the future. 6 | */ 7 | export declare class LoggerFactory { 8 | private static rootLogger; 9 | private static originalFactory; 10 | private static initialized; 11 | /** 12 | * Initialize logger 13 | * 14 | * @param logLevel one of 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'silent' 15 | * @param transport optional parameter for custom log transport. @see LogTransport 16 | */ 17 | static initialize(logLevel: LogLevel, transport?: LogTransport): void; 18 | /** 19 | * Creates component specific logger. 20 | * 21 | * @param name Name of the requesting component. 22 | */ 23 | static getLogger(name: string): ILogger; 24 | } 25 | -------------------------------------------------------------------------------- /modules/GUI/js/src/components/sampleHome.css: -------------------------------------------------------------------------------- 1 | .bg { 2 | background-color: #232F3E; 3 | display: flex; 4 | flex-direction: column; 5 | align-items: center; 6 | justify-content: center; 7 | height: 100%; 8 | } 9 | 10 | .alexaLogo { 11 | background-image: url("../assets/horizontal_RGB_color_whitetext.png"); 12 | background-position: center; 13 | background-repeat: no-repeat; 14 | background-size: contain; 15 | width: 50%; 16 | height: 10%; 17 | } 18 | 19 | .usage { 20 | display: flex; 21 | flex-direction: column; 22 | align-items: center; 23 | justify-content: center; 24 | } 25 | 26 | .deviceDescription { 27 | font-size: 40px; 28 | font-family: sans-serif; 29 | color: lightgray; 30 | padding-top: 2vh; 31 | text-align: center; 32 | } 33 | 34 | .howToTalk { 35 | font-size: 40px; 36 | font-weight: bold; 37 | font-family: sans-serif; 38 | color: lightgray; 39 | padding-top: 2vh; 40 | text-align: center; 41 | } -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/logging/ILogger.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Generic logger interface. 3 | * 4 | * @exports 5 | * @interface 6 | */ 7 | export interface ILogger { 8 | /** 9 | * Log trace message 10 | * This will also include a full stack trace 11 | * 12 | * @param msg any data to log to the console 13 | */ 14 | trace(...msg: any[]): void; 15 | /** 16 | * Log debug message 17 | * 18 | * @param msg any data to log to the console 19 | */ 20 | debug(...msg: any[]): void; 21 | /** 22 | * Log info message 23 | * 24 | * @param msg any data to log to the console 25 | */ 26 | info(...msg: any[]): void; 27 | /** 28 | * Log warn message 29 | * 30 | * @param msg any data to log to the console 31 | */ 32 | warn(...msg: any[]): void; 33 | /** 34 | * Log error message 35 | * 36 | * @param msg any data to log to the console 37 | */ 38 | error(...msg: any[]): void; 39 | } 40 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/Transforms.d.ts: -------------------------------------------------------------------------------- 1 | import { GraphicData } from "./avg/APLGraphic"; 2 | import { Filter, IGradient } from "apl-html"; 3 | export declare function toRect(value: [number, number, number, number]): APL.Rect | undefined; 4 | export declare function toTransform(value: [number, number, number, number, number, number]): string; 5 | export declare function toColor(value: string): number; 6 | export declare function toStyledText(value: { 7 | text: string; 8 | spans: Array<[number, number, number]>; 9 | }): APL.StyledText; 10 | export declare function toGraphic(value: GraphicData): APL.Graphic | undefined; 11 | export declare function toRadii(value: [number, number, number, number]): APL.Radii; 12 | export declare function toDimension(value: number): number; 13 | export declare function toFilters(value: Filter[]): Filter[]; 14 | export declare function toGradient(value: { 15 | angle: number; 16 | colorRange: string[]; 17 | inputRange: number[]; 18 | type: number; 19 | }): IGradient; 20 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/CMakeModules/FindGTestSrc.cmake: -------------------------------------------------------------------------------- 1 | 2 | SET(GTEST_SEARCH_PATH 3 | "${GTEST_SOURCE_DIR}" 4 | "${CMAKE_CURRENT_LIST_DIR}/../thirdparty/gtest/googletest") 5 | 6 | IF(UNIX) 7 | IF(RAPIDJSON_BUILD_THIRDPARTY_GTEST) 8 | LIST(APPEND GTEST_SEARCH_PATH "/usr/src/gtest") 9 | ELSE() 10 | LIST(INSERT GTEST_SEARCH_PATH 1 "/usr/src/gtest") 11 | ENDIF() 12 | ENDIF() 13 | 14 | FIND_PATH(GTEST_SOURCE_DIR 15 | NAMES CMakeLists.txt src/gtest_main.cc 16 | PATHS ${GTEST_SEARCH_PATH}) 17 | 18 | 19 | # Debian installs gtest include directory in /usr/include, thus need to look 20 | # for include directory separately from source directory. 21 | FIND_PATH(GTEST_INCLUDE_DIR 22 | NAMES gtest/gtest.h 23 | PATH_SUFFIXES include 24 | HINTS ${GTEST_SOURCE_DIR} 25 | PATHS ${GTEST_SEARCH_PATH}) 26 | 27 | INCLUDE(FindPackageHandleStandardArgs) 28 | find_package_handle_standard_args(GTestSrc DEFAULT_MSG 29 | GTEST_SOURCE_DIR 30 | GTEST_INCLUDE_DIR) 31 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/avg/APLGraphic.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | import { GraphicElementData } from "./APLGraphicElement"; 5 | export interface GraphicData { 6 | root: GraphicElementData; 7 | isValid: boolean; 8 | intrinsicWidth: number; 9 | intrinsicHeight: number; 10 | viewportWidth: number; 11 | viewportHeight: number; 12 | } 13 | export declare class APLGraphic implements APL.Graphic { 14 | private root; 15 | private valid; 16 | private intrinsicWidth; 17 | private intrinsicHeight; 18 | private viewportWidth; 19 | private viewportHeight; 20 | private dirty; 21 | constructor(data: GraphicData); 22 | getRoot(): APL.GraphicElement; 23 | isValid(): boolean; 24 | getIntrinsicHeight(): number; 25 | getIntrinsicWidth(): number; 26 | getViewportWidth(): number; 27 | getViewportHeight(): number; 28 | clearDirty(): void; 29 | getDirty(): APL.GraphicElement[]; 30 | delete(): void; 31 | } 32 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/xcode/Samples/FrameworkSample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.google.gtest.${PRODUCT_NAME:identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | CSResourcesFileMapped 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/components/Frame.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | import APLRenderer from '../APLRenderer'; 5 | import { PropertyKey } from '../enums/PropertyKey'; 6 | import { Component, FactoryFunction, IComponentProperties } from './Component'; 7 | /** 8 | * @ignore 9 | */ 10 | export interface IFrameProperties extends IComponentProperties { 11 | [PropertyKey.kPropertyBackgroundColor]: number; 12 | [PropertyKey.kPropertyBorderRadii]: APL.Radii; 13 | [PropertyKey.kPropertyBorderColor]: number; 14 | [PropertyKey.kPropertyBorderWidth]: number; 15 | } 16 | /** 17 | * @ignore 18 | */ 19 | export declare class Frame extends Component { 20 | constructor(renderer: APLRenderer, component: APL.Component, factory: FactoryFunction, parent?: Component); 21 | protected isLayout(): boolean; 22 | private setBackgroundColor; 23 | private setBorderRadii; 24 | private setBorderColor; 25 | private setBorderWidth; 26 | } 27 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/data/menu.json: -------------------------------------------------------------------------------- 1 | {"menu": { 2 | "header": "SVG Viewer", 3 | "items": [ 4 | {"id": "Open"}, 5 | {"id": "OpenNew", "label": "Open New"}, 6 | null, 7 | {"id": "ZoomIn", "label": "Zoom In"}, 8 | {"id": "ZoomOut", "label": "Zoom Out"}, 9 | {"id": "OriginalView", "label": "Original View"}, 10 | null, 11 | {"id": "Quality"}, 12 | {"id": "Pause"}, 13 | {"id": "Mute"}, 14 | null, 15 | {"id": "Find", "label": "Find..."}, 16 | {"id": "FindAgain", "label": "Find Again"}, 17 | {"id": "Copy"}, 18 | {"id": "CopyAgain", "label": "Copy Again"}, 19 | {"id": "CopySVG", "label": "Copy SVG"}, 20 | {"id": "ViewSVG", "label": "View SVG"}, 21 | {"id": "ViewSource", "label": "View Source"}, 22 | {"id": "SaveAs", "label": "Save As"}, 23 | null, 24 | {"id": "Help"}, 25 | {"id": "About", "label": "About Adobe CVG Viewer..."} 26 | ] 27 | }} -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/media/video/VideoPlayer.d.ts: -------------------------------------------------------------------------------- 1 | import { IMediaEventListener } from '../IMediaEventListener'; 2 | import { PlaybackState } from '../Resource'; 3 | import { IPlayer } from '../IPlayer'; 4 | /** 5 | * @ignore 6 | */ 7 | export declare class VideoPlayer implements IPlayer { 8 | protected player: HTMLVideoElement; 9 | protected eventListener: IMediaEventListener; 10 | protected playbackState: PlaybackState; 11 | constructor(eventListener: IMediaEventListener); 12 | configure(parent: HTMLElement, scale: 'contain' | 'cover'): void; 13 | applyCssShadow: (shadowParams: string) => void; 14 | load(id: string, url: string): Promise; 15 | play(id: string, url: string, offset: number): Promise; 16 | pause(): void; 17 | mute(): void; 18 | unmute(): void; 19 | flush(): void; 20 | setCurrentTime(offset: number): void; 21 | getCurrentPlaybackPosition(): number; 22 | getDuration(): number; 23 | getMediaState(): PlaybackState; 24 | getMediaId(): string; 25 | private sendPlaying(); 26 | } 27 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/CommandType.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/command/commandproperties.h line 24 8 | */ 9 | export declare enum CommandType { 10 | kCommandTypeIdle = 0, 11 | kCommandTypeSequential = 1, 12 | kCommandTypeParallel = 2, 13 | kCommandTypeSendEvent = 3, 14 | kCommandTypeSetValue = 4, 15 | kCommandTypeSetState = 5, 16 | kCommandTypeSpeakItem = 6, 17 | kCommandTypeSpeakList = 7, 18 | kCommandTypeScroll = 8, 19 | kCommandTypeScrollToIndex = 9, 20 | kCommandTypeScrollToComponent = 10, 21 | kCommandTypeSetPage = 11, 22 | kCommandTypeAutoPage = 12, 23 | kCommandTypePlayMedia = 13, 24 | kCommandTypeControlMedia = 14, 25 | kCommandTypeOpenURL = 15, 26 | kCommandTypeAnimateItem = 16, 27 | kCommandTypeSetFocus = 17, 28 | kCommandTypeClearFocus = 18 29 | } 30 | -------------------------------------------------------------------------------- /modules/GUI/config/StartSample.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # 4 | # Copyright 2018-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"). 7 | # You may not use this file except in compliance with the License. 8 | # A copy of the License is located at 9 | # 10 | # http://aws.amazon.com/apache2.0/ 11 | # 12 | # or in the "license" file accompanying this file. This file is distributed 13 | # on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 14 | # express or implied. See the License for the specific language governing 15 | # permissions and limitations under the License. 16 | # 17 | 18 | FILE_URL="file://$(pwd)//modules/GUI/index.html" 19 | 20 | ((command -v google-chrome && google-chrome "$FILE_URL") || \ 21 | (command -v firefox && firefox "$FILE_URL") || \ 22 | (command -v chromium-browser && chromium-browser "$FILE_URL" &) || \ 23 | (echo "Couldn't find a supported browser. Please install Chrome or Firefox" && exit 1)) && \ 24 | ./modules/Alexa/SampleApp/src/SampleApp "$@" 25 | 26 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/media/IPlayer.d.ts: -------------------------------------------------------------------------------- 1 | import { PlaybackState } from './Resource'; 2 | /** 3 | * @ignore 4 | */ 5 | export interface IPlayer { 6 | /** 7 | * Load media metadata, and preload the content as well 8 | * @param id a uuid 9 | * @param url (optional) URL of the media source 10 | */ 11 | load(id: string, url?: string, decodeMarkers?: boolean): Promise; 12 | /** 13 | * Play a previously prepared media resource 14 | * @param id a uuid 15 | * @param url (optional) URL of the media source 16 | */ 17 | play(id: string, url?: string, offset?: number): Promise; 18 | /** 19 | * Pause the current playing video 20 | */ 21 | pause(): void; 22 | /** 23 | * Stop media, clear prepared resources and cancel any in-flight downloads 24 | */ 25 | flush(): void; 26 | /** 27 | * @returns state of the media playback - IDLE, PLAYING, ENDED, PAUSED, BUFFERING, ERROR 28 | */ 29 | getMediaState(): PlaybackState; 30 | /** 31 | * @returns id of the currently sourced media 32 | */ 33 | getMediaId(): string; 34 | } 35 | -------------------------------------------------------------------------------- /issue_template.md: -------------------------------------------------------------------------------- 1 | 2 | **IMPORTANT**: Before you create an issue, please take a look at our [Issue Reporting Guide](https://github.com/alexa/avs-device-sdk/wiki/Issue-Reporting-Guide). 3 | 4 | 5 | ## Briefly summarize your issue: 6 | 7 | 8 | ## What is the expected behavior? 9 | 10 | 11 | ## What behavior are you observing? 12 | 13 | 14 | ## Provide the steps to reproduce the issue, if applicable: 15 | 16 | 17 | ## Tell us about your environment: 18 | 19 | ### What version of the AVS Device SDK are you using? 20 | 21 | 22 | ### Tell us what hardware you're using: 23 | - [ ] Desktop / Laptop 24 | - [ ] Raspberry Pi 25 | - [ ] Other - tell us more: 26 | 27 | 28 | ### Tell us about your OS (Type & version): 29 | - [ ] Linux 30 | - [ ] MacOS 31 | - [ ] Raspbian Stretch 32 | - [ ] Raspbian Jessy 33 | - [ ] Other - tell us more: 34 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/test/perftest/perftest.cpp: -------------------------------------------------------------------------------- 1 | // Tencent is pleased to support the open source community by making RapidJSON available. 2 | // 3 | // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. 4 | // 5 | // Licensed under the MIT License (the "License"); you may not use this file except 6 | // in compliance with the License. You may obtain a copy of the License at 7 | // 8 | // http://opensource.org/licenses/MIT 9 | // 10 | // Unless required by applicable law or agreed to in writing, software distributed 11 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 12 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 13 | // specific language governing permissions and limitations under the License. 14 | 15 | #include "perftest.h" 16 | 17 | int main(int argc, char **argv) { 18 | #if _MSC_VER 19 | _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF ); 20 | //void *testWhetherMemoryLeakDetectionWorks = malloc(1); 21 | #endif 22 | ::testing::InitGoogleTest(&argc, argv); 23 | return RUN_ALL_TESTS(); 24 | } 25 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/MultipartParser/MultipartParser/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Hongli Lai 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | find_package(Doxygen) 2 | 3 | IF(NOT DOXYGEN_FOUND) 4 | MESSAGE(STATUS "No Doxygen found. Documentation won't be built") 5 | ELSE() 6 | file(GLOB SOURCES ${CMAKE_CURRENT_LIST_DIR}/../include/*) 7 | file(GLOB MARKDOWN_DOC ${CMAKE_CURRENT_LIST_DIR}/../doc/*.md) 8 | list(APPEND MARKDOWN_DOC ${CMAKE_CURRENT_LIST_DIR}/../readme.md) 9 | 10 | CONFIGURE_FILE(Doxyfile.in Doxyfile @ONLY) 11 | CONFIGURE_FILE(Doxyfile.zh-cn.in Doxyfile.zh-cn @ONLY) 12 | 13 | add_custom_command(OUTPUT html 14 | COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile 15 | COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.zh-cn 16 | COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/html 17 | DEPENDS ${MARKDOWN_DOC} ${SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile* 18 | WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/../ 19 | ) 20 | 21 | add_custom_target(doc ALL DEPENDS html) 22 | install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html 23 | DESTINATION ${DOC_INSTALL_DIR} 24 | COMPONENT doc) 25 | ENDIF() 26 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/xcode/Config/DebugProject.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // DebugProject.xcconfig 3 | // 4 | // These are Debug Configuration project settings for the gtest framework and 5 | // examples. It is set in the "Based On:" dropdown in the "Project" info 6 | // dialog. 7 | // This file is based on the Xcode Configuration files in: 8 | // http://code.google.com/p/google-toolbox-for-mac/ 9 | // 10 | 11 | #include "General.xcconfig" 12 | 13 | // No optimization 14 | GCC_OPTIMIZATION_LEVEL = 0 15 | 16 | // Deployment postprocessing is what triggers Xcode to strip, turn it off 17 | DEPLOYMENT_POSTPROCESSING = NO 18 | 19 | // Dead code stripping off 20 | DEAD_CODE_STRIPPING = NO 21 | 22 | // Debug symbols should be on obviously 23 | GCC_GENERATE_DEBUGGING_SYMBOLS = YES 24 | 25 | // Define the DEBUG macro in all debug builds 26 | OTHER_CFLAGS = $(OTHER_CFLAGS) -DDEBUG=1 27 | 28 | // These are turned off to avoid STL incompatibilities with client code 29 | // // Turns on special C++ STL checks to "encourage" good STL use 30 | // GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS) _GLIBCXX_DEBUG_PEDANTIC _GLIBCXX_DEBUG _GLIBCPP_CONCEPT_CHECKS 31 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/architecture.dot: -------------------------------------------------------------------------------- 1 | digraph { 2 | compound=true 3 | fontname="Inconsolata, Consolas" 4 | fontsize=10 5 | margin="0,0" 6 | ranksep=0.2 7 | nodesep=0.5 8 | penwidth=0.5 9 | colorscheme=spectral7 10 | 11 | node [shape=box, fontname="Inconsolata, Consolas", fontsize=10, penwidth=0.5, style=filled, fillcolor=white] 12 | edge [fontname="Inconsolata, Consolas", fontsize=10, penwidth=0.5] 13 | 14 | subgraph cluster1 { 15 | margin="10,10" 16 | labeljust="left" 17 | label = "SAX" 18 | style=filled 19 | fillcolor=6 20 | 21 | Reader -> Writer [style=invis] 22 | } 23 | 24 | subgraph cluster2 { 25 | margin="10,10" 26 | labeljust="left" 27 | label = "DOM" 28 | style=filled 29 | fillcolor=7 30 | 31 | Value 32 | Document 33 | } 34 | 35 | Handler [label="<>\nHandler"] 36 | 37 | { 38 | edge [arrowtail=onormal, dir=back] 39 | Value -> Document 40 | Handler -> Document 41 | Handler -> Writer 42 | } 43 | 44 | { 45 | edge [arrowhead=vee, style=dashed, constraint=false] 46 | Reader -> Handler [label="calls"] 47 | Value -> Handler [label="calls"] 48 | Document -> Reader [label="uses"] 49 | } 50 | } -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/diagram/move1.dot: -------------------------------------------------------------------------------- 1 | digraph { 2 | compound=true 3 | fontname="Inconsolata, Consolas" 4 | fontsize=10 5 | margin="0,0" 6 | ranksep=0.2 7 | penwidth=0.5 8 | 9 | node [fontname="Inconsolata, Consolas", fontsize=10, penwidth=0.5] 10 | edge [fontname="Inconsolata, Consolas", fontsize=10, arrowhead=normal] 11 | 12 | subgraph cluster1 { 13 | margin="10,10" 14 | labeljust="left" 15 | label = "Before" 16 | style=filled 17 | fillcolor=gray95 18 | 19 | node [shape=Mrecord, style=filled, colorscheme=spectral7] 20 | 21 | { 22 | rank = same 23 | b1 [label="{b:number|456}", fillcolor=6] 24 | a1 [label="{a:number|123}", fillcolor=6] 25 | } 26 | 27 | a1 -> b1 [style="dashed", label="Move", dir=back] 28 | } 29 | 30 | subgraph cluster2 { 31 | margin="10,10" 32 | labeljust="left" 33 | label = "After" 34 | style=filled 35 | fillcolor=gray95 36 | 37 | node [shape=Mrecord, style=filled, colorscheme=spectral7] 38 | 39 | { 40 | rank = same 41 | b2 [label="{b:null|}", fillcolor=1] 42 | a2 [label="{a:number|456}", fillcolor=6] 43 | } 44 | a2 -> b2 [style=invis, dir=back] 45 | } 46 | b1 -> b2 [style=invis] 47 | } -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/xcode/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.google.${PRODUCT_NAME} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | GTEST_VERSIONINFO_LONG 21 | CFBundleShortVersionString 22 | GTEST_VERSIONINFO_SHORT 23 | CFBundleGetInfoString 24 | ${PRODUCT_NAME} GTEST_VERSIONINFO_LONG, ${GTEST_VERSIONINFO_ABOUT} 25 | NSHumanReadableCopyright 26 | ${GTEST_VERSIONINFO_ABOUT} 27 | CSResourcesFileMapped 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/example/pretty/pretty.cpp: -------------------------------------------------------------------------------- 1 | // JSON pretty formatting example 2 | // This example can only handle UTF-8. For handling other encodings, see prettyauto example. 3 | 4 | #include "rapidjson/reader.h" 5 | #include "rapidjson/prettywriter.h" 6 | #include "rapidjson/filereadstream.h" 7 | #include "rapidjson/filewritestream.h" 8 | #include "rapidjson/error/en.h" 9 | 10 | using namespace rapidjson; 11 | 12 | int main(int, char*[]) { 13 | // Prepare reader and input stream. 14 | Reader reader; 15 | char readBuffer[65536]; 16 | FileReadStream is(stdin, readBuffer, sizeof(readBuffer)); 17 | 18 | // Prepare writer and output stream. 19 | char writeBuffer[65536]; 20 | FileWriteStream os(stdout, writeBuffer, sizeof(writeBuffer)); 21 | PrettyWriter writer(os); 22 | 23 | // JSON reader parse from the input stream and let writer generate the output. 24 | if (!reader.Parse(is, writer)) { 25 | fprintf(stderr, "\nError(%u): %s\n", static_cast(reader.GetErrorOffset()), GetParseError_En(reader.GetParseErrorCode())); 26 | return 1; 27 | } 28 | 29 | return 0; 30 | } 31 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/xcode/Config/ReleaseProject.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // ReleaseProject.xcconfig 3 | // 4 | // These are Release Configuration project settings for the gtest framework 5 | // and examples. It is set in the "Based On:" dropdown in the "Project" info 6 | // dialog. 7 | // This file is based on the Xcode Configuration files in: 8 | // http://code.google.com/p/google-toolbox-for-mac/ 9 | // 10 | 11 | #include "General.xcconfig" 12 | 13 | // subconfig/Release.xcconfig 14 | 15 | // Optimize for space and size (Apple recommendation) 16 | GCC_OPTIMIZATION_LEVEL = s 17 | 18 | // Deploment postprocessing is what triggers Xcode to strip 19 | DEPLOYMENT_POSTPROCESSING = YES 20 | 21 | // No symbols 22 | GCC_GENERATE_DEBUGGING_SYMBOLS = NO 23 | 24 | // Dead code strip does not affect ObjC code but can help for C 25 | DEAD_CODE_STRIPPING = YES 26 | 27 | // NDEBUG is used by things like assert.h, so define it for general compat. 28 | // ASSERT going away in release tends to create unused vars. 29 | OTHER_CFLAGS = $(OTHER_CFLAGS) -DNDEBUG=1 -Wno-unused-variable 30 | 31 | // When we strip we want to strip all symbols in release, but save externals. 32 | STRIP_STYLE = all 33 | -------------------------------------------------------------------------------- /modules/GUI/js/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "gui", 3 | "version": "1.0.0", 4 | "description": "Reference UI for AVS SDK", 5 | "main": "index.js", 6 | "engines": { 7 | "node": ">=12.0" 8 | }, 9 | "engineStrict": true, 10 | "scripts": { 11 | "lint": "tslint --project tsconfig.json -c tslint.json 'src/**/*.ts' 'src/**/*.tsx'", 12 | "build": "npm run lint && webpack --config webpack.config.js", 13 | "watch": "npm run lint && webpack --config webpack.config.js --watch" 14 | }, 15 | "author": "Amazon", 16 | "license": "Apache 2.0", 17 | "dependencies": { 18 | "@types/node": "^10.9.4", 19 | "@types/react-dom": "^16.0.6", 20 | "apl-client": "file:../apl-client", 21 | "file-loader": "^1.1.11", 22 | "source-map-loader": "^0.2.4", 23 | "loglevel": "^1.6.3", 24 | "react": "^16.4.1", 25 | "react-dom": "^16.4.1", 26 | "style-loader": "^0.21.0", 27 | "ts-loader": "^4.4.1", 28 | "tslint": "^5.11.0", 29 | "tslint-loader": "^3.6.0", 30 | "typescript": "^2.9.2", 31 | "webpack": "^4.14.0" 32 | }, 33 | "devDependencies": { 34 | "css-loader": "^3.2.0", 35 | "html-webpack-plugin": "^3.2.0", 36 | "webpack-cli": "^3.0.2" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/example/condense/condense.cpp: -------------------------------------------------------------------------------- 1 | // JSON condenser example 2 | 3 | // This example parses JSON text from stdin with validation, 4 | // and re-output the JSON content to stdout without whitespace. 5 | 6 | #include "rapidjson/reader.h" 7 | #include "rapidjson/writer.h" 8 | #include "rapidjson/filereadstream.h" 9 | #include "rapidjson/filewritestream.h" 10 | #include "rapidjson/error/en.h" 11 | 12 | using namespace rapidjson; 13 | 14 | int main(int, char*[]) { 15 | // Prepare JSON reader and input stream. 16 | Reader reader; 17 | char readBuffer[65536]; 18 | FileReadStream is(stdin, readBuffer, sizeof(readBuffer)); 19 | 20 | // Prepare JSON writer and output stream. 21 | char writeBuffer[65536]; 22 | FileWriteStream os(stdout, writeBuffer, sizeof(writeBuffer)); 23 | Writer writer(os); 24 | 25 | // JSON reader parse from the input stream and let writer generate the output. 26 | if (!reader.Parse(is, writer)) { 27 | fprintf(stderr, "\nError(%u): %s\n", static_cast(reader.GetErrorOffset()), GetParseError_En(reader.GetParseErrorCode())); 28 | return 1; 29 | } 30 | 31 | return 0; 32 | } 33 | -------------------------------------------------------------------------------- /modules/GUI/config/certificates/generate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Small and simple script to create Certificate Authority (root CA), create client and server certificate requests, sign them and transform into OS consumable form. 3 | # Please ensure to change certificate subjects and ca_settings.conf/cert_settings.conf as per your policy. Existing values is for reference only. 4 | 5 | openssl req -x509 -config ./ca_settings.cnf -new -newkey rsa:2048 -nodes -out ca.cert -keyout ca.key -days 7 6 | openssl req -new -newkey rsa:2048 -nodes -out client.csr -keyout client.key -subj "/CN=MMSDK_Client_Cert/C=US/ST=WA/L=Seattle/O=Amazon" 7 | openssl req -new -newkey rsa:2048 -nodes -out server.csr -keyout server.key -subj "/CN=localhost/C=US/ST=WA/L=Seattle/O=Amazon" 8 | openssl x509 -req -in client.csr -CA ca.cert -CAkey ca.key -CAcreateserial -out client.cert -extfile ./cert_settings.cnf -extensions v3_req -sha256 -days 7 9 | openssl x509 -req -in server.csr -CA ca.cert -CAkey ca.key -CAcreateserial -out server.cert -extfile ./cert_settings.cnf -extensions v3_req -sha256 -days 7 10 | cat server.cert ca.cert > server.chain 11 | cat client.cert ca.cert > client.chain 12 | openssl pkcs12 -export -clcerts -inkey client.key -in client.chain -out client.p12 -name "client_cert_key" -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/performance.zh-cn.md: -------------------------------------------------------------------------------- 1 | # 性能 2 | 3 | 有一个 [native JSON benchmark collection][1] 项目,能评估 37 个 JSON 库在不同操作下的速度、內存用量及代码大小。 4 | 5 | [1]: https://github.com/miloyip/nativejson-benchmark 6 | 7 | RapidJSON 0.1 版本的性能测试文章位于 [这里](https://code.google.com/p/rapidjson/wiki/Performance). 8 | 9 | 此外,你也可以参考以下这些第三方的评测。 10 | 11 | ## 第三方评测 12 | 13 | * [Basic benchmarks for miscellaneous C++ JSON parsers and generators](https://github.com/mloskot/json_benchmark) by Mateusz Loskot (Jun 2013) 14 | * [casablanca](https://casablanca.codeplex.com/) 15 | * [json_spirit](https://github.com/cierelabs/json_spirit) 16 | * [jsoncpp](http://jsoncpp.sourceforge.net/) 17 | * [libjson](http://sourceforge.net/projects/libjson/) 18 | * [rapidjson](https://github.com/miloyip/rapidjson/) 19 | * [QJsonDocument](http://qt-project.org/doc/qt-5.0/qtcore/qjsondocument.html) 20 | 21 | * [JSON Parser Benchmarking](http://chadaustin.me/2013/01/json-parser-benchmarking/) by Chad Austin (Jan 2013) 22 | * [sajson](https://github.com/chadaustin/sajson) 23 | * [rapidjson](https://github.com/miloyip/rapidjson/) 24 | * [vjson](https://code.google.com/p/vjson/) 25 | * [YAJL](http://lloyd.github.com/yajl/) 26 | * [Jansson](http://www.digip.org/jansson/) 27 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/example/simplewriter/simplewriter.cpp: -------------------------------------------------------------------------------- 1 | #include "rapidjson/writer.h" 2 | #include "rapidjson/stringbuffer.h" 3 | #include 4 | 5 | using namespace rapidjson; 6 | using namespace std; 7 | 8 | int main() { 9 | StringBuffer s; 10 | Writer writer(s); 11 | 12 | writer.StartObject(); // Between StartObject()/EndObject(), 13 | writer.Key("hello"); // output a key, 14 | writer.String("world"); // follow by a value. 15 | writer.Key("t"); 16 | writer.Bool(true); 17 | writer.Key("f"); 18 | writer.Bool(false); 19 | writer.Key("n"); 20 | writer.Null(); 21 | writer.Key("i"); 22 | writer.Uint(123); 23 | writer.Key("pi"); 24 | writer.Double(3.1416); 25 | writer.Key("a"); 26 | writer.StartArray(); // Between StartArray()/EndArray(), 27 | for (unsigned i = 0; i < 4; i++) 28 | writer.Uint(i); // all values are elements of the array. 29 | writer.EndArray(); 30 | writer.EndObject(); 31 | 32 | // {"hello":"world","t":true,"f":false,"n":null,"i":123,"pi":3.1416,"a":[0,1,2,3]} 33 | cout << s.GetString() << endl; 34 | 35 | return 0; 36 | } 37 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/example/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8) 2 | 3 | if(POLICY CMP0054) 4 | cmake_policy(SET CMP0054 NEW) 5 | endif() 6 | 7 | set(EXAMPLES 8 | capitalize 9 | condense 10 | filterkey 11 | filterkeydom 12 | jsonx 13 | messagereader 14 | parsebyparts 15 | pretty 16 | prettyauto 17 | schemavalidator 18 | serialize 19 | simpledom 20 | simplereader 21 | simplewriter 22 | tutorial) 23 | 24 | include_directories("../include/") 25 | 26 | add_definitions(-D__STDC_FORMAT_MACROS) 27 | 28 | if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") 29 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -Werror -Wall -Wextra -Weffc++ -Wswitch-default") 30 | elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") 31 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Weffc++ -Wswitch-default -Wfloat-equal -Wimplicit-fallthrough -Weverything") 32 | endif() 33 | 34 | foreach (example ${EXAMPLES}) 35 | add_executable(${example} ${example}/${example}.cpp) 36 | endforeach() 37 | 38 | if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") 39 | target_link_libraries(parsebyparts pthread) 40 | endif() 41 | 42 | add_custom_target(examples ALL DEPENDS ${EXAMPLES}) 43 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/appveyor.yml: -------------------------------------------------------------------------------- 1 | os: Visual Studio 2015 CTP 2 | version: 1.1.0.{build} 3 | 4 | configuration: 5 | - Debug 6 | - Release 7 | 8 | environment: 9 | matrix: 10 | # - VS_VERSION: 9 2008 11 | # VS_PLATFORM: win32 12 | # - VS_VERSION: 9 2008 13 | # VS_PLATFORM: x64 14 | - VS_VERSION: 10 2010 15 | VS_PLATFORM: win32 16 | - VS_VERSION: 10 2010 17 | VS_PLATFORM: x64 18 | - VS_VERSION: 11 2012 19 | VS_PLATFORM: win32 20 | - VS_VERSION: 11 2012 21 | VS_PLATFORM: x64 22 | - VS_VERSION: 12 2013 23 | VS_PLATFORM: win32 24 | - VS_VERSION: 12 2013 25 | VS_PLATFORM: x64 26 | - VS_VERSION: 14 2015 27 | VS_PLATFORM: win32 28 | - VS_VERSION: 14 2015 29 | VS_PLATFORM: x64 30 | 31 | before_build: 32 | - git submodule update --init --recursive 33 | - cmake -H. -BBuild/VS -G "Visual Studio %VS_VERSION%" -DCMAKE_GENERATOR_PLATFORM=%VS_PLATFORM% -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_SHARED_LIBS=true -Wno-dev 34 | 35 | build: 36 | project: Build\VS\RapidJSON.sln 37 | parallel: true 38 | verbosity: minimal 39 | 40 | test_script: 41 | - cd Build\VS && if %CONFIGURATION%==Debug (ctest --verbose -E perftest --build-config %CONFIGURATION%) else (ctest --verbose --build-config %CONFIGURATION%) 42 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/components/Sequence.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | import APLRenderer from '../APLRenderer'; 5 | import { PropertyKey } from '../enums/PropertyKey'; 6 | import { ScrollDirection } from '../enums/ScrollDirection'; 7 | import { Component, FactoryFunction, IComponentProperties } from './Component'; 8 | import { Scrollable } from './Scrollable'; 9 | /** 10 | * @ignore 11 | */ 12 | export interface ISequenceProperties extends IComponentProperties { 13 | [PropertyKey.kPropertyScrollDirection]: ScrollDirection; 14 | } 15 | /** 16 | * @ignore 17 | */ 18 | export declare class Sequence extends Scrollable { 19 | private childCount; 20 | private first; 21 | private last; 22 | private firstChildContainerIndex; 23 | protected fullyLoaded: boolean; 24 | constructor(renderer: APLRenderer, component: APL.Component, factory: FactoryFunction, parent?: Component); 25 | init(): void; 26 | private setScrollDirection; 27 | private onScroll(relativePosition); 28 | private createItem(index, insertAt?); 29 | protected allowFocus(requestedDistance: number, moveTo: HTMLDivElement): boolean; 30 | private onUpdate; 31 | } 32 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/MultipartParser/MultipartParser/Rakefile: -------------------------------------------------------------------------------- 1 | task :default => 'multipart' 2 | 3 | file 'multipart' => ['multipart.cpp', 'MultipartParser.h', 'MultipartReader.h'] do 4 | sh 'g++ -Wall -g multipart.cpp -o multipart' 5 | end 6 | 7 | file 'random' do 8 | sh "dd if=/dev/urandom of=random bs=1048576 count=100" 9 | end 10 | 11 | desc "Create a test multipart file" 12 | task :generate_test_file => 'random' do 13 | output = ENV['OUTPUT'] 14 | size = (ENV['SIZE'] || 1024 * 1024 * 100).to_i 15 | boundary = ENV['BOUNDARY'] || '-----------------------------168072824752491622650073' 16 | raise 'OUTPUT must be specified' if !output 17 | 18 | puts "Creating #{output}" 19 | File.open(output, 'wb') do |f| 20 | f.write("--#{boundary}\r\n") 21 | f.write("content-type: text/plain\r\n") 22 | f.write("content-disposition: form-data; name=\"field1\"; filename=\"field1\"\r\n") 23 | f.write("foo-bar: abc\r\n") 24 | f.write("x: y\r\n") 25 | f.write("\r\n") 26 | end 27 | sh "cat random >> #{output}" 28 | puts "Postprocessing #{output}" 29 | File.open(output, 'ab') do |f| 30 | f.write("\r\n--#{boundary}--\r\n") 31 | end 32 | end 33 | 34 | task :benchmark => 'multipart' do 35 | sh "./multipart" 36 | sh "ruby rack-parser.rb" 37 | sh "node formidable_parser.js" 38 | end -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/misc/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | $projectname: $title 9 | $title 10 | 11 | 12 | 13 | $treeview 14 | $search 15 | $mathjax 16 | 17 | $extrastylesheet 18 | 19 | 20 |
21 |
22 | $searchbox 23 | 24 | 25 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googlemock/scripts/generator/gmock_gen.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # 3 | # Copyright 2008 Google Inc. All Rights Reserved. 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | """Driver for starting up Google Mock class generator.""" 18 | 19 | __author__ = 'nnorwitz@google.com (Neal Norwitz)' 20 | 21 | import os 22 | import sys 23 | 24 | if __name__ == '__main__': 25 | # Add the directory of this script to the path so we can import gmock_class. 26 | sys.path.append(os.path.dirname(__file__)) 27 | 28 | from cpp import gmock_class 29 | # Fix the docstring in case they require the usage. 30 | gmock_class.__doc__ = gmock_class.__doc__.replace('gmock_class.py', __file__) 31 | gmock_class.main() 32 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/components/avg/VectorGraphic.d.ts: -------------------------------------------------------------------------------- 1 | import APLRenderer from '../../APLRenderer'; 2 | import { PropertyKey } from '../../enums/PropertyKey'; 3 | import { VectorGraphicAlign } from '../../enums/VectorGraphicAlign'; 4 | import { VectorGraphicScale } from '../../enums/VectorGraphicScale'; 5 | import { Component, FactoryFunction, IComponentProperties } from '../Component'; 6 | import { AVG } from './AVG'; 7 | export { AVG } from './AVG'; 8 | export { Group } from './Group'; 9 | export { Path } from './Path'; 10 | export interface IVectorGraphicProperties extends IComponentProperties { 11 | [PropertyKey.kPropertyAlign]: VectorGraphicAlign; 12 | [PropertyKey.kPropertyGraphic]: APL.Graphic; 13 | [PropertyKey.kPropertyMediaBounds]: APL.Rect; 14 | [PropertyKey.kPropertyScale]: VectorGraphicScale; 15 | [PropertyKey.kPropertySource]: string; 16 | } 17 | /** 18 | * @ignore 19 | */ 20 | export declare class VectorGraphic extends Component { 21 | static readonly SVG_NS: string; 22 | elements: AVG[]; 23 | private graphic; 24 | private svg; 25 | constructor(renderer: APLRenderer, component: APL.Component, factory: FactoryFunction, parent?: Component); 26 | setProperties(props: IVectorGraphicProperties): Promise; 27 | } 28 | -------------------------------------------------------------------------------- /modules/GUI/js/src/lib/config/visualCharacteristics/IDisplayWindow.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | 5 | export type WindowType = 6 | 'STANDARD' 7 | | 'OVERLAY'; 8 | 9 | export type WindowPreferredUseageType = 10 | 'PRIMARY'; 11 | 12 | export type WindowConfigurationType = 13 | 'DISCRETE' 14 | | 'CONTINUOUS'; 15 | 16 | export type WindowMeasurementUnit = 17 | 'PIXEL'; 18 | 19 | export interface IDisplayWindowSizeDimensionValues { 20 | width : number; 21 | height : number; 22 | } 23 | 24 | export interface IDisplayWindowSizeDimensions { 25 | unit : WindowMeasurementUnit; 26 | value : IDisplayWindowSizeDimensionValues; 27 | } 28 | 29 | export interface IDisplayWindowSize { 30 | id : string; 31 | type : WindowConfigurationType; 32 | } 33 | 34 | export interface IDisplayWindowDiscreteSize extends IDisplayWindowSize { 35 | value : IDisplayWindowSizeDimensions; 36 | } 37 | 38 | export interface IDisplayWindowConfiguration { 39 | sizes : IDisplayWindowSize[]; 40 | interactionModes : string[]; 41 | } 42 | 43 | export interface IDisplayWindowTemplate { 44 | id : string; 45 | type : WindowType; 46 | preferredUsage : WindowPreferredUseageType; 47 | configuration : IDisplayWindowConfiguration; 48 | } 49 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/bluez-alsa/bluez-alsa/a2dp-rtp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BlueALSA - a2dp-rtp.h 3 | * Copyright (c) 2016-2017 Arkadiusz Bokowy 4 | * 5 | * This file is a part of bluez-alsa. 6 | * 7 | * This project is licensed under the terms of the MIT license. 8 | * 9 | */ 10 | 11 | #ifndef BLUEALSA_A2DPRTP_H_ 12 | #define BLUEALSA_A2DPRTP_H_ 13 | 14 | #include 15 | 16 | typedef struct rtp_header { 17 | #if __BYTE_ORDER == __LITTLE_ENDIAN 18 | uint16_t cc:4; 19 | uint16_t extbit:1; 20 | uint16_t padbit:1; 21 | uint16_t version:2; 22 | uint16_t paytype:7; 23 | uint16_t markbit:1; 24 | #else 25 | uint16_t version:2; 26 | uint16_t padbit:1; 27 | uint16_t extbit:1; 28 | uint16_t cc:4; 29 | uint16_t markbit:1; 30 | uint16_t paytype:7; 31 | #endif 32 | uint16_t seq_number; 33 | uint32_t timestamp; 34 | uint32_t ssrc; 35 | uint32_t csrc[16]; 36 | } __attribute__ ((packed)) rtp_header_t; 37 | 38 | /** 39 | * Media payload header for SBC. */ 40 | typedef struct rtp_payload_sbc { 41 | #if __BYTE_ORDER == __LITTLE_ENDIAN 42 | uint8_t frame_count:4; 43 | uint8_t rfa:1; 44 | uint8_t last_fragment:1; 45 | uint8_t first_fragment:1; 46 | uint8_t fragmented:1; 47 | #else 48 | uint8_t fragmented:1; 49 | uint8_t first_fragment:1; 50 | uint8_t last_fragment:1; 51 | uint8_t rfa:1; 52 | uint8_t frame_count:4; 53 | #endif 54 | } __attribute__ ((packed)) rtp_payload_sbc_t; 55 | 56 | #endif 57 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/media/Resource.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @ignore 3 | */ 4 | export declare type DownloadState = 'pending' | 'complete' | 'cancelled'; 5 | /** 6 | * @ignore 7 | */ 8 | export declare class Resource { 9 | private downloadState; 10 | private buffer; 11 | constructor(); 12 | setDownloadState(downloadState: DownloadState): void; 13 | getDownloadState(): DownloadState; 14 | getBuffer(): ArrayBuffer; 15 | setBuffer(buffer: ArrayBuffer): void; 16 | } 17 | /** 18 | * Resource State of the audio 19 | * @ignore 20 | */ 21 | export declare enum ResourceState { 22 | PENDING = "pending", 23 | PREPARED = "prepared", 24 | PLAYING = "playing", 25 | PAUSED = "paused" 26 | } 27 | /** 28 | * Resource for play media command, command name 29 | * @ignore 30 | */ 31 | export declare enum ControlMediaCommandName { 32 | PLAY = "play", 33 | PAUSE = "pause", 34 | NEXT = "next", 35 | PREVIOUS = "previous", 36 | REWIND = "rewind", 37 | SEEK = "seek", 38 | SETTRACK = "setTrack" 39 | } 40 | /** 41 | * Playback state IDLE, PLAYING, ENDED, PAUSED, BUFFERING, ERROR 42 | * @ignore 43 | */ 44 | export declare enum PlaybackState { 45 | IDLE = "idling", 46 | LOADED = "loaded", 47 | PLAYING = "playing", 48 | ENDED = "ended", 49 | PAUSED = "paused", 50 | BUFFERING = "buffering", 51 | ERROR = "error" 52 | } 53 | -------------------------------------------------------------------------------- /modules/GUI/js/src/lib/displayCards/AVSDisplayCardSupportedViewports.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "mode": "HUB", 4 | "shape": "RECTANGLE", 5 | "minWidth": 1024, 6 | "maxWidth": 1024, 7 | "minHeight": 600, 8 | "maxHeight": 600 9 | }, 10 | { 11 | "mode": "HUB", 12 | "shape": "RECTANGLE", 13 | "minWidth": 1280, 14 | "maxWidth": 1280, 15 | "minHeight": 800, 16 | "maxHeight": 800 17 | }, 18 | { 19 | "mode": "HUB", 20 | "shape": "RECTANGLE", 21 | "minWidth": 960, 22 | "maxWidth": 960, 23 | "minHeight": 480, 24 | "maxHeight": 480 25 | }, 26 | { 27 | "mode": "HUB", 28 | "shape": "ROUND", 29 | "minWidth": 480, 30 | "maxWidth": 480, 31 | "minHeight": 480, 32 | "maxHeight": 480 33 | }, 34 | { 35 | "mode": "TV", 36 | "shape": "RECTANGLE", 37 | "minWidth": 960, 38 | "maxWidth": 960, 39 | "minHeight": 540, 40 | "maxHeight": 540 41 | }, 42 | { 43 | "mode": "TV", 44 | "shape": "RECTANGLE", 45 | "minWidth": 960, 46 | "maxWidth": 960, 47 | "minHeight": 200, 48 | "maxHeight": 200 49 | }, 50 | { 51 | "mode": "TV", 52 | "shape": "RECTANGLE", 53 | "minWidth": 300, 54 | "maxWidth": 300, 55 | "minHeight": 540, 56 | "maxHeight": 540 57 | } 58 | ] -------------------------------------------------------------------------------- /modules/Alexa/SampleApp/src/AplCoreMetrics.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 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 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0/ 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | 16 | #include "SampleApp/AplCoreMetrics.h" 17 | 18 | namespace alexaSmartScreenSDK { 19 | namespace sampleApp { 20 | 21 | static const float DEFAULT_BASE_DPI = 160.0f; 22 | 23 | float AplCoreMetrics::toViewhost(float value) const { 24 | return value * getScaleToViewhost() * getDpi() / DEFAULT_BASE_DPI; 25 | } 26 | 27 | float AplCoreMetrics::toCore(float value) const { 28 | return value * getScaleToCore() * DEFAULT_BASE_DPI / getDpi(); 29 | } 30 | 31 | float AplCoreMetrics::getViewhostWidth() const { 32 | return toViewhost(getWidth()); 33 | } 34 | 35 | float AplCoreMetrics::getViewhostHeight() const { 36 | return toViewhost(getHeight()); 37 | } 38 | 39 | } // namespace sampleApp 40 | } // namespace alexaSmartScreenSDK -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googlemock/scripts/generator/cpp/utils.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # 3 | # Copyright 2007 Neal Norwitz 4 | # Portions Copyright 2007 Google Inc. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | """Generic utilities for C++ parsing.""" 19 | 20 | __author__ = 'nnorwitz@google.com (Neal Norwitz)' 21 | 22 | 23 | import sys 24 | 25 | 26 | # Set to True to see the start/end token indices. 27 | DEBUG = True 28 | 29 | 30 | def ReadFile(filename, print_error=True): 31 | """Returns the contents of a file.""" 32 | try: 33 | fp = open(filename) 34 | try: 35 | return fp.read() 36 | finally: 37 | fp.close() 38 | except IOError: 39 | if print_error: 40 | print('Error reading %s: %s' % (filename, sys.exc_info()[1])) 41 | return None 42 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/doc/performance.md: -------------------------------------------------------------------------------- 1 | # Performance 2 | 3 | There is a [native JSON benchmark collection] [1] which evaluates speed, memory usage and code size of various operations among 37 JSON libaries. 4 | 5 | [1]: https://github.com/miloyip/nativejson-benchmark 6 | 7 | The old performance article for RapidJSON 0.1 is provided [here](https://code.google.com/p/rapidjson/wiki/Performance). 8 | 9 | Additionally, you may refer to the following third-party benchmarks. 10 | 11 | ## Third-party benchmarks 12 | 13 | * [Basic benchmarks for miscellaneous C++ JSON parsers and generators](https://github.com/mloskot/json_benchmark) by Mateusz Loskot (Jun 2013) 14 | * [casablanca](https://casablanca.codeplex.com/) 15 | * [json_spirit](https://github.com/cierelabs/json_spirit) 16 | * [jsoncpp](http://jsoncpp.sourceforge.net/) 17 | * [libjson](http://sourceforge.net/projects/libjson/) 18 | * [rapidjson](https://github.com/miloyip/rapidjson/) 19 | * [QJsonDocument](http://qt-project.org/doc/qt-5.0/qtcore/qjsondocument.html) 20 | 21 | * [JSON Parser Benchmarking](http://chadaustin.me/2013/01/json-parser-benchmarking/) by Chad Austin (Jan 2013) 22 | * [sajson](https://github.com/chadaustin/sajson) 23 | * [rapidjson](https://github.com/miloyip/rapidjson/) 24 | * [vjson](https://code.google.com/p/vjson/) 25 | * [YAJL](http://lloyd.github.com/yajl/) 26 | * [Jansson](http://www.digip.org/jansson/) 27 | -------------------------------------------------------------------------------- /modules/Alexa/SampleApp/include/SampleApp/SampleApplicationReturnCodes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 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 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0/ 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | 16 | #ifndef ALEXA_SMART_SCREEN_SDK_SAMPLEAPP_INCLUDE_SAMPLEAPP_SAMPLEAPPLICATIONRETURNCODES_H_ 17 | #define ALEXA_SMART_SCREEN_SDK_SAMPLEAPP_INCLUDE_SAMPLEAPP_SAMPLEAPPLICATIONRETURNCODES_H_ 18 | 19 | #include 20 | 21 | namespace alexaSmartScreenSDK { 22 | namespace sampleApp { 23 | 24 | enum SampleAppReturnCode { 25 | /// The SampleApp exits in success. 26 | OK = EXIT_SUCCESS, 27 | /// The SampleApp exits in failure. 28 | ERROR = EXIT_FAILURE, 29 | /// The SampleApp exits and needs a restart. 30 | RESTART 31 | }; 32 | 33 | } // namespace sampleApp 34 | } // namespace alexaSmartScreenSDK 35 | 36 | #endif // ALEXA_SMART_SCREEN_SDK_SAMPLEAPP_INCLUDE_SAMPLEAPP_SAMPLEAPPLICATIONRETURNCODES_H_ 37 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/docs/Samples.md: -------------------------------------------------------------------------------- 1 | If you're like us, you'd like to look at some Google Test sample code. The 2 | [samples folder](../samples) has a number of well-commented samples showing how to use a 3 | variety of Google Test features. 4 | 5 | * [Sample #1](../samples/sample1_unittest.cc) shows the basic steps of using Google Test to test C++ functions. 6 | * [Sample #2](../samples/sample2_unittest.cc) shows a more complex unit test for a class with multiple member functions. 7 | * [Sample #3](../samples/sample3_unittest.cc) uses a test fixture. 8 | * [Sample #4](../samples/sample4_unittest.cc) is another basic example of using Google Test. 9 | * [Sample #5](../samples/sample5_unittest.cc) teaches how to reuse a test fixture in multiple test cases by deriving sub-fixtures from it. 10 | * [Sample #6](../samples/sample6_unittest.cc) demonstrates type-parameterized tests. 11 | * [Sample #7](../samples/sample7_unittest.cc) teaches the basics of value-parameterized tests. 12 | * [Sample #8](../samples/sample8_unittest.cc) shows using `Combine()` in value-parameterized tests. 13 | * [Sample #9](../samples/sample9_unittest.cc) shows use of the listener API to modify Google Test's console output and the use of its reflection API to inspect test results. 14 | * [Sample #10](../samples/sample10_unittest.cc) shows use of the listener API to implement a primitive memory leak checker. 15 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/media/audio/IAudioEventListener.d.ts: -------------------------------------------------------------------------------- 1 | import { IBaseMarker } from '../audio/SpeechMarks'; 2 | /** 3 | * A callback interface to the initiator of audio requests 4 | * @ignore 5 | */ 6 | export interface IAudioEventListener { 7 | /** 8 | * Called when media has been downloaded (optionally parsed for markers) 9 | * (in response to prepare()) 10 | * @param id a uuid 11 | */ 12 | onPrepared(id: string): void; 13 | /** 14 | * Stream markers (if prepare was called with ( markers: true)) 15 | * The implementation is free to parse the entirity of the audio or parse 16 | * chunks as they are downloaded. 17 | * @param id a uuid 18 | * @param markers a list of IBaseMarker 19 | */ 20 | onMarker(id: string, markers: IBaseMarker[]): void; 21 | /** 22 | * Called when media starts playing (in response to play()) 23 | * @param id a uuid 24 | */ 25 | onPlaybackStarted(id: string): void; 26 | /** 27 | * Called when media finishes playing 28 | * @param id a uuid 29 | */ 30 | onPlaybackFinished(id: string): void; 31 | /** 32 | * Called to report an error for a given request 33 | * Used to report a download error or parse / playback error 34 | * @param id a uuid 35 | * @param reason an arbitrary string 36 | */ 37 | onError(id: string, reason: string): void; 38 | } 39 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/docs/V1_6_Samples.md: -------------------------------------------------------------------------------- 1 | If you're like us, you'd like to look at some Google Test sample code. The 2 | [samples folder](../samples) has a number of well-commented samples showing how to use a 3 | variety of Google Test features. 4 | 5 | * [Sample #1](../samples/sample1_unittest.cc) shows the basic steps of using Google Test to test C++ functions. 6 | * [Sample #2](../samples/sample2_unittest.cc) shows a more complex unit test for a class with multiple member functions. 7 | * [Sample #3](../samples/sample3_unittest.cc) uses a test fixture. 8 | * [Sample #4](../samples/sample4_unittest.cc) is another basic example of using Google Test. 9 | * [Sample #5](../samples/sample5_unittest.cc) teaches how to reuse a test fixture in multiple test cases by deriving sub-fixtures from it. 10 | * [Sample #6](../samples/sample6_unittest.cc) demonstrates type-parameterized tests. 11 | * [Sample #7](../samples/sample7_unittest.cc) teaches the basics of value-parameterized tests. 12 | * [Sample #8](../samples/sample8_unittest.cc) shows using `Combine()` in value-parameterized tests. 13 | * [Sample #9](../samples/sample9_unittest.cc) shows use of the listener API to modify Google Test's console output and the use of its reflection API to inspect test results. 14 | * [Sample #10](../samples/sample10_unittest.cc) shows use of the listener API to implement a primitive memory leak checker. 15 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/docs/V1_7_Samples.md: -------------------------------------------------------------------------------- 1 | If you're like us, you'd like to look at some Google Test sample code. The 2 | [samples folder](../samples) has a number of well-commented samples showing how to use a 3 | variety of Google Test features. 4 | 5 | * [Sample #1](../samples/sample1_unittest.cc) shows the basic steps of using Google Test to test C++ functions. 6 | * [Sample #2](../samples/sample2_unittest.cc) shows a more complex unit test for a class with multiple member functions. 7 | * [Sample #3](../samples/sample3_unittest.cc) uses a test fixture. 8 | * [Sample #4](../samples/sample4_unittest.cc) is another basic example of using Google Test. 9 | * [Sample #5](../samples/sample5_unittest.cc) teaches how to reuse a test fixture in multiple test cases by deriving sub-fixtures from it. 10 | * [Sample #6](../samples/sample6_unittest.cc) demonstrates type-parameterized tests. 11 | * [Sample #7](../samples/sample7_unittest.cc) teaches the basics of value-parameterized tests. 12 | * [Sample #8](../samples/sample8_unittest.cc) shows using `Combine()` in value-parameterized tests. 13 | * [Sample #9](../samples/sample9_unittest.cc) shows use of the listener API to modify Google Test's console output and the use of its reflection API to inspect test results. 14 | * [Sample #10](../samples/sample10_unittest.cc) shows use of the listener API to implement a primitive memory leak checker. 15 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/types/nulls.json: -------------------------------------------------------------------------------- 1 | [ 2 | null, 3 | null, 4 | null, 5 | null, 6 | null, 7 | null, 8 | null, 9 | null, 10 | null, 11 | null, 12 | null, 13 | null, 14 | null, 15 | null, 16 | null, 17 | null, 18 | null, 19 | null, 20 | null, 21 | null, 22 | null, 23 | null, 24 | null, 25 | null, 26 | null, 27 | null, 28 | null, 29 | null, 30 | null, 31 | null, 32 | null, 33 | null, 34 | null, 35 | null, 36 | null, 37 | null, 38 | null, 39 | null, 40 | null, 41 | null, 42 | null, 43 | null, 44 | null, 45 | null, 46 | null, 47 | null, 48 | null, 49 | null, 50 | null, 51 | null, 52 | null, 53 | null, 54 | null, 55 | null, 56 | null, 57 | null, 58 | null, 59 | null, 60 | null, 61 | null, 62 | null, 63 | null, 64 | null, 65 | null, 66 | null, 67 | null, 68 | null, 69 | null, 70 | null, 71 | null, 72 | null, 73 | null, 74 | null, 75 | null, 76 | null, 77 | null, 78 | null, 79 | null, 80 | null, 81 | null, 82 | null, 83 | null, 84 | null, 85 | null, 86 | null, 87 | null, 88 | null, 89 | null, 90 | null, 91 | null, 92 | null, 93 | null, 94 | null, 95 | null, 96 | null, 97 | null, 98 | null, 99 | null, 100 | null, 101 | null 102 | ] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/xcode/Config/General.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // General.xcconfig 3 | // 4 | // These are General configuration settings for the gtest framework and 5 | // examples. 6 | // This file is based on the Xcode Configuration files in: 7 | // http://code.google.com/p/google-toolbox-for-mac/ 8 | // 9 | 10 | // Build for PPC and Intel, 32- and 64-bit 11 | ARCHS = i386 x86_64 ppc ppc64 12 | 13 | // Zerolink prevents link warnings so turn it off 14 | ZERO_LINK = NO 15 | 16 | // Prebinding considered unhelpful in 10.3 and later 17 | PREBINDING = NO 18 | 19 | // Strictest warning policy 20 | WARNING_CFLAGS = -Wall -Werror -Wendif-labels -Wnewline-eof -Wno-sign-compare -Wshadow 21 | 22 | // Work around Xcode bugs by using external strip. See: 23 | // http://lists.apple.com/archives/Xcode-users/2006/Feb/msg00050.html 24 | SEPARATE_STRIP = YES 25 | 26 | // Force C99 dialect 27 | GCC_C_LANGUAGE_STANDARD = c99 28 | 29 | // not sure why apple defaults this on, but it's pretty risky 30 | ALWAYS_SEARCH_USER_PATHS = NO 31 | 32 | // Turn on position dependent code for most cases (overridden where appropriate) 33 | GCC_DYNAMIC_NO_PIC = YES 34 | 35 | // Default SDK and minimum OS version is 10.4 36 | SDKROOT = $(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk 37 | MACOSX_DEPLOYMENT_TARGET = 10.4 38 | GCC_VERSION = 4.0 39 | 40 | // VERSIONING BUILD SETTINGS (used in Info.plist) 41 | GTEST_VERSIONINFO_ABOUT = © 2008 Google Inc. 42 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/bluez-alsa/bluez-alsa/LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2016-2018 Arkadiusz Bokowy 4 | 2018 Jörg Krause 5 | 2018 Parthiban Nallathambi 6 | 2018 René Rebe 7 | 2018 Wade Berrier 8 | 2017 Guillaume Zin 9 | 2017 Juha Kuikka 10 | 11 | Permission is hereby granted, free of charge, to any person obtaining a copy 12 | of this software and associated documentation files (the "Software"), to deal 13 | in the Software without restriction, including without limitation the rights 14 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 15 | copies of the Software, and to permit persons to whom the Software is 16 | furnished to do so, subject to the following conditions: 17 | 18 | The above copyright notice and this permission notice shall be included in 19 | all copies or substantial portions of the Software. 20 | 21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 26 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 27 | THE SOFTWARE. 28 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/GraphicPropertyKey.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/graphic/graphicproperties.h line 30 8 | */ 9 | export declare enum GraphicPropertyKey { 10 | kGraphicPropertyFill = 0, 11 | kGraphicPropertyFillOpacity = 1, 12 | kGraphicPropertyHeightActual = 2, 13 | kGraphicPropertyHeightOriginal = 3, 14 | kGraphicPropertyOpacity = 4, 15 | kGraphicPropertyPathData = 5, 16 | kGraphicPropertyPivotX = 6, 17 | kGraphicPropertyPivotY = 7, 18 | kGraphicPropertyRotation = 8, 19 | kGraphicPropertyScaleX = 9, 20 | kGraphicPropertyScaleY = 10, 21 | kGraphicPropertyViewportHeightActual = 11, 22 | kGraphicPropertyViewportWidthActual = 12, 23 | kGraphicPropertyScaleTypeHeight = 13, 24 | kGraphicPropertyScaleTypeWidth = 14, 25 | kGraphicPropertyStroke = 15, 26 | kGraphicPropertyStrokeOpacity = 16, 27 | kGraphicPropertyStrokeWidth = 17, 28 | kGraphicPropertyTranslateX = 18, 29 | kGraphicPropertyTranslateY = 19, 30 | kGraphicPropertyVersion = 20, 31 | kGraphicPropertyViewportHeightOriginal = 21, 32 | kGraphicPropertyViewportWidthOriginal = 22, 33 | kGraphicPropertyWidthActual = 23, 34 | kGraphicPropertyWidthOriginal = 24 35 | } 36 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/bin/types/booleans.json: -------------------------------------------------------------------------------- 1 | [ 2 | true, 3 | true, 4 | false, 5 | false, 6 | true, 7 | true, 8 | true, 9 | false, 10 | false, 11 | true, 12 | false, 13 | false, 14 | true, 15 | false, 16 | false, 17 | false, 18 | true, 19 | false, 20 | false, 21 | true, 22 | true, 23 | false, 24 | true, 25 | true, 26 | true, 27 | false, 28 | false, 29 | false, 30 | true, 31 | false, 32 | true, 33 | false, 34 | false, 35 | true, 36 | true, 37 | true, 38 | true, 39 | true, 40 | true, 41 | false, 42 | false, 43 | true, 44 | false, 45 | false, 46 | false, 47 | true, 48 | true, 49 | false, 50 | true, 51 | true, 52 | false, 53 | true, 54 | false, 55 | true, 56 | true, 57 | true, 58 | false, 59 | false, 60 | false, 61 | true, 62 | false, 63 | false, 64 | false, 65 | true, 66 | true, 67 | false, 68 | true, 69 | true, 70 | true, 71 | true, 72 | true, 73 | true, 74 | true, 75 | true, 76 | false, 77 | false, 78 | false, 79 | false, 80 | false, 81 | true, 82 | true, 83 | true, 84 | true, 85 | true, 86 | true, 87 | true, 88 | false, 89 | false, 90 | false, 91 | true, 92 | false, 93 | false, 94 | false, 95 | true, 96 | true, 97 | true, 98 | false, 99 | false, 100 | true, 101 | false 102 | ] -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/rapidjson/rapidjson-1.1.0/test/unittest/strfunctest.cpp: -------------------------------------------------------------------------------- 1 | // Tencent is pleased to support the open source community by making RapidJSON available. 2 | // 3 | // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. 4 | // 5 | // Licensed under the MIT License (the "License"); you may not use this file except 6 | // in compliance with the License. You may obtain a copy of the License at 7 | // 8 | // http://opensource.org/licenses/MIT 9 | // 10 | // Unless required by applicable law or agreed to in writing, software distributed 11 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 12 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 13 | // specific language governing permissions and limitations under the License. 14 | 15 | #include "unittest.h" 16 | #include "rapidjson/internal/strfunc.h" 17 | 18 | using namespace rapidjson; 19 | using namespace rapidjson::internal; 20 | 21 | TEST(StrFunc, CountStringCodePoint) { 22 | SizeType count; 23 | EXPECT_TRUE(CountStringCodePoint >("", 0, &count)); 24 | EXPECT_EQ(0u, count); 25 | EXPECT_TRUE(CountStringCodePoint >("Hello", 5, &count)); 26 | EXPECT_EQ(5u, count); 27 | EXPECT_TRUE(CountStringCodePoint >("\xC2\xA2\xE2\x82\xAC\xF0\x9D\x84\x9E", 9, &count)); // cents euro G-clef 28 | EXPECT_EQ(3u, count); 29 | EXPECT_FALSE(CountStringCodePoint >("\xC2\xA2\xE2\x82\xAC\xF0\x9D\x84\x9E\x80", 10, &count)); 30 | } 31 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/dts/Component.d.ts: -------------------------------------------------------------------------------- 1 | /*! 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | declare namespace APL { 5 | export class Component extends Deletable { 6 | public getCalculated(): { 7 | [key: number]: any; 8 | }; 9 | public getCalculatedByKey(key: number): T; 10 | public getDirtyProps(): { 11 | [key: number]: any; 12 | }; 13 | public getType(): number; 14 | public getUniqueId(): string; 15 | public getId(): string; 16 | public getParent(): Component; 17 | public update(type: number, value: number): void; 18 | public pressed(): void; 19 | public updateScrollPosition(position: number); 20 | public updatePagerPosition(position: number); 21 | public updateMediaState(state: APL.IMediaState, fromEvent: boolean); 22 | public updateGraphic(json: string); 23 | public getChildCount(): number; 24 | public getChildAt(index: number): Component; 25 | public appendChild(child: Component): boolean; 26 | public insertChild(child: Component, index: number): boolean; 27 | public remove(): boolean; 28 | public inflateChild(data: string): Component; 29 | public getBoundsInParent(ancestor: Component): APL.Rect; 30 | public getGlobalBounds(): APL.Rect; 31 | public ensureLayout(): Promise | void; 32 | public provenance(): string; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googlemock/scripts/generator/README: -------------------------------------------------------------------------------- 1 | 2 | The Google Mock class generator is an application that is part of cppclean. 3 | For more information about cppclean, see the README.cppclean file or 4 | visit http://code.google.com/p/cppclean/ 5 | 6 | cppclean requires Python 2.3.5 or later. If you don't have Python installed 7 | on your system, you will also need to install it. You can download Python 8 | from: http://www.python.org/download/releases/ 9 | 10 | To use the Google Mock class generator, you need to call it 11 | on the command line passing the header file and class for which you want 12 | to generate a Google Mock class. 13 | 14 | Make sure to install the scripts somewhere in your path. Then you can 15 | run the program. 16 | 17 | gmock_gen.py header-file.h [ClassName]... 18 | 19 | If no ClassNames are specified, all classes in the file are emitted. 20 | 21 | To change the indentation from the default of 2, set INDENT in 22 | the environment. For example to use an indent of 4 spaces: 23 | 24 | INDENT=4 gmock_gen.py header-file.h ClassName 25 | 26 | This version was made from SVN revision 281 in the cppclean repository. 27 | 28 | Known Limitations 29 | ----------------- 30 | Not all code will be generated properly. For example, when mocking templated 31 | classes, the template information is lost. You will need to add the template 32 | information manually. 33 | 34 | Not all permutations of using multiple pointers/references will be rendered 35 | properly. These will also have to be fixed manually. 36 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googletest/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This file contains a list of people who've made non-trivial 2 | # contribution to the Google C++ Testing Framework project. People 3 | # who commit code to the project are encouraged to add their names 4 | # here. Please keep the list sorted by first names. 5 | 6 | Ajay Joshi 7 | Balázs Dán 8 | Bharat Mediratta 9 | Chandler Carruth 10 | Chris Prince 11 | Chris Taylor 12 | Dan Egnor 13 | Eric Roman 14 | Hady Zalek 15 | Jeffrey Yasskin 16 | Jói Sigurðsson 17 | Keir Mierle 18 | Keith Ray 19 | Kenton Varda 20 | Manuel Klimek 21 | Markus Heule 22 | Mika Raento 23 | Miklós Fazekas 24 | Pasi Valminen 25 | Patrick Hanna 26 | Patrick Riley 27 | Peter Kaminski 28 | Preston Jackson 29 | Rainer Klaffenboeck 30 | Russ Cox 31 | Russ Rufer 32 | Sean Mcafee 33 | Sigurður Ásgeirsson 34 | Tracy Bialik 35 | Vadim Berman 36 | Vlad Losev 37 | Zhanyong Wan 38 | -------------------------------------------------------------------------------- /modules/GUI/js/src/lib/config/visualCharacteristics/IDeviceDisplay.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | 5 | import { ViewportShape } from 'apl-client'; 6 | 7 | export type DisplayType = 8 | 'PIXEL'; 9 | 10 | export type DisplayTouchSupport = 11 | 'UNSUPPORTED' 12 | | 'SINGLE'; 13 | 14 | export type DisplayDimensionsUnit = 15 | 'PIXEL' 16 | | 'DP'; 17 | 18 | export type DisplayPhysicalSizeUnit = 19 | 'CENTIMETER' 20 | | 'INCHES'; 21 | 22 | export type DisplayPixelDensity = 23 | 120 24 | | 160 25 | | 213 26 | | 240 27 | | 320 28 | | 480 29 | | 640; 30 | 31 | export interface IDisplayDimensionValues { 32 | width : number; 33 | height : number; 34 | } 35 | 36 | export interface IDisplayDimensions { 37 | physicalSize? : { 38 | unit : DisplayPhysicalSizeUnit; 39 | value : IDisplayDimensionValues; 40 | }; 41 | } 42 | 43 | export interface IDisplayPixelDimensions extends IDisplayDimensions { 44 | resolution : { 45 | unit : 'PIXEL'; 46 | value : IDisplayDimensionValues; 47 | }; 48 | pixelDensity : { 49 | unit : 'DPI'; 50 | value : DisplayPixelDensity; 51 | }; 52 | densityIndependentResolution? : { 53 | unit : 'DP'; 54 | value : IDisplayDimensionValues; 55 | }; 56 | } 57 | 58 | export interface IDeviceDisplay { 59 | type : DisplayType; 60 | touch : DisplayTouchSupport[]; 61 | shape : ViewportShape; 62 | dimensions : IDisplayDimensions; 63 | } 64 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/components/video/VideoHolder.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | import APLRenderer from '../../APLRenderer'; 5 | import { AudioTrack } from '../../enums/AudioTrack'; 6 | import { Component, FactoryFunction } from '../Component'; 7 | import { CommandControlMedia } from '../../enums/CommandControlMedia'; 8 | import { PlaybackState } from '../../media/Resource'; 9 | import { IMediaSource } from '../../media/IMediaSource'; 10 | import { VideoScale } from '../../enums/VideoScale'; 11 | import { AbstractVideoComponent } from './AbstractVideoComponent'; 12 | /** 13 | * @ignore 14 | */ 15 | export declare class VideoHolder extends AbstractVideoComponent { 16 | constructor(renderer: APLRenderer, component: APL.Component, factory: FactoryFunction, parent?: Component); 17 | onEvent(event: PlaybackState): void; 18 | playMedia(source: IMediaSource | IMediaSource[], audioTrack: AudioTrack): Promise; 19 | controlMedia(operation: CommandControlMedia, optionalValue: number): Promise; 20 | play(waitForFinish?: boolean): Promise; 21 | pause(): Promise; 22 | next(): Promise; 23 | previous(): Promise; 24 | rewind(): Promise; 25 | seek(offset: number): Promise; 26 | setTrack(trackIndex: number): Promise; 27 | protected setScale(scale: VideoScale): void; 28 | protected setAudioTrack(audioTrack: AudioTrack): void; 29 | protected setSource(source: IMediaSource | IMediaSource[]): void; 30 | } 31 | -------------------------------------------------------------------------------- /modules/Alexa/SampleApp/src/SampleEqualizerModeController.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 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 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0/ 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | 16 | #include 17 | #include 18 | #include 19 | 20 | #include "SampleApp/ConsolePrinter.h" 21 | 22 | #include "SampleApp/SampleEqualizerModeController.h" 23 | 24 | namespace alexaSmartScreenSDK { 25 | namespace sampleApp { 26 | 27 | using namespace alexaClientSDK; 28 | using namespace alexaClientSDK::avsCommon::sdkInterfaces::audio; 29 | 30 | std::shared_ptr SampleEqualizerModeController::create() { 31 | return std::shared_ptr(new SampleEqualizerModeController()); 32 | } 33 | 34 | bool SampleEqualizerModeController::setEqualizerMode(EqualizerMode mode) { 35 | ConsolePrinter::prettyPrint("Equalizer Mode changed to '" + equalizerModeToString(mode) + "'"); 36 | return true; 37 | } 38 | 39 | } // namespace sampleApp 40 | } // namespace alexaSmartScreenSDK 41 | -------------------------------------------------------------------------------- /modules/Alexa/SmartScreenSDKInterfaces/test/MockMessageSender.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 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 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0/ 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | 16 | #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKMESSAGESENDER_H_ 17 | #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKMESSAGESENDER_H_ 18 | 19 | #include "AVSCommon/SDKInterfaces/MessageSenderInterface.h" 20 | #include 21 | 22 | namespace alexaSmartScreenSDK { 23 | namespace smartScreenSDKInterfaces { 24 | namespace test { 25 | 26 | /// Mock class that implements the MessageSender. 27 | class MockMessageSender : public alexaClientSDK::avsCommon::sdkInterfaces::MessageSenderInterface { 28 | public: 29 | MOCK_METHOD1(sendMessage, void(std::shared_ptr request)); 30 | }; 31 | 32 | } // namespace test 33 | } // namespace smartScreenSDKInterfaces 34 | } // namespace alexaSmartScreenSDK 35 | 36 | #endif // ALEXA_SMART_SCREEN_SDK_INTERFACES_TEST_MOCKMESSAGESENDER_H_ 37 | -------------------------------------------------------------------------------- /modules/Alexa/ThirdParty/googletest-release-1.8.0/googlemock/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This file contains a list of people who've made non-trivial 2 | # contribution to the Google C++ Mocking Framework project. People 3 | # who commit code to the project are encouraged to add their names 4 | # here. Please keep the list sorted by first names. 5 | 6 | Benoit Sigoure 7 | Bogdan Piloca 8 | Chandler Carruth 9 | Dave MacLachlan 10 | David Anderson 11 | Dean Sturtevant 12 | Gene Volovich 13 | Hal Burch 14 | Jeffrey Yasskin 15 | Jim Keller 16 | Joe Walnes 17 | Jon Wray 18 | Keir Mierle 19 | Keith Ray 20 | Kostya Serebryany 21 | Lev Makhlis 22 | Manuel Klimek 23 | Mario Tanev 24 | Mark Paskin 25 | Markus Heule 26 | Matthew Simmons 27 | Mike Bland 28 | Neal Norwitz 29 | Nermin Ozkiranartli 30 | Owen Carlsen 31 | Paneendra Ba 32 | Paul Menage 33 | Piotr Kaminski 34 | Russ Rufer 35 | Sverre Sundsdal 36 | Takeshi Yoshino 37 | Vadim Berman 38 | Vlad Losev 39 | Wolfgang Klier 40 | Zhanyong Wan 41 | -------------------------------------------------------------------------------- /modules/GUI/apl-client/@types/apl-html/lib/enums/UpdateType.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | */ 4 | /** 5 | * AUTOGENERATED FILE. DO NOT MODIFY! 6 | * This file is autogenerated by enumgen from: 7 | * /private/tmp/vvv/src/apl-core-library-master/aplcore/include/apl/component/component.h line 44 8 | */ 9 | export declare enum UpdateType { 10 | /** 11 | * This component (generally a touch wrapper) has been "pressed" and should execute the 12 | * onPress commands. 13 | */ 14 | kUpdatePressed = 0, 15 | /** 16 | * This component should take keyboard focus. 17 | */ 18 | kUpdateTakeFocus = 1, 19 | /** 20 | * This component is being touched by the user. This happens before the kUpdatePressed message. 21 | * Pass an non-zero argument (1) to indicate that there is a touch-down event in the component. 22 | * Pass a zero argument (0) to indicate that there is a touch-up or touch-exit event in the component. 23 | */ 24 | kUpdatePressState = 2, 25 | /** 26 | * Update the current scroll position. The argument is the updated scroll position in dp. 27 | * Scroll positions are non-negative. 28 | */ 29 | kUpdateScrollPosition = 3, 30 | /** 31 | * A pager has been moved by the user. The argument is the new page number (0-based index). 32 | */ 33 | kUpdatePagerPosition = 4, 34 | /** 35 | * A pager has been moved in response to a SetPage event. The argument is the new page number (0-based index). 36 | */ 37 | kUpdatePagerByEvent = 5 38 | } 39 | --------------------------------------------------------------------------------