Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 5.6.0 #626

Merged
merged 44 commits into from
Oct 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
1d936c0
Don't send GetUserFriendlyMessage when app does not have specific per…
jacobkeeler Apr 20, 2021
e9c3335
Merge pull request #559 from smartdevicelink/fix/empty_get_user_frien…
jacobkeeler Apr 21, 2021
1832a4a
Fix/Only send OnReceivedPolicyUpdate for request type PROPRIETARY (#561)
ShobhitAd Apr 21, 2021
5c2d265
Merge remote-tracking branch 'origin/master' into develop
Jack-Byrne Apr 29, 2021
a653c88
Use normal response format when sending sliderPosition
jacobkeeler May 10, 2021
038b511
Integrate closeButton into softbuttons for AlertManeuver
jacobkeeler May 10, 2021
82e5b05
Fix switching between media and non-media templates
jacobkeeler May 13, 2021
5f1f2b2
Merge pull request #564 from smartdevicelink/fix/slider_aborted_respo…
jacobkeeler May 14, 2021
1aec880
Merge pull request #565 from smartdevicelink/fix/alert_maneuver_witho…
jacobkeeler May 17, 2021
21bdbaf
Allow projection apps to use NAV_FULLSCREEN_MAP
jacobkeeler May 17, 2021
e60a5b6
Merge pull request #566 from smartdevicelink/fix/switching_templates
jacobkeeler May 18, 2021
4017ada
Add check for requestID before sending TTS.Speak response (#570)
ShobhitAd May 25, 2021
dbc83f8
Merge remote-tracking branch 'origin/master' into develop
Jack-Byrne May 26, 2021
ee8f2e4
Reset disabled buttons when app is deactivated
jacobkeeler May 26, 2021
634a3c2
Fix/Reset AudioStreamingIndicator to PLAY_PAUSE (#572)
ShobhitAd May 28, 2021
b6b9979
Fix keyboard properties during LIMITED PerformInteraction
jacobkeeler Jun 2, 2021
e902342
remove unnecessary MenuList setMode (#573)
iCollin Jun 2, 2021
c50b0a7
Merge pull request #574 from smartdevicelink/fix/limited_character_se…
jacobkeeler Jun 3, 2021
8e9640d
Fix responses sequence for Alert and SubtleAlert (#464)
AKalinich-Luxoft Jul 19, 2021
d58988e
remove redundant systemCapabilities object from UI.GetCapabilities re…
iCollin Jul 29, 2021
5bf32aa
Fixed HMI does not apply Display mode to the main screen image (#584)
Ypostolov Aug 10, 2021
1e88968
fixed HMI sends OnInteriorVehicleData notification without default mo…
Ypostolov Aug 11, 2021
ada1ee3
Feature/sdl 0189 restructuring on reset timeout (#575)
Aug 11, 2021
c2152a9
SDL 0192 Button Subscription response from HMI (#580)
ValeriiMalkov Aug 12, 2021
c9c4053
scrollable reply success on default action and steal focus (#589)
iCollin Aug 12, 2021
a590d7e
Fixed HMI does not apply Display mode to the main Alert image (#568)
Ypostolov Aug 17, 2021
8d81482
Fix/Get Display Capabilities based on template (#590)
ShobhitAd Aug 17, 2021
d588582
Fixed HMI shows identical navigation buttons for all registered apps …
AKalinich-Luxoft Aug 23, 2021
b61a5fd
Fixed HMI processes RPC as unsuccessful in case of custom UNSUPPORTED…
Ypostolov Aug 27, 2021
d2c882a
Add comparator to track difference before and after (#593)
AKalinich-Luxoft Aug 31, 2021
7d11652
set alert priority on AlertActive (#595)
iCollin Sep 2, 2021
78b0f0c
WebHMI "Reset timeout" window countdown counter is out of UI viewport…
ValeriiMalkov Sep 13, 2021
ceb8b3c
Add missing languages to capabilities (#597)
Jack-Byrne Sep 13, 2021
5dda204
Fixed error isEmptyObject is not a function (#604)
LiliiaShlikhtLuxoft Sep 14, 2021
050a565
Fixed issue: HMI does not send Speak response by softButton press wit…
ValeriiMalkov Sep 14, 2021
9812a79
Fix/hmi doesnt update timeout prompt (#606)
ValeriiMalkov Sep 15, 2021
c6e6180
Fixed issue: HMI Uncaught ReferenceError during processing SetDisplay…
ValeriiMalkov Sep 20, 2021
d78b21b
Fixed issue: Extra lines in the empty list (#613)
ValeriiMalkov Sep 20, 2021
63316f2
Fixed issue: GetInteriorVehicleDataConsent pop-up for reseting timeou…
ValeriiMalkov Sep 20, 2021
1f52391
Fixed HMI Uncaught SyntaxError after processing SetDisplayLayout (#617)
ValeriiMalkov Sep 22, 2021
18b9826
Fixed issue: Cannot read property 'removeClass' of undefined by switc…
ValeriiMalkov Sep 22, 2021
aa84d6b
Fixed issue: VR pop-up during VR.PerfromInteraction overlaps the pop-…
ValeriiMalkov Sep 23, 2021
1fb8b6b
Fixed issue: SubtleAlert is not closed on touch outside of it (#625)
ValeriiMalkov Sep 30, 2021
4d7c0b5
Fix/doesnt wait timeout on button reset timeout pressed during subtle…
ValeriiMalkov Oct 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/AppViews.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ SDL.AppViews = Em.ContainerView.extend(
SDL.TopControls,
SDL.BottomControls,
SDL.TTSPopUp,
SDL.ResetTimeoutPopUp,
SDL.AlertPopUp,
SDL.SubtleAlertPopUp,
SDL.ServiceUpdatePopUp,
Expand Down
12 changes: 8 additions & 4 deletions app/controller/SettingsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ SDL.SettingsController = Em.Object.create(
SDL.States.goToStates('settings.' + event.goToState);
if('rpccontrol.rpcconfig' === event.goToState){
SDL.RPCControlConfigView.set('appNameLabel.content',event.appName);
SDL.RPCControlConfigView.SubscribeButton.initSubscribeButtonView();
SDL.RPCControlConfigView.UnsubscribeButton.initUnsubscribeButtonView();
FFW.RPCHelper.updateRpc(event.appID);
}
},
Expand Down Expand Up @@ -219,10 +221,12 @@ SDL.SettingsController = Em.Object.create(
for (var i = 0; i < message.result.allowedFunctions.length; i++) {
messageCodes.push(message.result.allowedFunctions[i].name);
}
FFW.BasicCommunication.GetUserFriendlyMessage(
SDL.SettingsController.permissionsFriendlyMessageUpdate, appID,
messageCodes
);
if (messageCodes.length > 0) {
FFW.BasicCommunication.GetUserFriendlyMessage(
SDL.SettingsController.permissionsFriendlyMessageUpdate, appID,
messageCodes
);
}
SDL.AppPermissionsView.update(message.result.allowedFunctions, appID);
delete SDL.SDLModel.data.getListOfPermissionsPull[message.id];
}
Expand Down
146 changes: 84 additions & 62 deletions app/controller/sdl/Abstract/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,9 @@ SDL.SDLController = Em.Object.extend(
FFW.TTS.requestId, 'TTS.Speak'
);
}
SDL.ResetTimeoutPopUp.setContext('');
SDL.ResetTimeoutPopUp.stopRpcProcessing('TTS.Speak');
FFW.TTS.Stopped();
FFW.TTS.requestId = null;
FFW.TTS.aborted = false;
}
Expand Down Expand Up @@ -611,25 +614,19 @@ SDL.SDLController = Em.Object.extend(
}
case 'ScrollableMessage':
{
SDL.ScrollableMessage.deactivate(true);
SDL.ScrollableMessage.deactivate();
break;
}
}
},
/**
* SDL notification call function
* to notify that SDL Core should reset timeout for some method
*/
onResetTimeout: function(appID, methodName) {
FFW.UI.onResetTimeout(appID, methodName);
},

/**
* Action to show Voice Recognition PopUp
*/
activateVRPopUp: function() {
if (FFW.TTS.requestId) {
FFW.TTS.aborted = true;
SDL.TTSPopUp.DeactivateTTS();
SDL.ResetTimeoutPopUp.stopRpcProcessing('TTS.Speak', true);
}
if (SDL.AlertPopUp.active) {
SDL.AlertPopUp.deactivate('ABORTED');
Expand Down Expand Up @@ -683,50 +680,26 @@ SDL.SDLController = Em.Object.extend(
*/
keepContextSoftButton: function(element) {
switch (element.groupName) {
case 'AlertPopUp':
{
clearTimeout(SDL.AlertPopUp.timer);
SDL.AlertPopUp.timer = setTimeout(
function() {
SDL.AlertPopUp.deactivate();
}, SDL.AlertPopUp.timeout
);
this.onResetTimeout(element.appID, 'UI.Alert');
break;
}
case 'AlertManeuverPopUp':
{
clearTimeout(SDL.AlertManeuverPopUp.timer);
SDL.AlertManeuverPopUp.timer = setTimeout(
function() {
SDL.AlertManeuverPopUp.deactivate();
}, SDL.AlertManeuverPopUp.timeout
);
FFW.TTS.OnResetTimeout(element.appID, 'Navigation.AlertManeuver');
break;
}
case 'SubtleAlertPopUp':
{
clearTimeout(SDL.SubtleAlertPopUp.timer);
SDL.SubtleAlertPopUp.timer = setTimeout(
function() {
SDL.SubtleAlertPopUp.deactivate();
}, SDL.SubtleAlertPopUp.timeout
);
this.onResetTimeout(element.appID, 'UI.SubtleAlert');
break;
}
{
SDL.ResetTimeoutPopUp.resetTimeoutSpecificRpc('Navigation.AlertManeuver');
break;
}
case 'ScrollableMessage':
{
clearTimeout(SDL.ScrollableMessage.timer);
SDL.ScrollableMessage.timer = setTimeout(
function() {
SDL.ScrollableMessage.deactivate();
}, SDL.ScrollableMessage.timeout
);
this.onResetTimeout(element.appID, 'UI.ScrollableMessage');
break;
}
{
SDL.ResetTimeoutPopUp.resetTimeoutSpecificRpc('UI.ScrollableMessage');
break;
}
case 'AlertPopUp':
{
SDL.ResetTimeoutPopUp.resetTimeoutSpecificRpc('UI.Alert');
break;
}
case 'SubtleAlertPopUp':
{
SDL.ResetTimeoutPopUp.resetTimeoutSpecificRpc('UI.SubtleAlert');
break;
}
}
},
/**
Expand Down Expand Up @@ -818,12 +791,11 @@ SDL.SDLController = Em.Object.extend(
);
SDL.SDLModel.data.set('interactionData.vrHelpTitle', null);
SDL.SDLModel.data.set('interactionData.vrHelp', null);
clearTimeout(SDL.SDLModel.promptTimeout);
SDL.SDLModel.set('timeoutPromptCallback', undefined);
SDL.SDLController.getApplicationModel(
appID
).activeRequests.uiPerformInteraction = null;
if (SDL.TTSPopUp.active && FFW.TTS.requestId == null) {
SDL.TTSPopUp.DeactivateTTS();
}
},
/**
* Method to sent notification ABORTED for VR PerformInteraction
Expand All @@ -833,10 +805,10 @@ SDL.SDLController = Em.Object.extend(
SDL.SDLModel.data.vrActiveRequests.vrPerformInteraction, result,
choiceID
);
SDL.InteractionChoicesView.timerUpdate();
if (choiceID && SDL.TTSPopUp.active && FFW.TTS.requestId == null) {
SDL.TTSPopUp.DeactivateTTS();
if(SDL.SDLModel.data.resultCode.TIMED_OUT !== result) {
SDL.ResetTimeoutPopUp.stopRpcProcessing('VR.PerformInteraction', false, false);
}
SDL.ResetTimeoutPopUp.startCountTimeoutByRPCName('UI.PerformInteraction');
SDL.SDLModel.data.interactionData.helpPrompt = null;
SDL.SDLModel.data.vrActiveRequests.vrPerformInteraction = null;
SDL.SDLModel.data.set('VRActive', false);
Expand Down Expand Up @@ -1019,7 +991,6 @@ SDL.SDLController = Em.Object.extend(
appType: params.appType,
isMedia: 0,
disabledToActivate: params.greyOut ? true : false,
displayLayout: "DEFAULT",
dayColorScheme: isDayColorSchemeDefined ? params.dayColorScheme : SDL.SDLModelData.data.defaultColorScheme,
nightColorScheme: isNightColorSchemeDefined ? params.nightColorScheme : SDL.SDLModelData.data.defaultColorScheme,
policyAppID: params.policyAppID,
Expand All @@ -1039,7 +1010,6 @@ SDL.SDLController = Em.Object.extend(
isMedia: applicationType == 0 ? true : false,
initialized: true,
disabledToActivate: params.greyOut ? true : false,
displayLayout: "DEFAULT",
dayColorScheme: isDayColorSchemeDefined ? params.dayColorScheme : SDL.SDLModelData.data.defaultColorScheme,
nightColorScheme: isNightColorSchemeDefined ? params.nightColorScheme : SDL.SDLModelData.data.defaultColorScheme,
policyAppID: params.policyAppID,
Expand Down Expand Up @@ -1506,16 +1476,16 @@ SDL.SDLController = Em.Object.extend(
/**
* SetAudioStreamingIndicator notification handler
*
* @param {Object} params
* @param {Object} audioStreamingIndicator audioStreamingIndicator name
* @constructor
* @return {boolean}
*/
SetAudioStreamingIndicator: function(params) {
SetAudioStreamingIndicator: function(audioStreamingIndicator) {
if (SDL.SDLController.model) {
SDL.SDLController.model.set(
'mediaPlayerIndicator',
SDL.SDLModel.data.
mediaPlayerIndicatorEnum[params.audioStreamingIndicator]
mediaPlayerIndicatorEnum[audioStreamingIndicator]
);
return true;
}
Expand Down Expand Up @@ -1671,6 +1641,58 @@ SDL.SDLController = Em.Object.extend(

return windowCapability;
},

/**
* @function getDisplayCapability
* @param {Integer} appID
* @param {Integer} windowID
* @description returns string of system capabilities for selected app
*/
getDisplayCapability: function(appID, windowID){
const appModel = SDL.SDLController.getApplicationModel(appID);
const windowType = (windowID === undefined || windowID === 0) ? "MAIN" : "WIDGET";
const windowTypeSupported = SDL.SDLModelData.defaultWindowCapability[windowType].systemCapability.displayCapabilities[0].windowTypeSupported;

let template = appModel.templateConfiguration.template;
if(template === 'DEFAULT') {
if(appModel.appType.includes('WEB_VIEW')) {
template = 'WEB_VIEW';
} else if(appModel.appType.includes('NAVIGATION') || appModel.appType.includes('PROJECTION')) {
template = 'NAV_FULLSCREEN_MAP';
} else if(appModel.isMedia === true) {
template = 'MEDIA';
} else {
template = 'NON-MEDIA';
}
}

let templateCapabilities = SDL.deepCopy(SDL.templateCapabilities[template])
let displayCapability = {
displayName: templateCapabilities.displayCapabilities.displayName,
windowCapabilities: [{
textFields: templateCapabilities.displayCapabilities.textFields,
imageFields: templateCapabilities.displayCapabilities.imageFields,
imageTypeSupported: templateCapabilities.displayCapabilities.imageCapabilities,
templatesAvailable: templateCapabilities.displayCapabilities.templatesAvailable,
numCustomPresetsAvailable: templateCapabilities.displayCapabilities.numCustomPresetsAvailable,
buttonCapabilities: templateCapabilities.buttonCapabilities,
softButtonCapabilities: templateCapabilities.softButtonCapabilities
}],
windowTypeSupported: windowTypeSupported
};

if(windowType === "WIDGET") {
displayCapability.windowCapabilities[0].windowID = windowID;
}

return {
systemCapability: {
systemCapabilityType: "DISPLAYS",
displayCapabilities: [ displayCapability ]
},
appID: appID
}
},
/**
* @function isColorSchemesEqual
* @param {Object} left - color scheme object
Expand Down
Loading