Home
last modified time | relevance | path

Searched refs:source (Results 1 – 25 of 1569) sorted by relevance

12345678910>>...63

/frameworks/base/core/java/android/content/pm/
DPackageInfo.java518 public PackageInfo createFromParcel(Parcel source) {
519 return new PackageInfo(source);
529 private PackageInfo(Parcel source) { in PackageInfo() argument
530 packageName = source.readString8(); in PackageInfo()
531 splitNames = source.createString8Array(); in PackageInfo()
532 versionCode = source.readInt(); in PackageInfo()
533 versionCodeMajor = source.readInt(); in PackageInfo()
534 versionName = source.readString8(); in PackageInfo()
535 baseRevisionCode = source.readInt(); in PackageInfo()
536 splitRevisionCodes = source.createIntArray(); in PackageInfo()
[all …]
DInstrumentationInfo.java181 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.readString8(); in InstrumentationInfo()
193 targetProcesses = source.readString8(); in InstrumentationInfo()
194 sourceDir = source.readString8(); in InstrumentationInfo()
195 publicSourceDir = source.readString8(); in InstrumentationInfo()
196 splitNames = source.createString8Array(); in InstrumentationInfo()
197 splitSourceDirs = source.createString8Array(); in InstrumentationInfo()
[all …]
DPackageInfoLite.java129 public PackageInfoLite createFromParcel(Parcel source) {
130 return new PackageInfoLite(source);
138 private PackageInfoLite(Parcel source) { in PackageInfoLite() argument
139 packageName = source.readString(); in PackageInfoLite()
140 splitNames = source.createStringArray(); in PackageInfoLite()
141 versionCode = source.readInt(); in PackageInfoLite()
142 versionCodeMajor = source.readInt(); in PackageInfoLite()
143 baseRevisionCode = source.readInt(); in PackageInfoLite()
144 splitRevisionCodes = source.createIntArray(); in PackageInfoLite()
145 recommendedInstallLocation = source.readInt(); in PackageInfoLite()
[all …]
DShortcutInfo.java508 private static ArraySet<String> cloneCategories(Set<String> source) { in cloneCategories() argument
509 if (source == null) { in cloneCategories()
512 final ArraySet<String> ret = new ArraySet<>(source.size()); in cloneCategories()
513 for (CharSequence s : source) { in cloneCategories()
581 private ShortcutInfo(ShortcutInfo source, @CloneFlags int cloneFlags) { in ShortcutInfo() argument
582 mUserId = source.mUserId; in ShortcutInfo()
583 mId = source.mId; in ShortcutInfo()
584 mPackageName = source.mPackageName; in ShortcutInfo()
585 mActivity = source.mActivity; in ShortcutInfo()
586 mFlags = source.mFlags; in ShortcutInfo()
[all …]
/frameworks/av/media/libstagefright/
DInterfaceUtils.cpp26 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/native/services/surfaceflinger/CompositionEngine/tests/
DProjectionSpaceTest.cpp67 ProjectionSpace source; in TEST() local
68 source.content = Rect(10, 10, 20, 20); in TEST()
69 source.bounds = Rect(100, 200); in TEST()
73 dest.bounds = source.bounds; in TEST()
75 const auto transform = source.getTransform(dest); in TEST()
76 EXPECT_EQ(transform.transform(source.content), dest.content); in TEST()
80 ProjectionSpace source; in TEST() local
81 source.content = Rect(0, 0, 20, 20); in TEST()
82 source.bounds = Rect(100, 200); in TEST()
86 dest.bounds = source.bounds; in TEST()
[all …]
/frameworks/base/core/java/android/text/
DSpannedString.java34 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()
DSpannableString.java33 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/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DXmlConfigTests.java48 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/opt/net/ims/src/java/com/android/ims/internal/
DVideoPauseTracker.java78 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/java/android/app/
DTaskInfo.java250 private TaskInfo(Parcel source) { in TaskInfo() argument
251 readFromParcel(source); in TaskInfo()
375 void readFromParcel(Parcel source) { in readFromParcel() argument
376 userId = source.readInt(); in readFromParcel()
377 taskId = source.readInt(); in readFromParcel()
378 displayId = source.readInt(); in readFromParcel()
379 isRunning = source.readBoolean(); in readFromParcel()
380 baseIntent = source.readTypedObject(Intent.CREATOR); in readFromParcel()
381 baseActivity = ComponentName.readFromParcel(source); in readFromParcel()
382 topActivity = ComponentName.readFromParcel(source); in readFromParcel()
[all …]
/frameworks/libs/net/common/tests/unit/src/android/net/util/
DLinkPropertiesUtilsTest.java87 final LinkProperties source = createTestObject(); in testLinkPropertiesIdenticalEqual() local
88 final LinkProperties target = new LinkProperties(source); in testLinkPropertiesIdenticalEqual()
90 assertTrue(LinkPropertiesUtils.isIdenticalInterfaceName(source, target)); in testLinkPropertiesIdenticalEqual()
91 assertTrue(LinkPropertiesUtils.isIdenticalInterfaceName(target, source)); in testLinkPropertiesIdenticalEqual()
93 assertTrue(LinkPropertiesUtils.isIdenticalAddresses(source, target)); in testLinkPropertiesIdenticalEqual()
94 assertTrue(LinkPropertiesUtils.isIdenticalAddresses(target, source)); in testLinkPropertiesIdenticalEqual()
96 assertTrue(LinkPropertiesUtils.isIdenticalDnses(source, target)); in testLinkPropertiesIdenticalEqual()
97 assertTrue(LinkPropertiesUtils.isIdenticalDnses(target, source)); in testLinkPropertiesIdenticalEqual()
99 assertTrue(LinkPropertiesUtils.isIdenticalRoutes(source, target)); in testLinkPropertiesIdenticalEqual()
100 assertTrue(LinkPropertiesUtils.isIdenticalRoutes(target, source)); in testLinkPropertiesIdenticalEqual()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageParserCacheHelperTest.java37 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/text/method/
DReplacementTransformationMethod.java52 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/android/view/
DInsetsState.java209 InsetsSource source = mSources[type]; in calculateInsets() local
210 if (source == null) { in calculateInsets()
218 processSource(source, relativeFrame, false /* ignoreVisibility */, typeInsetsMap, in calculateInsets()
223 if (source.getType() != ITYPE_IME) { in calculateInsets()
226 : source; in calculateInsets()
307 InsetsSource source = mSources[type]; in calculateInsets() local
308 if (source == null) { in calculateInsets()
315 insets = Insets.max(source.calculateInsets(frame, ignoreVisibility), insets); in calculateInsets()
323 InsetsSource source = mSources[type]; in calculateVisibleInsets() local
324 if (source == null) { in calculateVisibleInsets()
[all …]
/frameworks/base/core/java/android/content/om/
DOverlayInfo.java230 public OverlayInfo(@NonNull OverlayInfo source, @State int state) { in OverlayInfo() argument
231 this(source.packageName, source.overlayName, source.targetPackageName, in OverlayInfo()
232 source.targetOverlayableName, source.category, source.baseCodePath, state, in OverlayInfo()
233 source.userId, source.priority, source.isMutable, source.isFabricated); in OverlayInfo()
266 public OverlayInfo(Parcel source) { in OverlayInfo() argument
267 packageName = source.readString(); in OverlayInfo()
268 overlayName = source.readString(); in OverlayInfo()
269 targetPackageName = source.readString(); in OverlayInfo()
270 targetOverlayableName = source.readString(); in OverlayInfo()
271 category = source.readString(); in OverlayInfo()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DParcelling.java50 T unparcel(Parcel source); in unparcel() argument
110 public String unparcel(Parcel source) { in unparcel() argument
111 return TextUtils.safeIntern(source.readString()); in unparcel()
123 public String[] unparcel(Parcel source) { in unparcel() argument
124 String[] array = source.readStringArray(); in unparcel()
142 public List<String> unparcel(Parcel source) { in unparcel() argument
143 ArrayList<String> list = source.createStringArrayList(); in unparcel()
161 public Map<String, String> unparcel(Parcel source) { in unparcel() argument
163 source.readMap(map, String.class.getClassLoader()); in unparcel()
185 public Set<String> unparcel(Parcel source) { in unparcel() argument
[all …]
/frameworks/base/core/java/com/android/ims/internal/uce/common/
DCapInfo.java848 public CapInfo createFromParcel(Parcel source) {
849 return new CapInfo(source);
857 private CapInfo(Parcel source) { in CapInfo() argument
858 readFromParcel(source); in CapInfo()
861 public void readFromParcel(Parcel source) { in readFromParcel() argument
863 mImSupported = (source.readInt() == 0) ? false : true; in readFromParcel()
864 mFtSupported = (source.readInt() == 0) ? false : true; in readFromParcel()
865 mFtThumbSupported = (source.readInt() == 0) ? false : true; in readFromParcel()
866 mFtSnFSupported = (source.readInt() == 0) ? false : true; in readFromParcel()
867 mFtHttpSupported = (source.readInt() == 0) ? false : true; in readFromParcel()
[all …]
/frameworks/base/core/java/android/window/
DStartingWindowInfo.java174 private StartingWindowInfo(@NonNull Parcel source) { in StartingWindowInfo() argument
175 readFromParcel(source); in StartingWindowInfo()
196 void readFromParcel(@NonNull Parcel source) { in readFromParcel() argument
197 taskInfo = source.readTypedObject(ActivityManager.RunningTaskInfo.CREATOR); in readFromParcel()
198 targetActivityInfo = source.readTypedObject(ActivityInfo.CREATOR); in readFromParcel()
199 startingWindowTypeParameter = source.readInt(); in readFromParcel()
200 topOpaqueWindowInsetsState = source.readTypedObject(InsetsState.CREATOR); in readFromParcel()
201 topOpaqueWindowLayoutParams = source.readTypedObject( in readFromParcel()
203 mainWindowLayoutParams = source.readTypedObject(WindowManager.LayoutParams.CREATOR); in readFromParcel()
204 splashScreenThemeResId = source.readInt(); in readFromParcel()
[all …]
/frameworks/base/core/java/com/android/internal/statusbar/
DRegisterStatusBarResult.java93 public RegisterStatusBarResult createFromParcel(Parcel source) {
95 source.createTypedArrayMap(StatusBarIcon.CREATOR);
96 final int disabledFlags1 = source.readInt();
97 final int appearance = source.readInt();
99 source.readParcelableArray(null, AppearanceRegion.class);
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 IBinder imeToken = source.readStrongBinder();
[all …]
/frameworks/base/core/java/android/hardware/display/
DBrightnessChangeEvent.java176 private BrightnessChangeEvent(Parcel source) { in BrightnessChangeEvent() argument
177 brightness = source.readFloat(); in BrightnessChangeEvent()
178 timeStamp = source.readLong(); in BrightnessChangeEvent()
179 packageName = source.readString(); in BrightnessChangeEvent()
180 userId = source.readInt(); in BrightnessChangeEvent()
181 uniqueDisplayId = source.readString(); in BrightnessChangeEvent()
182 luxValues = source.createFloatArray(); in BrightnessChangeEvent()
183 luxTimestamps = source.createLongArray(); in BrightnessChangeEvent()
184 batteryLevel = source.readFloat(); in BrightnessChangeEvent()
185 powerBrightnessFactor = source.readFloat(); in BrightnessChangeEvent()
[all …]
/frameworks/av/media/ndk/
DNdkMediaDataSourceCallbacks.cpp27 DataSource *source = static_cast<DataSource *>(userdata); in DataSource_getSize() local
29 source->getSize(&size); in DataSource_getSize()
34 DataSource *source = static_cast<DataSource *>(userdata); in DataSource_readAt() local
35 return source->readAt(offset, buf, size); in DataSource_readAt()
39 DataSource *source = static_cast<DataSource *>(userdata); in DataSource_close() local
40 source->close(); in DataSource_close()
45 DataSource *source = static_cast<DataSource *>(userdata); in DataSource_getAvailableSize() local
46 source->getAvailableSize(offset, &size); in DataSource_getAvailableSize()
/frameworks/base/graphics/java/android/view/
DPixelCopy.java105 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 …]
/frameworks/base/telecomm/java/android/telecom/
DParcelableConnection.java261 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/core/java/com/android/ims/internal/uce/presence/
DPresRlmiInfo.java217 public PresRlmiInfo createFromParcel(Parcel source) {
218 return new PresRlmiInfo(source);
227 private PresRlmiInfo(Parcel source) { in PresRlmiInfo() argument
228 readFromParcel(source); in PresRlmiInfo()
232 public void readFromParcel(Parcel source) { in readFromParcel() argument
233 mUri = source.readString(); in readFromParcel()
234 mVersion = source.readInt(); in readFromParcel()
235 mFullState = (source.readInt() == 0) ? false : true; in readFromParcel()
236 mListName = source.readString(); in readFromParcel()
237 mRequestId = source.readInt(); in readFromParcel()
[all …]

12345678910>>...63