Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/av/media/libnbaio/
DMonoPipe.cpp132 uint32_t ns; in write() local
138 ns = written * ( 500000000 / Format_sampleRate(mFormat)); in write()
141 ns = written * ( 750000000 / Format_sampleRate(mFormat)); in write()
144 ns = written * (1000000000 / Format_sampleRate(mFormat)); in write()
147 ns = written * (1150000000 / Format_sampleRate(mFormat)); in write()
150 ns = written * (1350000000 / Format_sampleRate(mFormat)); in write()
153 ns = written * (1750000000 / Format_sampleRate(mFormat)); in write()
156 ns = count * (1350000000 / Format_sampleRate(mFormat)); in write()
158 if (ns > 999999999) { in write()
159 ns = 999999999; in write()
[all …]
/frameworks/native/services/sensorservice/
DSensorDevice.cpp175 nsecs_t ns = info.selectDelay(); in activate() local
176 mSensorDevice->setDelay(mSensorDevice, handle, ns); in activate()
182 status_t SensorDevice::setDelay(void* ident, int handle, int64_t ns) in setDelay() argument
187 status_t err = info.setDelayForIdent(ident, ns); in setDelay()
189 ns = info.selectDelay(); in setDelay()
190 return mSensorDevice->setDelay(mSensorDevice, handle, ns); in setDelay()
201 status_t SensorDevice::Info::setDelayForIdent(void* ident, int64_t ns) in setDelayForIdent() argument
206 ident, ns, strerror(-index)); in setDelayForIdent()
209 rates.editValueAt(index) = ns; in setDelayForIdent()
215 nsecs_t ns = rates.valueAt(0); in selectDelay() local
[all …]
DRotationVectorSensor.cpp59 status_t RotationVectorSensor::setDelay(void* ident, int handle, int64_t ns) { in setDelay() argument
60 return mSensorFusion.setDelay(this, ns); in setDelay()
108 status_t GyroDriftSensor::setDelay(void* ident, int handle, int64_t ns) { in setDelay() argument
109 return mSensorFusion.setDelay(this, ns); in setDelay()
DCorrectedGyroSensor.cpp64 status_t CorrectedGyroSensor::setDelay(void* ident, int handle, int64_t ns) { in setDelay() argument
65 mSensorDevice.setDelay(this, mGyro.getHandle(), ns); in setDelay()
66 return mSensorFusion.setDelay(this, ns); in setDelay()
DSensorInterface.cpp53 status_t HardwareSensor::setDelay(void* ident, int handle, int64_t ns) { in setDelay() argument
54 return mSensorDevice.setDelay(ident, handle, ns); in setDelay()
DRotationVectorSensor.h44 virtual status_t setDelay(void* ident, int handle, int64_t ns);
58 virtual status_t setDelay(void* ident, int handle, int64_t ns);
DSensorInterface.h40 virtual status_t setDelay(void* ident, int handle, int64_t ns) = 0;
66 virtual status_t setDelay(void* ident, int handle, int64_t ns);
DSensorDevice.h46 status_t setDelayForIdent(void* ident, int64_t ns);
58 status_t setDelay(void* ident, int handle, int64_t ns);
DLinearAccelerationSensor.cpp57 status_t LinearAccelerationSensor::setDelay(void* ident, int handle, int64_t ns) { in setDelay() argument
58 return mGravitySensor.setDelay(this, handle, ns); in setDelay()
DOrientationSensor.cpp69 status_t OrientationSensor::setDelay(void* ident, int handle, int64_t ns) { in setDelay() argument
70 return mSensorFusion.setDelay(this, ns); in setDelay()
DGravitySensor.cpp73 status_t GravitySensor::setDelay(void* ident, int handle, int64_t ns) { in setDelay() argument
74 return mSensorFusion.setDelay(this, ns); in setDelay()
DSensorService.cpp588 int handle, nsecs_t ns) in setEventRate() argument
597 if (ns < 0) in setEventRate()
601 if (ns < minDelayNs) { in setEventRate()
602 ns = minDelayNs; in setEventRate()
605 if (ns < MINIMUM_EVENTS_PERIOD) in setEventRate()
606 ns = MINIMUM_EVENTS_PERIOD; in setEventRate()
608 return sensor->setDelay(connection.get(), handle, ns); in setEventRate()
739 int handle, nsecs_t ns) in setEventRate() argument
741 return mService->setEventRate(this, handle, ns); in setEventRate()
DSensorService.h77 virtual status_t setEventRate(int handle, nsecs_t ns);
146 status_t setEventRate(const sp<SensorEventConnection>& connection, int handle, nsecs_t ns);
DOrientationSensor.h43 virtual status_t setDelay(void* ident, int handle, int64_t ns);
DSensorFusion.cpp109 status_t SensorFusion::setDelay(void* ident, int64_t ns) { in setDelay() argument
110 mSensorDevice.setDelay(ident, mAcc.getHandle(), ns); in setDelay()
/frameworks/native/libs/cpustats/
DThreadCpuUsage.cpp76 bool ThreadCpuUsage::sampleAndEnable(double& ns) in sampleAndEnable() argument
82 return sample(ns); in sampleAndEnable()
85 ns = (double) mAccumulator; in sampleAndEnable()
87 ALOGV("sampleAndEnable %.0f", ns); in sampleAndEnable()
91 ns = 0.0; in sampleAndEnable()
97 bool ThreadCpuUsage::sample(double &ns) in sample() argument
106 ns = 0.0; in sample()
117 ns = (double) mAccumulator; in sample()
118 ALOGV("sample %.0f", ns); in sample()
123 ns = 0.0; in sample()
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
DStackOverflowXmlParser.java33 private static final String ns = null; field in StackOverflowXmlParser
52 parser.require(XmlPullParser.START_TAG, ns, "feed"); in readFeed()
86 parser.require(XmlPullParser.START_TAG, ns, "entry"); in readEntry()
110 parser.require(XmlPullParser.START_TAG, ns, "title"); in readTitle()
112 parser.require(XmlPullParser.END_TAG, ns, "title"); in readTitle()
119 parser.require(XmlPullParser.START_TAG, ns, "link"); in readLink()
128 parser.require(XmlPullParser.END_TAG, ns, "link"); in readLink()
134 parser.require(XmlPullParser.START_TAG, ns, "summary"); in readSummary()
136 parser.require(XmlPullParser.END_TAG, ns, "summary"); in readSummary()
/frameworks/base/media/java/android/media/audiofx/
DNoiseSuppressor.java64 NoiseSuppressor ns = null; in create() local
66 ns = new NoiseSuppressor(audioSession); in create()
68 Log.w(TAG, "not implemented on this device "+ns); in create()
74 return ns; in create()
/frameworks/base/tools/aapt/
DXMLNode.cpp228 const uint16_t* ns = inXml->getElementNamespace(&nslen); in parseStyledString() local
229 if (ns == NULL) { in parseStyledString()
230 ns = (const uint16_t*)"\0\0"; in parseStyledString()
233 const String8 nspace(String16(ns, nslen)); in parseStyledString()
285 const uint16_t* ns = inXml->getElementNamespace(&nslen); in parseStyledString() local
286 if (ns == NULL) { in parseStyledString()
287 ns = (const uint16_t*)"\0\0"; in parseStyledString()
290 const String8 nspace(String16(ns, nslen)); in parseStyledString()
397 const uint16_t* ns) in build_namespace() argument
400 if (ns != NULL) { in build_namespace()
[all …]
DXMLNode.h48 sp<XMLNode> newElement(const String8& filename, const String16& ns, const String16& name) { in newElement() argument
49 return new XMLNode(filename, ns, name, false); in newElement()
86 String16 ns; member
97 const attribute_entry* getAttribute(const String16& ns, const String16& name) const;
99 attribute_entry* editAttribute(const String16& ns, const String16& name);
116 status_t addAttribute(const String16& ns, const String16& name,
/frameworks/native/libs/gui/
DISensorEventConnection.cpp65 virtual status_t setEventRate(int handle, nsecs_t ns) in setEventRate() argument
70 data.writeInt64(ns); in setEventRate()
101 int ns = data.readInt64(); in onTransact() local
102 status_t result = setEventRate(handle, ns); in onTransact()
DSensorEventQueue.cpp129 status_t SensorEventQueue::setEventRate(Sensor const* sensor, nsecs_t ns) const { in setEventRate()
130 return mSensorEventConnection->setEventRate(sensor->getHandle(), ns); in setEventRate()
/frameworks/native/include/cpustats/
DThreadCpuUsage.h90 bool sampleAndEnable(double& ns);
102 bool sample(double& ns);
/frameworks/base/core/jni/
Dandroid_util_XmlBlock.cpp256 jstring ns, jstring name) in android_content_XmlBlock_nativeGetAttributeIndex() argument
266 if (ns) { in android_content_XmlBlock_nativeGetAttributeIndex()
267 ns16 = env->GetStringChars(ns, NULL); in android_content_XmlBlock_nativeGetAttributeIndex()
268 nsLen = env->GetStringLength(ns); in android_content_XmlBlock_nativeGetAttributeIndex()
276 if (ns) { in android_content_XmlBlock_nativeGetAttributeIndex()
277 env->ReleaseStringChars(ns, ns16); in android_content_XmlBlock_nativeGetAttributeIndex()
/frameworks/base/tools/layoutlib/bridge/src/android/util/
DBridgeXmlPullAttributes.java58 String ns = mParser.getAttributeNamespace(index); in getAttributeNameResource() local
60 if (BridgeConstants.NS_RESOURCES.equals(ns)) { in getAttributeNameResource()
71 if (mContext.getProjectCallback().getNamespace().equals(ns)) { in getAttributeNameResource()

12