Home
last modified time | relevance | path

Searched refs:content (Results 1 – 25 of 10117) sorted by relevance

12345678910>>...405

/packages/modules/Virtualization/microdroid/payload/
Dmetadata.cc30 std::string content; in ReadMetadata() local
31 if (!base::ReadFileToString(path, &content)) { in ReadMetadata()
38 if (content.size() < length_prefix_bytes) { in ReadMetadata()
39 return Error() << "Invalid metadata: size == " << content.size(); in ReadMetadata()
41 size = be32toh(*reinterpret_cast<uint32_t*>(content.data())); in ReadMetadata()
42 if (content.size() < length_prefix_bytes + size) { in ReadMetadata()
44 << content.size() - length_prefix_bytes << ")"; in ReadMetadata()
46 content = content.substr(length_prefix_bytes, size); in ReadMetadata()
50 if (!metadata.ParseFromString(content)) { in ReadMetadata()
58 std::string content; in WriteMetadata() local
[all …]
/packages/apps/Dialer/java/com/android/incallui/rtt/protocol/
DRttChatMessage.java35 private final StringBuilder content = new StringBuilder(); field in RttChatMessage
53 if (c == '\b' && content.length() > 0 && content.charAt(content.length() - 1) != '\b') { in append()
54 content.deleteCharAt(content.length() - 1); in append()
56 content.append(c); in append()
62 return content.toString(); in getContent()
122 if (message.content.length() != 0) { in updateRemoteRttChatMessage()
131 if (message.content.length() == 0) { in updateRemoteRttChatMessage()
135 StringBuilder content = message.content; in updateRemoteRttChatMessage() local
137 while (content.length() > 0 && content.charAt(0) == '\b') { in updateRemoteRttChatMessage()
139 content.delete(0, 1); in updateRemoteRttChatMessage()
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/widget/
DChooserNestedScrollView.kt19 import android.content.Context
46 val content = in onMeasure() constant
48 require(content.orientation == LinearLayout.VERTICAL) { "VERTICAL orientation is expected" } in onMeasure()
53 val lp = content.layoutParams ?: error("LayoutParams is missing") in onMeasure()
57 paddingLeft + content.marginLeft + content.marginRight + paddingRight, in onMeasure()
63 paddingTop + content.marginTop + content.marginBottom + paddingBottom, in onMeasure()
66 content.measure(contentWidthSpec, contentHeightSpec) in onMeasure()
68 if (content.childCount > 1) { in onMeasure()
70 val child = content.getChildAt(0) in onMeasure()
77 content.measure( in onMeasure()
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/ui/viewmodel/
DChooserRequestReader.kt18 import android.content.ComponentName
19 import android.content.Intent
20 import android.content.Intent.EXTRA_ALTERNATE_INTENTS
21 import android.content.Intent.EXTRA_CHOOSER_CUSTOM_ACTIONS
22 import android.content.Intent.EXTRA_CHOOSER_MODIFY_SHARE_ACTION
23 import android.content.Intent.EXTRA_CHOOSER_REFINEMENT_INTENT_SENDER
24 import android.content.Intent.EXTRA_CHOOSER_RESULT_INTENT_SENDER
25 import android.content.Intent.EXTRA_CHOOSER_TARGETS
26 import android.content.Intent.EXTRA_CHOSEN_COMPONENT_INTENT_SENDER
27 import android.content.Intent.EXTRA_EXCLUDE_COMPONENTS
[all …]
/packages/apps/Car/Launcher/app/tests/src/com/android/car/carlauncher/homescreen/audio/
DInCallModelTest.java28 import android.content.Context;
29 import android.content.res.Resources;
106 DescriptiveTextWithControlsView content = in updateModelWithPhoneNumber_active_setsPhoneNumberAndSubtitle() local
110 assertEquals(content.getTitle(), formattedNumber); in updateModelWithPhoneNumber_active_setsPhoneNumberAndSubtitle()
111 assertEquals(content.getSubtitle(), mOngoingCallSecondaryText); in updateModelWithPhoneNumber_active_setsPhoneNumberAndSubtitle()
119 DescriptiveTextWithControlsView content = in updateModelWithPhoneNumber_dialing_setsPhoneNumberAndSubtitle() local
123 assertEquals(content.getTitle(), formattedNumber); in updateModelWithPhoneNumber_dialing_setsPhoneNumberAndSubtitle()
124 assertEquals(content.getSubtitle(), mDialingCallSecondaryText); in updateModelWithPhoneNumber_dialing_setsPhoneNumberAndSubtitle()
135 DescriptiveTextWithControlsView content = in updateModelWithContact_active_noAvatarUri_setsContactNameAndInitialsIcon() local
137 assertEquals(content.getTitle(), DISPLAY_NAME); in updateModelWithContact_active_noAvatarUri_setsContactNameAndInitialsIcon()
[all …]
DMediaViewModelTest.java29 import android.content.ComponentName;
143 DescriptiveTextWithControlsView content = in noChange_doesNotCallPresenter() local
145 assertNull(content.getTitle()); in noChange_doesNotCallPresenter()
146 assertNull(content.getSubtitle()); in noChange_doesNotCallPresenter()
168 DescriptiveTextWithControlsView content = in changeSourceAndMetadata_updatesModel() local
170 assertEquals(content.getTitle(), SONG_TITLE); in changeSourceAndMetadata_updatesModel()
171 assertEquals(content.getSubtitle(), ARTIST_NAME); in changeSourceAndMetadata_updatesModel()
188 DescriptiveTextWithControlsView content = in changeSourceOnly_updatesModel() local
190 assertEquals(content.getTitle().toString(), ""); in changeSourceOnly_updatesModel()
191 assertEquals(content.getTitle().toString(), ""); in changeSourceOnly_updatesModel()
[all …]
/packages/modules/AdServices/sdksandbox/service/api/
Dsystem-server-current.txt5 …method public boolean canAccessContentProviderFromSdkSandbox(@NonNull android.content.pm.ProviderI…
6 …method public boolean canRegisterBroadcastReceiver(@NonNull android.content.IntentFilter, int, boo…
7 method public boolean canSendBroadcast(@NonNull android.content.Intent);
8 …method public void enforceAllowedToHostSandboxedActivity(@NonNull android.content.Intent, int, @No…
9 method @Deprecated public void enforceAllowedToSendBroadcast(@NonNull android.content.Intent);
10 method public void enforceAllowedToStartActivity(@NonNull android.content.Intent);
11 method public void enforceAllowedToStartOrBindService(@NonNull android.content.Intent);
12 ….content.pm.ApplicationInfo getSdkSandboxApplicationInfoForInstrumentation(@NonNull android.conten…
13 …ublic String getSdkSandboxProcessNameForInstrumentation(@NonNull android.content.pm.ApplicationInf…
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/
DWidgetRecommendationCategoryProviderTest.java19 import static android.content.pm.ApplicationInfo.CATEGORY_AUDIO;
20 import static android.content.pm.ApplicationInfo.CATEGORY_IMAGE;
21 import static android.content.pm.ApplicationInfo.CATEGORY_NEWS;
22 import static android.content.pm.ApplicationInfo.CATEGORY_PRODUCTIVITY;
23 import static android.content.pm.ApplicationInfo.CATEGORY_SOCIAL;
24 import static android.content.pm.ApplicationInfo.CATEGORY_UNDEFINED;
25 import static android.content.pm.ApplicationInfo.CATEGORY_VIDEO;
26 import static android.content.pm.ApplicationInfo.FLAG_INSTALLED;
38 import android.content.ComponentName;
39 import android.content.Context;
[all …]
/packages/apps/Tag/src/com/android/apps/tag/
DTagViewer.java24 import android.content.Intent;
76 private void addView(LayoutInflater inflater, LinearLayout content, View v) { in addView() argument
78 TextView empty = (TextView) inflater.inflate(R.layout.tag_text, content, false); in addView()
82 content.addView(v); in addView()
87 LinearLayout content = mTagContent; in buildTagViews() local
90 content.removeAllViews(); in buildTagViews()
94 addView(inflater, content, null); in buildTagViews()
103 addView(inflater, content, null); in buildTagViews()
107 addView(inflater, content, record.getView(this, inflater, content, i)); in buildTagViews()
108 inflater.inflate(R.layout.tag_divider, content, true); in buildTagViews()
/packages/apps/Settings/src/com/android/settings/
DSettingsInitialize.java19 import static android.content.pm.PackageManager.GET_ACTIVITIES;
20 import static android.content.pm.PackageManager.GET_META_DATA;
21 import static android.content.pm.PackageManager.GET_RESOLVED_FILTER;
22 import static android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS;
26 import android.content.BroadcastReceiver;
27 import android.content.ComponentName;
28 import android.content.Context;
29 import android.content.Intent;
30 import android.content.pm.PackageManager;
31 import android.content.pm.ResolveInfo;
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAlbumSetSlotRenderer.java172 Texture content = checkContentTexture(entry.content); in renderContent() local
173 if (content == null) { in renderContent()
174 content = mWaitLoadingTexture; in renderContent()
178 content = new FadeInTexture(mPlaceholderColor, entry.bitmapTexture); in renderContent()
179 entry.content = content; in renderContent()
181 drawContent(canvas, content, width, height, entry.rotation); in renderContent()
182 if ((content instanceof FadeInTexture) && in renderContent()
183 ((FadeInTexture) content).isAnimating()) { in renderContent()
192 Texture content = checkLabelTexture(entry.labelTexture); in renderLabel() local
193 if (content == null) { in renderLabel()
[all …]
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DServicesInstantAppsCannotAccessTests.java19 import static android.content.Context.DEVICE_POLICY_SERVICE;
20 import static android.content.Context.SHORTCUT_SERVICE;
21 import static android.content.Context.USB_SERVICE;
22 import static android.content.Context.WALLPAPER_SERVICE;
23 import static android.content.Context.WIFI_AWARE_SERVICE;
24 import static android.content.Context.WIFI_P2P_SERVICE;
25 import static android.content.Context.WIFI_SERVICE;
29 import android.content.Context;
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/plugins/plugintoggle/
DPluginManager.kt19 import android.content.ComponentName
20 import android.content.Context
21 import android.content.pm.PackageManager
22 import android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED
23 import android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_ENABLED
24 import android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS
25 import android.content.pm.PackageManager.MATCH_SYSTEM_ONLY
26 import android.content.pm.ProviderInfo
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/
DScaryWarningDialogFragment.java20 import android.content.ComponentName;
21 import android.content.Context;
22 import android.content.pm.PackageManager;
76 View content = inflater.inflate(R.layout.enable_nls_dialog_content, null); in getDialogView() local
84 ImageView appIcon = content.findViewById(R.id.app_icon); in getDialogView()
93 ((TextView) content.findViewById(R.id.title)).setText(title); in getDialogView()
97 ((TextView) content.findViewById(R.id.prompt)).setText(prompt); in getDialogView()
99 Button allowButton = content.findViewById(R.id.allow_button); in getDialogView()
104 Button denyButton = content.findViewById(R.id.deny_button); in getDialogView()
108 return content; in getDialogView()
/packages/modules/Connectivity/framework/api/
Dmodule-lib-current.txt84 method public static void clearGlobalProxy(@NonNull android.content.Context);
85 method @Nullable public static String getCaptivePortalHttpUrl(@NonNull android.content.Context);
86 method public static int getCaptivePortalMode(@NonNull android.content.Context, int);
87 ….time.Duration getConnectivityKeepPendingIntentDuration(@NonNull android.content.Context, @NonNull…
88 …android.util.Range<java.lang.Integer> getDnsResolverSampleRanges(@NonNull android.content.Context);
89 …java.time.Duration getDnsResolverSampleValidityDuration(@NonNull android.content.Context, @NonNull…
90 …method public static int getDnsResolverSuccessThresholdPercent(@NonNull android.content.Context, i…
91 …method @Nullable public static android.net.ProxyInfo getGlobalProxy(@NonNull android.content.Conte…
92 method public static long getIngressRateLimitInBytesPerSecond(@NonNull android.content.Context);
93 … static java.time.Duration getMobileDataActivityTimeout(@NonNull android.content.Context, @NonNull…
[all …]
/packages/providers/TvProvider/src/com/android/providers/tv/
DPackageChangedReceiver.java19 import android.content.BroadcastReceiver;
20 import android.content.ContentProviderOperation;
21 import android.content.ContentProviderResult;
22 import android.content.ContentResolver;
23 import android.content.Context;
24 import android.content.Intent;
25 import android.content.OperationApplicationException;
26 import android.content.pm.ApplicationInfo;
27 import android.content.pm.PackageManager;
/packages/services/Car/packages/CarDeveloperOptions/src/com/android/car/developeroptions/
DCarDevelopmentCarUiLibController.java19 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED;
20 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_ENABLED;
21 import static android.content.pm.PackageManager.MATCH_ALL;
22 import static android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS;
24 import android.content.ComponentName;
25 import android.content.Context;
26 import android.content.pm.PackageManager;
27 import android.content.pm.ProviderInfo;
/packages/apps/Settings/src/com/android/settings/spa/preference/
DComposePreference.kt19 import android.content.Context
36 private var content: @Composable () -> Unit = {} variable
38 fun setContent(content: @Composable () -> Unit) { in setContent()
39 this.content = content in setContent()
45 content() in Content()
62 content() in onBindViewHolder()
/packages/modules/OnDevicePersonalization/common/java/com/android/odp/module/common/
DPackageUtils.java19 import static android.content.pm.PackageManager.GET_META_DATA;
20 import static android.content.pm.PackageManager.GET_SIGNING_CERTIFICATES;
21 import static android.content.pm.PackageManager.MATCH_STATIC_SHARED_AND_SDK_LIBRARIES;
28 import android.content.Context;
29 import android.content.pm.ApplicationInfo;
30 import android.content.pm.PackageInfo;
31 import android.content.pm.PackageManager;
32 import android.content.pm.Signature;
33 import android.content.pm.SigningInfo;
/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DDtaServiceConnectorTest.java27 import android.content.BroadcastReceiver;
28 import android.content.ComponentName;
29 import android.content.Context;
30 import android.content.ContextWrapper;
31 import android.content.Intent;
32 import android.content.IntentFilter;
33 import android.content.pm.PackageManager;
34 import android.content.pm.ResolveInfo;
35 import android.content.pm.ServiceInfo;
36 import android.content.res.Resources;
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/update/
DSelectionChangeCallback.kt19 import android.content.ContentInterface in <lambda>()
20 import android.content.Intent in <lambda>()
21 import android.content.Intent.EXTRA_ALTERNATE_INTENTS in <lambda>()
22 import android.content.Intent.EXTRA_CHOOSER_CUSTOM_ACTIONS in <lambda>()
23 import android.content.Intent.EXTRA_CHOOSER_MODIFY_SHARE_ACTION in <lambda>()
24 import android.content.Intent.EXTRA_CHOOSER_REFINEMENT_INTENT_SENDER in <lambda>()
25 import android.content.Intent.EXTRA_CHOOSER_RESULT_INTENT_SENDER in <lambda>()
26 import android.content.Intent.EXTRA_CHOOSER_TARGETS in <lambda>()
27 import android.content.Intent.EXTRA_INTENT in <lambda>()
28 import android.content.Intent.EXTRA_METADATA_TEXT in <lambda>()
[all …]
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DMockTvProviderContext.java19 import android.content.ComponentName;
20 import android.content.ContentResolver;
21 import android.content.Context;
22 import android.content.pm.ApplicationInfo;
23 import android.content.pm.PackageManager;
24 import android.content.pm.ServiceInfo;
25 import android.content.res.Resources;
26 import android.content.SharedPreferences;
/packages/apps/Settings/src/com/android/settings/shortcut/
DShortcutsUpdateTask.java22 import android.content.ComponentName;
23 import android.content.Context;
24 import android.content.Intent;
25 import android.content.pm.PackageManager;
26 import android.content.pm.ResolveInfo;
27 import android.content.pm.ShortcutInfo;
28 import android.content.pm.ShortcutManager;
/packages/apps/DocumentsUI/src/com/android/documentsui/
DPreBootReceiver.java23 import android.content.BroadcastReceiver;
24 import android.content.ComponentName;
25 import android.content.Context;
26 import android.content.Intent;
27 import android.content.om.OverlayInfo;
28 import android.content.om.OverlayManager;
29 import android.content.pm.PackageManager;
30 import android.content.res.Resources;
/packages/services/Car/service/src/com/android/car/pm/
DAppBlockingPolicyProxy.java18 import android.car.builtin.content.pm.PackageManagerHelper;
20 import android.car.content.pm.CarAppBlockingPolicy;
21 import android.car.content.pm.ICarAppBlockingPolicy;
22 import android.car.content.pm.ICarAppBlockingPolicySetter;
23 import android.content.ComponentName;
24 import android.content.Context;
25 import android.content.Intent;
26 import android.content.ServiceConnection;
27 import android.content.pm.ServiceInfo;

12345678910>>...405