/frameworks/base/media/java/android/media/audiofx/ |
H A D | NoiseSuppressor.java | 64 NoiseSuppressor ns = null; 66 ns = new NoiseSuppressor(audioSession); 68 Log.w(TAG, "not implemented on this device "+ns); 74 return ns;
|
/frameworks/av/media/libnbaio/ |
H A D | MonoPipe.cpp | 153 uint32_t ns; local 159 ns = written * ( 500000000 / Format_sampleRate(mFormat)); 162 ns = written * ( 750000000 / Format_sampleRate(mFormat)); 165 ns = written * (1000000000 / Format_sampleRate(mFormat)); 168 ns = written * (1150000000 / Format_sampleRate(mFormat)); 171 ns = written * (1350000000 / Format_sampleRate(mFormat)); 174 ns = written * (1750000000 / Format_sampleRate(mFormat)); 177 ns = count * (1350000000 / Format_sampleRate(mFormat)); 179 if (ns > 999999999) { 180 ns [all...] |
/frameworks/av/media/libcpustats/ |
H A D | ThreadCpuUsage.cpp | 75 bool ThreadCpuUsage::sampleAndEnable(double& ns) argument 81 return sample(ns); 84 ns = (double) mAccumulator; 86 ALOGV("sampleAndEnable %.0f", ns); 90 ns = 0.0; 96 bool ThreadCpuUsage::sample(double &ns) argument 105 ns = 0.0; 116 ns = (double) mAccumulator; 117 ALOGV("sample %.0f", ns); 122 ns [all...] |
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/ |
H A D | StackOverflowXmlParser.java | 33 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/av/include/cpustats/ |
H A D | ThreadCpuUsage.h | 26 // 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/services/sensorservice/ |
H A D | RotationVectorSensor.h | 44 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 D | SensorInterface.cpp | 60 status_t HardwareSensor::setDelay(void* ident, int handle, int64_t ns) { argument 61 return mSensorDevice.setDelay(ident, handle, ns);
|
H A D | CorrectedGyroSensor.cpp | 64 status_t CorrectedGyroSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument 65 mSensorDevice.setDelay(ident, mGyro.getHandle(), ns); 66 return mSensorFusion.setDelay(ident, ns);
|
H A D | CorrectedGyroSensor.h | 44 virtual status_t setDelay(void* ident, int handle, int64_t ns);
|
H A D | GravitySensor.h | 44 virtual status_t setDelay(void* ident, int handle, int64_t ns);
|
H A D | LinearAccelerationSensor.h | 44 virtual status_t setDelay(void* ident, int handle, int64_t ns);
|
H A D | OrientationSensor.h | 43 virtual status_t setDelay(void* ident, int handle, int64_t ns);
|
H A D | RotationVectorSensor.cpp | 59 status_t RotationVectorSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument 60 return mSensorFusion.setDelay(ident, ns); 108 status_t GyroDriftSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument 109 return mSensorFusion.setDelay(ident, ns);
|
H A D | LinearAccelerationSensor.cpp | 57 status_t LinearAccelerationSensor::setDelay(void* ident, int handle, int64_t ns) { argument 58 return mGravitySensor.setDelay(ident, handle, ns);
|
H A D | SensorInterface.h | 40 virtual status_t setDelay(void* ident, int handle, int64_t ns) = 0; 78 virtual status_t setDelay(void* ident, int handle, int64_t ns);
|
H A D | GravitySensor.cpp | 73 status_t GravitySensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument 74 return mSensorFusion.setDelay(ident, ns);
|
H A D | OrientationSensor.cpp | 72 status_t OrientationSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument 73 return mSensorFusion.setDelay(ident, ns);
|
/frameworks/base/tools/aapt/ |
H A D | AaptXml.h | 37 android::String8 getAttribute(const android::ResXMLTree& tree, const char* ns, 53 int32_t getIntegerAttribute(const android::ResXMLTree& tree, const char* ns, 61 inline int32_t getIntegerAttribute(const android::ResXMLTree& tree, const char* ns, argument 63 return getIntegerAttribute(tree, ns, attr, -1, outError);
|
H A D | XMLNode.cpp | 237 const char16_t* ns = inXml->getElementNamespace(&nslen); local 238 if (ns == NULL) { 239 ns = (const char16_t*)"\0\0"; 242 const String8 nspace(String16(ns, nslen)); 294 const char16_t* ns = inXml->getElementNamespace(&nslen); local 295 if (ns == NULL) { 296 ns = (const char16_t*)"\0\0"; 299 const String8 nspace(String16(ns, nslen)); 425 const char16_t* ns) 428 if (ns ! 424 build_namespace(const Vector<namespace_entry>& namespaces, const char16_t* ns) argument 471 String8 ns = build_namespace(namespaces, ns16); local 504 namespace_entry ns; local 519 const namespace_entry& ns = namespaces.top(); local [all...] |
H A D | XMLNode.h | 48 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 D | ISensorEventConnection.h | 41 virtual status_t setEventRate(int handle, nsecs_t ns) = 0;
|
/frameworks/native/libs/gui/ |
H A D | ISensorEventConnection.cpp | 70 virtual status_t setEventRate(int handle, nsecs_t ns) argument 75 data.writeInt64(ns); 117 int ns = data.readInt64(); local 118 status_t result = setEventRate(handle, ns);
|
/frameworks/base/core/java/android/net/nsd/ |
H A D | NsdManager.java | 321 NsdServiceInfo ns = getNsdService(message.arg2); 329 ((DiscoveryListener) listener).onStartDiscoveryFailed(getNsdServiceInfoType(ns), 340 ((DiscoveryListener) listener).onStopDiscoveryFailed(getNsdServiceInfoType(ns), 345 ((DiscoveryListener) listener).onDiscoveryStopped(getNsdServiceInfoType(ns)); 349 ((RegistrationListener) listener).onRegistrationFailed(ns, message.arg1); 357 ((RegistrationListener) listener).onUnregistrationFailed(ns, message.arg1); 361 ((RegistrationListener) listener).onServiceUnregistered(ns); 365 ((ResolveListener) listener).onResolveFailed(ns, message.arg1);
|
/frameworks/base/core/jni/ |
H A D | android_util_XmlBlock.cpp | 259 jstring ns, jstring name) 269 if (ns) { 270 ns16 = env->GetStringChars(ns, NULL); 271 nsLen = env->GetStringLength(ns); 279 if (ns) { 280 env->ReleaseStringChars(ns, ns16); 257 android_content_XmlBlock_nativeGetAttributeIndex(JNIEnv* env, jobject clazz, jlong token, jstring ns, jstring name) argument
|
/frameworks/av/media/libmedia/ |
H A D | AudioRecord.cpp | 877 nsecs_t ns = NS_WHENEVER; local 881 ns = ((minFrames * 1000000000LL) / mSampleRate) + kFudgeNs; 886 return ns; 891 if (ns != NS_WHENEVER) { 892 timeout.tv_sec = ns / 1000000000LL; 893 timeout.tv_nsec = ns % 1000000000LL; 923 if (ns < 0 || myns < ns) { 924 ns = myns; 926 return ns; 1062 nsecs_t ns = mReceiver.processAudioBuffer(); local [all...] |