Home
last modified time | relevance | path

Searched refs:target (Results 1 – 25 of 809) sorted by relevance

12345678910>>...33

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DLinkPropertiesUtilsTest.java89 final LinkProperties target = new LinkProperties(source); in testLinkPropertiesIdenticalEqual() local
91 assertTrue(LinkPropertiesUtils.isIdenticalInterfaceName(source, target)); in testLinkPropertiesIdenticalEqual()
92 assertTrue(LinkPropertiesUtils.isIdenticalInterfaceName(target, source)); in testLinkPropertiesIdenticalEqual()
94 assertTrue(LinkPropertiesUtils.isIdenticalAddresses(source, target)); in testLinkPropertiesIdenticalEqual()
95 assertTrue(LinkPropertiesUtils.isIdenticalAddresses(target, source)); in testLinkPropertiesIdenticalEqual()
97 assertTrue(LinkPropertiesUtils.isIdenticalAllLinkAddresses(source, target)); in testLinkPropertiesIdenticalEqual()
98 assertTrue(LinkPropertiesUtils.isIdenticalAllLinkAddresses(target, source)); in testLinkPropertiesIdenticalEqual()
100 assertTrue(LinkPropertiesUtils.isIdenticalDnses(source, target)); in testLinkPropertiesIdenticalEqual()
101 assertTrue(LinkPropertiesUtils.isIdenticalDnses(target, source)); in testLinkPropertiesIdenticalEqual()
103 assertTrue(LinkPropertiesUtils.isIdenticalRoutes(source, target)); in testLinkPropertiesIdenticalEqual()
[all …]
/packages/modules/Connectivity/tests/common/java/android/net/
DLinkPropertiesTest.java169 public void assertLinkPropertiesEqual(LinkProperties source, LinkProperties target) { in assertLinkPropertiesEqual() argument
171 assertTrue(source.isIdenticalInterfaceName(target)); in assertLinkPropertiesEqual()
172 assertTrue(target.isIdenticalInterfaceName(source)); in assertLinkPropertiesEqual()
174 assertTrue(source.isIdenticalAddresses(target)); in assertLinkPropertiesEqual()
175 assertTrue(target.isIdenticalAddresses(source)); in assertLinkPropertiesEqual()
177 assertTrue(source.isIdenticalDnses(target)); in assertLinkPropertiesEqual()
178 assertTrue(target.isIdenticalDnses(source)); in assertLinkPropertiesEqual()
180 assertTrue(source.isIdenticalPrivateDns(target)); in assertLinkPropertiesEqual()
181 assertTrue(target.isIdenticalPrivateDns(source)); in assertLinkPropertiesEqual()
183 assertTrue(source.isIdenticalValidatedPrivateDnses(target)); in assertLinkPropertiesEqual()
[all …]
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/
DNavigatorTest.java141 FindRotateTargetResult target = mNavigator.findRotateTarget(button1, direction, 1); in testFindRotateTarget() local
142 assertThat(target.node).isEqualTo(button2); in testFindRotateTarget()
143 assertThat(target.advancedCount).isEqualTo(1); in testFindRotateTarget()
145 Utils.recycleNode(target.node); in testFindRotateTarget()
148 target = mNavigator.findRotateTarget(button1, direction, 2); in testFindRotateTarget()
149 assertThat(target.node).isEqualTo(button3); in testFindRotateTarget()
150 assertThat(target.advancedCount).isEqualTo(2); in testFindRotateTarget()
152 Utils.recycleNode(target.node); in testFindRotateTarget()
176 FindRotateTargetResult target = mNavigator.findRotateTarget(button2, direction, 1); in testFindRotateTargetNoWrapAround() local
177 assertThat(target).isNull(); in testFindRotateTargetNoWrapAround()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DRemoteAnimationTargets.java52 for (RemoteAnimationTarget target : apps) { in RemoteAnimationTargets()
53 if (target.mode == targetMode) { in RemoteAnimationTargets()
54 filteredApps.add(target); in RemoteAnimationTargets()
57 hasRecents |= target.windowConfiguration.getActivityType() == ACTIVITY_TYPE_RECENTS; in RemoteAnimationTargets()
77 for (RemoteAnimationTarget target : apps) { in findTask()
78 if (target.taskId == taskId) { in findTask()
79 return target; in findTask()
93 for (RemoteAnimationTarget target : nonApps) { in getNonAppTargetOfType()
94 if (target.windowType == type) { in getNonAppTargetOfType()
95 return target; in getNonAppTargetOfType()
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DWeakAsyncTask.java27 public WeakAsyncTask(WeakTarget target) { in WeakAsyncTask() argument
28 mTarget = new WeakReference<WeakTarget>(target); in WeakAsyncTask()
34 final WeakTarget target = mTarget.get(); in onPreExecute() local
35 if (target != null) { in onPreExecute()
36 this.onPreExecute(target); in onPreExecute()
43 final WeakTarget target = mTarget.get(); in doInBackground() local
44 if (target != null) { in doInBackground()
45 return this.doInBackground(target, params); in doInBackground()
54 final WeakTarget target = mTarget.get(); in onPostExecute() local
55 if (target != null) { in onPostExecute()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/common/
DJsonFixture.java36 public static void addHarmlessJunkValues(JSONObject target) throws JSONException { in addHarmlessJunkValues() argument
37 target.put("junk_int", 1); in addHarmlessJunkValues()
38 target.put("junk_boolean", true); in addHarmlessJunkValues()
39 target.put("junk_string", "harmless junk"); in addHarmlessJunkValues()
40 target.put("junk_null", JSONObject.NULL); in addHarmlessJunkValues()
41 target.put("junk_object", new JSONObject("{'harmless':true,'object':1}")); in addHarmlessJunkValues()
45 public static void addHarmlessJunkValues(JSONArray target) throws JSONException { in addHarmlessJunkValues() argument
46 target.put(1); in addHarmlessJunkValues()
47 target.put(true); in addHarmlessJunkValues()
48 target.put(JSONObject.NULL); in addHarmlessJunkValues()
[all …]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTouchListener.java67 private float getAngle(View target, MotionEvent ev) { in getAngle() argument
79 private void resetTouch(View target) { in resetTouch() argument
83 mInitialTargetX = (float) target.getX(); in resetTouch()
84 mInitialTargetY = (float) target.getY(); in resetTouch()
85 mInitialTargetA = (float) target.getRotation(); in resetTouch()
88 public void onFling(View target, float dX, float dY) { in onFling() argument
118 mTable.fling(target, x1 - x0, y1 - y0, (int) (1000f * n / 60f), false); in onFling()
122 public boolean onTouch(View target, MotionEvent ev) { in onTouch() argument
130 target.getMatrix().mapPoints(pts); in onTouch()
134 mTable.moveToTopOfPile(target); in onTouch()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLES11Canvas.java387 public void drawTexture(BasicTexture texture, RectF source, RectF target) { in drawTexture() argument
388 if (target.width() <= 0 || target.height() <= 0) return; in drawTexture()
392 mDrawTextureTargetRect.set(target); in drawTexture()
394 target = mDrawTextureTargetRect; in drawTexture()
399 convertCoordinate(source, target, texture); in drawTexture()
402 textureRect(target.left, target.top, target.width(), target.height()); in drawTexture()
419 private static void convertCoordinate(RectF source, RectF target, in convertCoordinate() argument
435 target.right = target.left + target.width() * in convertCoordinate()
441 target.bottom = target.top + target.height() * in convertCoordinate()
455 int target = texture.getTarget(); in bindTexture() local
[all …]
DGLES20Canvas.java607 public void drawTexture(BasicTexture texture, RectF source, RectF target) { in drawTexture() argument
608 if (target.width() <= 0 || target.height() <= 0) { in drawTexture()
612 mTempTargetRect.set(target); in drawTexture()
628 private void drawTextureRect(BasicTexture texture, RectF source, RectF target) { in drawTextureRect() argument
630 drawTextureRect(texture, mTempTextureMatrix, target); in drawTextureRect()
643 private static void convertCoordinate(RectF source, RectF target, BasicTexture texture) { in convertCoordinate() argument
657 target.right = target.left + target.width() * (xBound - source.left) / source.width(); in convertCoordinate()
662 target.bottom = target.top + target.height() * (yBound - source.top) / source.height(); in convertCoordinate()
667 private void drawTextureRect(BasicTexture texture, float[] textureMatrix, RectF target) { in drawTextureRect() argument
674 translate(0, target.centerY()); in drawTextureRect()
[all …]
/packages/modules/ExtServices/java/src/android/ext/services/resolver/
DLRResolverRankerService.java82 ResolverTarget target = targets.get(i); in onPredictSharingProbabilities() local
83 ArrayMap<String, Float> features = getFeatures(target); in onPredictSharingProbabilities()
84 target.setSelectProbability(predict(features)); in onPredictSharingProbabilities()
150 private ArrayMap<String, Float> getFeatures(ResolverTarget target) { in getFeatures() argument
152 features.put(RECENCY_SCORE, target.getRecencyScore()); in getFeatures()
153 features.put(TIME_SPENT_SCORE, target.getTimeSpentScore()); in getFeatures()
154 features.put(LAUNCH_SCORE, target.getLaunchScore()); in getFeatures()
155 features.put(CHOOSER_SCORE, target.getChooserScore()); in getFeatures()
159 private float predict(ArrayMap<String, Float> target) { in predict() argument
160 if (target == null) { in predict()
[all …]
/packages/services/Car/
DCleanSpec.mk48 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car*)
49 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/PACKAGING/android.car*)
50 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.support.car*)
51 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/PACKAGING/android.support.car*)
52 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car7_intermediate…
53 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car_intermediates…
54 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car7_intermediate…
55 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car_intermediates…
57 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car_intermediates…
58 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car7_intermediate…
[all …]
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkDiagnostics.java277 private static int getHeaderLen(@NonNull InetAddress target) { in getHeaderLen() argument
280 final InetAddress addr = InetAddress.getByAddress(target.getAddress()); in getHeaderLen()
292 throw new AssertionError("Create InetAddress fail(" + target + ")", e); in getHeaderLen()
296 private void prepareIcmpMeasurements(@NonNull InetAddress target) { in prepareIcmpMeasurements() argument
297 int mtu = getMtuForTarget(target); in prepareIcmpMeasurements()
304 addPayloadIcmpMeasurement(target, 0); in prepareIcmpMeasurements()
305 final int header = getHeaderLen(target); in prepareIcmpMeasurements()
307 addPayloadIcmpMeasurement(target, mtu - header); in prepareIcmpMeasurements()
310 if ((target instanceof Inet6Address) && (mtu != IPV6_MIN_MTU)) { in prepareIcmpMeasurements()
311 addPayloadIcmpMeasurement(target, IPV6_MIN_MTU - header); in prepareIcmpMeasurements()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DLinkProperties.java1384 public boolean isIdenticalInterfaceName(@NonNull LinkProperties target) { in isIdenticalInterfaceName() argument
1385 return LinkPropertiesUtils.isIdenticalInterfaceName(target, this); in isIdenticalInterfaceName()
1395 public boolean isIdenticalDhcpServerAddress(@NonNull LinkProperties target) { in isIdenticalDhcpServerAddress() argument
1396 return Objects.equals(mDhcpServerAddress, target.mDhcpServerAddress); in isIdenticalDhcpServerAddress()
1407 public boolean isIdenticalAddresses(@NonNull LinkProperties target) { in isIdenticalAddresses() argument
1408 return LinkPropertiesUtils.isIdenticalAddresses(target, this); in isIdenticalAddresses()
1419 public boolean isIdenticalDnses(@NonNull LinkProperties target) { in isIdenticalDnses() argument
1420 return LinkPropertiesUtils.isIdenticalDnses(target, this); in isIdenticalDnses()
1431 public boolean isIdenticalPrivateDns(@NonNull LinkProperties target) { in isIdenticalPrivateDns() argument
1432 return (isPrivateDnsActive() == target.isPrivateDnsActive() in isIdenticalPrivateDns()
[all …]
/packages/modules/Virtualization/pvmfw/testdata/
Dtest_pvmfw_devices_vm_dtbo_without_symbols.dts11 android,pvmfw,target = <0x2>;
16 android,pvmfw,target = <0x5>;
21 android,pvmfw,target = <0x6>;
28 android,pvmfw,target = <0x7>;
48 target-path = "/";
58 target-path = "/";
68 target-path = "/";
78 target-path = "/";
98 android,pvmfw,target = <0x0>;
102 android,pvmfw,target = <0x0>;
[all …]
/packages/services/Car/tests/CarTestDpc/src/com/android/car/testdpc/
DDpcFactory.java70 public void addProfileOwnerDpm(UserHandle target) { in addProfileOwnerDpm() argument
71 mDevicePolicyManagers.put(target, in addProfileOwnerDpm()
72 new RemoteDevicePolicyManager(mAdmin, mContext, target)); in addProfileOwnerDpm()
75 public void removeProfileOwnerDpm(UserHandle target) { in removeProfileOwnerDpm() argument
76 mDevicePolicyManagers.remove(target); in removeProfileOwnerDpm()
87 public DevicePolicyManagerInterface getDevicePolicyManager(UserHandle target) { in getDevicePolicyManager() argument
88 if (!mDevicePolicyManagers.containsKey(target)) { in getDevicePolicyManager()
92 .startUserInBackground(target); in getDevicePolicyManager()
93 mDevicePolicyManagers.put(target, in getDevicePolicyManager()
94 new RemoteDevicePolicyManager(mAdmin, mContext, target)); in getDevicePolicyManager()
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/model/
DResolverRankerServiceResolverComparator.java190 for (ResolvedComponentInfo target : targets) { in doCompute()
191 if (target.getResolveInfoAt(0) == null) { in doCompute()
196 target.getResolveInfoAt(0).userHandle; in doCompute()
201 targetsDict.put(target.name, resolverTarget); in doCompute()
202 final UsageStats pkStats = stats.get(target.name.getPackageName()); in doCompute()
207 if (!target.name.getPackageName().equals(mReferrerPackage) in doCompute()
208 && !isPersistentProcess(target)) { in doCompute()
245 + target.name.getPackageName() + " is " in doCompute()
268 for (ResolverTarget target : mTargets) { in doCompute()
269 final float recency = target.getRecencyScore() / mostRecencyScore; in doCompute()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DTouchTargetEnforcer.java68 public void enforce(View target, View ancestor) { in enforce() argument
69 target.getViewTreeObserver().addOnGlobalLayoutListener( // avoids some subtle bugs in enforce()
72 int deltaHeight = Math.max(0, minTargetPx - target.getHeight()); in enforce()
73 int deltaWidth = Math.max(0, minTargetPx - target.getWidth()); in enforce()
79 Rect bounds = createNewBounds(target, minTargetPx, deltaWidth, deltaHeight); in enforce()
84 mTouchDelegateProvider.getInstance(bounds, target)); in enforce()
88 ancestor, target)); in enforce()
93 ancestor, target)); in enforce()
100 private Rect createNewBounds(View target, int minTargetPx, int deltaWidth, int deltaHeight) { in createNewBounds() argument
105 target.getHitRect(result); in createNewBounds()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DHanziToPinyin.java53 public Token(int type, String source, String target) { in Token() argument
56 this.target = target; in Token()
71 public String target; field in HanziToPinyin.Token
104 token.target = token.source; in tokenize()
111 token.target = mAsciiTransliterator == null ? token.source : in tokenize()
117 token.target = mPinyinTransliterator.transliterate(token.source); in tokenize()
118 if (TextUtils.isEmpty(token.target) || in tokenize()
119 TextUtils.equals(token.source, token.target)) { in tokenize()
121 token.target = token.source; in tokenize()
171 sb.append(token.target); in getTokens()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/simstatus/
DSlotSimStatusTest.java84 SlotSimStatus target = new SlotSimStatus(mContext, null, null) { in size_returnNumberOfPhone_whenQuery() local
91 assertEquals(new Integer(target.size()), new Integer(2)); in size_returnNumberOfPhone_whenQuery()
98 SlotSimStatus target = new SlotSimStatus(mContext, mExecutor, mLifecycle) { in size_returnNumberOfPhone_whenQueryInBackgroundThread() local
108 assertEquals(new Integer(target.size()), new Integer(2)); in size_returnNumberOfPhone_whenQueryInBackgroundThread()
115 SlotSimStatus target = new SlotSimStatus(mContext, null, null) { in getPreferenceOrdering_returnOrdering_whenQuery() local
121 target.setBasePreferenceOrdering(30); in getPreferenceOrdering_returnOrdering_whenQuery()
123 assertEquals(new Integer(target.getPreferenceOrdering(1)), new Integer(32)); in getPreferenceOrdering_returnOrdering_whenQuery()
130 SlotSimStatus target = new SlotSimStatus(mContext, null, null) { in getPreferenceKey_returnKey_whenQuery() local
136 target.setBasePreferenceOrdering(50); in getPreferenceKey_returnKey_whenQuery()
138 assertEquals(target.getPreferenceKey(1), "sim_status2"); in getPreferenceKey_returnKey_whenQuery()
[all …]
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
Dhfp.py97 threading.Thread(target=enable_slc).start()
121 threading.Thread(target=connect).start()
152 threading.Thread(target=disable_slc).start()
189 threading.Thread(target=enable_call).start()
214 threading.Thread(target=disable_call_external).start()
242 threading.Thread(target=disable_audio).start()
268 threading.Thread(target=enable_audio).start()
284 threading.Thread(target=disable_slc).start()
314 threading.Thread(target=enable_second_call).start()
413 threading.Thread(target=disable_slc).start()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/settings/
DDialerSettingsActivity.java92 public void onBuildHeaders(List<Header> target) { in onBuildHeaders() argument
94 headers = target; in onBuildHeaders()
100 target.add(displayOptionsHeader); in onBuildHeaders()
106 target.add(soundSettingsHeader); in onBuildHeaders()
113 target.add(quickResponseSettingsHeader); in onBuildHeaders()
128 target.add(callSettingsHeader); in onBuildHeaders()
136 target.add(phoneAccountSettingsHeader); in onBuildHeaders()
142 target.add(blockedCallsHeader); in onBuildHeaders()
146 addVoicemailSettings(target, isPrimaryUser); in onBuildHeaders()
156 target.add(accessibilitySettingsHeader); in onBuildHeaders()
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DShortcutSelectionLogic.java99 final ChooserTarget target = targets.get(i); in addServiceResults() local
100 float targetScore = target.getScore(); in addServiceResults()
109 ShortcutInfo shortcutInfo = isShortcutResult ? directShareToShortcutInfos.get(target) in addServiceResults()
117 resolvedIntent = createResolvedIntentForCallerTarget(target, targetIntent); in addServiceResults()
131 target, in addServiceResults()
134 directShareToAppTargets.get(target), in addServiceResults()
142 Log.d(TAG, " => " + target + " score=" + targetScore in addServiceResults()
143 + " base=" + target.getScore() in addServiceResults()
161 ChooserTarget target, Intent targetIntent) { in createResolvedIntentForCallerTarget() argument
163 resolvedIntent.setComponent(target.getComponentName()); in createResolvedIntentForCallerTarget()
[all …]
/packages/modules/Bluetooth/system/rust/src/connection/
Dacceptlist_manager.rs73 pub fn drive_to_state(&mut self, target: TargetState) { in drive_to_state()
76 for address in self.direct_list.difference(&target.direct_list) { in drive_to_state()
81 self.direct_list = self.direct_list.intersection(&target.direct_list).copied().collect(); in drive_to_state()
83 for address in self.background_list.difference(&target.background_list) { in drive_to_state()
89 self.background_list.intersection(&target.background_list).copied().collect(); in drive_to_state()
92 for address in target.direct_list.difference(&self.direct_list) { in drive_to_state()
96 for address in target.background_list.difference(&self.background_list) { in drive_to_state()
102 self.direct_list = target.direct_list; in drive_to_state()
103 self.background_list = target.background_list; in drive_to_state()
130 let target = determine_target_state(&[ in test_determine_target_state() localVariable
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/util/
DFileUtils.java33 public static void deleteAll(File target) { in deleteAll() argument
34 if (DEBUG) Log.d(TAG, "Deleting " + target); in deleteAll()
35 if (target.isDirectory()) { in deleteAll()
36 for (File child : target.listFiles()) { in deleteAll()
40 target.delete(); in deleteAll()
44 public static void copy(InputStream source, OutputStream target) throws IOException { in copy() argument
45 try (InputStream in = source; OutputStream out = target) { in copy()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/
DFlingUpDownTouchHandler.java131 @NonNull View target, in attach()
134 FlingUpDownTouchHandler handler = new FlingUpDownTouchHandler(target, listener, falsingManager); in attach()
135 target.setOnTouchListener(handler); in attach()
139 @NonNull private final View target; field in FlingUpDownTouchHandler
173 @NonNull View target, in FlingUpDownTouchHandler()
176 this.target = target; in FlingUpDownTouchHandler()
178 Context context = target.getContext(); in FlingUpDownTouchHandler()
317 int target = forceRecenter ? FlingTarget.CENTER : getFlingTarget(pointerY, vectorVel); in endMotionEvent() local
319 fling(vel, target, falseTouch); in endMotionEvent()
394 private void fling(float velocity, @FlingTarget int target, boolean centerBecauseOfFalsing) { in fling() argument
[all …]

12345678910>>...33