- 문법:
<instrumentation android:functionalTest=["true" | "false"] android:handleProfiling=["true" | "false"] android:icon="drawable resource" android:label="string resource" android:name="string" android:targetPackage="string" android:targetProcesses="string" />
- 포함된 위치:
<manifest>
- 설명:
- 애플리케이션과 시스템의 상호작용을 모니터링할 수 있는
Instrumentation
클래스를 선언합니다.Instrumentation
객체는 애플리케이션의 구성요소 이전에 인스턴스화됩니다. - 속성:
android:functionalTest
Instrumentation
클래스가 기능 테스트로 실행되는지를 나타냅니다. 실행되면true
, 실행되지 않으면false
입니다. 기본값은false
입니다.android:handleProfiling
Instrumentation
객체가 프로파일링을 사용 설정 또는 사용 중지하는지 나타냅니다. 프로파일링이 시작되고 중지되는 시점을 결정하는 경우에는true
이고, 실행되는 내내 프로파일링이 계속되는 경우false
입니다. 값이true
이면 객체가 프로파���링을 특정 작업 세트로 타겟팅할 수 있습니다. 기본값은false
입니다.android:icon
Instrumentation
클래스를 나타내는 아이콘입니다. 이 속성은 드로어블 리소스 참조로 설정해야 합니다.android:label
- 사용자가 읽을 수 있는
Instrumentation
클래스 라벨입니다. 라벨은 원시 문자열로 설정하거나 문자열 리소스 참조로 설정할 수 있습니다. android:name
Instrumentation
서브클래스의 이름입니다. 정규화된 클래스 이름(예:com.example.project.StringInstrumentation
)을 사용합니다. 그러나 약식으로 이름의 첫 번째 문자가 마침표인 경우<manifest>
요소에서 지정된 패키지 이름에 추가됩니다.기본값은 없으며, 이름을 지정해야 합니다.
android:targetPackage
Instrumentation
객체가 실행되는 애플리케이션입니다. 애플리케이션은 매니페스트 파일에서<manifest>
요소가 지정하는 패키지 이름으로 식별됩니다.android:targetProcesses
Instrumentation
객체가 실행되는 프로세스입니다. 쉼표로 구분된 목록은 이러한 특정 프로세스에 대해 계측이 실행된다는 것을 나타냅니다."*"
값은android:targetPackage
에서 정의된 앱의 모든 프로세스에 대해 계측이 실행된다는 것을 나타냅니다.이 값이 매니페스트에 제공되지 않은 경우 계측은
android:targetPackage
에 정의된 앱의 기본 프로세스에 관해서만 실행됩니다.이 속성은 API 수준 26에 추가되었습니다.
- 도입 수준:
- API 수준 1
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2024-02-16(UTC)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"필요한 정보가 없음"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"너무 복잡함/단계 수가 너무 많음"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"오래됨"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"번역 문제"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"샘플/코드 문제"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"기타"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"이해하기 쉬움"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"문제가 해결됨"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"기타"
}]