﻿
------------------------------------------------------------------------------
[1] アプレットのテスト環境
------------------------------------------------------------------------------

現状では手動実行環境のみ。
テストの実行方法は、本節以降に記載の各テストの説明を参照。



------------------------------------------------------------------------------
[2] ライブラリアプレットの単独起動テスト
------------------------------------------------------------------------------

アプリや SA、他の LA が起動していない状況で以下のテストを単独実行する。
呼出し元の shim ライブラリ作成前に LA の動作確認で使用する。

- AeLibraryAppletAlone


------------------------------------------------------------------------------
[3] nn::gfx::Initialize() によるアプレット初期化テスト
------------------------------------------------------------------------------

nn::os::Initialize() が nn::gfx::Initialize() から呼ばれていた時代のテスト。
すでに呼ばれなくなっているため、これらのテストは削除されました。


------------------------------------------------------------------------------
[4] システムアプレット（メニュー）の連続起動
------------------------------------------------------------------------------

DevMenu -> SystemAppletMenu の起動のように、
SA が同時起動するようなケースにおいて、前者の SA に Message_Exit を通知し、
終了を確認してから次の SA が起動するようになっています。

このテストを行ないたい場合は、以下のテストを連続で起動するようにして下さい。

- AeSystemAppletEventViewer


------------------------------------------------------------------------------
[5] HomeButton や PowerButton 押下時のメッセージ通知確認
------------------------------------------------------------------------------

以下のテストを起動し、HOME ボタンや POWER ボタンを押下（短押し、長押しなど）
すると、その時にアプレットマネージャから通知されてくるメッセージをログが
出力されるため、目視で確認することができます。

- AeOverlayApplet
- AeSystemAppletEventViewer

1) HOME ボタン短押し

   通常は SA に通知されますが、OA が BeginOverlayUserInteraction() を発行した
   状態ならば OA にのみ通知されます。EndOverlayUserInteraction() によって
   再び SA への通知に戻ります。

2) HOME ボタン長押し

   常に OA にのみ通知されます。

3) POWER ボタン

   短押し、中押し、長押し全てに関して SA に通知されます。


------------------------------------------------------------------------------
[7] アプレット全体のシーケンステスト
------------------------------------------------------------------------------

以下に示す一連のシーケンスを通してテストを行ないます。

- OA 起動（単独動作）
- SA 起動
  -> アプリ起動
     -> アプリからの LA1 の FG 起動、SA との遷移
        -> LA1 から LA3 の起動＆終了待ち
        -> LA1 の終了
     -> アプリからの LA2 の BG 起動、SA との遷移、終了
  -> アプリが BG に遷移
  -> SA からの LA3 の FG 起動＆終了
  -> SA からの LA4 の BG 起動＆終了
  -> アプリが FG に遷移
  -> アプリが終了
  -> SA の疑似メニュー（ログ）が出続ける

ただし、事前に以下の作業が必要です。

  - 全てのシーケンステストプログラムを NAND にインストールする
  - 以下のコマンドにより本体の設定値を変更しておく

    $ RunOnTarget.exe DevMenuCommandSystem.nsp -- debug disable-jit-debug
    $ RunOnTarget.exe DevMenuCommand.nsp -- debug set-sleep-mode pseudo

  - 一度本体をリセットして再起動する

RunOnTarget で以下の 1) と 2) のみ起動すれば全シーケンスが動作します。

0) AeOverlayApplet.nsp      // オーバーレイアプレット
1) AeSystemApplet.nsp       // SA メニュー
2) OeApplication.nsp        // アプリケーション
3) AeLibraryApplet1.nsp     // アプリから LA1 を FG 起動
4) AeLibraryApplet3.nsp     // アプリから LA3 を FG 起動（通常の LA 多重起動）
5) AeLibraryApplet3.nsp     // アプリから LA3 を FG 起動（スクラッチパッド起動）
6) AeLibraryApplet2.nsp     // アプリから LA2 を BG 起動
7) AeLibraryApplet3.nsp     // メニューから LA3 を FG 起動
8) AeLibraryApplet4.nsp     // メニューから LA4 を BG 起動

