W 2026 r., aby dostosować się do naszego modelu stabilnego rozwoju trunk i zapewnić stabilność platformy w ekosystemie, będziemy publikować kod źródłowy w AOSP w drugim i czwartym kwartale. Do tworzenia i współtworzenia AOSP używaj gałęzi android-latest-release. Gałąź manifestu android-latest-release będzie zawsze odwoływać się do najnowszej wersji przesłanej do AOSP. Więcej informacji znajdziesz w artykule Zmiany w AOSP.
Google używa technologii AI do tłumaczenia treści na Twój preferowany język. Tłumaczenia wygenerowane przez AI mogą zawierać błędy.
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
DeviceParameterizedRunner
public
class
DeviceParameterizedRunner
extends JUnitParamsRunner
implements
IAbiReceiver,
ISetOptionReceiver,
ITestInformationReceiver
| java.lang.Object
|
| ↳ |
org.junit.runner.Runner
|
| |
↳ |
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
|
| |
|
↳ |
org.junit.runners.BlockJUnit4ClassRunner
|
| |
|
|
↳ |
junitparams.JUnitParamsRunner
|
| |
|
|
|
↳ |
com.android.tradefed.testtype.junit4.DeviceParameterizedRunner
|
Parametryzowany moduł uruchamiający w stylu JUnit4 do testów parametryzowanych po stronie hosta.
Ten program uruchamiający jest oparty na JUnitParamsRunner, a nie na natywnym programie JUnit4 Parameterized, ale natywny program uruchamiający z parametrami nie jest zbyt dobry i nie pozwala na uruchomienie pojedynczej metody.
Podsumowanie
Konstruktory publiczne
DeviceParameterizedRunner
public DeviceParameterizedRunner (Class<?> klass)
| Zgłasza |
|
org.junit.runners.model.InitializationError |
InitializationError |
|
Metody publiczne
getAbi
public IAbi getAbi ()
setAbi
public void setAbi (IAbi abi)
public void setTestInformation (TestInformation testInformation)
| Parametry |
testInformation |
TestInformation |
Metody chronione
getKeyValueOptions
protected List<String> getKeyValueOptions ()
methodInvoker
protected Statement methodInvoker (FrameworkMethod method,
Object testObj)
| Parametry |
method |
FrameworkMethod |
testObj |
Object |
withAfterClasses
protected Statement withAfterClasses (Statement statement)
| Parametry |
statement |
Statement |
withBeforeClasses
protected Statement withBeforeClasses (Statement statement)
| Parametry |
statement |
Statement |
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2026-06-22 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2026-06-22 UTC."],[],[]]