N9:星辰康瑞图片修改,title修改 2826/1 2826/head sdk602patch0911_xingchen_ai
authorluozheng <1732036298@qq.com>
Sat, 29 Nov 2025 08:02:56 +0000 (16:02 +0800)
committerluozheng <1732036298@qq.com>
Sat, 29 Nov 2025 08:02:56 +0000 (16:02 +0800)
code/sdk/application/wearable/fd230app/nativeui/aivoice/include/AiVoiceModel.h
code/sdk/application/wearable/fd230app/nativeui/aivoice/include/AiVoiceView.h
code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceBluetoothFailedStartView.cpp
code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceView.cpp
code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AivoiceConnectTimeoutView.cpp
code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AivoiceMobileDataFailedStartView.cpp
code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AivoiceReturnResultTextView.cpp
code/sdk/build/config/target_config/brandy/mk_fs_image/fd230/fs/user/res/AIVoice/aimodels/aimodes_xingchen.bin

index a0b7d42..903cae5 100644 (file)
@@ -21,7 +21,7 @@
 // 设置当前使用的音频类型,0 表示 PCM,1 表示 SBC,2 表示 MSBC
 #define CURRENT_AIAUDIO_TYPE AIAUDIO_TYPE_SBC
 
-#define AI_VOICE_XINGCHEN 1  //打开星辰康瑞的宏
+#define AI_VOICE_XINGCHEN 1  //打开天翼AI的宏
 
 #if defined(SUPPORT_CHINA_MOBILE_DMP) || defined(SUPPORT_CHINA_MOBILE_AI_REGULATION)
     #define AI_VOICE_FD230  // 九天版本
index 1b19fa4..b094633 100644 (file)
@@ -16,6 +16,7 @@
 #include "components/ui_image_view.h"
 #include "components/ui_picker.h"
 #include "components/ui_slider.h"
+#include "aivoice/include/AiVoiceModel.h"
 #include "aivoice/include/AiVoiceBluetoothFailedStartView.h"
 #include "aivoice/include/AivoiceMobileDataFailedStartView.h"
 #include "aivoice/include/AivoiceConnectTimeoutView.h"
index a35299f..734a23a 100644 (file)
@@ -92,7 +92,7 @@ namespace OHOS
         if(labelconfig.textId == STR_JIUTIAN)
         { 
             #if AI_VOICE_XINGCHEN
-            label->SetText("星辰康瑞");
+            label->SetText("天翼AI");
             #else
             label->SetTextId(labelconfig.textId);
             #endif
@@ -288,7 +288,7 @@ namespace OHOS
             if(textId == STR_JIUTIAN)
             { 
                 #if AI_VOICE_XINGCHEN
-                title->SetText("星辰康瑞");
+                title->SetText("天翼AI");
                 #else
                 title->SetTextId(textId);
                 #endif
index c1d6641..be8888c 100644 (file)
@@ -187,7 +187,7 @@ namespace OHOS
         if(labelconfig.textId == STR_JIUTIAN)
         {
             #if AI_VOICE_XINGCHEN
-            label->SetText("星辰康瑞");
+            label->SetText("天翼AI");
             #else
             label->SetTextId(labelconfig.textId);
             #endif
@@ -325,6 +325,15 @@ namespace OHOS
             imagecinfig.src = it->second;
         }
 
+        if ( it->first == STR_JIUTIAN)
+        {
+            #if (AI_VOICE_XINGCHEN)
+            imagecinfig.x = 60;
+            #else
+            imagecinfig.x = 173;
+            #endif
+        }
+
         aiModelImage = AiVoiceViewImageView(imagecinfig);
         if (aiModelImage == nullptr)
         {
@@ -1199,7 +1208,7 @@ namespace OHOS
             if(textId == STR_JIUTIAN)
             {
                 #if AI_VOICE_XINGCHEN
-                title->SetText("星辰康瑞");
+                title->SetText("天翼AI");
                 #else
                 title->SetTextId(textId);
                 #endif
@@ -1215,8 +1224,21 @@ namespace OHOS
             auto it = TextIdToImagePath.find(textId);
             if (it != TextIdToImagePath.end())
             {
+                if(it->first == STR_JIUTIAN)
+                {
+                    #if (AI_VOICE_XINGCHEN)
+                    aiModelImage->SetX(60);
+                    #else
+                    aiModelImage->SetX(173);
+                    #endif
+                }
+                else
+                {
+                    aiModelImage->SetX(173);
+                }
                 aiModelImage->SetSrc(it->second);
                 aiModelImage->Invalidate();
+                scrollView->Invalidate();
             }
         }
 
index d1038e1..8223fce 100644 (file)
@@ -88,7 +88,7 @@ namespace OHOS
         if(labelconfig.textId == STR_JIUTIAN)
         {
             #if AI_VOICE_XINGCHEN
-            label->SetText("星辰康瑞");
+            label->SetText("天翼AI");
             #else
             label->SetTextId(labelconfig.textId);
             #endif
@@ -283,7 +283,7 @@ namespace OHOS
             if(textId == STR_JIUTIAN)
             {
                 #if AI_VOICE_XINGCHEN
-                title->SetText("星辰康瑞");
+                title->SetText("天翼AI");
                 #else
                 title->SetTextId(textId);
                 #endif
index 4019c3d..8f4fb06 100644 (file)
@@ -96,7 +96,7 @@ namespace OHOS
         if(labelconfig.textId == STR_JIUTIAN)
         {
             #if AI_VOICE_XINGCHEN
-            label->SetText("星辰康瑞");
+            label->SetText("天翼AI");
             #else
             label->SetTextId(labelconfig.textId);
             #endif
@@ -293,7 +293,7 @@ namespace OHOS
             if(textId == STR_JIUTIAN)
             {
                 #if AI_VOICE_XINGCHEN
-                title->SetText("星辰康瑞");
+                title->SetText("天翼AI");
                 #else
                 title->SetTextId(textId);
                 #endif
index 22909cc..1d92aa8 100644 (file)
@@ -140,7 +140,7 @@ namespace OHOS
         if(labelconfig.textId == STR_JIUTIAN)
         {
             #if AI_VOICE_XINGCHEN
-            label->SetText("星辰康瑞");
+            label->SetText("天翼AI");
             #else
             label->SetTextId(labelconfig.textId);
             #endif
@@ -375,7 +375,7 @@ namespace OHOS
             if(textId == STR_JIUTIAN)
             {
                 #if AI_VOICE_XINGCHEN
-                title->SetText("星辰康瑞");
+                title->SetText("天翼AI");
                 #else
                 title->SetTextId(textId);
                 #endif