/system/tools/xsdc/tests/src/com/android/xsdc/tests/ |
D | XmlParserTest.java | 19 import static org.hamcrest.core.Is.is; 47 is(javax.xml.datatype.DatatypeFactory.newInstance().newXMLGregorianCalendar( in testPurchaseSimple() 49 assertThat(orderType.getBillTo().getName(), is("billName")); in testPurchaseSimple() 50 assertThat(orderType.getBillTo().getZip(), is(new BigInteger("1"))); in testPurchaseSimple() 51 assertThat(orderType.getShipTo().get(0).getStreet(), is("street1")); in testPurchaseSimple() 53 is(new BigInteger("-7922816251426433759"))); in testPurchaseSimple() 68 assertThat(new String(actualStr), is(expectedStr)); in testPurchaseSimple() 79 assertThat(employee.getName(), is("Peter")); in testNestedType() 80 assertThat(employee.getAddress().getCountry(), is("US")); in testNestedType() 81 assertThat(employee.getAddress().getExtra().getLine2(), is("Good Street")); in testNestedType() [all …]
|
/system/tools/aidl/tests/java/src/android/aidl/tests/ |
D | TestServiceClient.java | 19 import static org.hamcrest.core.Is.is; 90 assertThat(service.RepeatBoolean(query), is(query)); in testBooleanRepeat() 96 assertThat(service.RepeatChar(query), is(query)); in testCharRepeat() 102 assertThat(service.RepeatByte(query), is(query)); in testByteRepeat() 108 assertThat(service.RepeatInt(query), is(query)); in testIntRepeat() 122 assertThat(service.RepeatInt(query[i]), is(query[i])); in testConstRepeat() 129 assertThat(service.RepeatLong(query), is(query)); in testLongRepeat() 135 assertThat(service.RepeatFloat(query), is(query)); in testFloatRepeat() 141 assertThat(service.RepeatDouble(query), is(query)); in testDoubleRepeat() 147 assertThat(service.RepeatByteEnum(query), is(query)); in testByteEnumRepeat() [all …]
|
D | MapTests.java | 19 import static org.hamcrest.core.Is.is; 78 assertThat(readFoo.intEnumArrayMap.size(), is(1)); in testWriteAndThenReadMaps() 79 assertThat(readFoo.intEnumArrayMap.get("Foo"), is(new int[] {IntEnum.FOO})); in testWriteAndThenReadMaps() 81 assertThat(readFoo.intArrayMap.size(), is(1)); in testWriteAndThenReadMaps() 82 assertThat(readFoo.intArrayMap.get("Foo"), is(new int[] {42})); in testWriteAndThenReadMaps() 84 assertThat(readFoo.barMap.containsKey("Foo"), is(true)); in testWriteAndThenReadMaps() 85 assertThat(readFoo.barMap.size(), is(1)); in testWriteAndThenReadMaps() 88 assertThat(readBar.a, is(42)); in testWriteAndThenReadMaps() 89 assertThat(readBar.b, is("Bar")); in testWriteAndThenReadMaps() 92 assertThat(bars.length, is(1)); in testWriteAndThenReadMaps() [all …]
|
D | JavaOnlyImmutableAnnotationTests.java | 19 import static org.hamcrest.core.Is.is; 58 assertThat(foo.a, is(foo2.a)); in testReadWriteJavaOnlyImmutableParcelable() 59 assertThat(foo.b.s, is(foo2.b.s)); in testReadWriteJavaOnlyImmutableParcelable() 60 assertThat(foo.c.size(), is(foo.c.size())); in testReadWriteJavaOnlyImmutableParcelable() 61 assertThat(foo.c.get(0).s, is(foo2.c.get(0).s)); in testReadWriteJavaOnlyImmutableParcelable() 62 assertThat(foo.c.size(), is(foo.c.size())); in testReadWriteJavaOnlyImmutableParcelable() 63 assertThat(foo.d.get("key").s, is(foo2.d.get("key").s)); in testReadWriteJavaOnlyImmutableParcelable() 64 assertThat(foo.e.length, is(foo.e.length)); in testReadWriteJavaOnlyImmutableParcelable() 67 assertThat(foo.e[i].s, is(foo2.e[i].s)); in testReadWriteJavaOnlyImmutableParcelable() 70 assertThat(foo.u.getNum(), is(foo2.u.getNum())); in testReadWriteJavaOnlyImmutableParcelable() [all …]
|
D | ExtensionTests.java | 19 import static org.hamcrest.core.Is.is; 102 assertThat(ep2.a, is(ep.a)); in testRepeatExtendableParcelable() 103 assertThat(ep2.b, is(ep.b)); in testRepeatExtendableParcelable() 106 assertThat(retExt.a, is(ext.a)); in testRepeatExtendableParcelable() 107 assertThat(retExt.b, is(ext.b)); in testRepeatExtendableParcelable() 113 assertThat(vep.ext.getParcelable(VintfParcelable.class), is(vp)); in testVintfParcelableHolderCanContainVintfParcelable() 119 assertThat(vep.ext.getParcelable(VintfParcelable.class), is(nullValue())); in testVintfParcelableHolderCannotContainNonVintfParcelable() 125 assertThat(vep.ext.getParcelable(UnstableParcelable.class), is(nullValue())); in testVintfParcelableHolderCannotContainUnstableParcelable() 131 assertThat(sep.ext.getParcelable(VintfParcelable.class), is(vp)); in testStableParcelableHolderCanContainVintfParcelable() 137 assertThat(sep.ext.getParcelable(NonVintfParcelable.class), is(sp)); in testStableParcelableHolderCanContainNonVintfParcelable() [all …]
|
D | GenericTests.java | 19 import static org.hamcrest.core.Is.is; 62 assertThat(service.getPair().mFirst, is(15)); in testGeneric() 63 assertThat(service.getPair().mSecond, is("My")); in testGeneric() 65 assertThat(service.getPair2().mFirst.a, is(15)); in testGeneric() 66 assertThat(service.getPair2().mSecond.a, is(16)); in testGeneric() 68 assertThat(service.getPair3().mFirst, is(15)); in testGeneric() 69 assertThat(service.getPair3().mSecond, is(IntEnum.BAR)); in testGeneric()
|
/system/chre/pal/doc/ |
D | Doxyfile | 6 # All text after a double hash (##) is considered a comment and is placed in 7 # front of the TAG it is preceding. 9 # All text after a single hash (#) is considered a comment and will be ignored. 10 # The format is: 21 # that follow. The default is UTF-8 which is also the encoding used for all text 25 # The default value is: UTF-8. 29 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded by 31 # project for which the documentation is generated. This name is used in the 33 # The default value is: My Project. 39 # control system is used. [all …]
|
/system/chre/chre_api/doc/ |
D | Doxyfile | 6 # All text after a double hash (##) is considered a comment and is placed in 7 # front of the TAG it is preceding. 9 # All text after a single hash (#) is considered a comment and will be ignored. 10 # The format is: 21 # that follow. The default is UTF-8 which is also the encoding used for all text 25 # The default value is: UTF-8. 29 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded by 31 # project for which the documentation is generated. This name is used in the 33 # The default value is: My Project. 39 # control system is used. [all …]
|
/system/media/audio_utils/ |
D | Doxyfile | 6 # All text after a double hash (##) is considered a comment and is placed in 7 # front of the TAG it is preceding. 9 # All text after a single hash (#) is considered a comment and will be ignored. 10 # The format is: 21 # file that follow. The default is UTF-8 which is also the encoding used for all 25 # The default value is: UTF-8. 29 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded by 31 # project for which the documentation is generated. This name is used in the 33 # The default value is: My Project. 39 # control system is used. [all …]
|
/system/tools/hidl/hidl2aidl/test/ |
D | TranslateJavaTest.java | 19 import static org.hamcrest.core.Is.is; 34 assertThat(source.str, is(dest.str)); in OnlyIn10() 43 assertThat(source.str, is(dest.str)); in OnlyIn11() 52 assertThat(source.a, is(dest.a)); in OverrideMe() 62 assertThat(source.v1_0.inner.a, is(dest.inner.a)); in Outer() 71 assertThat(source.a, is(dest.a)); in OuterInner() 82 assertThat(source.reference.reference.a, is(dest.a)); in NameCollision() 83 assertThat(source.reference.b, is(dest.b)); in NameCollision() 84 assertThat(source.c, is(dest.c)); in NameCollision() 94 assertThat(source.type, is(dest.type)); in IFooBigStruct() [all …]
|
/system/bt/service/doc/ |
D | IBluetoothGattServerCallback.txt | 11 * distributed under the License is distributed on an "AS IS" BASIS, 26 * is the owning application's unique GATT server handle and can be used to 34 * been published and is discoverable. In this case handles of added service, 40 * Called when there is an incoming read request from the remote device with 42 * |offset| is the index of the characteristic value that 43 * the remote device wants to read from. If |is_long| is true, then this 44 * request is part of a Long Read procedure. An implementation should handle 48 * If |offset| is invalid then sendResponse should be called with 49 * GATT_ERROR_INVALID_OFFSET. If |is_long| is true but this characteristic is 58 * Called when there is an incoming read request from the remote device with [all …]
|
/system/core/fs_mgr/libfiemap/ |
D | README.md | 4 `libfiemap` is a library for creating block-devices that are backed by 12 - Mapping the image as a block device while /data is mounted. This is fairly 13 tricky and is described in more detail below. 14 - Mapping the image as a block device during first-stage init. This is simple 17 Image creation is done through `SplitFiemap`. Depending on the file system, 18 a large image may have to be split into multiple files. On Ext4 the limit is 20 where `<name>` is chosen by the process requesting the image. 22 At the same time, a file called `/metadata/gsi/<name>/lp_metadata` is created. 23 This is a super partition header that allows first-stage init to create dynamic 30 It is easy to make block devices out of blocks on `/data` when it is not [all …]
|
/system/linkerconfig/ |
D | README.md | 5 Linkerconfig is a program to generate linker configuration based on the runtime 23 A linker configuration file(linker.config.json) is compiled into a protobuf at build time 25 For example, `/apex/com.android.art/etc/linker.config.pb` is a configuration for the `com.android.a… 28 `/system/etc/linker.config.pb`(or its source module `system_linker_config`) is special because 29 its `provideLibs` key is generated at build time. 33 linker.config.json file is in json format which can contain properties as below. 38 | visible | bool | Force APEX namespace to be visible from all sections if the value is true … 71 The file describes libraries exposed from APEXes. libnativeloader is the main 80 The file is line-based and each line consists of `tag apex_namespace 83 - `tag` explains what `library_list` is. [all …]
|
/system/bpf/bpfloader/ |
D | bpfloader.rc | 1 # zygote-start is what officially starts netd (see //system/core/rootdir/init.rc) 2 # However, on some hardware it's started from post-fs-data as well, which is just 6 # It is important that we start bpfloader after: 7 # - /sys/fs/bpf is already mounted, 8 # - apex (incl. rollback) is initialized (so that in the future we can load bpf 10 # - logd is ready for us to log stuff 13 # failures (before memory is fragmented, and cpu is busy running tons of other 14 # stuff) and we absolutely want to be before netd and the system boot slot is 18 # Enable the eBPF JIT -- but do note that on 64-bit kernels it is likely 32 # However, while the rlimit is per-thread, the accounting is system wide. [all …]
|
/system/bt/doc/ |
D | power_management.md | 5 Power management (PM) is an event-driven state machine, tickled by various 36 policy is determined by the greatest allowable power action defined across all 39 connection is up which specifies it is willing to go into SNIFF, but its action 59 - `BTA_DM_PM_NO_ACTION` is effectively a no-op and has a value of zero, so any 68 action is still the same, however -- SNIFF mode is attempted. There are 71 - `BTA_DM_PM_ACTIVE` is full-on power. 73 timeout is possible to be set, which effectively allows a power operation to 83 At this point, the power managment code is basically done until the first set of 88 while this variable is declared as an extern in the `bta_dm_int.h` file, it only 95 1. An event is fired from one of the methods mentioned above in [all …]
|
/system/chre/doc/ |
D | framework_overview.md | 15 CHRE framework") is developed primarily in C++11 using a modular object-oriented 16 approach that separates common code from platform-specific code. CHRE is an 17 event-based system, so CHRE is built around an event loop which executes nanoapp 19 in more than one thread at a time, so CHRE is structured around a single thread 21 that support CHRE. The EventLoopManager is a Singleton object which owns the 26 and platform-specific components, it is helpful to trace the flow through a few 27 example scenarios. Note that this is not meant to be an exhaustive list of 38 1. The nanoapp binary reaches the HAL implementation, and it is loaded into the 39 processor where CHRE is running using a platform-specific method. While the 40 path this takes can vary, one common approach is to transmit the binary into [all …]
|
/system/sepolicy/prebuilts/api/31.0/private/ |
D | keystore2_key_contexts | 7 # su_key is a keystore_key namespace for the su domain intended for native tests. 10 # shell_key is a keystore_key namespace for the shell domain intended for native tests. 13 # vold_key is a keystore2_key namespace for vold. It allows using raw Keymint blobs. 16 # odsign_key is a keystore2_key namespace for the on-device signing daemon. 19 # wifi_key is a keystore2_key namespace for the WI-FI subsystem. It replaces the WIFI_UID 23 # locksettings_key is a keystore2_key namespace for the LockSettingsService. 26 # resume_on_reboot_key is a keystore2_key namespace intended for resume on reboot.
|
/system/sepolicy/private/ |
D | keystore2_key_contexts | 7 # su_key is a keystore_key namespace for the su domain intended for native tests. 10 # shell_key is a keystore_key namespace for the shell domain intended for native tests. 13 # vold_key is a keystore2_key namespace for vold. It allows using raw Keymint blobs. 16 # odsign_key is a keystore2_key namespace for the on-device signing daemon. 19 # wifi_key is a keystore2_key namespace for the WI-FI subsystem. It replaces the WIFI_UID 23 # locksettings_key is a keystore2_key namespace for the LockSettingsService. 26 # resume_on_reboot_key is a keystore2_key namespace intended for resume on reboot.
|
/system/chre/chpp/ |
D | README.md | 3 …RE) is a feature built into Android which can run background applications on a lower power, always… 5 CHPP is designed to run over a serial link (e.g. UART, SPI) and enables an Android Context Hub (CHR… 7 …is a communication protocol that spans from the Transport to the Application layer. The CHPP Trans… 9 CHPP is designed to be flexible and future-proof while meeting the memory and processing constraint… 15 A quick-start guide for integration is provided in QUICKSTART.md 19 …is considered a peer, meaning there are no role differences. However, within the application layer… 23 …pports implicit NACKs, and optionally supports explicit NACKs. The timeout is implementation depen… 33 …is followed by zero or more bytes of application-layer payload, typically starting with a 6-byte a… 50 …g side is not actively within a packet, it assumes a packet starts whenever it sees the preamble. … 58 …t in a datagram. A fragmentation flag set to (1) indicates that the packet is part of an unfinishe… [all …]
|
/system/core/fs_mgr/libsnapshot/android/snapshot/ |
D | snapshot.proto | 10 // distributed under the License is distributed on an "AS IS" BASIS, 22 // No snapshot is found. 39 // No merge is in progress. 51 // Name of the snapshot. This is usually the name of the snapshotted 60 // Size of the snapshot. This is the sum of lengths of ranges in the base 63 // This value is 0 if no snapshot is needed for this device because 67 // Size of the "COW partition". A COW partition is a special logical 73 // image if the COW partition is not big enough. 75 // This value is 0 if no space in super is left for the COW partition. 77 // is non-zero. [all …]
|
/system/media/camera/docs/ |
D | metadata_template.mako | 12 distributed under the License is distributed on an "AS IS" BASIS, 47 % if section.description is not None: 78 % if prop.details is not None: 82 % if prop.ndk_details is not None: 86 % if prop.hal_details is not None: 112 % if prop.type_notes is not None: 115 % if prop.container is not None: 119 % if prop.typedef is not None: 159 % if value.visibility is not None: 162 % if value.id is not None: [all …]
|
/system/extras/ANRdaemon/ |
D | README | 1 ANRdaemon is a daemon to help analyze ANR due to CPU starvation by logging system 2 activity when CPU usage is very high. The daemon uses debugfs underlying for 4 Depending on the CPU usage level, the trace is turn on/off by writting to the 5 global control /d/trace/trace_on. The raw trace file is stored at 19 Known issue: in the systrace output, anrdaemon will show up when the trace is 20 not running. This is because the daemon process turns off tracing when CPU usage 21 drops, the last entry it leaves in the raw trace file is the scheduler switched 24 the first entry in /d/tracing/trace logged by sched is switching away from the 26 file is parsed by systrace.py, the daemon process is shown as running for the
|
/system/libbase/ |
D | README.md | 3 ## Who is this library for? 5 This library is a collection of convenience functions to make common tasks 10 libbase's primary focus is on making it easier to do things easily and 13 the ideal is to have both. 17 The intention is to cover the 80% use cases, not be all things to all users. 23 The question for libbase is "should everyone be doing this?"/"does this 28 If your routine is actually something from a future C++ standard (that 31 API for n years" is a good way to reduce concerns about API choices. 38 Code here is also expected to have good test coverage. 42 after you're certain that the API is solid.
|
/system/apex/docs/ |
D | README.md | 3 Android Pony EXpress (APEX) is a container format introduced in Android Q that 4 is used in the install flow for lower-level system modules. This format 25 manager is the central repository of information about apps and can only be 28 - The APK format (particularly the manifest) is designed for Android apps and 34 APEX manager, which is a service that manages APEX files. 38 This is the format of an APEX file. 44 At the top level, an APEX file is a zip file in which files are stored 61 version information. This information is generally also available in 65 `apex_manifest.json` is recommended over `AndroidManifest.xml` for new code and 68 `apex_payload.img` is an ext4 file system image backed by dm-verity. The image [all …]
|
/system/core/init/ |
D | README.md | 11 when it is the last character on a line, may be used for line-folding. 16 `${property.name}`. This also works in contexts where concatenation is 23 Services have unique names. If a second Service is defined 24 with the same name as an existing one, it is ignored and an error 25 message is logged. 30 The init language is used in plain text files that take the .rc file 34 `/system/etc/init/hw/init.rc` is the primary .rc file and is loaded by the init executable at the 35 beginning of its execution. It is responsible for the initial set up of the system. 39 the primary `/system/etc/init/hw/init.rc`. This is explained in more details in the 43 able to import init scripts during mount_all, however that is deprecated [all …]
|