Home
last modified time | relevance | path

Searched refs:constants (Results 1 – 25 of 61) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyConstantsTest.java36 final DevicePolicyConstants constants = DevicePolicyConstants.loadFromString(""); in testDefaultValues() local
38 assertEquals(1 * 60 * 60, constants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_SEC); in testDefaultValues()
39 assertEquals(24 * 60 * 60, constants.DAS_DIED_SERVICE_RECONNECT_MAX_BACKOFF_SEC); in testDefaultValues()
40 assertEquals(2.0, constants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_INCREASE); in testDefaultValues()
44 final DevicePolicyConstants constants = DevicePolicyConstants.loadFromString( in testCustomValues() local
50 assertEquals(10, constants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_SEC); in testCustomValues()
51 assertEquals(15, constants.DAS_DIED_SERVICE_RECONNECT_MAX_BACKOFF_SEC); in testCustomValues()
52 assertEquals(1.25, constants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_INCREASE); in testCustomValues()
56 final DevicePolicyConstants constants = DevicePolicyConstants.loadFromString( in testMinMax() local
62 assertEquals(5, constants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_SEC); in testMinMax()
[all …]
/frameworks/rs/
DrsProgramVertex.cpp43 if (mHal.state.constants[0] == nullptr) { in setup()
49 rsc, mHal.state.constants[0])); in setup()
58 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setup()
72 if (mHal.state.constants[0] == nullptr) { in setProjectionMatrix()
78 rsc, mHal.state.constants[0])); in setProjectionMatrix()
81 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setProjectionMatrix()
90 if (mHal.state.constants[0] == nullptr) { in setModelviewMatrix()
96 rsc, mHal.state.constants[0])); in setModelviewMatrix()
99 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setModelviewMatrix()
108 if (mHal.state.constants[0] == nullptr) { in setTextureMatrix()
[all …]
DrsProgram.cpp53 mHal.state.constants = new Allocation*[mHal.state.constantsCount]; in Program()
101 delete[] mHal.state.constants; in ~Program()
134 mHal.state.constants = nullptr; in initMemberVars()
174 mHal.state.constants[slot] = alloc; in bindAllocation()
212 void rsi_ProgramBindConstants(Context *rsc, RsProgram vp, uint32_t slot, RsAllocation constants) { in rsi_ProgramBindConstants() argument
214 p->bindAllocation(rsc, static_cast<Allocation *>(constants), slot); in rsi_ProgramBindConstants()
DrsProgramFragment.cpp48 if (mHal.state.constants[0] == nullptr) { in setConstantColor()
57 void *p = rsc->mHal.funcs.allocation.lock1D(rsc, mHal.state.constants[0]); in setConstantColor()
60 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setConstantColor()
DrsProgram.h50 Allocation **constants; member
/frameworks/base/core/java/android/os/health/
DHealthStatsWriter.java62 public HealthStatsWriter(HealthKeys.Constants constants) { in HealthStatsWriter() argument
63 mConstants = constants; in HealthStatsWriter()
66 final int timerCount = constants.getSize(HealthKeys.TYPE_TIMER); in HealthStatsWriter()
72 final int measurementCount = constants.getSize(HealthKeys.TYPE_MEASUREMENT); in HealthStatsWriter()
77 final int statsCount = constants.getSize(HealthKeys.TYPE_STATS); in HealthStatsWriter()
81 final int timersCount = constants.getSize(HealthKeys.TYPE_TIMERS); in HealthStatsWriter()
85 final int measurementsCount = constants.getSize(HealthKeys.TYPE_MEASUREMENTS); in HealthStatsWriter()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/robolectric/
DPatchedGradleManifestFactory.java40 if (config.constants() == Void.class) { in identify()
51 ? config.constants().getPackage().getName() in identify()
105 return ReflectionHelpers.getStaticField(config.constants(), "BUILD_TYPE"); in getType()
113 return ReflectionHelpers.getStaticField(config.constants(), "FLAVOR"); in getFlavor()
DSuwLibRobolectricTestRunner.java36 String moduleRoot = config.constants().getResource("").toString() in updateModuleRootPath()
/frameworks/base/core/java/android/net/metrics/
DValidationProbeEvent.java97 return Decoder.constants.get(probeType & 0xff, "PROBE_???"); in getProbeName()
101 return Decoder.constants.get(probeType & 0xff00, "UNKNOWN"); in getValidationStage()
111 static final SparseArray<String> constants = MessageUtils.findMessageNames( field in ValidationProbeEvent.Decoder
DIpReachabilityEvent.java95 String eventName = Decoder.constants.get(hi); in toString()
100 static final SparseArray<String> constants = field in IpReachabilityEvent.Decoder
DIpManagerEvent.java88 Decoder.constants.get(eventType), durationMs); in toString()
92 static final SparseArray<String> constants = MessageUtils.findMessageNames( field in IpManagerEvent.Decoder
DDhcpErrorEvent.java103 return String.format("DhcpErrorEvent(%s)", Decoder.constants.get(errorCode)); in toString()
107 static final SparseArray<String> constants = MessageUtils.findMessageNames( field in DhcpErrorEvent.Decoder
DNetworkEvent.java109 netId, Decoder.constants.get(eventType), durationMs); in toString()
113 static final SparseArray<String> constants = MessageUtils.findMessageNames( field in NetworkEvent.Decoder
DApfProgramEvent.java118 names.add(Decoder.constants.get(bit)); in namesOf()
124 static final SparseArray<String> constants = field in ApfProgramEvent.Decoder
/frameworks/rs/script_api/
DGenerateDocumentation.cpp286 static void writeSummaryTables(GeneratedFile* file, const map<string, Constant*>& constants, in writeSummaryTables() argument
291 for (auto e : constants) { in writeSummaryTables()
636 const auto& constants = specFile.getDocumentedConstants(); in writeDetailedDocumentationFile() local
640 writeSummaryTables(&file, constants, types, functions, NON_DEPRECATED_ONLY, false); in writeDetailedDocumentationFile()
641 writeSummaryTables(&file, constants, types, functions, DEPRECATED_ONLY, false); in writeDetailedDocumentationFile()
644 if (!constants.empty()) { in writeDetailedDocumentationFile()
646 for (auto i : constants) { in writeDetailedDocumentationFile()
/frameworks/native/libs/ui/
DAndroid.bp35 // We use four-character constants for the GraphicBuffer header, and don't care
37 "-Wno-four-char-constants",
/frameworks/support/v7/preference/
DAndroid.mk32 $(call all-java-files-under,constants) \
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDeviceAdminServiceController.java89 DevicePolicyConstants constants) { in DeviceAdminServiceController() argument
94 mConstants = constants; in DeviceAdminServiceController()
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dshared.rsh35 /* These constants must match those in UnitTest.java */
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
Dshared.rsh35 /* These constants must match those in UnitTest.java */
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
Dshared.rsh35 /* These constants must match those in UnitTest.java */
/frameworks/base/proto/src/
Dipconnectivity.proto23 // It is not intended to map one to one to the TRANSPORT_* constants defined in
74 // TRANSPORT_* constants as defined in NetworkCapabilities.
85 // The event type code of the probe, represented by constants defined in
99 // The type of network event, represented by NETWORK_* constants defined in
119 // The type of portal probe, represented by PROBE_* constants defined in
216 // The error code of a DHCP error, represented by constants defined in
330 // The code of the IP provisioning event, represented by constants defined in
364 // as a bit field of TRANSPORT_* constants as defined in NetworkCapabilities.
/frameworks/av/services/oboeservice/
DAAudioService.h77 enum constants { enum
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/span/
DLinkSpanTest.java34 @Config(constants = BuildConfig.class)
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DGlifStyleTest.java40 @Config(constants = BuildConfig.class, sdk = {Config.OLDEST_SDK, Config.NEWEST_SDK})

123