auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private boolean canUnbindBluetoothService ( ) { synchronized ( mConnection ) { try { if ( ( mEnable ) || ( ( mBluetooth ) == null ) ) return false ; if ( mHandler.hasMessages ( com.android.server.BluetoothManagerService.MESSAGE_BLUETOOTH_STATE_CHANGE ) ) return false ; return ( mBluetooth.getState ( ) ) == ( android.bluetooth.BluetoothAdapter.STATE_OFF ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.BluetoothManagerService.TAG , "getState()" , e ) ; } } return false ; }

Target:
private boolean canUnbindBluetoothService ( ) { try { mBluetoothLock.readLock ( ) . lock ( ) ; if ( ( mEnable ) || ( ( mBluetooth ) == null ) ) return false ; if ( mHandler.hasMessages ( com.android.server.BluetoothManagerService.MESSAGE_BLUETOOTH_STATE_CHANGE ) ) return false ; return ( mBluetooth.getState ( ) ) == ( android.bluetooth.BluetoothAdapter.STATE_OFF ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.BluetoothManagerService.TAG , "getState()" , e ) ; } finally { mBluetoothLock.readLock ( ) . unlock ( ) ; } return false ; }
Source:
private static boolean hasResponseBody ( int requestMethod , int responseCode ) { return ( ( ( requestMethod != ( com.android.volley.Request.Method.HEAD ) ) && ( ! ( ( ( org.apache.http.HttpStatus.SC_CONTINUE ) <= responseCode ) && ( responseCode < ( org.apache.http.HttpStatus.SC_OK ) ) ) ) ) && ( responseCode != ( org.apache.http.HttpStatus.SC_NO_CONTENT ) ) ) && ( responseCode != ( org.apache.http.HttpStatus.SC_NOT_MODIFIED ) ) ; }

Target:
private static boolean hasResponseBody ( int requestMethod , int responseCode ) { return ( ( ( requestMethod != ( com.android.volley.Request.Method.HEAD ) ) && ( ! ( ( ( com.android.volley.toolbox.HurlStack.HTTP_CONTINUE ) <= responseCode ) && ( responseCode < ( java.net.HttpURLConnection.HTTP_OK ) ) ) ) ) && ( responseCode != ( java.net.HttpURLConnection.HTTP_NO_CONTENT ) ) ) && ( responseCode != ( java.net.HttpURLConnection.HTTP_NOT_MODIFIED ) ) ; }
Source:
public void assignIndices ( com.android.dx.dex.code.DalvCode.AssignIndicesCallback callback ) { for ( com.android.dx.dex.code.DalvInsn insn : insns ) { if ( insn instanceof com.android.dx.dex.code.CstInsn ) { com.android.dx.dex.code.OutputFinisher.assignIndices ( ( ( com.android.dx.dex.code.CstInsn ) ( insn ) ) , callback ) ; } } }

Target:
public void assignIndices ( com.android.dx.dex.code.DalvCode.AssignIndicesCallback callback ) { for ( com.android.dx.dex.code.DalvInsn insn : insns ) { if ( insn instanceof com.android.dx.dex.code.CstInsn ) { com.android.dx.dex.code.OutputFinisher.assignIndices ( ( ( com.android.dx.dex.code.CstInsn ) ( insn ) ) , callback ) ; } else if ( insn instanceof com.android.dx.dex.code.MultiCstInsn ) { com.android.dx.dex.code.OutputFinisher.assignIndices ( ( ( com.android.dx.dex.code.MultiCstInsn ) ( insn ) ) , callback ) ; } } }
Source:
private void cutDragSelection ( ) { java.util.List < com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode > selected = new java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode > ( ) ; for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection cs : mDragSelection ) { selected.add ( cs.getViewInfo ( ) . getUiViewKey ( ) ) ; } com.android.ide.eclipse.adt.internal.editors.ui.tree.CopyCutAction action = new com.android.ide.eclipse.adt.internal.editors.ui.tree.CopyCutAction ( mLayoutEditor , getClipboard ( ) , null , selected , true ) ; action.run ( ) ; }

Target:
public void run ( ) { for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection cs : selection ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi = cs.getViewInfo ( ) ; if ( vi != null ) { com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode ui = vi.getUiViewKey ( ) ; if ( ui != null ) { ui.deleteXmlNode ( ) ; } } } }
Source:
public void test_getByNameUnknownHostException ( ) { for ( int i = 0 ; i < 5 ; i ++ ) { try { java.net.InetAddress.getByName ( "unknown.unknown.bad" ) ; fail ( "An UnknownHostException should have been thrown" ) ; } catch ( java.net.UnknownHostException e ) { assertTrue ( e.getMessage ( ) . contains ( "unknown.unknown.bad" ) ) ; } } }

Target:
public void test_getByName_exceptionContainsUsefulMessage ( ) { try { java.net.InetAddress.getByName ( "1.2.3.4hello" ) ; fail ( ) ; } catch ( java.net.UnknownHostException e ) { assertTrue ( e.getMessage ( ) . contains ( "1.2.3.4hello" ) ) ; } }
Source:
protected void addInnerElements ( com.android.ide.common.api.INode newNode , com.android.ide.common.api.IDragElement oldElement , java.util.Map < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > idMap ) { for ( com.android.ide.common.api.IDragElement element : oldElement.getInnerElements ( ) ) { java.lang.String fqcn = element.getFqcn ( ) ; com.android.ide.common.api.INode childNode = newNode.appendChild ( fqcn ) ; addAttributes ( childNode , element , idMap , null ) ; addInnerElements ( childNode , element , idMap ) ; } }

