/aosp14/frameworks/base/core/java/com/android/internal/protolog/common/ |
H A D | LogDataType.java | 39 public static int logDataTypesToBitMask(List<Integer> types) { in logDataTypesToBitMask() argument 40 if (types.size() > 16) { in logDataTypesToBitMask() 45 for (int i = 0; i < types.size(); i++) { in logDataTypesToBitMask() 46 int x = types.get(i); in logDataTypesToBitMask() 66 ArrayList<Integer> types = new ArrayList<>(); in parseFormatString() local 74 types.add(LogDataType.BOOLEAN); in parseFormatString() 78 types.add(LogDataType.LONG); in parseFormatString() 81 types.add(LogDataType.DOUBLE); in parseFormatString() 84 types.add(LogDataType.STRING); in parseFormatString() 97 return types; in parseFormatString()
|
/aosp14/frameworks/base/core/java/android/view/ |
H A D | PendingInsetsController.java | 52 public void show(int types) { in show() argument 54 mReplayedInsetsController.show(types); in show() 56 mRequests.add(new ShowRequest(types)); in show() 57 mRequestedVisibleTypes |= types; in show() 62 public void hide(int types) { in hide() argument 64 mReplayedInsetsController.hide(types); in hide() 67 mRequestedVisibleTypes &= ~types; in hide() 248 public ShowRequest(int types) { in ShowRequest() argument 249 mTypes = types; in ShowRequest() 262 public HideRequest(int types) { in HideRequest() argument [all …]
|
H A D | InsetsController.java | 606 this.types = types; in PendingControlRequest() 616 @InsetsType int types; field in InsetsController.PendingControlRequest 1082 if ((types & ime()) != 0) { in show() 1094 if ((types & ime()) != 0) { in show() 1187 if ((types & ime()) != 0) { in hide() 1296 setRequestedVisibleTypes(visible ? types : 0, types); in controlAnimationUnchecked() 1354 if (types == 0) { in controlAnimationUncheckedInner() 1534 return (mRequestedVisibleTypes & types) != types in getLayoutInsetsDuringAnimationMode() 1757 if ((types & ime()) != 0) { in applyAnimation() 1772 if (types == 0) { in applyAnimation() [all …]
|
H A D | InsetsAnimationThreadControlRunner.java | 59 void startAnimation(T runner, WindowInsetsAnimationControlListener listener, int types, 105 public void reportPerceptible(int types, boolean perceptible) { 106 mMainThreadHandler.post(() -> mOuterCallbacks.reportPerceptible(types, perceptible)); 113 @InsetsType int types, InsetsAnimationControlCallbacks controller, long durationMs, in InsetsAnimationThreadControlRunner() argument 120 mControl = new InsetsAnimationControlImpl(controls, frame, state, listener, types, in InsetsAnimationThreadControlRunner() 128 "InsetsAsyncAnimation: " + WindowInsets.Type.toString(types), types); in InsetsAnimationThreadControlRunner() 129 listener.onReady(mControl, types); in InsetsAnimationThreadControlRunner() 164 public void notifyControlRevoked(@InsetsType int types) { in notifyControlRevoked() argument 165 mControl.notifyControlRevoked(types); in notifyControlRevoked()
|
H A D | InsetsResizeAnimationRunner.java | 58 Interpolator interpolator, long duration, @InsetsType int types, in InsetsResizeAnimationRunner() argument 62 mTypes = types; in InsetsResizeAnimationRunner() 64 mAnimation = new WindowInsetsAnimation(types, interpolator, duration); in InsetsResizeAnimationRunner() 67 frame, types, false /* ignoreVisibility */); in InsetsResizeAnimationRunner() 69 frame, types, false /* ignoreVisibility */); in InsetsResizeAnimationRunner() 70 controller.startAnimation(this, this, types, mAnimation, in InsetsResizeAnimationRunner() 117 public void onReady(WindowInsetsAnimationController controller, int types) { in onReady() argument 220 public void notifyControlRevoked(int types) { in notifyControlRevoked() argument
|
H A D | WindowInsetsController.java | 160 void show(@InsetsType int types); in show() argument 172 void hide(@InsetsType int types); in hide() argument 197 void controlWindowInsetsAnimation(@InsetsType int types, long durationMillis, in controlWindowInsetsAnimation() argument
|
/aosp14/frameworks/base/tests/Internal/src/com/android/internal/protolog/common/ |
H A D | LogDataTypeTest.java | 58 List<Integer> types = Arrays.asList(LogDataType.STRING, LogDataType.DOUBLE, in logDataTypesToBitMask() local 60 int mask = LogDataType.logDataTypesToBitMask(types); in logDataTypesToBitMask() 66 ArrayList<Integer> types = new ArrayList<>(); in logDataTypesToBitMask_toManyParams() local 68 types.add(LogDataType.STRING); in logDataTypesToBitMask_toManyParams() 70 LogDataType.logDataTypesToBitMask(types); in logDataTypesToBitMask_toManyParams() 76 List<Integer> types = Arrays.asList(LogDataType.STRING, LogDataType.DOUBLE, in bitmaskToLogDataTypes() local 78 for (int i = 0; i < types.size(); i++) { in bitmaskToLogDataTypes() 79 assertEquals(types.get(i).intValue(), LogDataType.bitmaskToLogDataType(bitmask, i)); in bitmaskToLogDataTypes()
|
/aosp14/frameworks/base/mime/ |
H A D | Android.bp | 72 srcs: [":mime.types.minimized"], 85 srcs: [":mime.types.minimized"], 92 name: "mime.types.minimized", 97 ":debian.mime.types.minimized", 98 ":android.mime.types.minimized", 99 ":vendor.mime.types.minimized", 108 out: ["android.mime.types"], 110 "java-res/android.mime.types", 116 // Unlike the other *mime.types files, vendor.mime.types gets '?' prepended to 124 out: ["vendor.mime.types"], [all …]
|
/aosp14/frameworks/base/tests/WindowInsetsTests/src/com/google/android/test/windowinsetstests/ |
H A D | ControllerActivity.java | 86 (c, types) -> mTextControllableInsets.setText( in onCreate() 87 "ControllableInsetsTypes:\n" + insetsTypesToString(types))); in onCreate() 90 private static String insetsTypesToString(int types) { in insetsTypesToString() argument 91 return types == 0 ? "none" : WindowInsets.Type.toString(types); in insetsTypesToString() 110 private void updateWidgets(WindowInsets insets, int types, ToggleButton toggle, SeekBar seek) { in updateWidgets() argument 111 final boolean isVisible = insets.isVisible(types); in updateWidgets() 112 final boolean wasVisible = mLastInsets != null ? mLastInsets.isVisible(types) : !isVisible; in updateWidgets() 126 ToggleListener(int types) { in ToggleListener() argument 127 mTypes = types; in ToggleListener() 150 SeekBarListener(int types) { in SeekBarListener() argument [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/ |
H A D | PrivacyChipBuilder.kt | 23 val types: List<PrivacyType> 32 types = itemsList.map { it.privacyType }.distinct().sorted() 35 fun generateIcons() = types.map { it.getIcon(context) } 45 return when (types.size) { 47 1 -> types[0].getName(context) 48 else -> types.map { it.getName(context) }.joinWithAnd().toString()
|
/aosp14/frameworks/base/errorprone/java/com/google/errorprone/bugpatterns/android/ |
H A D | EfficientCollectionsChecker.java | 59 final List<Type> types = ASTHelpers.getType(tree).getTypeArguments(); in matchNewClass() local 60 if (IS_LIST.matches(tree, state) && types != null && types.size() == 1) { in matchNewClass() 61 final Type first = types.get(0); in matchNewClass() 71 } else if (IS_MAP.matches(tree, state) && types != null && types.size() == 2) { in matchNewClass() 72 final Type first = types.get(0); in matchNewClass() 73 final Type second = types.get(1); in matchNewClass()
|
/aosp14/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/ |
H A D | LockTargetStateAnalysis.java | 56 List<LockTarget> types = new ArrayList<>(); in naryOperation() local 60 types.add(target); in naryOperation() 64 return new LockTargetState(base.getType(), types); in naryOperation() 70 List<LockTarget> types = new ArrayList<>(); in newValue() local 77 types.add(target); in newValue() 81 if (types.isEmpty()) { in newValue() 85 return new LockTargetState(base.getType(), types); in newValue()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
H A D | DisplayInsetsController.java | 161 private void showInsets(@InsetsType int types, boolean fromIme, in showInsets() argument 172 listener.showInsets(types, fromIme, statsToken); in showInsets() 176 private void hideInsets(@InsetsType int types, boolean fromIme, in hideInsets() argument 187 listener.hideInsets(types, fromIme, statsToken); in hideInsets() 229 public void showInsets(@InsetsType int types, boolean fromIme, in showInsets() argument 232 PerDisplay.this.showInsets(types, fromIme, statsToken); in showInsets() 237 public void hideInsets(@InsetsType int types, boolean fromIme, in hideInsets() argument 240 PerDisplay.this.hideInsets(types, fromIme, statsToken); in hideInsets() 283 default void showInsets(@InsetsType int types, boolean fromIme, in showInsets() argument 294 default void hideInsets(@InsetsType int types, boolean fromIme, in hideInsets() argument
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | ApkChecksums.java | 388 @Checksum.TypeMask int types, in getAvailableApkChecksums() argument 408 split, filePath, types); in getAvailableApkChecksums() 421 @Checksum.TypeMask int types, in getInstallerChecksums() argument 529 @Checksum.TypeMask int types, in needToWait() argument 533 && !isRequired(TYPE_WHOLE_MD5, types, checksums) in needToWait() 534 && !isRequired(TYPE_WHOLE_SHA1, types, checksums) in needToWait() 570 @Checksum.TypeMask int types, in getRequiredApkChecksums() argument 603 if ((types & type) == 0) { in isRequired() 711 String split, String filePath, int types) { in extractHashFromV2V3Signature() argument 730 if ((types & TYPE_PARTIAL_MERKLE_ROOT_1M_SHA256) != 0) { in extractHashFromV2V3Signature() [all …]
|
/aosp14/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | TypeReference.java | 189 private static final Class<?> getRawType(Type[] types) { in getRawType() argument 190 if (types == null) { in getRawType() 194 for (Type type : types) { in getRawType() 402 private static void toString(Type[] types, StringBuilder out) { in toString() argument 403 if (types == null) { in toString() 405 } else if (types.length == 0) { in toString() 411 for (int i = 0; i < types.length; ++i) { in toString() 412 toString(types[i], out); in toString() 413 if (i != types.length - 1) { in toString()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | InsetsControlTarget.java | 46 default boolean isRequestedVisible(@InsetsType int types) { in isRequestedVisible() argument 47 return (WindowInsets.Type.defaultVisible() & types) != 0; in isRequestedVisible() 64 default void showInsets(@InsetsType int types, boolean fromIme, in showInsets() argument 75 default void hideInsets(@InsetsType int types, boolean fromIme, in hideInsets() argument
|
/aosp14/frameworks/base/media/java/android/media/tv/interactive/ |
H A D | TvInteractiveAppServiceInfo.java | 103 List<String> types = new ArrayList<>(); in TvInteractiveAppServiceInfo() local 104 parseServiceMetadata(resolveInfo, context, types); in TvInteractiveAppServiceInfo() 108 toTypesFlag(types); in TvInteractiveAppServiceInfo() 111 ResolveInfo service, String id, int types, List<String> extraTypes) { in TvInteractiveAppServiceInfo() argument 114 mTypes = types; in TvInteractiveAppServiceInfo() 213 ResolveInfo resolveInfo, Context context, List<String> types) { in parseServiceMetadata() argument 244 types.add(cs.toString().toLowerCase()); in parseServiceMetadata() 256 private void toTypesFlag(List<String> types) { in toTypesFlag() argument 259 for (String type : types) { in toTypesFlag()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | InsetsControllerTest.java | 281 assertEquals(types, mController.getRequestedVisibleTypes() & types); in testAnimationEndState() 317 int types = navigationBars() | statusBars(); in testShowHideSelectively() 319 mController.hide(types); in testShowHideSelectively() 328 mController.show(types); in testShowHideSelectively() 332 assertEquals(types, mController.getRequestedVisibleTypes() & (types | ime())); in testShowHideSelectively() 345 int types = navigationBars() | statusBars(); in testShowHideSingle() 347 mController.show(types); in testShowHideSingle() 349 assertEquals(types, mController.getRequestedVisibleTypes() & types); in testShowHideSingle() 390 assertEquals(types, mController.getRequestedVisibleTypes() & (types | ime())); in testShowHideMultiple() 393 mController.show(types); in testShowHideMultiple() [all …]
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | MediaRouteActionProvider.java | 75 public void setRouteTypes(int types) { in setRouteTypes() argument 76 if (mRouteTypes != types) { in setRouteTypes() 87 mRouteTypes = types; in setRouteTypes() 88 if (types != 0) { in setRouteTypes() 89 mRouter.addCallback(types, mCallback, in setRouteTypes()
|
/aosp14/frameworks/base/core/java/com/android/internal/app/ |
H A D | MediaRouteChooserDialogFragment.java | 59 public void setRouteTypes(int types) { in setRouteTypes() argument 60 if (types != getRouteTypes()) { in setRouteTypes() 65 args.putInt(ARGUMENT_ROUTE_TYPES, types); in setRouteTypes() 70 dialog.setRouteTypes(types); in setRouteTypes()
|
/aosp14/frameworks/base/core/java/android/service/notification/ |
H A D | NotificationListenerFilter.java | 48 public NotificationListenerFilter(int types, ArraySet<VersionedPackage> pkgs) { in NotificationListenerFilter() argument 49 mAllowedNotificationTypes = types; in NotificationListenerFilter() 101 public void setTypes(int types) { in setTypes() argument 102 mAllowedNotificationTypes = types; in setTypes()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | CommandQueueTest.java | 159 int types = WindowInsets.Type.statusBars() | WindowInsets.Type.navigationBars(); in testShowTransient() local 160 mCommandQueue.showTransient(DEFAULT_DISPLAY, types, true /* isGestureOnSystemBar */); in testShowTransient() 162 verify(mCallbacks).showTransient(eq(DEFAULT_DISPLAY), eq(types), eq(true)); in testShowTransient() 167 int types = WindowInsets.Type.statusBars() | WindowInsets.Type.navigationBars(); in testShowTransientForSecondaryDisplay() local 170 verify(mCallbacks).showTransient(eq(SECONDARY_DISPLAY), eq(types), eq(true)); in testShowTransientForSecondaryDisplay() 175 int types = WindowInsets.Type.statusBars() | WindowInsets.Type.navigationBars(); in testAbortTransient() local 176 mCommandQueue.abortTransient(DEFAULT_DISPLAY, types); in testAbortTransient() 178 verify(mCallbacks).abortTransient(eq(DEFAULT_DISPLAY), eq(types)); in testAbortTransient() 183 int types = WindowInsets.Type.statusBars() | WindowInsets.Type.navigationBars(); in testAbortTransientForSecondaryDisplay() local 184 mCommandQueue.abortTransient(SECONDARY_DISPLAY, types); in testAbortTransientForSecondaryDisplay() [all …]
|
/aosp14/frameworks/base/services/autofill/java/com/android/server/autofill/ui/ |
H A D | SaveUi.java | 237 final ArraySet<String> types = new ArraySet<>(3); in SaveUi() local 241 types.add(context.getString(R.string.autofill_save_type_password)); in SaveUi() 244 types.add(context.getString(R.string.autofill_save_type_address)); in SaveUi() 253 types.add(context.getString(R.string.autofill_save_type_generic_card)); in SaveUi() 257 types.add(context.getString(R.string.autofill_save_type_credit_card)); in SaveUi() 259 types.add(context.getString(R.string.autofill_save_type_debit_card)); in SaveUi() 262 types.add(context.getString(R.string.autofill_save_type_username)); in SaveUi() 268 switch (types.size()) { in SaveUi() 273 types.valueAt(0), serviceLabel), 0); in SaveUi() 279 types.valueAt(0), types.valueAt(1), serviceLabel), 0); in SaveUi() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ForegroundServiceTypeLoggerModule.java | 433 final IntArray types = new IntArray(); in convertFgsTypeToApiTypes() local 436 types.add(FOREGROUND_SERVICE_API_TYPE_CAMERA); in convertFgsTypeToApiTypes() 440 types.add(FOREGROUND_SERVICE_API_TYPE_BLUETOOTH); in convertFgsTypeToApiTypes() 441 types.add(FOREGROUND_SERVICE_API_TYPE_USB); in convertFgsTypeToApiTypes() 442 types.add(FOREGROUND_SERVICE_API_TYPE_CDM); in convertFgsTypeToApiTypes() 446 types.add(FOREGROUND_SERVICE_API_TYPE_LOCATION); in convertFgsTypeToApiTypes() 450 types.add(FOREGROUND_SERVICE_API_TYPE_AUDIO); in convertFgsTypeToApiTypes() 451 types.add(FOREGROUND_SERVICE_API_TYPE_MEDIA_PLAYBACK); in convertFgsTypeToApiTypes() 455 types.add(FOREGROUND_SERVICE_API_TYPE_MICROPHONE); in convertFgsTypeToApiTypes() 459 types.add(FOREGROUND_SERVICE_API_TYPE_PHONE_CALL); in convertFgsTypeToApiTypes() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/ambientcontext/ |
H A D | AmbientContextShellCommand.java | 193 int[] types = new int[] { 196 mService.queryServiceStatus(userId, packageName, types, 204 int[] types = new int[] {WEARABLE_AMBIENT_CONTEXT_EVENT_FOR_TESTING}; 205 mService.queryServiceStatus(userId, packageName, types, 213 int[] types = new int[] { 216 mService.queryServiceStatus(userId, packageName, types,
|