確認テストはログ出力が停止してから起動させる。

TargetManager 上に以下のようなログが出力されれば問題ない。

-------------------------------------------------------------------------------
OA: Invoke nn::ae::InvokeOverlayAppletMain().
OA: Launched OverlayApplet.
OA: ARUID = 0x0000000000000084
SA: Invoke nn::ae::InvokeSystemAppletMain().
SA: Launched SystemAppletMenu.
SA: ARUID = 0x0000000000000085
SA: BootReason is ColdBoot
SA: Received Message_ChangeIntoForeground
SA: Done AcquireForegroundRights()
SA: Launch Starter Application
SA: Received Message_ChangeIntoBackground
SA: Done ReleaseForegroundRights()
SA: Wait for starter message via SystemGeneralChannel
STARTER: ARUID = 0x0000000000000086
STARTER: Received Message_ChangeIntoForeground
STARTER: Done AcquireForegroundRights()
STARTER: Push message to SA (emulate: jump top 'set')
SA: Receive starter message via SystemGeneralChannel
STARTER: Received Message_ChangeIntoBackground
STARTER: Done ReleaseForegroundRights()
SA: Received Message_ChangeIntoForeground
SA: Done AcquireForegroundRights()
Caught event EventCode_SignaledTimer on State_Waiting
SA: Received Message_ChangeIntoBackground
SA: Done ReleaseForegroundRights()
SA: Wait for home button
STARTER: Received Message_ChangeIntoForeground
STARTER: Done AcquireForegroundRights()
STARTER: Push home button (short): expected ignored
SA: Received Message_DetectShortPressingHomeButton
SA: ignore home button
SA: Wait for starter message via SystemGeneralChannel
STARTER: Push message to SA (emulate: notify finished)
SA: Receive starter message via SystemGeneralChannel
STARTER: Push home button (short)
SA: Wait for home button
SA: Received Message_DetectShortPressingHomeButton
SA: Request exit to Starter
SA: Received Message_ApplicationExited
SA: Received Message_ChangeIntoForeground
SA: Done AcquireForegroundRights()
SA: Launch APL 0 with 'X'
OA: Received Message_ShowApplicationLogo for 0x010000000000b1c0
SA: Received Message_ChangeIntoBackground
SA: Done ReleaseForegroundRights()
OA: Received Message_HideApplicationLogo
APL: Launched an application.
APL: Invoked nn::oe::Initialize().
APL: ARUID = 0x0000000000000087
APP: Currently Operation Mode is Handheld Mode
APP: Currently Performance Mode is Normal Mode
APP: LaunchStorage = NAND
APP: patchStorage  = None
APP: Invoke nn::oe::SetUserInactivityDetectionTimeExtended(true)
APP: Invoked nn::oe::IsUserInactivityDetectionTimeExtended() = true
APP: Invoke nn::oe::SetUserInactivityDetectionTimeExtended(false)
APP: Invoked nn::oe::IsUserInactivityDetectionTimeExtended() = false
APL: launched -> get X
OE: buffer= 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 65 66 67
OE: seed= 0x58
APL: launch 0
APL: RequestToRelaunchApplication()
SA: Received Message_LaunchApplicationRequested
OA: Received Message_ForceHideApplicationLogo
SA: Received Message_ApplicationExited
SA: Received Message_ChangeIntoForeground
SA: Done AcquireForegroundRights()
SA: prepare to launch APL 1 with 'Y'
SA: Launch APL 1 with 'Y'
OA: Received Message_ShowApplicationLogo for 0x010000000000b1c0
SA: Received Message_ChangeIntoBackground
SA: Done ReleaseForegroundRights()
OA: Received Message_HideApplicationLogo
APL: Launched an application.
APL: Invoked nn::oe::Initialize().
APL: ARUID = 0x0000000000000088
APP: Currently Operation Mode is Handheld Mode
APP: Currently Performance Mode is Normal Mode
APP: LaunchStorage = NAND
APP: patchStorage  = None
APP: Invoke nn::oe::SetUserInactivityDetectionTimeExtended(true)
APP: Invoked nn::oe::IsUserInactivityDetectionTimeExtended() = true
APP: Invoke nn::oe::SetUserInactivityDetectionTimeExtended(false)
APP: Invoked nn::oe::IsUserInactivityDetectionTimeExtended() = false
APL: launched -> get Y
OE: buffer= 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 65 66 67 68
OE: seed= 0x59
APL: launch 1
OE: buffer= 78 79 7a 7b 7c 7d 7e 20 21 22 23 24 25 26 27 28
OE: seed= 0x78
APL: RequestToLaunchApplication(0x010000000000b1c0)
SA: Received Message_LaunchApplicationRequested
APL: Received MessageExitRequest
APL: exit
OA: Received Message_ForceHideApplicationLogo
SA: Received Message_ApplicationExited
SA: Received Message_ChangeIntoForeground
SA: Done AcquireForegroundRights()
SA: prepare to launch APL 1 with 'Z'
SA: Launch APL 2 with 'Z'
OA: Received Message_ShowApplicationLogo for 0x010000000000b1c0
SA: Received Message_ChangeIntoBackground
SA: Done ReleaseForegroundRights()
OA: Received Message_HideApplicationLogo
APL: Launched an application.
APL: Invoked nn::oe::Initialize().
APL: ARUID = 0x0000000000000089
APP: Currently Operation Mode is Handheld Mode
APP: Currently Performance Mode is Normal Mode
APP: LaunchStorage = NAND
APP: patchStorage  = None
APP: Invoke nn::oe::SetUserInactivityDetectionTimeExtended(true)
APP: Invoked nn::oe::IsUserInactivityDetectionTimeExtended() = true
APP: Invoke nn::oe::SetUserInactivityDetectionTimeExtended(false)
APP: Invoked nn::oe::IsUserInactivityDetectionTimeExtended() = false
APL: launched -> get Z
OE: buffer= 5a 5b 5c 5d 5e 5f 60 61 62 63 64 65 66 67 68 69
OE: seed= 0x5a
APL: launch 2
OE: buffer= 79 7a 7b 7c 7d 7e 20 21 22 23 24 25 26 27 28 29
OE: seed= 0x79
APL: RequestToLaunchApplication(0x010000000000b1c0) (dummy)
SA: Received Message_LaunchApplicationRequested
APL: Received MessageExitRequest
APL: abort (expected for test)
Abort: 'NN_ABORT' in MainApplicationJumpTest() at pid=137, tid=579(MainThread)
D:\home\SIGLO\sdk\Tests\Applet\Sources\Tests\Sequence\OeApplication\OeApplication.cpp(269)
for test
Stack trace:
  0x00000020749A25C8 (unknown)
  0x00000020749A19D4 (unknown)
  0x00000020749A2128 (unknown)
  0x00000020749A0680 (unknown)
  0x00000020749A07B4 _ZN2nn4diag6detail9AbortImplEPKcS3_S3_iS3_z+0x70
  0x0000002074005200 _Z23MainApplicationJumpTestv+0xA90
  0x0000002074005ED0 nnMain+0x5F8
  0x00000020749DB5B8 (unknown)

