自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release 而非 aosp-main 建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
RootcanalUtils
public
class
RootcanalUtils
extends TestWatcher
| java.lang.Object
|
| ↳ |
org.junit.rules.TestWatcher
|
| |
↳ |
com.android.sts.common.RootcanalUtils
|
TestWatcher 會設定虛擬藍牙 HAL,並在完成後重新啟動裝置。
摘要
公用建構函式
RootcanalUtils
public RootcanalUtils (BaseHostJUnit4Test test)
| 參數 |
test |
BaseHostJUnit4Test |
公用方法
enableRootcanal
public RootcanalUtils.RootcanalController enableRootcanal ()
在目前裝置上,將現有的 HAL 替換為 RootCanal HAL。
| 擲回 |
DeviceNotAvailableException |
|
IOException |
|
InterruptedException |
|
完成
public void finished (Description d)
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[null,null,["上次更新時間:2025-07-27 (世界標準時間)。"],[],[]]