Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 105) sorted by relevance

12345

/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DAbiUtils.java37 public static String parseAbi(String id) { in parseAbi() argument
38 return parseId(id)[0]; in parseAbi()
46 public static String[] parseId(String id) { in parseId() argument
47 if (id == null || !id.contains(" ")) { in parseId()
50 return id.split(" "); in parseId()
57 public static String parseTestName(String id) { in parseTestName() argument
58 return parseId(id)[1]; in parseTestName()
DLightInvocationResult.java78 for (String id : mModuleIds) { in getModules()
79 modules.add(new ModuleResult(id)); in getModules()
104 public IModuleResult getOrCreateModule(String id) { in getOrCreateModule() argument
105 mModuleIds.add(id); in getOrCreateModule()
106 return new ModuleResult(id); in getOrCreateModule()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/view/
DViewNode.kt34 val id: String, constant in android.tools.traces.view.ViewNode
52 if (id != other.id) return false in equals()
62 if (children.joinToString { it.id } != other.children.joinToString { it.id }) return false in equals()
70 result = 31 * result + id.hashCode() in hashCode()
80 result = 31 * result + children.joinToString { it.id }.hashCode() in hashCode()
85 "ViewNode(classNameIndex=$classNameIndex, hashCode=$hashcode, id='$id', bounds=$bounds)" in toString()
91 id: String, in toString()
106 id, in toString()
/platform_testing/libraries/car-helpers/multiuser-helper/src/android/platform/helpers/
DMultiUserHelper.java86 .id; in createUser()
88 return mUserManager.createUser(name, /* flags= */ 0).id; in createUser()
98 public void switchAndWaitForStable(int id, long timeoutMs) throws Exception { in switchAndWaitForStable() argument
99 switchToUserId(id); in switchAndWaitForStable()
112 public void switchToUserId(int id) throws Exception { in switchToUserId() argument
117 getCurrentForegroundUserInfo().id, id)); in switchToUserId()
119 switchUserUsingShell(id); in switchToUserId()
134 AsyncFuture<UserSwitchResult> future = mCarUserManager.switchUser(id); in switchToUserId()
140 String.format("Exception when switching to target user: %d", id), e); in switchToUserId()
151 id, USER_SWITCH_TIMEOUT_SECOND)); in switchToUserId()
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/wm/
DTransitionTest.kt35 id = 1, in canMergePartialTransitions()
45 id = 1, in canMergePartialTransitions()
55 id = 1, in canMergePartialTransitions()
78 id = 1, in mergePartialTransitionsOverrideValues()
103 id = 1, in mergePartialTransitionsOverrideValues()
148 id = 1, in getStartTransaction_directMatch()
159 id = transactionId, in getStartTransaction_directMatch()
179 Truth.assertThat(startTransaction.id).isEqualTo(transactionId) in getStartTransaction_directMatch()
187 id = 1, in getStartTransaction_noMatch()
198 id = transactionId + 10, in getStartTransaction_noMatch()
[all …]
DTransitionsTraceTest.kt37 id = 1, in canBeCompressed()
45 id = 1, in canBeCompressed()
53 id = 1, in canBeCompressed()
/platform_testing/libraries/automotive-helpers/utility-helper/src/android/platform/helpers/
DSeekUtility.java79 String id, String seekBarConfig, SeekLayout layout, Supplier<Integer> valueSupplier) { in registerSeekBar() argument
80 if (mRegisteredSeekBars.containsKey(id)) { in registerSeekBar()
90 mRegisteredSeekBars.put(id, details); in registerSeekBar()
100 public int seek(String id, float targetPercentage) { in seek() argument
107 SeekBarDetails details = mRegisteredSeekBars.get(id); in seek()
139 public int getValue(String id) { in getValue() argument
140 return mRegisteredSeekBars.get(id).mValueSupplier.get(); in getValue()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/
DTransitionsTrace.kt27 require(transition.id != 0) { "Requires non-null transition id" } in asCompressed()
28 val accumulatedTransition = transitionById[transition.id] in asCompressed()
30 transitionById[transition.id] = transition in asCompressed()
32 transitionById[transition.id] = in asCompressed()
DTransition.kt27 val id: Int, constant in android.tools.traces.wm.Transition
93 it.id == this.startTransactionId || in getStartTransaction()
105 it.id == this.finishTransactionId || in getFinishTransaction()
118 require(transition.mergeTarget == this.id) { in merge()
132 id = this.id, in merge()
189 require(transition1.id == transition2.id) { in mergePartialTransitions()
194 id = transition1.id, in mergePartialTransitions()
DWindowDescriptor.kt4 val id = window.id constant
DWindowManagerTrace.kt71 fun getWindowDescriptorById(id: Int): WindowDescriptor? { in getWindowDescriptorById()
74 if (window.id == id) { in getWindowDescriptorById()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/
DDisplay.kt30 val id: Long, constant in android.tools.traces.surfaceflinger.Display
74 if (id != other.id) return false in equals()
86 var result = id.hashCode() in hashCode()
102 id = 0, in <lambda>()
115 id: Long, in from()
125 Display(id, name, layerStackId, size, layerStackSpace, transform, isVirtual, dpiX, dpiY) in from()
DLayerDescriptor.kt4 val id = layer.id constant
DTransaction.kt24 val id: Long, constant in android.tools.traces.surfaceflinger.Transaction
35 "id=$id)" in toString()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/
DMyActivity.java45 int id = item.getItemId(); in onOptionsItemSelected() local
46 if (id == R.id.action_settings) { in onOptionsItemSelected()
/platform_testing/utils/shell-as/
Dstring-utils.cpp63 gid_t id; in SplitIdsAndSkip() local
64 if (!StringToUInt32(id_string, &id)) { in SplitIdsAndSkip()
67 ids->push_back(id); in SplitIdsAndSkip()
DREADME.md12 For example, the following are equivalent and execute `/system/bin/id` in the
21 /system/bin/id
25 shell-as --pid 1 /system/bin/id
32 shell-as --profile untrusted-app /system/bin/id
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DNotificationHelper.java70 public void createChannel(String id, String name, int importance, boolean vibrate, in createChannel() argument
72 if (manager.getNotificationChannel(id) != null) { in createChannel()
75 NotificationChannel channel = new NotificationChannel(id, name, importance); in createChannel()
85 public void useChannel(String id) { in useChannel() argument
86 mCurrentChannelId = id; in useChannel()
99 for (int id : ids) { in checkNotificationExistence()
100 result = result && checkNotificationExistence(id, manager); in checkNotificationExistence()
112 public boolean checkNotificationExistence(int id, NotificationManager manager) in checkNotificationExistence() argument
119 if (sbn.getId() == id) { in checkNotificationExistence()
129 Log.i(LOG_TAG, String.format("Notification (id=%d) existence = %b", id, isFound)); in checkNotificationExistence()
/platform_testing/libraries/audio-test-harness/server/src/main/java/com/android/media/audiotestharness/server/service/
DAudioCaptureSessionFactoryImpl.java57 int id = sIdBase.getAndIncrement(); in createCaptureSession() local
58 LOGGER.info(String.format("Starting new capture session with id %d", id)); in createCaptureSession()
61 id, in createCaptureSession()
/platform_testing/libraries/flicker/src/android/tools/flicker/extractors/
DTaggedCujTransitionMatcher.kt175 val layers = layersTrace.entries.flatMap { it.flattenedLayers }.distinctBy { it.id } in isPermissionDialogOpenTransition()
178 layers.firstOrNull { it.id == change.layerId } in isPermissionDialogOpenTransition()
204 val layers = layersTrace.entries.flatMap { it.flattenedLayers }.distinctBy { it.id } in isTrampolinedOpenTransition()
207 val candidateTaskLayer = layers.first { it.id == candidateTaskLayerId } in isTrampolinedOpenTransition()
236 val candidateTrampolinedActivity = layers.first { it.id == candidateTrampolinedActivityId } in isTrampolinedOpenTransition()
237 if (candidateTrampolinedActivity.parent?.id != candidateTaskLayerId) { in isTrampolinedOpenTransition()
242 val candidateTargetActivity = layers.first { it.id == candidateTargetActivityId } in isTrampolinedOpenTransition()
243 if (candidateTargetActivity.parent?.id != candidateTaskLayerId) { in isTrampolinedOpenTransition()
/platform_testing/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/
DINotificationHelper.java164 default void postBubbleNotification(String senderName, int count, int id) { in postBubbleNotification() argument
179 String senderName, int id, String text, String shortcutId, String messageToActivity) { in postBubbleNotification() argument
191 default void postBubbleNotification(String senderName, int id, String text) { in postBubbleNotification() argument
202 default void updateBubbleNotification(String senderName, int id, String text) { in updateBubbleNotification() argument
/platform_testing/libraries/flicker/src/android/tools/flicker/config/
DFlickerConfigImpl.kt62 require(entry.assertions.keys.none { it.id == assertion.id }) { in <lambda>()
90 entry.assertions.keys.firstOrNull { it.id == assertionId } in <lambda>()
109 entry.assertions.keys.firstOrNull { it.id == assertionId } in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/component/
DExactComponentIdMatcher.kt50 override fun layerMatchesAnyOf(layers: Collection<Layer>) = layers.any { it.id == layerId } in <lambda>()
56 ): Boolean = condition(layers.filter { it.id == layerId }) in check()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/rules/
DTemporaryNotificationChannel.java45 public TemporaryNotificationChannel(String id, String name, int importance) { in TemporaryNotificationChannel() argument
46 mId = id; in TemporaryNotificationChannel()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/res/testApp/MyApplication/src/main/myapplication.widgets/
DDialogView.java47 .setPositiveButton("Ok", (dialog, id) -> {}) in init()
48 .setNegativeButton("Cancel", (dialog, id) -> {}) in init()

12345