Related modules:
  base               size               name/path
  0x0000002074954000 0x0000000000C83000 nnSdkJp
  0x0000002074004000 0x0000000000950000 OeApplication

OA: Received Message_ForceHideApplicationLogo
SA: Received Message_ApplicationExited
SA: Received Message_ChangeIntoForeground
SA: Done AcquireForegroundRights()
SA: Start PseudoMenu thread.
SA: Launch application.
OA: Received Message_ShowApplicationLogo for 0x010000000000b1c0
OA: Received Message_HideApplicationLogo
APL: Launched an application.
APL: Invoked nn::oe::Initialize().
APL: ARUID = 0x000000000000008c
APP: Currently Operation Mode is Handheld Mode
APP: Currently Performance Mode is Normal Mode
APP: LaunchStorage = NAND
APP: patchStorage  = None
APP: Invoke nn::oe::SetUserInactivityDetectionTimeExtended(true)
APP: Invoked nn::oe::IsUserInactivityDetectionTimeExtended() = true
APP: Invoke nn::oe::SetUserInactivityDetectionTimeExtended(false)
APP: Invoked nn::oe::IsUserInactivityDetectionTimeExtended() = false
APL: RequestToLaunchApplication(0x010000000000b1c0) (dummy2)
(1000)
SA: Wait for message of application launched.
SA: Received Message_ChangeIntoBackground
SA: Done ReleaseForegroundRights()
(1010)
SA: Received Message_LaunchApplicationRequested
(1050)
APL: Received MessageResume
APL: Received FocusChanged: current= InFocus
APL: Received nn::oe::FocusState_InFocus
SA: Received Message_FinishedSleepSequence
(1060)
SA: Received Message_RequestToPrepareSleep
APL: Received MessageResume
APL: Received FocusChanged: current= InFocus
APL: Received nn::oe::FocusState_InFocus
SA: Received Message_FinishedSleepSequence
(1100)
SA: Invoke nn::ae::RequestToGetForeground()
SA: Received Message_ChangeIntoForeground
SA: Done AcquireForegroundRights()
(1150)
SA: Received Message_FinishedSleepSequence
(1200)
SA: Invoke nn::ae::RequestApplicationGetForeground()
SA: Received Message_ChangeIntoBackground
SA: Done ReleaseForegroundRights()
APL: Received MessageResume
APL: Received FocusChanged: current= InFocus
APL: Received nn::oe::FocusState_InFocus
(1250)
SA: Invoke nn::ae::BeginSleepHandling()
SA: Received Message_RequestToPrepareSleep
SA: Invoke nn::ae::LockForeground()
SA: Invoke nn::ae::AllowToEnterSleepAndWait()
SA: Received Message_ChangeIntoForeground
SA: Done AcquireForegroundRights()
SA: Received Message_FinishedSleepSequence
SA: Invoke nn::ae::UnlockForeground()
SA: Invoke nn::ae::EndSleepHandling()
(1260)
SA: Invoke nn::ae::RequestApplicationGetForeground()
SA: Received Message_ChangeIntoBackground
SA: Done ReleaseForegroundRights()
APL: Received MessageResume
APL: Received FocusChanged: current= InFocus
APL: Received nn::oe::FocusState_InFocus
APL: ARUID = 0x000000000000008c
(2000)
APL: Invoke nn::applet::CreateLibraryApplet( FG ▒N▒▒ )
(2150)
APL: Wait nn::oe::FocusState_OutOfFocus
APL: Received FocusChanged: current= InFocus
LA1: Invoke nn::ae::InvokeLibraryAppletMain().
SA: Wait for Message_DetectShortPressingHomeButton
APL: Received FocusChanged: current= InFocus
LA1: ARUID = 0x000000000000008d
LA1: Launched an LibraryApplet1 (Non-ScratchPad)
LA1: Pop from InChannel[0] -> size = 8192
LA1: Pop from InChannel[1] -> size = 2097152
LA1: Mapped TransferStorage of InChannel[2] -> address = 0000004d6a204000
LA1: Mapped TransferStorage of InChannel[2] -> size    = 0000000000100000
LA1: Pop from InChannel[2] -> size = 2097152
LA1: Unpop to InChannel[2] -> size = 2097152
LA1: Wait Message_ChangeIntoForeground.
LA1: Received Message_ChangeIntoForeground
LA1: Done AcquireForegroundRights()
LA1: Control application's volume.
LA1: Current Application's expected volume   = 0.25
LA1: Current LibraryApplet's expected volume = 1.00
LA1: Invoked nn::ae::ChangeMainAppletMasterVolume()
LA1: WARNNING: TODO: implemet
LA1: Press Home Button Short.
LA1: Wait for Message_ChangeIntoBackground from SystemAppletMenu.
SA: Received Message_DetectShortPressingHomeButton
SA: Invoke nn::ae::RequestToGetForeground()
LA1: Received Message_ChangeIntoBackground
LA1: Done ReleaseForegroundRights()
LA1: Invoke nn::ae::ReleaseForegroundRights().
LA1: Wait for Message_ChangeIntoForeground from SystemAppletMenu.
SA: Received Message_ChangeIntoForeground
SA: Done AcquireForegroundRights()
APL: Received FocusChanged: current= Background
APL: Received FocusChanged: current= Background
SA: Invoke nn::ae::RequestApplicationGetForeground()
SA: Received Message_ChangeIntoBackground
SA: Done ReleaseForegroundRights()
LA1: Received Message_ChangeIntoForeground
LA1: Done AcquireForegroundRights()
LA1: Invoke nn::ae::AcquireForegroundRights().
LA1: Invoke nn::applet::CreateLibraryApplet( LA3, Foreground )
LA1: Invoke nn::applet::StartLibraryApplet(LA3)
LA1: Wait nn::applet::Message_ChangeIntoBackground(LA3)
APL: Received FocusChanged: current= OutOfFocus
(2200)
APL: Wait for LA1 exit
LA3: Invoke nn::ae::InvokeLibraryAppletMain().
LA3: Launched an LibraryApplet3.
LA3: Pop from InChannel[0] -> size = 8192
LA3: Wait Message_ChangeIntoForeground.
LA1: Received Message_ChangeIntoBackground
LA1: Done ReleaseForegroundRights()
LA1: Wait for LA3 exit
LA3: Received Message_ChangeIntoForeground
LA3: Done AcquireForegroundRights()
LA3: Control main applet's volume.
LA3: Current Application's expected volume   = 0.25
LA3: Current LibraryApplet's expected volume = 1.00
LA3: Invoked nn::ae::ChangeMainAppletMasterVolume()
LA3: Invoke nn::ae::ExitLibraryApplet().
LA1: Join LA3
LA1: Invoke nn::applet::CloseLibraryApplet()
LA1: Wait nn::applet::Message_ChangeIntoForeground()
LA1: Received Message_ChangeIntoForeground
LA1: Done AcquireForegroundRights()
LA1: Invoke nn::applet::CreateLibraryApplet( LA3, Foreground ) with ScratchPad
LA1: Invoke nn::applet::StartLibraryApplet(LA3)
LA1: Prepare for winding programLA1: Save Context ( 4 KB )
LA3: Invoke nn::ae::InvokeLibraryAppletMain().
SA: Wait for Message_DetectShortPressingHomeButton
LA3: Launched an LibraryApplet3.
LA3: Pop from InChannel[0] -> size = 8192
LA3: Wait Message_ChangeIntoForeground.
LA3: Received Message_ChangeIntoForeground
LA3: Done AcquireForegroundRights()
LA3: Control main applet's volume.
LA3: Current Application's expected volume   = 0.25
LA3: Current LibraryApplet's expected volume = 1.00
LA3: Invoked nn::ae::ChangeMainAppletMasterVolume()
LA3: Invoke nn::ae::ExitLibraryApplet().
LA1: Invoke nn::ae::InvokeLibraryAppletMain().
LA1: ARUID = 0x0000000000000090
LA1: Unwinding LibraryApplet1
LA1: Join LA3
LA1: Wait nn::applet::Message_ChangeIntoForeground
LA1: Received Message_ChangeIntoForeground
LA1: Done AcquireForegroundRights()
LA1: Check LA3's context stack
LA1: Pop from InChannel[2] -> size = 2097152
APL: Join LA1
OE: buffer= 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53
OE: seed= 0x44
OE: buffer= 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41
OE: seed= 0x32
(2250)
APL: Wait for nn::oe::FocusState_InFocus
APL: Received FocusChanged: current= OutOfFocus
APL: Received FocusChanged: current= InFocus
(2300)
APL: Invoke nn::applet::CreateLibraryApplet( FG ▒N▒▒ )
(2310)
APL: Join LA1
LA1: Invoke nn::ae::InvokeLibraryAppletMain().
LA1: ARUID = 0x0000000000000091
LA1: Launched an LibraryApplet1 (Non-ScratchPad)
LA1: Pop from InChannel[0] -> size = 8192
LA1: abort (expected for test)
Abort: 'NN_ABORT' in LibraryAppletAuthMain() at pid=145, tid=651(MainThread)
D:\home\SIGLO\sdk\Tests\Applet\Sources\Tests\Sequence\AeLibraryApplet1\AeLibraryApplet1.cpp(208)
for test
Stack trace:
  0x00000044BBA04410 (unknown)
  0x00000044BBA04228 (unknown)
  0x00000044BBA03E34 (unknown)
  0x00000044BBA03628 (unknown)
  0x00000044BBA0375C (unknown)
  0x00000044BBA01DAC (unknown)
  0x00000044BBA1CCF4 (unknown)
  0x00000044BBA02DFC (unknown)
  0x00000044BBA0343C (unknown)

