/frameworks/base/core/java/android/content/pm/ |
D | PackageInfo.java | 495 public PackageInfo createFromParcel(Parcel source) { 496 return new PackageInfo(source); 506 private PackageInfo(Parcel source) { in PackageInfo() argument 507 packageName = source.readString(); in PackageInfo() 508 splitNames = source.createStringArray(); in PackageInfo() 509 versionCode = source.readInt(); in PackageInfo() 510 versionCodeMajor = source.readInt(); in PackageInfo() 511 versionName = source.readString(); in PackageInfo() 512 baseRevisionCode = source.readInt(); in PackageInfo() 513 splitRevisionCodes = source.createIntArray(); in PackageInfo() [all …]
|
D | InstrumentationInfo.java | 181 public InstrumentationInfo createFromParcel(Parcel source) { 182 return new InstrumentationInfo(source); 190 private InstrumentationInfo(Parcel source) { in InstrumentationInfo() argument 191 super(source); in InstrumentationInfo() 192 targetPackage = source.readString(); in InstrumentationInfo() 193 targetProcesses = source.readString(); in InstrumentationInfo() 194 sourceDir = source.readString(); in InstrumentationInfo() 195 publicSourceDir = source.readString(); in InstrumentationInfo() 196 splitNames = source.readStringArray(); in InstrumentationInfo() 197 splitSourceDirs = source.readStringArray(); in InstrumentationInfo() [all …]
|
D | PackageInfoLite.java | 123 public PackageInfoLite createFromParcel(Parcel source) { 124 return new PackageInfoLite(source); 132 private PackageInfoLite(Parcel source) { in PackageInfoLite() argument 133 packageName = source.readString(); in PackageInfoLite() 134 splitNames = source.createStringArray(); in PackageInfoLite() 135 versionCode = source.readInt(); in PackageInfoLite() 136 versionCodeMajor = source.readInt(); in PackageInfoLite() 137 baseRevisionCode = source.readInt(); in PackageInfoLite() 138 splitRevisionCodes = source.createIntArray(); in PackageInfoLite() 139 recommendedInstallLocation = source.readInt(); in PackageInfoLite() [all …]
|
D | ShortcutInfo.java | 461 private static ArraySet<String> cloneCategories(Set<String> source) { in cloneCategories() argument 462 if (source == null) { in cloneCategories() 465 final ArraySet<String> ret = new ArraySet<>(source.size()); in cloneCategories() 466 for (CharSequence s : source) { in cloneCategories() 534 private ShortcutInfo(ShortcutInfo source, @CloneFlags int cloneFlags) { in ShortcutInfo() argument 535 mUserId = source.mUserId; in ShortcutInfo() 536 mId = source.mId; in ShortcutInfo() 537 mPackageName = source.mPackageName; in ShortcutInfo() 538 mActivity = source.mActivity; in ShortcutInfo() 539 mFlags = source.mFlags; in ShortcutInfo() [all …]
|
D | ActivityInfo.java | 1320 public ActivityInfo createFromParcel(Parcel source) { 1321 return new ActivityInfo(source); 1328 private ActivityInfo(Parcel source) { in ActivityInfo() argument 1329 super(source); in ActivityInfo() 1330 theme = source.readInt(); in ActivityInfo() 1331 launchMode = source.readInt(); in ActivityInfo() 1332 documentLaunchMode = source.readInt(); in ActivityInfo() 1333 permission = source.readString(); in ActivityInfo() 1334 taskAffinity = source.readString(); in ActivityInfo() 1335 targetActivity = source.readString(); in ActivityInfo() [all …]
|
/frameworks/base/core/java/com/android/ims/internal/uce/common/ |
D | CapInfo.java | 600 public CapInfo createFromParcel(Parcel source) { 601 return new CapInfo(source); 609 private CapInfo(Parcel source) { in CapInfo() argument 610 readFromParcel(source); in CapInfo() 613 public void readFromParcel(Parcel source) { in readFromParcel() argument 615 mImSupported = (source.readInt() == 0) ? false : true; in readFromParcel() 616 mFtSupported = (source.readInt() == 0) ? false : true; in readFromParcel() 617 mFtThumbSupported = (source.readInt() == 0) ? false : true; in readFromParcel() 618 mFtSnFSupported = (source.readInt() == 0) ? false : true; in readFromParcel() 619 mFtHttpSupported = (source.readInt() == 0) ? false : true; in readFromParcel() [all …]
|
/frameworks/av/media/libstagefright/ |
D | InterfaceUtils.cpp | 26 sp<DataSource> CreateDataSourceFromIDataSource(const sp<IDataSource> &source) { in CreateDataSourceFromIDataSource() argument 27 if (source == nullptr) { in CreateDataSourceFromIDataSource() 30 return new TinyCacheSource(new CallbackDataSource(source)); in CreateDataSourceFromIDataSource() 33 sp<IDataSource> CreateIDataSourceFromDataSource(const sp<DataSource> &source) { in CreateIDataSourceFromDataSource() argument 34 if (source == nullptr) { in CreateIDataSourceFromDataSource() 37 return RemoteDataSource::wrap(source); in CreateIDataSourceFromDataSource() 42 const sp<DataSource> &source, in CreateIMediaExtractorFromMediaExtractor() argument 47 return RemoteMediaExtractor::wrap(extractor, source, plugin); in CreateIMediaExtractorFromMediaExtractor() 50 sp<MediaSource> CreateMediaSourceFromIMediaSource(const sp<IMediaSource> &source) { in CreateMediaSourceFromIMediaSource() argument 51 if (source == nullptr) { in CreateMediaSourceFromIMediaSource() [all …]
|
/frameworks/libs/net/common/tests/unit/src/android/net/util/ |
D | LinkPropertiesUtilsTest.java | 83 final LinkProperties source = createTestObject(); in testLinkPropertiesIdenticalEqual() local 84 final LinkProperties target = new LinkProperties(source); in testLinkPropertiesIdenticalEqual() 86 assertTrue(LinkPropertiesUtils.isIdenticalInterfaceName(source, target)); in testLinkPropertiesIdenticalEqual() 87 assertTrue(LinkPropertiesUtils.isIdenticalInterfaceName(target, source)); in testLinkPropertiesIdenticalEqual() 89 assertTrue(LinkPropertiesUtils.isIdenticalAddresses(source, target)); in testLinkPropertiesIdenticalEqual() 90 assertTrue(LinkPropertiesUtils.isIdenticalAddresses(target, source)); in testLinkPropertiesIdenticalEqual() 92 assertTrue(LinkPropertiesUtils.isIdenticalDnses(source, target)); in testLinkPropertiesIdenticalEqual() 93 assertTrue(LinkPropertiesUtils.isIdenticalDnses(target, source)); in testLinkPropertiesIdenticalEqual() 95 assertTrue(LinkPropertiesUtils.isIdenticalRoutes(source, target)); in testLinkPropertiesIdenticalEqual() 96 assertTrue(LinkPropertiesUtils.isIdenticalRoutes(target, source)); in testLinkPropertiesIdenticalEqual() [all …]
|
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
D | XmlConfigTests.java | 48 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.empty_config, in testEmptyConfigFile() local 50 ApplicationConfig appConfig = new ApplicationConfig(source); in testEmptyConfigFile() 61 SSLContext context = TestUtils.getSSLContext(source); in testEmptyConfigFile() 68 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.empty_trust, in testEmptyAnchors() local 70 ApplicationConfig appConfig = new ApplicationConfig(source); in testEmptyAnchors() 80 SSLContext context = TestUtils.getSSLContext(source); in testEmptyAnchors() 87 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.domain1, in testBasicDomainConfig() local 89 ApplicationConfig appConfig = new ApplicationConfig(source); in testBasicDomainConfig() 107 SSLContext context = TestUtils.getSSLContext(source); in testBasicDomainConfig() 124 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.pins1, in testBasicPinning() local [all …]
|
/frameworks/base/core/java/android/app/ |
D | TaskInfo.java | 145 private TaskInfo(Parcel source) { in TaskInfo() argument 146 readFromParcel(source); in TaskInfo() 166 void readFromParcel(Parcel source) { in readFromParcel() argument 167 userId = source.readInt(); in readFromParcel() 168 stackId = source.readInt(); in readFromParcel() 169 taskId = source.readInt(); in readFromParcel() 170 displayId = source.readInt(); in readFromParcel() 171 isRunning = source.readBoolean(); in readFromParcel() 172 baseIntent = source.readInt() != 0 in readFromParcel() 173 ? Intent.CREATOR.createFromParcel(source) in readFromParcel() [all …]
|
D | ActivityManager.java | 1139 private TaskDescription(Parcel source) { in TaskDescription() argument 1140 readFromParcel(source); in TaskDescription() 1396 public void readFromParcel(Parcel source) { in readFromParcel() argument 1397 mLabel = source.readInt() > 0 ? source.readString() : null; in readFromParcel() 1398 mIcon = source.readInt() > 0 ? Bitmap.CREATOR.createFromParcel(source) : null; in readFromParcel() 1399 mIconRes = source.readInt(); in readFromParcel() 1400 mColorPrimary = source.readInt(); in readFromParcel() 1401 mColorBackground = source.readInt(); in readFromParcel() 1402 mStatusBarColor = source.readInt(); in readFromParcel() 1403 mNavigationBarColor = source.readInt(); in readFromParcel() [all …]
|
/frameworks/base/core/java/android/text/ |
D | SpannedString.java | 34 public SpannedString(CharSequence source, boolean ignoreNoCopySpan) { in SpannedString() argument 35 super(source, 0, source.length(), ignoreNoCopySpan); in SpannedString() 43 public SpannedString(CharSequence source) { in SpannedString() argument 44 this(source, false /* ignoreNoCopySpan */); // preserve existing NoCopySpan behavior in SpannedString() 47 private SpannedString(CharSequence source, int start, int end) { in SpannedString() argument 49 super(source, start, end, false /* ignoreNoCopySpan */); in SpannedString() 56 public static SpannedString valueOf(CharSequence source) { in valueOf() argument 57 if (source instanceof SpannedString) { in valueOf() 58 return (SpannedString) source; in valueOf() 60 return new SpannedString(source); in valueOf()
|
D | SpannableString.java | 33 public SpannableString(CharSequence source, boolean ignoreNoCopySpan) { in SpannableString() argument 34 super(source, 0, source.length(), ignoreNoCopySpan); in SpannableString() 42 public SpannableString(CharSequence source) { in SpannableString() argument 43 this(source, false /* ignoreNoCopySpan */); // preserve existing NoCopySpan behavior in SpannableString() 46 private SpannableString(CharSequence source, int start, int end) { in SpannableString() argument 48 super(source, start, end, false /* ignoreNoCopySpan */); in SpannableString() 51 public static SpannableString valueOf(CharSequence source) { in valueOf() argument 52 if (source instanceof SpannableString) { in valueOf() 53 return (SpannableString) source; in valueOf() 55 return new SpannableString(source); in valueOf()
|
/frameworks/opt/net/ims/src/java/com/android/ims/internal/ |
D | VideoPauseTracker.java | 78 public boolean shouldPauseVideoFor(int source) { in shouldPauseVideoFor() argument 81 mPauseRequests.add(source); in shouldPauseVideoFor() 86 sourceToString(source), sourcesToString(mPauseRequests))); in shouldPauseVideoFor() 92 sourceToString(source), sourcesToString(mPauseRequests))); in shouldPauseVideoFor() 111 public boolean shouldResumeVideoFor(int source) { in shouldResumeVideoFor() argument 114 mPauseRequests.remove(source); in shouldResumeVideoFor() 120 sourceToString(source), sourcesToString(mPauseRequests))); in shouldResumeVideoFor() 126 sourceToString(source), sourcesToString(mPauseRequests))); in shouldResumeVideoFor() 132 sourceToString(source), sourcesToString(mPauseRequests))); in shouldResumeVideoFor() 157 public boolean wasVideoPausedFromSource(int source) { in wasVideoPausedFromSource() argument [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageParserCacheHelperTest.java | 37 final Bundle source = new Bundle(); in testParcelUnparcel() local 38 source.putInt("i1", 123); in testParcelUnparcel() 39 source.putString("s1", "abcdef"); in testParcelUnparcel() 40 source.putString("s2", "xyz"); in testParcelUnparcel() 41 source.putString("s3", null); in testParcelUnparcel() 45 source.putBundle("b1", nest); in testParcelUnparcel() 50 source.writeToParcel(p, 0); in testParcelUnparcel() 63 assertEquals(source.get("i1"), dest.get("i1")); in testParcelUnparcel() 64 assertEquals(source.get("s1"), dest.get("s1")); in testParcelUnparcel() 65 assertEquals(source.get("s2"), dest.get("s2")); in testParcelUnparcel() [all …]
|
/frameworks/base/core/java/android/content/om/ |
D | OverlayInfo.java | 207 public OverlayInfo(@NonNull OverlayInfo source, @State int state) { in OverlayInfo() argument 208 this(source.packageName, source.targetPackageName, source.targetOverlayableName, in OverlayInfo() 209 source.category, source.baseCodePath, state, source.userId, source.priority, in OverlayInfo() 210 source.isStatic); in OverlayInfo() 231 public OverlayInfo(Parcel source) { in OverlayInfo() argument 232 packageName = source.readString(); in OverlayInfo() 233 targetPackageName = source.readString(); in OverlayInfo() 234 targetOverlayableName = source.readString(); in OverlayInfo() 235 category = source.readString(); in OverlayInfo() 236 baseCodePath = source.readString(); in OverlayInfo() [all …]
|
/frameworks/base/core/java/com/android/internal/statusbar/ |
D | RegisterStatusBarResult.java | 94 public RegisterStatusBarResult createFromParcel(Parcel source) { 96 source.createTypedArrayMap(StatusBarIcon.CREATOR); 97 final int disabledFlags1 = source.readInt(); 98 final int systemUiVisibility = source.readInt(); 99 final boolean menuVisible = source.readBoolean(); 100 final int imeWindowVis = source.readInt(); 101 final int imeBackDisposition = source.readInt(); 102 final boolean showImeSwitcher = source.readBoolean(); 103 final int disabledFlags2 = source.readInt(); 104 final int fullscreenStackSysUiVisibility = source.readInt(); [all …]
|
/frameworks/base/core/java/android/text/method/ |
D | ReplacementTransformationMethod.java | 52 public CharSequence getTransformation(CharSequence source, View v) { in getTransformation() argument 59 if (!(source instanceof Editable)) { in getTransformation() 67 if (TextUtils.indexOf(source, original[i]) >= 0) { in getTransformation() 73 return source; in getTransformation() 76 if (!(source instanceof Spannable)) { in getTransformation() 82 if (source instanceof Spanned) { in getTransformation() 84 (Spanned) source, in getTransformation() 87 return new ReplacementCharSequence(source, in getTransformation() 94 if (source instanceof Spanned) { in getTransformation() 95 return new SpannedReplacementCharSequence((Spanned) source, in getTransformation() [all …]
|
/frameworks/base/core/java/com/android/ims/internal/uce/presence/ |
D | PresRlmiInfo.java | 216 public PresRlmiInfo createFromParcel(Parcel source) { 217 return new PresRlmiInfo(source); 226 private PresRlmiInfo(Parcel source) { in PresRlmiInfo() argument 227 readFromParcel(source); in PresRlmiInfo() 231 public void readFromParcel(Parcel source) { in readFromParcel() argument 232 mUri = source.readString(); in readFromParcel() 233 mVersion = source.readInt(); in readFromParcel() 234 mFullState = (source.readInt() == 0) ? false : true; in readFromParcel() 235 mListName = source.readString(); in readFromParcel() 236 mRequestId = source.readInt(); in readFromParcel() [all …]
|
/frameworks/base/tests/net/common/java/android/net/ |
D | LinkPropertiesTest.java | 167 public void assertLinkPropertiesEqual(LinkProperties source, LinkProperties target) { in assertLinkPropertiesEqual() argument 169 assertTrue(source.isIdenticalInterfaceName(target)); in assertLinkPropertiesEqual() 170 assertTrue(target.isIdenticalInterfaceName(source)); in assertLinkPropertiesEqual() 172 assertTrue(source.isIdenticalAddresses(target)); in assertLinkPropertiesEqual() 173 assertTrue(target.isIdenticalAddresses(source)); in assertLinkPropertiesEqual() 175 assertTrue(source.isIdenticalDnses(target)); in assertLinkPropertiesEqual() 176 assertTrue(target.isIdenticalDnses(source)); in assertLinkPropertiesEqual() 178 assertTrue(source.isIdenticalPrivateDns(target)); in assertLinkPropertiesEqual() 179 assertTrue(target.isIdenticalPrivateDns(source)); in assertLinkPropertiesEqual() 181 assertTrue(source.isIdenticalValidatedPrivateDnses(target)); in assertLinkPropertiesEqual() [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | OneTouchPlayAction.java | 58 static OneTouchPlayAction create(HdmiCecLocalDeviceSource source, in create() argument 60 if (source == null || callback == null) { in create() 64 return new OneTouchPlayAction(source, targetAddress, in create() 87 HdmiCecLocalDeviceSource source = source(); in broadcastActiveSource() local 88 source.mService.setAndBroadcastActiveSourceFromOneDeviceType( in broadcastActiveSource() 92 if (source.mService.audioSystem() != null) { in broadcastActiveSource() 93 source = source.mService.audioSystem(); in broadcastActiveSource() 95 if (source.getLocalActivePort() != Constants.CEC_SWITCH_HOME) { in broadcastActiveSource() 96 source.switchInputOnReceivingNewActivePath(getSourcePath()); in broadcastActiveSource() 98 source.setRoutingPort(Constants.CEC_SWITCH_HOME); in broadcastActiveSource() [all …]
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | EditorInfo.java | 590 public EditorInfo createFromParcel(Parcel source) { 592 res.inputType = source.readInt(); 593 res.imeOptions = source.readInt(); 594 res.privateImeOptions = source.readString(); 595 res.actionLabel = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); 596 res.actionId = source.readInt(); 597 res.initialSelStart = source.readInt(); 598 res.initialSelEnd = source.readInt(); 599 res.initialCapsMode = source.readInt(); 600 res.hintText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); [all …]
|
/frameworks/base/core/java/android/hardware/display/ |
D | BrightnessChangeEvent.java | 146 private BrightnessChangeEvent(Parcel source) { in BrightnessChangeEvent() argument 147 brightness = source.readFloat(); in BrightnessChangeEvent() 148 timeStamp = source.readLong(); in BrightnessChangeEvent() 149 packageName = source.readString(); in BrightnessChangeEvent() 150 userId = source.readInt(); in BrightnessChangeEvent() 151 luxValues = source.createFloatArray(); in BrightnessChangeEvent() 152 luxTimestamps = source.createLongArray(); in BrightnessChangeEvent() 153 batteryLevel = source.readFloat(); in BrightnessChangeEvent() 154 powerBrightnessFactor = source.readFloat(); in BrightnessChangeEvent() 155 nightMode = source.readBoolean(); in BrightnessChangeEvent() [all …]
|
/frameworks/base/telecomm/java/android/telecom/ |
D | ParcelableConnection.java | 261 public ParcelableConnection createFromParcel(Parcel source) { 264 PhoneAccountHandle phoneAccount = source.readParcelable(classLoader); 265 int state = source.readInt(); 266 int capabilities = source.readInt(); 267 Uri address = source.readParcelable(classLoader); 268 int addressPresentation = source.readInt(); 269 String callerDisplayName = source.readString(); 270 int callerDisplayNamePresentation = source.readInt(); 272 IVideoProvider.Stub.asInterface(source.readStrongBinder()); 273 int videoState = source.readInt(); [all …]
|
/frameworks/base/graphics/java/android/view/ |
D | PixelCopy.java | 105 public static void request(@NonNull SurfaceView source, @NonNull Bitmap dest, in request() argument 107 request(source.getHolder().getSurface(), dest, listener, listenerThread); in request() 129 public static void request(@NonNull SurfaceView source, @Nullable Rect srcRect, in request() argument 132 request(source.getHolder().getSurface(), srcRect, in request() 152 public static void request(@NonNull Surface source, @NonNull Bitmap dest, in request() argument 154 request(source, null, dest, listener, listenerThread); in request() 176 public static void request(@NonNull Surface source, @Nullable Rect srcRect, in request() argument 180 if (!source.isValid()) { in request() 187 int result = ThreadedRenderer.copySurfaceInto(source, srcRect, dest); in request() 221 public static void request(@NonNull Window source, @NonNull Bitmap dest, in request() argument [all …]
|