Target:
protected static void addInnerElements ( com.android.ide.common.api.INode newNode , com.android.ide.common.api.IDragElement oldElement , java.util.Map < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > idMap ) { for ( com.android.ide.common.api.IDragElement element : oldElement.getInnerElements ( ) ) { java.lang.String fqcn = element.getFqcn ( ) ; com.android.ide.common.api.INode childNode = newNode.appendChild ( fqcn ) ; com.android.ide.common.layout.BaseLayoutRule.addAttributes ( childNode , element , idMap , null ) ; com.android.ide.common.layout.BaseLayoutRule.addInnerElements ( childNode , element , idMap ) ; } }
Source:
public android.content.ContentValues getConstraints ( java.lang.String path , int action ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) || ( ! ( DrmStore.Action.isValid ( action ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Given usage or path is invalid/null" ) ; } else if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _getConstraints ( mUniqueId , path , action ) ; }

Target:
public int openConvertSession ( java.lang.String mimeType ) { if ( ( null == mimeType ) || ( mimeType.equals ( "" ) ) ) { throw new java.lang.IllegalArgumentException ( "Path or the mimeType should be non null" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _openConvertSession ( mUniqueId , mimeType ) ; }
Source:
void setSelectionInt ( int position ) { setNextSelectedPositionInt ( position ) ; boolean awakeScrollbars = false ; final int selectedPosition = mSelectedPosition ; if ( selectedPosition >= 0 ) { if ( position == ( selectedPosition - 1 ) ) { awakeScrollbars = true ; } else if ( position == ( selectedPosition + 1 ) ) { awakeScrollbars = true ; } } layoutChildren ( ) ; if ( awakeScrollbars ) { awakenScrollBars ( ) ; } }

Target:
void setSelectionInt ( int position ) { setNextSelectedPositionInt ( position ) ; boolean awakeScrollbars = false ; final int selectedPosition = mSelectedPosition ; if ( selectedPosition >= 0 ) { if ( position == ( selectedPosition - 1 ) ) { awakeScrollbars = true ; } else if ( position == ( selectedPosition + 1 ) ) { awakeScrollbars = true ; } } if ( ( mPositionScroller ) != null ) { mPositionScroller.stop ( ) ; } layoutChildren ( ) ; if ( awakeScrollbars ) { awakenScrollBars ( ) ; } }
Source:
public void tesNoSplitDelegateLastNoSharedLibraries ( ) { android.content.pm.ApplicationInfo ai = createMockApplicationInfo ( com.android.server.pm.dex.DexoptUtilsTest.DELEGATE_LAST_CLASS_LOADER_NAME , false , false ) ; java.lang.String [ ] contexts = com.android.server.pm.dex.DexoptUtils.getClassLoaderContexts ( ai , null ) ; org.junit.Assert.assertEquals ( 1 , contexts.length ) ; org.junit.Assert.assertEquals ( "PCL[]" , contexts [ 0 ] ) ; }

Target:
public void tesNoSplitsNoSharedLibraries ( ) { com.android.server.pm.dex.DexoptUtilsTest.TestData data = createMockApplicationInfo ( com.android.server.pm.dex.DexoptUtilsTest.PATH_CLASS_LOADER_NAME , false , false ) ; java.lang.String [ ] contexts = com.android.server.pm.dex.DexoptUtils.getClassLoaderContexts ( data.info , null , data.pathsWithCode ) ; org.junit.Assert.assertEquals ( 1 , contexts.length ) ; org.junit.Assert.assertEquals ( "PCL[]" , contexts [ 0 ] ) ; }
Source:
public static void genRandomInts ( long seed , int max , int offset , int [ ] array ) { java.util.Random r = new java.util.Random ( seed ) ; for ( int i = 0 ; i < ( array.length ) ; i ++ ) { array [ i ] = ( r.nextInt ( max ) ) + offset ; } }

Target:
public static void genRandomInts ( long seed , int min , int max , int [ ] array ) { java.util.Random r = new java.util.Random ( seed ) ; for ( int i = 0 ; i < ( array.length ) ; i ++ ) { array [ i ] = min + ( r.nextInt ( ( ( max - min ) + 1 ) ) ) ; } }
Source:
public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel ( java.lang.String AID ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccOpenLogicalChannel ( AID ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return null ; }

Target:
public android.telephony.VisualVoicemailSmsFilterSettings getActiveVisualVoicemailSmsFilterSettings ( int subId ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getActiveVisualVoicemailSmsFilterSettings ( subId ) ; } } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return null ; }
Source:
protected void markProgramClassBody ( proguard.shrink.ProgramClass programClass ) { markConstant ( programClass , programClass.u2thisClass ) ; if ( ( programClass.u2superClass ) != 0 ) { markConstant ( programClass , programClass.u2superClass ) ; } programClass.hierarchyAccept ( false , false , true , false , interfaceUsageMarker ) ; programClass.methodAccept ( ClassConstants.INTERNAL_METHOD_NAME_CLINIT , ClassConstants.INTERNAL_METHOD_TYPE_CLINIT , nonEmptyMethodUsageMarker ) ; programClass.fieldsAccept ( possiblyUsedMemberUsageMarker ) ; programClass.methodsAccept ( possiblyUsedMemberUsageMarker ) ; programClass.attributesAccept ( this ) ; }

Target:
protected void markProgramClassBody ( proguard.shrink.ProgramClass programClass ) { markConstant ( programClass , programClass.u2thisClass ) ; if ( ( programClass.u2superClass ) != 0 ) { markConstant ( programClass , programClass.u2superClass ) ; } programClass.hierarchyAccept ( false , false , true , false , interfaceUsageMarker ) ; programClass.methodAccept ( ClassConstants.METHOD_NAME_CLINIT , ClassConstants.METHOD_TYPE_CLINIT , nonEmptyMethodUsageMarker ) ; programClass.fieldsAccept ( possiblyUsedMemberUsageMarker ) ; programClass.methodsAccept ( possiblyUsedMemberUsageMarker ) ; programClass.attributesAccept ( this ) ; }
Source:
com.android.server.am.ServiceRecord getServiceByName ( android.content.ComponentName name ) { return getServiceByName ( name , ( - 1 ) ) ; }

Target:
android.content.ComponentName startServiceInPackage ( int uid , android.content.Intent service , java.lang.String resolvedType , int userId ) { synchronized ( this ) { if ( com.android.server.am.ActivityManagerService.DEBUG_SERVICE ) android.util.Slog.v ( com.android.server.am.ActivityManagerService.TAG , ( ( ( "startServiceInPackage: " + service ) + " type=" ) + resolvedType ) ) ; final long origId = android.os.Binder.clearCallingIdentity ( ) ; android.content.ComponentName res = mServices.startServiceLocked ( null , service , resolvedType , ( - 1 ) , uid , userId ) ; android.os.Binder.restoreCallingIdentity ( origId ) ; return res ; } }
Source:
public void test_setNamespaceAwareZ ( ) throws java.lang.Exception { tests.api.javax.xml.parsers.SAXParserFactoryTest.MyHandler mh = new tests.api.javax.xml.parsers.SAXParserFactoryTest.MyHandler ( ) ; spf.setNamespaceAware ( true ) ; java.io.InputStream is = getClass ( ) . getResourceAsStream ( "/simple_ns.xml" ) ; spf.newSAXParser ( ) . parse ( is , mh ) ; is.close ( ) ; spf.setNamespaceAware ( false ) ; is = getClass ( ) . getResourceAsStream ( "/simple_ns.xml" ) ; spf.newSAXParser ( ) . parse ( is , mh ) ; is.close ( ) ; }

Target:
public void test_setNamespaceAwareZ ( ) throws java.lang.Exception { org.apache.harmony.tests.javax.xml.parsers.SAXParserFactoryTest.MyHandler mh = new org.apache.harmony.tests.javax.xml.parsers.SAXParserFactoryTest.MyHandler ( ) ; spf.setNamespaceAware ( true ) ; java.io.InputStream is = getClass ( ) . getResourceAsStream ( "/simple_ns.xml" ) ; spf.newSAXParser ( ) . parse ( is , mh ) ; is.close ( ) ; spf.setNamespaceAware ( false ) ; is = getClass ( ) . getResourceAsStream ( "/simple_ns.xml" ) ; spf.newSAXParser ( ) . parse ( is , mh ) ; is.close ( ) ; }
Source:
public void testConstructor1 ( ) { try { new java.util.concurrent.ConcurrentHashMap ( ( - 1 ) , 0 , 1 ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalArgumentException success ) { } }

Target:
public void testConstructor2 ( ) { try { new java.util.concurrent.ConcurrentHashMap ( ( - 1 ) , 0.75F ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalArgumentException success ) { } try { new java.util.concurrent.ConcurrentHashMap ( 16 , ( - 1 ) ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalArgumentException success ) { } }
Source:
public static com.android.manifmerger.XmlDocument load ( com.android.manifmerger.KeyResolver < java.lang.String > selectors , com.android.manifmerger.PlaceholderHandler.KeyBasedValueResolver < com.android.manifmerger.ManifestMerger2.SystemProperty > systemPropertyResolver , java.lang.String displayName , java.io.File xmlFile ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.io.InputStream inputStream = new java.io.BufferedInputStream ( new java.io.FileInputStream ( xmlFile ) ) ; com.android.utils.PositionXmlParser positionXmlParser = new com.android.utils.PositionXmlParser ( ) ; org.w3c.dom.Document domDocument = positionXmlParser.parse ( inputStream ) ; return domDocument != null ? new com.android.manifmerger.XmlDocument ( positionXmlParser , new com.android.manifmerger.XmlLoader.FileSourceLocation ( displayName , xmlFile ) , selectors , systemPropertyResolver , domDocument.getDocumentElement ( ) ) : null ; }

Target:
public static com.android.manifmerger.XmlDocument load ( com.android.manifmerger.KeyResolver < java.lang.String > selectors , com.android.manifmerger.PlaceholderHandler.KeyBasedValueResolver < com.android.manifmerger.ManifestMerger2.SystemProperty > systemPropertyResolver , java.lang.String displayName , java.io.File xmlFile , com.android.manifmerger.XmlDocument.Type type ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.io.InputStream inputStream = new java.io.BufferedInputStream ( new java.io.FileInputStream ( xmlFile ) ) ; com.android.utils.PositionXmlParser positionXmlParser = new com.android.utils.PositionXmlParser ( ) ; org.w3c.dom.Document domDocument = positionXmlParser.parse ( inputStream ) ; return domDocument != null ? new com.android.manifmerger.XmlDocument ( positionXmlParser , new com.android.manifmerger.XmlLoader.FileSourceLocation ( displayName , xmlFile ) , selectors , systemPropertyResolver , domDocument.getDocumentElement ( ) , type ) : null ; }
Source:
public android.net.NetworkRequest createFromParcel ( android.os.Parcel in ) { android.net.NetworkCapabilities nc = ( ( android.net.NetworkCapabilities ) ( in.readParcelable ( null ) ) ) ; int legacyType = in.readInt ( ) ; int requestId = in.readInt ( ) ; android.net.NetworkRequest.Type type = android.net.NetworkRequest.Type.valueOf ( in.readString ( ) ) ; android.net.NetworkRequest result = new android.net.NetworkRequest ( nc , legacyType , requestId , type ) ; return result ; }

Target:
public android.net.NetworkRequest createFromParcel ( android.os.Parcel in ) { android.net.NetworkCapabilities nc = NetworkCapabilities.CREATOR.createFromParcel ( in ) ; int legacyType = in.readInt ( ) ; int requestId = in.readInt ( ) ; android.net.NetworkRequest.Type type = android.net.NetworkRequest.Type.valueOf ( in.readString ( ) ) ; android.net.NetworkRequest result = new android.net.NetworkRequest ( nc , legacyType , requestId , type ) ; return result ; }
Source:
protected void setEnabledProtocols ( java.lang.String [ ] protocols ) { enabledProtocols = org.conscrypt.NativeCrypto.checkEnabledProtocols ( protocols ) . clone ( ) ; }

Target:
protected void setEnabledProtocols ( java.lang.String [ ] protocols ) { if ( protocols == null ) { throw new java.lang.IllegalArgumentException ( "protocols == null" ) ; } java.lang.String [ ] filteredProtocols = org.conscrypt.SSLParametersImpl.filterFomProtocols ( protocols , NativeCrypto.OBSOLETE_PROTOCOL_SSLV3 ) ; isEnabledProtocolsFiltered = ( protocols.length ) != ( filteredProtocols.length ) ; enabledProtocols = org.conscrypt.NativeCrypto.checkEnabledProtocols ( filteredProtocols ) . clone ( ) ; }
Source:
private boolean validateNonNegativeInt ( java.lang.String name , int value ) { boolean retVal ; if ( value < 0 ) { android.util.Log.e ( com.android.internal.telephony.RetryManager.LOG_TAG , ( name + " bad value: is < 0" ) ) ; retVal = false ; } else { retVal = true ; } if ( com.android.internal.telephony.RetryManager.VDBG ) log ( ( ( ( ( ( "validateNonNegative: " + name ) + ", " ) + value ) + ", " ) + retVal ) ) ; return retVal ; }

Target:
private boolean validateNonNegativeInt ( java.lang.String name , int value ) { boolean retVal ; if ( value < 0 ) { android.telephony.Rlog.e ( com.android.internal.telephony.RetryManager.LOG_TAG , ( name + " bad value: is < 0" ) ) ; retVal = false ; } else { retVal = true ; } if ( com.android.internal.telephony.RetryManager.VDBG ) log ( ( ( ( ( ( "validateNonNegative: " + name ) + ", " ) + value ) + ", " ) + retVal ) ) ; return retVal ; }
Source:
protected void onAllRecordsLoaded ( ) { if ( com.android.internal.telephony.uicc.RuimRecords.DBG ) log ( "record load complete" ) ; java.lang.String operator = getRUIMOperatorNumeric ( ) ; log ( ( ( "RuimRecords: onAllRecordsLoaded set 'gsm.sim.operator.numeric' to operator='" + operator ) + "'" ) ) ; android.os.SystemProperties.set ( com.android.internal.telephony.TelephonyProperties.PROPERTY_ICC_OPERATOR_NUMERIC , operator ) ; if ( ( mImsi ) != null ) { android.os.SystemProperties.set ( com.android.internal.telephony.TelephonyProperties.PROPERTY_ICC_OPERATOR_ISO_COUNTRY , com.android.internal.telephony.MccTable.countryCodeForMcc ( java.lang.Integer.parseInt ( mImsi.substring ( 0 , 3 ) ) ) ) ; } setLocaleFromCsim ( ) ; recordsLoadedRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , null , null ) ) ; }

Target:
protected void onRecordLoaded ( ) { mRecordsToLoad -= 1 ; if ( DBG ) log ( ( ( ( "onRecordLoaded " + ( mRecordsToLoad ) ) + " requested: " ) + ( mRecordsRequested ) ) ) ; if ( ( ( mRecordsToLoad ) == 0 ) && ( ( mRecordsRequested ) == true ) ) { onAllRecordsLoaded ( ) ; } else if ( ( mRecordsToLoad ) < 0 ) { loge ( "recordsToLoad <0, programmer error suspected" ) ; mRecordsToLoad = 0 ; } }
Source:
static java.lang.String printXmlString ( @ com.android.annotations.NonNull org.w3c.dom.Document doc , @ com.android.annotations.NonNull com.android.manifmerger.IMergerLog log ) { try { javax.xml.transform.Transformer tf = javax.xml.transform.TransformerFactory.newInstance ( ) . newTransformer ( ) ; tf.setOutputProperty ( javax.xml.transform.OutputKeys.OMIT_XML_DECLARATION , "yes" ) ; tf.setOutputProperty ( javax.xml.transform.OutputKeys.ENCODING , "UTF-8" ) ; tf.setOutputProperty ( javax.xml.transform.OutputKeys.INDENT , "yes" ) ; tf.setOutputProperty ( "{http://xml.apache.org/xslt}indent-amount" , "4" ) ; java.io.StringWriter sw = new java.io.StringWriter ( ) ; tf.transform ( new javax.xml.transform.dom.DOMSource ( doc ) , new javax.xml.transform.stream.StreamResult ( sw ) ) ; return sw.toString ( ) ; } catch ( javax.xml.transform.TransformerException e ) { log.error ( Severity.ERROR , new com.android.manifmerger.IMergerLog.FileAndLine ( com.android.manifmerger.XmlUtils.extractXmlFilename ( doc ) , 0 ) , "Failed to write XML file: %1$s" , e.toString ( ) ) ; return null ; } }

Target:
static java.lang.String printXmlString ( @ com.android.annotations.NonNull org.w3c.dom.Document doc , @ com.android.annotations.NonNull com.android.manifmerger.IMergerLog log ) { try { javax.xml.transform.Transformer tf = javax.xml.transform.TransformerFactory.newInstance ( ) . newTransformer ( ) ; tf.setOutputProperty ( javax.xml.transform.OutputKeys.OMIT_XML_DECLARATION , "yes" ) ; tf.setOutputProperty ( javax.xml.transform.OutputKeys.ENCODING , "UTF-8" ) ; tf.setOutputProperty ( javax.xml.transform.OutputKeys.INDENT , "yes" ) ; tf.setOutputProperty ( "{http://xml.apache.org/xslt}indent-amount" , "4" ) ; java.io.StringWriter sw = new java.io.StringWriter ( ) ; tf.transform ( new javax.xml.transform.dom.DOMSource ( doc ) , new javax.xml.transform.stream.StreamResult ( sw ) ) ; return sw.toString ( ) ; } catch ( javax.xml.transform.TransformerException e ) { log.error ( Severity.ERROR , new com.android.manifmerger.IMergerLog.FileAndLine ( com.android.manifmerger.MergerXmlUtils.extractXmlFilename ( doc ) , 0 ) , "Failed to write XML file: %1$s" , e.toString ( ) ) ; return null ; } }
Source:
public void testEvaluateNetworks_untrustedNetworksAllowed_onlyDeletedEphemeral ( ) { org.mockito.Mockito.when ( mWifiConfigManager.wasEphemeralNetworkDeleted ( com.android.server.wifi.util.ScanResultUtil.createQuotedSSID ( mUntrustedScanDetail.getScanResult ( ) . SSID ) ) ) . thenReturn ( true ) ; android.net.wifi.WifiConfiguration result = mRecommendedNetworkEvaluator.evaluateNetworks ( com.google.android.collect.Lists.newArrayList ( mUntrustedScanDetail ) , null , null , false , true , null ) ; junit.framework.Assert.assertNull ( result ) ; org.mockito.Mockito.verifyZeroInteractions ( mNetworkScoreManager ) ; }

Target:
public void testEvaluateNetworks_onlyTrustedNetworksAllowed_noTrustedInScanList ( ) { android.net.wifi.WifiConfiguration result = mRecommendedNetworkEvaluator.evaluateNetworks ( com.google.android.collect.Lists.newArrayList ( mUntrustedScanDetail ) , null , null , false , false , null ) ; junit.framework.Assert.assertNull ( result ) ; verifyZeroInteractions ( mNetworkScoreManager ) ; }
Source:
public boolean enableNetwork ( int netId ) { if ( com.android.server.wifi.WifiNative.DBG ) logDbg ( ( "enableNetwork nid=" + ( java.lang.Integer.toString ( netId ) ) ) ) ; return doBooleanCommand ( ( "ENABLE_NETWORK " + netId ) ) ; }

Target:
void enableVerboseLogging ( int verbose ) { if ( verbose > 0 ) { com.android.server.wifi.WifiNative.DBG = true ; } else { com.android.server.wifi.WifiNative.DBG = false ; } if ( ( mWificondControl ) != null ) { mWificondControl.enableVerboseLogging ( ( verbose > 0 ? true : false ) ) ; } if ( ( mSupplicantStaIfaceHal ) != null ) { mSupplicantStaIfaceHal.enableVerboseLogging ( ( verbose > 0 ) ) ; } }
Source:
protected void maybeExitFullscreen ( com.android.incallui.call.DialerCall call ) { if ( call == null ) { return ; } if ( ( ! ( com.android.incallui.VideoCallPresenter.isVideoCall ( call ) ) ) || ( ( call.getState ( ) ) == ( com.android.incallui.call.DialerCall.State.INCOMING ) ) ) { com.android.dialer.common.LogUtil.i ( "VideoCallPresenter.maybeExitFullscreen" , "exiting fullscreen" ) ; com.android.incallui.InCallPresenter.getInstance ( ) . setFullScreen ( false ) ; } }

Target:
protected void maybeExitFullscreen ( com.android.incallui.call.DialerCall call ) { if ( call == null ) { return ; } if ( ( ! ( com.android.incallui.VideoCallPresenter.isVideoCall ( call ) ) ) || ( ( call.getState ( ) ) == ( com.android.incallui.call.state.DialerCallState.INCOMING ) ) ) { com.android.dialer.common.LogUtil.i ( "VideoCallPresenter.maybeExitFullscreen" , "exiting fullscreen" ) ; com.android.incallui.InCallPresenter.getInstance ( ) . setFullScreen ( false ) ; } }
Source:
protected byte [ ] engineDoFinal ( ) { ensureKeystoreOperationInitialized ( ) ; byte [ ] result ; try { result = mChunkedStreamer.doFinal ( null , 0 , 0 ) ; } catch ( android.security.KeymasterException e ) { throw android.security.KeymasterUtils.getCryptoOperationException ( e ) ; } engineReset ( ) ; return result ; }

Target:
protected byte [ ] engineDoFinal ( ) { ensureKeystoreOperationInitialized ( ) ; byte [ ] result ; try { result = mChunkedStreamer.doFinal ( null , 0 , 0 ) ; } catch ( android.security.KeyStoreException e ) { throw android.security.KeyStore.getCryptoOperationException ( e ) ; } engineReset ( ) ; return result ; }
Source:
private void sendShutdownMessage ( ) { if ( mRemoveTimeoutMsg ) { android.content.Intent timeoutIntent = new android.content.Intent ( com.android.bluetooth.map.BluetoothMapService.USER_CONFIRM_TIMEOUT_ACTION ) ; sendBroadcast ( timeoutIntent , com.android.bluetooth.map.BluetoothMapService.BLUETOOTH_PERM ) ; mIsWaitingAuthorization = false ; cancelUserTimeoutAlarm ( ) ; } mSessionStatusHandler.removeCallbacksAndMessages ( null ) ; mSessionStatusHandler.obtainMessage ( com.android.bluetooth.map.BluetoothMapService.SHUTDOWN ) . sendToTarget ( ) ; }

Target:
public void sendStartListenerMessage ( int masId ) { if ( ( ( mSessionStatusHandler ) != null ) && ( ! ( mSessionStatusHandler.hasMessages ( com.android.bluetooth.map.BluetoothMapService.START_LISTENER ) ) ) ) { android.os.Message msg = mSessionStatusHandler.obtainMessage ( com.android.bluetooth.map.BluetoothMapService.START_LISTENER , masId , 0 ) ; mSessionStatusHandler.sendMessageDelayed ( msg , 20 ) ; } else if ( ( mSessionStatusHandler ) != null ) { if ( com.android.bluetooth.map.BluetoothMapService.DEBUG ) android.util.Log.w ( com.android.bluetooth.map.BluetoothMapService.TAG , "mSessionStatusHandler START_LISTENER message already in Queue" ) ; } }
Source:
public void run ( ) { mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; }

Target:
public void run ( ) { for ( int i = 0 ; i < 10 ; i ++ ) { android.util.Log.d ( com.android.statusbartest.NotificationTestList.TAG , "Add two notifications" ) ; mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; mNM.notify ( 2 , notificationWithNumbers ( 2 ) ) ; android.util.Log.d ( com.android.statusbartest.NotificationTestList.TAG , "Cancel two notifications" ) ; mNM.cancel ( 1 ) ; mNM.cancel ( 2 ) ; } }
Source:
public int getVersionCode ( @ com.android.annotations.NonNull java.io.File manifestFile ) { try { java.lang.String value = com.android.builder.core.DefaultManifestParser.getStringValue ( manifestFile , "/manifest/@android:versionCode" ) ; if ( value != null ) { return java.lang.Integer.valueOf ( value ) ; } } catch ( java.lang.NumberFormatException ignored ) { } return - 1 ; }

Target:
public java.lang.Object getTargetSdkVersion ( @ com.android.annotations.NonNull java.io.File manifestFile ) { if ( ( mTargetSdkVersion ) == null ) { try { mTargetSdkVersion = com.google.common.base.Optional.fromNullable ( com.android.xml.AndroidManifest.getTargetSdkVersion ( new com.android.io.FileWrapper ( manifestFile ) ) ) ; } catch ( javax.xml.xpath.XPathExpressionException e ) { return new java.lang.RuntimeException ( e ) ; } catch ( com.android.io.StreamException e ) { throw new java.lang.RuntimeException ( e ) ; } } return mTargetSdkVersion.or ( ( - 1 ) ) ; }
Source:
public void waitFor ( com.google.common.util.concurrent.Monitor.Guard guard ) throws java.lang.InterruptedException { if ( ( guard.monitor ) != ( this ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } if ( ! ( lock.isHeldByCurrentThread ( ) ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } waitInterruptibly ( guard , true ) ; }

Target:
public void waitFor ( com.google.common.util.concurrent.Monitor.Guard guard ) throws java.lang.InterruptedException { if ( ! ( ( ( guard.monitor ) == ( this ) ) & ( lock.isHeldByCurrentThread ( ) ) ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } if ( ! ( guard.isSatisfied ( ) ) ) { await ( guard , true ) ; } }
Source:
public void testCorruptOverrideFile ( ) throws java.lang.Exception { libcore.util.ZoneInfoDB.TzData data = new libcore.util.ZoneInfoDB.TzData ( libcore.util.ZoneInfoDBTest.TZDATA_IN_ROOT ) ; java.lang.String corruptFilePath = libcore.util.ZoneInfoDBTest.makeCorruptFile ( ) . getPath ( ) ; libcore.util.ZoneInfoDB.TzData dataWithCorruptOverride = new libcore.util.ZoneInfoDB.TzData ( corruptFilePath , libcore.util.ZoneInfoDBTest.TZDATA_IN_ROOT ) ; assertEquals ( data.getVersion ( ) , dataWithCorruptOverride.getVersion ( ) ) ; assertEquals ( data.getAvailableIDs ( ) . length , dataWithCorruptOverride.getAvailableIDs ( ) . length ) ; }

Target:
public void testLoadTzDataWithFallback_corruptOverrideFile ( ) throws java.lang.Exception { libcore.util.ZoneInfoDB.TzData data = ZoneInfoDB.TzData.loadTzData ( libcore.util.ZoneInfoDBTest.TZDATA_IN_ROOT ) ; java.lang.String corruptFilePath = libcore.util.ZoneInfoDBTest.makeCorruptFile ( ) . getPath ( ) ; libcore.util.ZoneInfoDB.TzData dataWithCorruptOverride = ZoneInfoDB.TzData.loadTzDataWithFallback ( corruptFilePath , libcore.util.ZoneInfoDBTest.TZDATA_IN_ROOT ) ; assertEquals ( data.getVersion ( ) , dataWithCorruptOverride.getVersion ( ) ) ; assertEquals ( data.getAvailableIDs ( ) . length , dataWithCorruptOverride.getAvailableIDs ( ) . length ) ; }
Source:
public void error ( java.lang.String tag , java.lang.String message , java.lang.Throwable throwable , java.lang.Object data ) { java.lang.String description = describe ( message ) ; com.android.ide.eclipse.adt.AdtPlugin.log ( throwable , "%1$s: %2$s" , mName , description ) ; if ( throwable != null ) { mHaveExceptions = true ; } addError ( tag , description ) ; }

Target:
public void error ( java.lang.String tag , java.lang.String message , java.lang.Throwable throwable , java.lang.Object data ) { java.lang.String description = describe ( message ) ; com.android.ide.eclipse.adt.AdtPlugin.log ( throwable , "%1$s: %2$s" , mName , description ) ; if ( throwable != null ) { if ( throwable instanceof java.lang.ClassNotFoundException ) { return ; } mHaveExceptions = true ; } addError ( tag , description ) ; }
Source:
private static java.lang.String wpaCipherToString ( int cipher ) { switch ( cipher ) { case com.android.server.wifi.util.InformationElementUtil.Capabilities.WPA_CIPHER_NONE : return "NONE" ; case com.android.server.wifi.util.InformationElementUtil.Capabilities.WPA_CIPHER_TKIP : return "TKIP" ; case com.android.server.wifi.util.InformationElementUtil.Capabilities.WPA_CIPHER_CCMP : return "CCMP" ; default : return "?" ; } }

Target:
private static int parseWpaCipher ( int cipher ) { switch ( cipher ) { case com.android.server.wifi.util.InformationElementUtil.Capabilities.WPA_CIPHER_NONE : return android.net.wifi.ScanResult.CIPHER_NONE ; case com.android.server.wifi.util.InformationElementUtil.Capabilities.WPA_CIPHER_TKIP : return android.net.wifi.ScanResult.CIPHER_TKIP ; case com.android.server.wifi.util.InformationElementUtil.Capabilities.WPA_CIPHER_CCMP : return android.net.wifi.ScanResult.CIPHER_CCMP ; default : android.util.Log.w ( "IE_Capabilities" , ( "Unknown WPA cipher suite: " + ( java.lang.Integer.toHexString ( cipher ) ) ) ) ; return android.net.wifi.ScanResult.CIPHER_NONE ; } }
Source:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedField field , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.FieldInfo f = findField ( field ) ; if ( f == null ) { return null ; } if ( ( f.annotations ) != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : f.annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }

Target:
public java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > getAnnotations ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedField field ) { com.android.tools.lint.ExternalAnnotationRepository.FieldInfo f = findField ( field ) ; if ( f == null ) { return null ; } return f.getAnnotations ( ) ; }
Source:
public void run ( ) { final org.eclipse.swt.graphics.Image image = com.android.hierarchyviewerlib.device.DeviceBridge.loadCapture ( viewNode.window , viewNode ) ; if ( image != null ) { viewNode.image = image ; com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . notifySelectionChanged ( ) ; org.eclipse.swt.widgets.Display.getDefault ( ) . asyncExec ( new java.lang.Runnable ( ) { public void run ( ) { com.android.hierarchyviewerlib.ui.CaptureDisplay.show ( shell , viewNode , image ) ; } } ) ; } }

Target:
public org.eclipse.swt.graphics.Image loadCapture ( com.android.hierarchyviewerlib.device.ViewNode viewNode ) { final org.eclipse.swt.graphics.Image image = com.android.hierarchyviewerlib.device.DeviceBridge.loadCapture ( viewNode.window , viewNode ) ; if ( image != null ) { viewNode.image = image ; com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . notifySelectionChanged ( ) ; } return image ; }
Source:
public static android.net.Uri getContentUriForPath ( java.lang.String path ) { return path.startsWith ( android.os.Environment.getExternalStorageDirectory ( ) . getPath ( ) ) ? android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI : android.provider.MediaStore.Audio.Media.INTERNAL_CONTENT_URI ; }

Target:
public static android.net.Uri getContentUriForPath ( java.lang.String path ) { for ( java.lang.String ep : android.provider.MediaStore.Audio.Media.EXTERNAL_PATHS ) { if ( path.startsWith ( ep ) ) { return android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI ; } } return path.startsWith ( android.os.Environment.getExternalStorageDirectory ( ) . getPath ( ) ) ? android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI : android.provider.MediaStore.Audio.Media.INTERNAL_CONTENT_URI ; }
Source:
public long connectivityQuerySummaryForDevice ( java.lang.String subscriberId , java.lang.Long startTime , java.lang.Long endTime ) throws android.os.RemoteException , java.lang.SecurityException { android.app.usage.NetworkStats.Bucket bucket = mNetStatsManager.querySummaryForDevice ( ConnectivityManager.TYPE_MOBILE , subscriberId , startTime , endTime ) ; return ( bucket.getTxBytes ( ) ) + ( bucket.getRxBytes ( ) ) ; }

Target:
public long connectivityQuerySummaryForDevice ( java.lang.Integer connType , java.lang.String subscriberId , java.lang.Long startTime , java.lang.Long endTime ) throws android.os.RemoteException , java.lang.SecurityException { android.app.usage.NetworkStats.Bucket bucket = mNetStatsManager.querySummaryForDevice ( connType , subscriberId , startTime , endTime ) ; return ( bucket.getTxBytes ( ) ) + ( bucket.getRxBytes ( ) ) ; }
Source:
void setActiveDevice ( android.bluetooth.BluetoothDevice device ) { if ( device == null ) { for ( android.bluetooth.BluetoothDevice smDevice : mStateMachines.keySet ( ) ) { mStateMachines.get ( smDevice ) . sendMessage ( HearingAidStateMachine.DISCONNECT ) ; } } }

Target:
public void setActiveDevice ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hearingaid.HearingAidService.DBG ) { android.util.Log.d ( com.android.bluetooth.hearingaid.HearingAidService.TAG , ( "setActiveDevice:" + device ) ) ; } if ( device == null ) { if ( ( mActiveDeviceHiSyncId ) != ( android.bluetooth.BluetoothHearingAid.HI_SYNC_ID_INVALID ) ) { reportActiveDevice ( null ) ; mActiveDeviceHiSyncId = android.bluetooth.BluetoothHearingAid.HI_SYNC_ID_INVALID ; } return ; } java.lang.Long deviceHiSyncId = mDeviceHiSyncIdMap.getOrDefault ( device , BluetoothHearingAid.HI_SYNC_ID_INVALID ) ; if ( deviceHiSyncId != ( mActiveDeviceHiSyncId ) ) { reportActiveDevice ( device ) ; mActiveDeviceHiSyncId = deviceHiSyncId ; } }
Source:
public void setConnectionCapabilities ( java.lang.String callId , int connectionCapabilities ) { com.android.server.telecom.Log.startSession ( "CSW.sCC" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "setConnectionCapabilities %s %d" , callId , connectionCapabilities ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.setConnectionCapabilities ( connectionCapabilities ) ; } else { } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; com.android.server.telecom.Log.endSession ( ) ; } }

Target:
public void setConnectionCapabilities ( java.lang.String callId , int connectionCapabilities ) { android.telecom.Log.startSession ( "CSW.sCC" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "setConnectionCapabilities %s %d" , callId , connectionCapabilities ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.setConnectionCapabilities ( connectionCapabilities ) ; } else { } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
synchronized void recordAttributeAction ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.manifmerger.ActionRecorder.ActionType actionType , @ com.android.annotations.Nullable com.android.manifmerger.AttributeOperationType attributeOperationType ) { com.android.manifmerger.XmlElement originElement = attribute.getOwnerElement ( ) ; java.util.List < com.android.manifmerger.ActionRecorder.AttributeRecord > attributeRecords = getAttributeRecords ( attribute ) ; com.android.manifmerger.ActionRecorder.AttributeRecord attributeRecord = new com.android.manifmerger.ActionRecorder.AttributeRecord ( actionType , new com.android.manifmerger.ActionRecorder.ActionLocation ( originElement.getDocument ( ) . getSourceLocation ( ) , attribute.getPosition ( ) ) , attributeOperationType ) ; attributeRecords.add ( attributeRecord ) ; }

Target:
synchronized void recordAttributeAction ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.manifmerger.ActionRecorder.ActionType actionType , @ com.android.annotations.Nullable com.android.manifmerger.AttributeOperationType attributeOperationType ) { com.android.manifmerger.XmlElement originElement = attribute.getOwnerElement ( ) ; java.util.List < com.android.manifmerger.ActionRecorder.AttributeRecord > attributeRecords = getAttributeRecords ( attribute ) ; com.android.manifmerger.ActionRecorder.AttributeRecord attributeRecord = new com.android.manifmerger.ActionRecorder.AttributeRecord ( actionType , new com.android.manifmerger.ActionRecorder.ActionLocation ( originElement.getDocument ( ) . getSourceLocation ( ) , attribute.getPosition ( ) ) , attribute.getId ( ) , attributeOperationType ) ; attributeRecords.add ( attributeRecord ) ; }
Source:
public void testLaunchToSide ( ) throws java.lang.Exception { HEAD ( 56.0 ) ; }

Target:
public void testLaunchToSide ( ) throws java.lang.Exception { if ( ! ( supportsMultiWindowMode ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } launchActivityInDockStack ( android.server.cts.LAUNCHING_ACTIVITY ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { LAUNCHING_ACTIVITY } ) ; launchActivityToSide ( ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { LAUNCHING_ACTIVITY , android.server.cts.ActivityManagerDockedStackTests.TEST_ACTIVITY_NAME } ) ; mAmWmState.assertContainsStack ( "Must contain fullscreen stack." , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; mAmWmState.assertContainsStack ( "Must contain docked stack." , android.server.cts.DOCKED_STACK_ID ) ; }
Source:
private static org.conscrypt.PSKKeyManager findFirstPSKKeyManager ( javax.net.ssl.KeyManager [ ] kms ) { for ( javax.net.ssl.KeyManager km : kms ) { if ( km instanceof org.conscrypt.PSKKeyManager ) { return ( ( org.conscrypt.PSKKeyManager ) ( km ) ) ; } } return null ; }

Target:
private static org.conscrypt.PSKKeyManager findFirstPSKKeyManager ( javax.net.ssl.KeyManager [ ] kms ) { for ( javax.net.ssl.KeyManager km : kms ) { if ( km instanceof org.conscrypt.PSKKeyManager ) { return ( ( org.conscrypt.PSKKeyManager ) ( km ) ) ; } else if ( km != null ) { try { return org.conscrypt.DuckTypedPSKKeyManager.getInstance ( km ) ; } catch ( java.lang.NoSuchMethodException ignored ) { } } } return null ; }
Source:
static java.util.concurrent.ForkJoinPool.WorkQueue commonSubmitterQueue ( ) { java.util.concurrent.ForkJoinPool p ; java.util.concurrent.ForkJoinPool.WorkQueue [ ] ws ; int m ; java.util.concurrent.ForkJoinPool.Submitter z ; return ( ( ( ( z = java.util.concurrent.ForkJoinPool.submitters.get ( ) ) != null ) && ( ( p = java.util.concurrent.ForkJoinPool.commonPool ) != null ) ) && ( ( ws = p.workQueues ) != null ) ) && ( ( m = ( ws.length ) - 1 ) >= 0 ) ? ws [ ( ( m & ( z.seed ) ) & ( java.util.concurrent.ForkJoinPool.SQMASK ) ) ] : null ; }

Target:
static java.util.concurrent.ForkJoinPool.WorkQueue commonSubmitterQueue ( ) { java.util.concurrent.ForkJoinPool.Submitter z ; java.util.concurrent.ForkJoinPool p ; java.util.concurrent.ForkJoinPool.WorkQueue [ ] ws ; int m ; int r ; return ( ( ( ( z = java.util.concurrent.ForkJoinPool.submitters.get ( ) ) != null ) && ( ( p = java.util.concurrent.ForkJoinPool.common ) != null ) ) && ( ( ws = p.workQueues ) != null ) ) && ( ( m = ( ws.length ) - 1 ) >= 0 ) ? ws [ ( ( m & ( z.seed ) ) & ( java.util.concurrent.ForkJoinPool.SQMASK ) ) ] : null ; }
Source:
public void updatePersistentConfiguration ( android.content.res.Configuration values ) { enforceCallingPermission ( android.Manifest.permission.CHANGE_CONFIGURATION , "updateConfiguration()" ) ; enforceWriteSettingsPermission ( "updateConfiguration()" ) ; if ( values == null ) { throw new java.lang.NullPointerException ( "Configuration must not be null" ) ; } synchronized ( this ) { final long origId = android.os.Binder.clearCallingIdentity ( ) ; updateConfigurationLocked ( values , null , true , false ) ; android.os.Binder.restoreCallingIdentity ( origId ) ; } }

Target:
public void updatePersistentConfiguration ( android.content.res.Configuration values ) { enforceCallingPermission ( android.Manifest.permission.CHANGE_CONFIGURATION , "updateConfiguration()" ) ; enforceWriteSettingsPermission ( "updateConfiguration()" ) ; if ( values == null ) { throw new java.lang.NullPointerException ( "Configuration must not be null" ) ; } int userId = android.os.UserHandle.getCallingUserId ( ) ; synchronized ( this ) { final long origId = android.os.Binder.clearCallingIdentity ( ) ; updateConfigurationLocked ( values , null , false , true , userId ) ; android.os.Binder.restoreCallingIdentity ( origId ) ; } }
Source:
synchronized void nScriptSetVarF ( long id , int slot , float val ) { validate ( ) ; rsnScriptSetVarF ( mContext , id , slot , val ) ; }

Target:
synchronized void nScriptSetVarVE ( long id , int slot , byte [ ] val , long e , int [ ] dims , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarVE ( curCon , id , slot , val , e , dims , mUseInc ) ; }
Source:
public android.os.ParcelFileDescriptor openFile ( android.net.Uri uri , java.lang.String mode ) throws java.io.FileNotFoundException { return openFileHelper ( uri , mode ) ; }

Target:
public android.os.ParcelFileDescriptor openFile ( android.net.Uri uri , java.lang.String mode ) throws java.io.FileNotFoundException { android.os.ParcelFileDescriptor fd ; int match = com.android.providers.telephony.MmsProvider.sURLMatcher.match ( uri ) ; if ( android.util.Log.isLoggable ( com.android.providers.telephony.MmsProvider.TAG , Log.VERBOSE ) ) { android.util.Log.d ( com.android.providers.telephony.MmsProvider.TAG , ( ( ( "openFile: uri=" + uri ) + ", mode=" ) + mode ) ) ; } switch ( match ) { case com.android.providers.telephony.MmsProvider.MMS_SCRAP_SPACE : fd = getTempStoreFd ( ) ; break ; default : fd = openFileHelper ( uri , mode ) ; } return fd ; }
Source:
public void testHasParamWithValue ( ) { org.hamcrest.Matcher < android.net.Uri > hasParamWithValue = android.support.test.espresso.intent.matcher.UriMatchers.hasParamWithValue ( org.hamcrest.CoreMatchers.equalTo ( "sourceid" ) , org.hamcrest.CoreMatchers.equalTo ( "chrome" ) ) ; assertTrue ( "HasParamWithValue didn't match" , android.support.test.espresso.intent.matcher.UriMatchers.hasParamWithValue ( "sourceid" , "chrome" ) . matches ( uri ) ) ; assertTrue ( "HasParamWithValue didn't match" , hasParamWithValue.matches ( uri ) ) ; }

Target:
public void hasParamWithValueTesting ( ) { org.hamcrest.Matcher < android.net.Uri > hasParamWithValue = android.support.test.espresso.intent.matcher.UriMatchers.hasParamWithValue ( org.hamcrest.CoreMatchers.equalTo ( "sourceid" ) , org.hamcrest.CoreMatchers.equalTo ( "chrome" ) ) ; org.junit.Assert.assertTrue ( "HasParamWithValue didn't match" , android.support.test.espresso.intent.matcher.UriMatchers.hasParamWithValue ( "sourceid" , "chrome" ) . matches ( uri ) ) ; org.junit.Assert.assertTrue ( "HasParamWithValue didn't match" , hasParamWithValue.matches ( uri ) ) ; }
Source:
private static com.google.devtools.common.options.Converter < ? > findConverter ( java.lang.reflect.Field optionField ) { com.google.devtools.common.options.Option annotation = optionField.getAnnotation ( com.google.devtools.common.options.Option.class ) ; if ( ( annotation.converter ( ) ) == ( com.google.devtools.common.options.Converter.class ) ) { java.lang.reflect.Type type = com.google.devtools.common.options.IsolatedOptionsData.getFieldSingularType ( optionField , annotation ) ; com.google.devtools.common.options.Converter < ? > converter = Converters.DEFAULT_CONVERTERS.get ( type ) ; if ( converter == null ) { throw new com.google.devtools.common.options.OptionsParser.ConstructionException ( ( ( ( ( "No converter found for " + type ) + "; possible fix: add " ) + "converter=... to @Option annotation for " ) + ( optionField.getName ( ) ) ) ) ; } return converter ; } try { java.lang.Class < ? > converter = annotation.converter ( ) ; java.lang.reflect.Constructor < ? > constructor = converter.getConstructor ( ) ; return ( ( com.google.devtools.common.options.Converter < ? > ) ( constructor.newInstance ( ) ) ) ; } catch ( java.lang.Exception e ) { throw new com.google.devtools.common.options.OptionsParser.ConstructionException ( e ) ; } }

Target:
private static com.google.devtools.common.options.Converter < ? > findConverter ( com.google.devtools.common.options.OptionDefinition optionDefinition ) { if ( ( optionDefinition.getProvidedConverter ( ) ) == ( com.google.devtools.common.options.Converter.class ) ) { java.lang.reflect.Type type = com.google.devtools.common.options.IsolatedOptionsData.getFieldSingularType ( optionDefinition ) ; com.google.devtools.common.options.Converter < ? > converter = Converters.DEFAULT_CONVERTERS.get ( type ) ; if ( converter == null ) { throw new com.google.devtools.common.options.OptionsParser.ConstructionException ( ( ( ( ( "No converter found for " + type ) + "; possible fix: add " ) + "converter=... to @Option annotation for " ) + ( optionDefinition.getField ( ) . getName ( ) ) ) ) ; } return converter ; } try { java.lang.Class < ? > converter = optionDefinition.getProvidedConverter ( ) ; java.lang.reflect.Constructor < ? > constructor = converter.getConstructor ( ) ; return ( ( com.google.devtools.common.options.Converter < ? > ) ( constructor.newInstance ( ) ) ) ; } catch ( java.lang.Exception e ) { throw new com.google.devtools.common.options.OptionsParser.ConstructionException ( e ) ; } }