Related modules:
  base               size               name/path
  0x00000044BBA00000 0x000000000069D000 AeLibraryApplet1

[fatal] Warning: 'Initialize()' failed. Result = 0x00001015
APL: Default Application's expected volume   = 0.25
APL: Default LibraryApplet's expected volume = 1.00
(3000)
APL: Invoke nn::applet::CreateLibraryAppletHandle( BG ▒N▒▒ )
(3100)
APL: Invoke nn::applet::StartLibraryApplet(la2)
(3200)
APL: Invoke nn::applet::PushToInteractiveInChannel()
APL: Wait for nn::oe::FocusState_Background
APL: Received FocusChanged: current= InFocus
LA2: Invoke nn::ae::InvokeLibraryAppletMain().
APL: Received FocusChanged: current= InFocus
LA2: Launched an LibraryApplet2.
LA2: Wait nn::ae::Message_ChangeIntoForeground.
LA2: Received Message_ChangeIntoForeground
LA2: Done AcquireForegroundRights()
LA2: Control application's volume.
LA2: Current Application's expected volume   = 0.50
LA2: Current LibraryApplet's expected volume = 0.20
LA2: Invoked nn::ae::ChangeMainAppletMasterVolume()
LA2: Wait nn::ae::GetPopFromInteractiveInChannelEvent.
LA2: Wait nn::ae::TryPopFromInteractiveInChannel.
LA2: Press Home Button Short.
LA2: Wait nn::ae::Message_ChangeIntoBackground.
SA: Received Message_DetectShortPressingHomeButton
SA: Invoke nn::ae::RequestToGetForeground()
LA2: Received Message_ChangeIntoBackground
LA2: Done ReleaseForegroundRights()
LA2: PushToSystemGeneralChannel('N')
LA2: Wait nn::ae::Message_ChangeIntoForeground.
APL: Received FocusChanged: current= InFocus
SA: Received Message_ChangeIntoForeground
SA: Done AcquireForegroundRights()
APL: Received FocusChanged: current= Background
APL: Wait for nn::oe::FocusState_InFocus
APL: Received FocusChanged: current= Background
APL: Received FocusChanged: current= Background
SA: Wait GetPopFromSystemGeneralChannelEvent()
SA: TryPopFromSystemGeneralChannel('N')
SA: Invoke nn::ae::RequestApplicationGetForeground()
SA: Received Message_ChangeIntoBackground
SA: Done ReleaseForegroundRights()
LA2: Received Message_ChangeIntoForeground
LA2: Done AcquireForegroundRights()
LA2: Invoke nn::ae::PushToInteractiveOutChannel().
LA2: Wait nn::ae::GetPopFromInteractiveInChannelEvent.
APL: Received FocusChanged: current= InFocus
(3300)
APL: Wait nn::applet::GetPopFromInteractiveOutChannelEvent(la2)
APL: Invoke nn::applet::TryPopFromInteractiveOutChannel()
OE: buffer= 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 55 56 57
OE: seed= 0x48
(3400)
APL: Invoke nn::applet::RequestLibraryAppletExit()
(3500)
APL: Join LA2
LA2: Wait nn::ae::TryPopFromInteractiveInChannel.
LA2: Wait nn::ae::TryPopFromInteractiveInChannel.
(9000)
SA: Invoke nn::ae::NotifyShortPressingHomeButtonForDebug()
APL: Received FocusChanged: current= InFocus
SA: Received Message_DetectShortPressingHomeButton
SA: Invoke nn::ae::NotifyShortPressingPowerButtonForDebug()
SA: Received Message_DetectShortPressingPowerButton
SA: Invoke nn::ae::NotifyMiddlePressingPowerButtonForDebug()
OA: Received Message_DetectMiddlePressingPowerButton
OA: Invoked nn::ae::BeginOverlayUserInteraction()
APL: Received FocusChanged: current= InFocus
APL: Received FocusChanged: current= InFocus
APL: Received FocusChanged: current= InFocus
APL: Received FocusChanged: current= InFocus
SA: Invoke nn::ae::NotifyShortPressingHomeButtonForDebug()
OA: Received Message_DetectShortPressingHomeButton
OA: Invoked nn::ae::EndOverlayUserInteraction()
APL: Received FocusChanged: current= InFocus
APL: Received FocusChanged: current= InFocus
(9900)
SA: Invoke nn::ae::RequestToGetForeground()
APL: Received FocusChanged: current= InFocus
SA: Received Message_ChangeIntoForeground
SA: Done AcquireForegroundRights()
(9910)
SA: Invoke nn::ae::RequestApplicationExit()
SA: Wait for application exit.
(9999)
OA: Received Message_ForceHideApplicationLogo
SA: Received Message_ApplicationExited
SA: Detect application exited.
SA: ARUID = 0x0000000000000085
(4000)
SA: Invoke nn::applet::CreateLibraryApplet( AllFG )
(4100)
SA: Invoke nn::applet::StartLibraryApplet()
(4150)
SA: Wait nn::applet::Message_ChangeIntoBackground()
LA3: Invoke nn::ae::InvokeLibraryAppletMain().
LA3: Launched an LibraryApplet3.
LA3: Pop from InChannel[0] -> size = 8192
LA3: Wait Message_ChangeIntoForeground.
SA: Received Message_ChangeIntoBackground
SA: Done ReleaseForegroundRights()
(4200)
SA: Invoke nn::applet::JoinLibraryApplet()
LA3: Received Message_ChangeIntoForeground
LA3: Done AcquireForegroundRights()
LA3: Control main applet's volume.
LA3: Current Application's expected volume   = 0.25
LA3: Current LibraryApplet's expected volume = 1.00
LA3: Invoked nn::ae::ChangeMainAppletMasterVolume()
LA3: Invoke nn::ae::ExitLibraryApplet().
(4250)
SA: Wait nn::applet::Message_ChangeIntoForeground()
SA: Received Message_ChangeIntoForeground
SA: Done AcquireForegroundRights()
SA: Default SystemApplet's expected volume  = 0.25
SA: Default LibraryApplet's expected volume = 1.00
(5000)
SA: Invoke nn::applet::CreateLibraryApplet( NoUI )
(5100)
SA: Invoke nn::applet::StartLibraryApplet()
(5200)
SA: Invoke nn::applet::PushToInteractiveInChannel()
(5300)
SA: Wait nn::applet::GetPopFromInteractiveOutChannelEvent(LA4)
LA4: Invoke nn::ae::InvokeLibraryAppletMain().
LA4: Launched an LibraryApplet4.
LA4: Wait nn::ae::Message_ChangeIntoForeground.
LA4: Received Message_ChangeIntoForeground
LA4: Done AcquireForegroundRights()
LA4: Control main applet's volume.
LA4: Current Application's expected volume   = 0.50
LA4: Current LibraryApplet's expected volume = 0.20
LA4: Invoked nn::ae::ChangeMainAppletMasterVolume()
LA4: Wait nn::ae::GetPopFromInteractiveInChannelEvent.
LA4: Wait nn::ae::TryPopFromInteractiveInChannel.
LA4: Invoke nn::ae::PushToInteractiveOutChannel().
SA: Invoke nn::applet::TryPopFromInteractiveOutChannel()
(5400)
SA: Invoke nn::applet::JoinLibraryApplet()
LA4: Invoke nn::ae::ExitLibraryApplet().
(5500)
SA: Invoke nn::applet::GetLibraryAppletExitReason()
SA: Invoke nn::ae::CloseApplicationHandle().
SA: ARUID = 0x0000000000000085
SA: === Pseudo Menu === (count: 0)
SA: === Pseudo Menu === (count: 1)
SA: === Pseudo Menu === (count: 2)
SA: === Pseudo Menu === (count: 3)
     :
     :
-------------------------------------------------------------------------------

以上。

