Home
last modified time | relevance | path

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

1234

/frameworks/native/libs/input/tests/
DVelocityTracker_test.cpp290 { 16071042ns, {{269.786346, 106.922775}} }, in TEST_F()
291 { 35648403ns, {{267.983063, 156.660034}} }, in TEST_F()
292 { 52313925ns, {{262.638397, 220.339081}} }, in TEST_F()
293 { 68976522ns, {{266.138824, 331.581116}} }, in TEST_F()
294 { 85639375ns, {{274.79245, 428.113159}} }, in TEST_F()
295 { 96948871ns, {{274.79245, 428.113159}} }, in TEST_F()
296 { 96948871ns, {{274.79245, 428.113159}} }, // ACTION_UP in TEST_F()
322 { 235089067457000ns, {{528.00, 983.00}} }, in TEST_F()
323 { 235089084684000ns, {{527.00, 981.00}} }, in TEST_F()
324 { 235089093349000ns, {{527.00, 977.00}} }, in TEST_F()
[all …]
/frameworks/rs/tests/java_api/Refocus/dataExtraction/
DN5.txt9 …9:27:06.465 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ Initialize: 7692709 ns
10 …209 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ UnpackInputImage: 744708645 ns
15 …7:07.387 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 4345677 ns
16 …com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 398907448 ns
17 ….xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 975083853 ns
18 …-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ FilterLayerBehindFocalDepth: 28282761 ns
19 …/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ updateSharpImageUsingFuzzyImage: 1041012239 ns
24 …7:10.008 20903-20903/com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ MarkLayerMask: 4137918 ns
25 …com.example.xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeLayerMatteBehindFocalDepth: 213465573 ns
26 ….xinyiwang.refocus D/RefocusFilterd1new﹕ ComputeIntegralImageForLayerBehindFocalDepth: 786876041 ns
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DTetheringInterfaceUtils.java38 public static @Nullable InterfaceSet getTetheringInterfaces(NetworkState ns) { in getTetheringInterfaces() argument
39 if (ns == null) { in getTetheringInterfaces()
43 final LinkProperties lp = ns.linkProperties; in getTetheringInterfaces()
45 final String if6 = getIPv6Interface(ns); in getTetheringInterfaces()
54 public static @Nullable String getIPv6Interface(NetworkState ns) { in getIPv6Interface() argument
70 (ns != null) && (ns.network != null) in getIPv6Interface()
71 && (ns.linkProperties != null) && (ns.networkCapabilities != null) in getIPv6Interface()
73 && ns.linkProperties.hasIpv6DnsServer() in getIPv6Interface()
75 && ns.linkProperties.hasGlobalIpv6Address() in getIPv6Interface()
77 && ns.networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR); in getIPv6Interface()
[all …]
DIPv6TetheringCoordinator.java116 public void updateUpstreamNetworkState(NetworkState ns) { in updateUpstreamNetworkState() argument
118 Log.d(TAG, "updateUpstreamNetworkState: " + toDebugString(ns)); in updateUpstreamNetworkState()
120 if (TetheringInterfaceUtils.getIPv6Interface(ns) == null) { in updateUpstreamNetworkState()
127 !ns.network.equals(mUpstreamNetworkState.network)) { in updateUpstreamNetworkState()
131 setUpstreamNetworkState(ns); in updateUpstreamNetworkState()
141 private void setUpstreamNetworkState(NetworkState ns) { in setUpstreamNetworkState() argument
142 if (ns == null) { in setUpstreamNetworkState()
148 new LinkProperties(ns.linkProperties), in setUpstreamNetworkState()
149 new NetworkCapabilities(ns.networkCapabilities), in setUpstreamNetworkState()
150 new Network(ns.network), in setUpstreamNetworkState()
[all …]
DUpstreamNetworkMonitor.java254 return typeStatePair.ns; in selectPreferredUpstreamType()
491 public NetworkState ns = null; field in UpstreamNetworkMonitor.TypeStatePair
520 result.ns = value; in findFirstAvailableUpstreamByType()
531 for (NetworkState ns : netStates) { in allLocalPrefixes()
532 final LinkProperties lp = ns.linkProperties; in allLocalPrefixes()
545 private static boolean isCellular(NetworkState ns) { in isCellular() argument
546 return (ns != null) && isCellular(ns.networkCapabilities); in isCellular()
554 private static boolean hasCapability(NetworkState ns, int netCap) { in hasCapability() argument
555 return (ns != null) && (ns.networkCapabilities != null) && in hasCapability()
556 ns.networkCapabilities.hasCapability(netCap); in hasCapability()
[all …]
/frameworks/av/media/libnbaio/
DMonoPipe.cpp91 uint32_t ns; in write() local
103 ns = written * ( 500000000 / Format_sampleRate(mFormat)); in write()
106 ns = written * ( 750000000 / Format_sampleRate(mFormat)); in write()
109 ns = written * (1000000000 / Format_sampleRate(mFormat)); in write()
112 ns = written * (1150000000 / Format_sampleRate(mFormat)); in write()
115 ns = written * (1350000000 / Format_sampleRate(mFormat)); in write()
118 ns = written * (1750000000 / Format_sampleRate(mFormat)); in write()
121 ns = count * (1350000000 / Format_sampleRate(mFormat)); in write()
123 if (ns > 999999999) { in write()
124 ns = 999999999; in write()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkAgentSpecifier.java125 public boolean satisfiesNetworkSpecifier(@NonNull WifiNetworkSpecifier ns) { in satisfiesNetworkSpecifier() argument
129 checkNotNull(ns); in satisfiesNetworkSpecifier()
130 checkNotNull(ns.ssidPatternMatcher); in satisfiesNetworkSpecifier()
131 checkNotNull(ns.bssidPatternMatcher); in satisfiesNetworkSpecifier()
132 checkNotNull(ns.wifiConfiguration.allowedKeyManagement); in satisfiesNetworkSpecifier()
140 if (!ns.ssidPatternMatcher.match(ssidWithoutQuotes)) { in satisfiesNetworkSpecifier()
144 final MacAddress matchBaseAddress = ns.bssidPatternMatcher.first; in satisfiesNetworkSpecifier()
145 final MacAddress matchMask = ns.bssidPatternMatcher.second; in satisfiesNetworkSpecifier()
149 if (!ns.wifiConfiguration.allowedKeyManagement.equals( in satisfiesNetworkSpecifier()
153 if (ns.requestorUid != this.mOriginalRequestorUid) { in satisfiesNetworkSpecifier()
[all …]
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dclock_ns.h28 int64_t ns = kNanosPerSecond * (int64_t)t.tv_sec + (int64_t)t.tv_nsec; in GetSystemClockNs() local
29 return ns; in GetSystemClockNs()
34 int64_t ns = kNanosPerSecond * (int64_t)t.tv_sec + (int64_t)t.tv_nsec; in GetSystemClockRawNs() local
35 return ns; in GetSystemClockRawNs()
48 static inline timespec NsToTimespec(int64_t ns) { in NsToTimespec() argument
52 t.tv_sec = ns / kNanosPerSecond; in NsToTimespec()
53 remainder = ns % kNanosPerSecond; in NsToTimespec()
/frameworks/av/media/libcpustats/
DThreadCpuUsage.cpp81 bool ThreadCpuUsage::sampleAndEnable(double& ns) in sampleAndEnable() argument
86 return sample(ns); in sampleAndEnable()
89 ns = (double) mAccumulator; in sampleAndEnable()
91 ALOGV("sampleAndEnable %.0f", ns); in sampleAndEnable()
95 ns = 0.0; in sampleAndEnable()
101 bool ThreadCpuUsage::sample(double &ns) in sample() argument
110 ns = 0.0; in sample()
121 ns = (double) mAccumulator; in sample()
122 ALOGV("sample %.0f", ns); in sample()
127 ns = 0.0; in sample()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java1196 void updateToSupportNewRequest(NetworkRequest ns) { in updateToSupportNewRequest() argument
1197 if (VDBG) Log.v(TAG, "updateToSupportNewRequest: ns=" + ns); in updateToSupportNewRequest()
1198 if (equivalentRequests.add(ns) && state == STATE_CONFIRMED) { in updateToSupportNewRequest()
1208 void removeSupportForRequest(NetworkRequest ns) { in removeSupportForRequest() argument
1209 if (VDBG) Log.v(TAG, "removeSupportForRequest: ns=" + ns); in removeSupportForRequest()
1210 equivalentRequests.remove(ns); in removeSupportForRequest()
1239 WifiAwareNetworkSpecifier ns, WifiAwareStateManager mgr, in processNetworkSpecifier() argument
1244 byte[] peerMac = ns.peerMac; in processNetworkSpecifier()
1247 Log.v(TAG, "processNetworkSpecifier: networkSpecifier=" + ns); in processNetworkSpecifier()
1251 if (ns.type < 0 in processNetworkSpecifier()
[all …]
/frameworks/base/tools/bit/
Daapt.cpp45 string ns; member
52 string ns; member
67 string GetAttr(const string& ns, const string& name) const;
68 void FindElements(const string& ns, const string& name, vector<Element*>* result, bool recurse);
85 Element::GetAttr(const string& ns, const string& name) const in GetAttr() argument
90 if (attr.ns == ns && attr.name == name) { in GetAttr()
98 Element::FindElements(const string& ns, const string& name, vector<Element*>* result, bool recurse) in FindElements() argument
103 if (child->ns == ns && child->name == name) { in FindElements()
107 child->FindElements(ns, name, result, recurse); in FindElements()
200 element->ns = scope->namespaces[string(str, 0, colon)]; in inspect_apk()
[all …]
/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/wifi/java/android/net/wifi/aware/
DWifiAwareAgentNetworkSpecifier.java54 public WifiAwareAgentNetworkSpecifier(WifiAwareNetworkSpecifier ns) { in WifiAwareAgentNetworkSpecifier() argument
56 mNetworkSpecifiers.add(convert(ns)); in WifiAwareAgentNetworkSpecifier()
61 for (WifiAwareNetworkSpecifier ns : nss) { in WifiAwareAgentNetworkSpecifier()
62 mNetworkSpecifiers.add(convert(ns)); in WifiAwareAgentNetworkSpecifier()
140 public boolean satisfiesAwareNetworkSpecifier(WifiAwareNetworkSpecifier ns) { in satisfiesAwareNetworkSpecifier() argument
141 if (VDBG) Log.v(TAG, "satisfiesAwareNetworkSpecifier: ns=" + ns); in satisfiesAwareNetworkSpecifier()
142 ByteArrayWrapper nsBytes = convert(ns); in satisfiesAwareNetworkSpecifier()
166 private ByteArrayWrapper convert(WifiAwareNetworkSpecifier ns) { in convert() argument
172 ns.writeToParcel(parcel, 0); in convert()
/frameworks/native/opengl/libs/EGL/
DLoader.cpp195 android_namespace_t* ns = android::GraphicsEnv::getInstance().getAngleNamespace(); in should_unload_system_driver() local
196 if (ns) { in should_unload_system_driver()
202 ns = android::GraphicsEnv::getInstance().getDriverNamespace(); in should_unload_system_driver()
203 if (ns) { in should_unload_system_driver()
529 static void* load_angle_from_namespace(const char* kind, android_namespace_t* ns) { in load_angle_from_namespace() argument
532 .library_namespace = ns, in load_angle_from_namespace()
549 static void* load_angle(const char* kind, android_namespace_t* ns, egl_connection_t* cnx) { in load_angle() argument
553 so = load_angle_from_namespace(kind, ns); in load_angle()
612 static void* load_updated_driver(const char* kind, android_namespace_t* ns) { in load_updated_driver() argument
616 .library_namespace = ns, in load_updated_driver()
[all …]
/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.cpp247 const char16_t* ns = inXml->getElementNamespace(&nslen); in parseStyledString() local
248 if (ns == NULL) { in parseStyledString()
249 ns = (const char16_t*)"\0\0"; in parseStyledString()
252 const String8 nspace(String16(ns, nslen)); in parseStyledString()
304 const char16_t* ns = inXml->getElementNamespace(&nslen); in parseStyledString() local
305 if (ns == NULL) { in parseStyledString()
306 ns = (const char16_t*)"\0\0"; in parseStyledString()
309 const String8 nspace(String16(ns, nslen)); in parseStyledString()
418 const char16_t* ns) in build_namespace() argument
421 if (ns != NULL) { in build_namespace()
[all …]
DXMLNode.h50 sp<XMLNode> newElement(const String8& filename, const String16& ns, const String16& name) { in newElement() argument
51 return new XMLNode(filename, ns, name, false); in newElement()
89 String16 ns; member
100 const attribute_entry* getAttribute(const String16& ns, const String16& name) const;
101 bool removeAttribute(const String16& ns, const String16& name);
103 attribute_entry* editAttribute(const String16& ns, const String16& name);
120 status_t addAttribute(const String16& ns, const String16& name,
DAaptXml.h37 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, in getIntegerAttribute() argument
63 return getIntegerAttribute(tree, ns, attr, -1, outError); in getIntegerAttribute()
/frameworks/av/services/audioflinger/
DTypedLogger.h106 #define LOG_OVERRUN(ns) do { NBLog::Writer *x = tlNBLogWriter; if (x != nullptr) \ argument
107 x->log<NBLog::EVENT_OVERRUN>(ns); } while (0)
118 #define LOG_UNDERRUN(ns) do { NBLog::Writer *x = tlNBLogWriter; if (x != nullptr) \ argument
119 x->log<NBLog::EVENT_UNDERRUN>(ns); } while (0)
127 #define LOG_WORK_TIME(ns) do { NBLog::Writer *x = tlNBLogWriter; if (x != nullptr) \ argument
128 x->log<NBLog::EVENT_WORK_TIME>(ns); } while (0)
/frameworks/av/media/libmedia/docs/
Dpaused.dot66 threadLoop_5 [label="ns = processAudioBuffer()"];
68 threadLoop_6 [label="case ns"];
74 threadLoop_6_default [label="if (ns < 0)"];
78 …hreadLoop_6_default_false [label="pauseInternal(ns) [wake()-able]\nmPausedInternal = true\nmPaused…
82 threadLoop_6_NS_WHENEVER [label="ns = 1s"];
/frameworks/base/core/java/android/net/nsd/
DNsdManager.java364 final NsdServiceInfo ns; in handleMessage() local
367 ns = mServiceMap.get(key); in handleMessage()
374 Log.d(TAG, "received " + nameOf(what) + " for key " + key + ", service " + ns); in handleMessage()
383 ((DiscoveryListener) listener).onStartDiscoveryFailed(getNsdServiceInfoType(ns), in handleMessage()
396 ((DiscoveryListener) listener).onStopDiscoveryFailed(getNsdServiceInfoType(ns), in handleMessage()
401 ((DiscoveryListener) listener).onDiscoveryStopped(getNsdServiceInfoType(ns)); in handleMessage()
405 ((RegistrationListener) listener).onRegistrationFailed(ns, message.arg1); in handleMessage()
413 ((RegistrationListener) listener).onUnregistrationFailed(ns, message.arg1); in handleMessage()
419 ((RegistrationListener) listener).onServiceUnregistered(ns); in handleMessage()
423 ((ResolveListener) listener).onResolveFailed(ns, message.arg1); in handleMessage()
/frameworks/base/tools/aapt2/xml/
DXmlDom.h100 Attribute* FindAttribute(const android::StringPiece& ns, const android::StringPiece& name);
101 const Attribute* FindAttribute(const android::StringPiece& ns,
103 Attribute* FindOrCreateAttribute(const android::StringPiece& ns,
105 void RemoveAttribute(const android::StringPiece& ns,
108 Element* FindChild(const android::StringPiece& ns, const android::StringPiece& name);
109 const Element* FindChild(const android::StringPiece& ns, const android::StringPiece& name) const;
111 Element* FindChildWithAttribute(const android::StringPiece& ns, const android::StringPiece& name,
116 const Element* FindChildWithAttribute(const android::StringPiece& ns,
DXmlDom.cpp415 Attribute* Element::FindAttribute(const StringPiece& ns, const StringPiece& name) { in FindAttribute() argument
416 return const_cast<Attribute*>(static_cast<const Element*>(this)->FindAttribute(ns, name)); in FindAttribute()
419 const Attribute* Element::FindAttribute(const StringPiece& ns, const StringPiece& name) const { in FindAttribute() argument
421 if (ns == attr.namespace_uri && name == attr.name) { in FindAttribute()
428 void Element::RemoveAttribute(const StringPiece& ns, const StringPiece& name) { in RemoveAttribute() argument
431 return ns == attr.namespace_uri && name == attr.name; in RemoveAttribute()
437 Attribute* Element::FindOrCreateAttribute(const StringPiece& ns, const StringPiece& name) { in FindOrCreateAttribute() argument
438 Attribute* attr = FindAttribute(ns, name); in FindOrCreateAttribute()
440 attributes.push_back(Attribute{ns.to_string(), name.to_string()}); in FindOrCreateAttribute()
446 Element* Element::FindChild(const StringPiece& ns, const StringPiece& name) { in FindChild() argument
[all …]
/frameworks/native/services/sensorservice/
DRotationVectorSensor.cpp69 status_t RotationVectorSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { in setDelay() argument
70 return mSensorFusion.setDelay(mMode, ident, ns); in setDelay()
154 status_t GyroDriftSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { in setDelay() argument
155 return mSensorFusion.setDelay(FUSION_9AXIS, ident, ns); in setDelay()
/frameworks/base/wifi/tests/src/android/net/wifi/aware/
DWifiAwareAgentNetworkSpecifierTest.java69 for (WifiAwareNetworkSpecifier ns : nsSet) { in testParcel()
70 assertTrue(dut.satisfiesAwareNetworkSpecifier(ns)); in testParcel()
71 assertTrue(rereadDut.satisfiesAwareNetworkSpecifier(ns)); in testParcel()
81 WifiAwareNetworkSpecifier ns = getDummyNetworkSpecifier(6); in testEmptyDoesntMatchAnything() local
82 collector.checkThat("No match expected", ns.satisfiedBy(dut), equalTo(false)); in testEmptyDoesntMatchAnything()

1234