Searched refs:ns (Results 1 - 25 of 41) sorted by relevance

12

/frameworks/base/media/java/android/media/audiofx/
H A DNoiseSuppressor.java64 NoiseSuppressor ns = null;
66 ns = new NoiseSuppressor(audioSession);
68 Log.w(TAG, "not implemented on this device "+ns);
74 return ns;
/frameworks/native/services/sensorservice/
H A DSensorInterface.cpp53 status_t HardwareSensor::setDelay(void* ident, int handle, int64_t ns) { argument
54 return mSensorDevice.setDelay(ident, handle, ns);
H A DSensorDevice.cpp166 nsecs_t ns = info.selectDelay(); local
167 mSensorDevice->setDelay(mSensorDevice, handle, ns);
173 status_t SensorDevice::setDelay(void* ident, int handle, int64_t ns) argument
178 status_t err = info.setDelayForIdent(ident, ns);
180 ns = info.selectDelay();
181 return mSensorDevice->setDelay(mSensorDevice, handle, ns);
186 status_t SensorDevice::Info::setDelayForIdent(void* ident, int64_t ns) argument
190 ALOGE("Info::setDelayForIdent(ident=%p, ns=%lld) failed (%s)",
191 ident, ns, strerror(-index));
194 rates.editValueAt(index) = ns;
200 nsecs_t ns = rates.valueAt(0); local
[all...]
H A 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);
H A DSensorInterface.h40 virtual status_t setDelay(void* ident, int handle, int64_t ns) = 0;
61 virtual status_t setDelay(void* ident, int handle, int64_t ns);
H A DCorrectedGyroSensor.cpp64 status_t CorrectedGyroSensor::setDelay(void* ident, int handle, int64_t ns) { argument
65 mSensorDevice.setDelay(this, mGyro.getHandle(), ns);
66 return mSensorFusion.setDelay(this, ns);
H A DCorrectedGyroSensor.h44 virtual status_t setDelay(void* ident, int handle, int64_t ns);
H A DGravitySensor.h44 virtual status_t setDelay(void* ident, int handle, int64_t ns);
H A DLinearAccelerationSensor.h44 virtual status_t setDelay(void* ident, int handle, int64_t ns);
H A DOrientationSensor.h43 virtual status_t setDelay(void* ident, int handle, int64_t ns);
H A DRotationVectorSensor.cpp59 status_t RotationVectorSensor::setDelay(void* ident, int handle, int64_t ns) { argument
60 return mSensorFusion.setDelay(this, ns);
108 status_t GyroDriftSensor::setDelay(void* ident, int handle, int64_t ns) { argument
109 return mSensorFusion.setDelay(this, ns);
H A DLinearAccelerationSensor.cpp57 status_t LinearAccelerationSensor::setDelay(void* ident, int handle, int64_t ns) { argument
58 return mGravitySensor.setDelay(this, handle, ns);
H A DSensorDevice.h46 status_t setDelayForIdent(void* ident, int64_t ns);
57 status_t setDelay(void* ident, int handle, int64_t ns);
H A DGravitySensor.cpp73 status_t GravitySensor::setDelay(void* ident, int handle, int64_t ns) { argument
74 return mSensorFusion.setDelay(this, ns);
H A DOrientationSensor.cpp69 status_t OrientationSensor::setDelay(void* ident, int handle, int64_t ns) { argument
70 return mSensorFusion.setDelay(this, ns);
/frameworks/av/media/libnbaio/
H A DMonoPipe.cpp132 uint32_t ns; local
138 ns = written * ( 500000000 / Format_sampleRate(mFormat));
141 ns = written * ( 750000000 / Format_sampleRate(mFormat));
144 ns = written * (1000000000 / Format_sampleRate(mFormat));
147 ns = written * (1150000000 / Format_sampleRate(mFormat));
150 ns = written * (1350000000 / Format_sampleRate(mFormat));
153 ns = written * (1750000000 / Format_sampleRate(mFormat));
156 ns = count * (1350000000 / Format_sampleRate(mFormat));
158 if (ns > 999999999) {
159 ns
[all...]
/frameworks/native/libs/cpustats/
H A DThreadCpuUsage.cpp76 bool ThreadCpuUsage::sampleAndEnable(double& ns) argument
82 return sample(ns);
85 ns = (double) mAccumulator;
87 ALOGV("sampleAndEnable %.0f", ns);
91 ns = 0.0;
97 bool ThreadCpuUsage::sample(double &ns) argument
106 ns = 0.0;
117 ns = (double) mAccumulator;
118 ALOGV("sample %.0f", ns);
123 ns
[all...]
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
H A DStackOverflowXmlParser.java33 private static final String ns = null; field in class:StackOverflowXmlParser
52 parser.require(XmlPullParser.START_TAG, ns, "feed");
86 parser.require(XmlPullParser.START_TAG, ns, "entry");
110 parser.require(XmlPullParser.START_TAG, ns, "title");
112 parser.require(XmlPullParser.END_TAG, ns, "title");
119 parser.require(XmlPullParser.START_TAG, ns, "link");
128 parser.require(XmlPullParser.END_TAG, ns, "link");
134 parser.require(XmlPullParser.START_TAG, ns, "summary");
136 parser.require(XmlPullParser.END_TAG, ns, "summary");
/frameworks/native/include/cpustats/
H A DThreadCpuUsage.h26 // Units are in per-thread CPU ns, as reported by
79 // then adds a sample for tracked CPU ns since the previous
82 // now disabled, then adds a sample for the tracked CPU ns accumulated
86 // Returns true if the sample 'ns' is valid, or false if invalid.
87 // Note that 'ns' is an output parameter passed by reference.
90 bool sampleAndEnable(double& ns);
95 // and don't add sample. Otherwise, adds a sample for tracked CPU ns since
99 // Note that 'ns' is an output parameter passed by reference.
102 bool sample(double& ns);
104 // Return the elapsed delta wall clock ns sinc
[all...]
/frameworks/native/libs/gui/
H A DISensorEventConnection.cpp65 virtual status_t setEventRate(int handle, nsecs_t ns) argument
70 data.writeInt64(ns);
101 int ns = data.readInt64(); local
102 status_t result = setEventRate(handle, ns);
H A DSensorEventQueue.cpp129 status_t SensorEventQueue::setEventRate(Sensor const* sensor, nsecs_t ns) const {
130 return mSensorEventConnection->setEventRate(sensor->getHandle(), ns);
/frameworks/base/tools/aapt/
H A DXMLNode.cpp228 const uint16_t* ns = inXml->getElementNamespace(&nslen); local
229 if (ns == NULL) {
230 ns = (const uint16_t*)"\0\0";
233 const String8 nspace(String16(ns, nslen));
285 const uint16_t* ns = inXml->getElementNamespace(&nslen); local
286 if (ns == NULL) {
287 ns = (const uint16_t*)"\0\0";
290 const String8 nspace(String16(ns, nslen));
397 const uint16_t* ns)
400 if (ns !
396 build_namespace(const Vector<namespace_entry>& namespaces, const uint16_t* ns) argument
443 String8 ns = build_namespace(namespaces, ns16); local
476 namespace_entry ns; local
491 const namespace_entry& ns = namespaces.top(); local
[all...]
H A DXMLNode.h48 sp<XMLNode> newElement(const String8& filename, const String16& ns, const String16& name) { argument
49 return new XMLNode(filename, ns, name, false);
86 String16 ns; member in struct:XMLNode::attribute_entry
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/include/gui/
H A DISensorEventConnection.h40 virtual status_t setEventRate(int handle, nsecs_t ns) = 0;
/frameworks/base/core/jni/
H A Dandroid_util_XmlBlock.cpp256 jstring ns, jstring name)
266 if (ns) {
267 ns16 = env->GetStringChars(ns, NULL);
268 nsLen = env->GetStringLength(ns);
276 if (ns) {
277 env->ReleaseStringChars(ns, ns16);
254 android_content_XmlBlock_nativeGetAttributeIndex(JNIEnv* env, jobject clazz, jint token, jstring ns, jstring name) argument

Completed in 588 milliseconds

12