auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void updateChannels ( boolean clearPreviousTableEntries ) { if ( com.android.tv.guide.ProgramManager.DEBUG ) android.util.Log.d ( com.android.tv.guide.ProgramManager.TAG , "updateChannels" ) ; mChannels = mChannelDataManager.getBrowsableChannelList ( ) ; mSelectedGenreId = com.android.tv.data.GenreItems.ID_ALL_CHANNELS ; mFilteredChannels = mChannels ; notifyChannelsUpdated ( ) ; updateTableEntries ( clearPreviousTableEntries ) ; }

Target:
private void updateChannels ( boolean clearPreviousTableEntries ) { if ( com.android.tv.guide.ProgramManager.DEBUG ) android.util.Log.d ( com.android.tv.guide.ProgramManager.TAG , "updateChannels" ) ; mChannels = mChannelDataManager.getBrowsableChannelList ( ) ; mSelectedGenreId = com.android.tv.data.GenreItems.ID_ALL_CHANNELS ; mFilteredChannels = mChannels ; updateTableEntriesWithoutNotification ( clearPreviousTableEntries ) ; notifyChannelsUpdated ( ) ; notifyTableEntriesUpdated ( ) ; buildGenreFilters ( ) ; }
Source:
public void test002c ( ) throws java.lang.Exception { java.io.File jackOutput ; jackOutput = runTest002 ( false , "keep-first" ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE1_LONGPATH , "Res1" ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE2_LONGPATH , "Res2" ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE3_LONGPATH , "Res3" ) ; }

Target:
public void test002c ( ) throws java.lang.Exception { java.io.File jackOutput ; java.io.ByteArrayOutputStream errOut = new java.io.ByteArrayOutputStream ( ) ; jackOutput = runTest002 ( false , "keep-first" , errOut , false , false ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE1_LONGPATH , "Res1" ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE2_LONGPATH , "Res2" ) ; checkResourceContent ( jackOutput , com.android.jack.fileconflict.FileConflictTests.RESOURCE3_LONGPATH , "Res3" ) ; junit.framework.Assert.assertTrue ( errOut.toString ( ) . isEmpty ( ) ) ; }
Source:
private void onNetworkSignal ( int signal ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent event = new com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EVENT_TYPE_NETWORK_SIGNAL ) ; event.valueInt = signal ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "incoming" + event ) ) ; sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.STACK_EVENT , event ) ; }

Target:
private void onCmdResult ( int type , int cme ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent event = new com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EVENT_TYPE_CMD_RESULT ) ; event.valueInt = type ; event.valueInt2 = cme ; if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "incoming" + event ) ) ; } sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.STACK_EVENT , event ) ; }
Source:
public java.lang.String select ( java.lang.Object context , double number ) { android.icu.text.PluralRules.FixedDecimal dec = ( ( android.icu.text.PluralRules.FixedDecimal ) ( context ) ) ; assert ( dec.source ) == ( dec.isNegative ? - number : number ) ; return pluralRules.select ( dec ) ; }

Target:
public java.lang.String select ( java.lang.Object context , double number ) { android.icu.text.PluralRules.IFixedDecimal dec = ( ( android.icu.text.PluralRules.IFixedDecimal ) ( context ) ) ; assert ( dec.getPluralOperand ( Operand.n ) ) == ( java.lang.Math.abs ( number ) ) ; return pluralRules.select ( dec ) ; }
Source:
public void testSdkManager_LayoutlibVersion ( ) { com.android.sdklib.SdkManager sdkman = getSdkManager ( ) ; com.android.sdklib.IAndroidTarget t = sdkman.getTargets ( ) [ 0 ] ; assertTrue ( ( t instanceof com.android.sdklib.PlatformTarget ) ) ; com.android.sdklib.SdkManager.LayoutlibVersion lv = ( ( com.android.sdklib.PlatformTarget ) ( t ) ) . getLayoutlibVersion ( ) ; assertNotNull ( lv ) ; assertEquals ( 5 , lv.getApi ( ) ) ; assertEquals ( 2 , lv.getRevision ( ) ) ; assertSame ( lv , sdkman.getMaxLayoutlibVersion ( ) ) ; }

Target:
public void testSdkManager_LayoutlibVersion ( ) { com.android.sdklib.SdkManager sdkman = getSdkManager ( ) ; com.android.sdklib.IAndroidTarget t = sdkman.getTargets ( ) [ 0 ] ; assertTrue ( ( t instanceof com.android.sdklib.internal.androidTarget.PlatformTarget ) ) ; com.android.sdklib.SdkManager.LayoutlibVersion lv = ( ( com.android.sdklib.internal.androidTarget.PlatformTarget ) ( t ) ) . getLayoutlibVersion ( ) ; assertNotNull ( lv ) ; assertEquals ( 5 , lv.getApi ( ) ) ; assertEquals ( 2 , lv.getRevision ( ) ) ; assertSame ( lv , sdkman.getMaxLayoutlibVersion ( ) ) ; }
Source:
public static void gc ( ) { java.lang.Runtime.getRuntime ( ) . gc ( ) ; }

Target:
public static void gc ( ) { boolean shouldRunGC ; synchronized ( java.lang.System.lock ) { shouldRunGC = java.lang.System.justRanFinalization ; if ( shouldRunGC ) { java.lang.System.justRanFinalization = false ; } else { java.lang.System.runGC = true ; } } if ( shouldRunGC ) { java.lang.Runtime.getRuntime ( ) . gc ( ) ; } }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int a = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; int literal = in.readInt ( ) ; return new com.android.jack.dx.io.instructions.OneRegisterDecodedInstruction ( this , opcode , 0 , null , 0 , literal , a ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int literal = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; int a = in.read ( ) ; int b = in.read ( ) ; return new com.android.jack.dx.io.instructions.TwoRegisterDecodedInstruction ( this , opcode , 0 , null , 0 , literal , a , b ) ; }
Source:
public static android.renderscript.ScriptIntrinsicBlur create ( android.renderscript.RenderScript rs , android.renderscript.Element e ) { if ( ( ! ( e.isCompatible ( android.renderscript.Element.U8_4 ( rs ) ) ) ) && ( ! ( e.isCompatible ( android.renderscript.Element.U8 ( rs ) ) ) ) ) { throw new android.renderscript.RSIllegalArgumentException ( "Unsuported element type." ) ; } long id = rs.nScriptIntrinsicCreate ( 5 , e.getID ( rs ) ) ; android.renderscript.ScriptIntrinsicBlur sib = new android.renderscript.ScriptIntrinsicBlur ( id , rs ) ; sib.setRadius ( 5.0F ) ; return sib ; }

Target:
public static android.renderscript.ScriptIntrinsicBlur create ( android.renderscript.RenderScript rs , android.renderscript.Element e ) { if ( ( ! ( e.isCompatible ( android.renderscript.Element.U8_4 ( rs ) ) ) ) && ( ! ( e.isCompatible ( android.renderscript.Element.U8 ( rs ) ) ) ) ) { throw new android.renderscript.RSIllegalArgumentException ( "Unsupported element type." ) ; } long id = rs.nScriptIntrinsicCreate ( 5 , e.getID ( rs ) ) ; android.renderscript.ScriptIntrinsicBlur sib = new android.renderscript.ScriptIntrinsicBlur ( id , rs ) ; sib.setRadius ( 5.0F ) ; return sib ; }
Source:
private static boolean nodeNeedsUniquePredecessor ( com.android.jack.ir.ast.cfg.JBasicBlock block ) { if ( block instanceof com.android.jack.ir.ast.cfg.JExitBasicBlock ) { throw new java.lang.RuntimeException ( "exit bblock doesn't need unique pred" ) ; } int countPredecessors = com.android.jack.transformations.ssa.SsaUtil.getNumPredecessor ( block ) ; int countSuccessors = com.android.jack.transformations.ssa.SsaUtil.getNumSuccessor ( block ) ; return ( countPredecessors > 1 ) && ( countSuccessors > 1 ) ; }

Target:
private static boolean nodeNeedsUniquePredecessor ( com.android.jack.ir.ast.cfg.JBasicBlock block ) { if ( block instanceof com.android.jack.ir.ast.cfg.JExitBasicBlock ) { throw new java.lang.RuntimeException ( "exit bblock doesn't need unique pred" ) ; } int countPredecessors = com.android.jack.transformations.ssa.SsaUtil.getNumPredecessor ( block ) ; int countSuccessors = com.android.jack.transformations.ssa.SsaUtil.getNumSuccessor ( block ) ; boolean needsUniquePredecessor = ( countPredecessors > 1 ) && ( countSuccessors > 1 ) ; assert ( ! needsUniquePredecessor ) || ( ! ( ( block instanceof com.android.jack.ir.ast.cfg.JCaseBasicBlock ) || ( block instanceof com.android.jack.ir.ast.cfg.JCatchBasicBlock ) ) ) ; return needsUniquePredecessor ; }
Source:
private void releaseTunerHal ( com.android.tv.tuner.TunerHal hal , int sessionId , boolean reuse ) { if ( ! reuse ) { com.android.tv.common.AutoCloseableUtils.closeQuietly ( hal ) ; return ; } com.android.tv.tuner.TunerHal cachedHal = mTunerHals.get ( sessionId ) ; if ( cachedHal != hal ) { mTunerHals.put ( sessionId , hal ) ; } if ( ( cachedHal != null ) && ( cachedHal != hal ) ) { com.android.tv.common.AutoCloseableUtils.closeQuietly ( cachedHal ) ; } }

Target:
private void releaseTunerHal ( com.android.tv.tuner.TunerHal hal , int sessionId , boolean reuse ) { if ( ( ! reuse ) || ( ! ( hal.isReusable ( ) ) ) ) { com.android.tv.common.AutoCloseableUtils.closeQuietly ( hal ) ; return ; } com.android.tv.tuner.TunerHal cachedHal = mTunerHals.get ( sessionId ) ; if ( cachedHal != hal ) { mTunerHals.put ( sessionId , hal ) ; if ( cachedHal != null ) { com.android.tv.common.AutoCloseableUtils.closeQuietly ( cachedHal ) ; } } }
Source:
public void close ( ) throws java.io.IOException { synchronized ( lock ) { if ( ( out ) == null ) { return ; } try { flushBuffer ( ) ; } finally { out.close ( ) ; out = null ; cb = null ; } } }

Target:
public void close ( ) throws java.io.IOException { synchronized ( lock ) { if ( ( out ) == null ) { return ; } try ( java.io.Writer w = out ) { flushBuffer ( ) ; } finally { out = null ; cb = null ; } } }
Source:
public org.eclipse.swt.widgets.Menu getMenu ( org.eclipse.swt.widgets.Control parent ) { return null ; }

Target:
private void insertExtractAsInclude ( java.lang.String endId ) { org.eclipse.jface.action.IAction extractIncludeAction = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.ExtractIncludeAction ( mCanvas ) ; if ( extractIncludeAction.isEnabled ( ) ) { mMenuManager.insertBefore ( endId , new org.eclipse.jface.action.Separator ( ) ) ; mMenuManager.insertBefore ( endId , extractIncludeAction ) ; mMenuManager.insertBefore ( endId , new org.eclipse.jface.action.Separator ( ) ) ; } }
Source:
private void emitAdvanceLine ( int deltaLines ) throws java.io.IOException { int mark = output.getCursor ( ) ; output.writeByte ( com.android.dx.dex.file.DBG_ADVANCE_LINE ) ; output.writeSleb128 ( deltaLines ) ; line += deltaLines ; if ( ( ( annotateTo ) != null ) || ( ( debugPrint ) != null ) ) { annotate ( ( ( output.getCursor ( ) ) - mark ) , java.lang.String.format ( "line = %d" , line ) ) ; } if ( com.android.dx.dex.file.DebugInfoEncoder.DEBUG ) { java.lang.System.err.printf ( "Emitting advance_line for %d\n" , deltaLines ) ; } }

Target:
private void emitAdvanceLine ( int deltaLines ) throws java.io.IOException { int mark = output.getCursor ( ) ; output.writeByte ( com.android.dx.dex.file.DebugInfoConstants.DBG_ADVANCE_LINE ) ; output.writeSleb128 ( deltaLines ) ; line += deltaLines ; if ( ( ( annotateTo ) != null ) || ( ( debugPrint ) != null ) ) { annotate ( ( ( output.getCursor ( ) ) - mark ) , java.lang.String.format ( "line = %d" , line ) ) ; } if ( com.android.dx.dex.file.DebugInfoEncoder.DEBUG ) { java.lang.System.err.printf ( "Emitting advance_line for %d\n" , deltaLines ) ; } }
Source:
private void ensureReadParams ( ) { if ( fetchedParams ) { return ; } byte [ ] [ ] params = org.conscrypt.NativeCrypto.get_RSA_public_params ( key.getPkeyContext ( ) ) ; modulus = new java.math.BigInteger ( params [ 0 ] ) ; publicExponent = new java.math.BigInteger ( params [ 1 ] ) ; fetchedParams = true ; }

Target:
private void ensureReadParams ( ) { if ( fetchedParams ) { return ; } byte [ ] [ ] params = org.conscrypt.NativeCrypto.get_RSA_public_params ( key.getNativeRef ( ) ) ; modulus = new java.math.BigInteger ( params [ 0 ] ) ; publicExponent = new java.math.BigInteger ( params [ 1 ] ) ; fetchedParams = true ; }
Source:
private void loadInternalDataFromSharedStore ( java.util.List < android.net.wifi.WifiConfiguration > configurations ) { for ( android.net.wifi.WifiConfiguration configuration : configurations ) { configuration.networkId = ( mNextNetworkId ) ++ ; if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Adding network from shared store " + ( configuration.configKey ( ) ) ) ) ; } mConfiguredNetworks.put ( configuration ) ; } }

Target:
private void loadInternalDataFromSharedStore ( java.util.List < android.net.wifi.WifiConfiguration > configurations ) { for ( android.net.wifi.WifiConfiguration configuration : configurations ) { configuration.networkId = ( mNextNetworkId ) ++ ; if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Adding network from shared store " + ( configuration.configKey ( ) ) ) ) ; } addMissingPskPassphraseQuotes ( configuration ) ; mConfiguredNetworks.put ( configuration ) ; } }
Source:
private static void assertNonSerializableLambdaCharacteristics ( java.lang.Object r1 ) throws java.lang.Exception { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream ( ) ; try ( java.io.ObjectOutputStream os = new java.io.ObjectOutputStream ( baos ) ) { os.writeObject ( r1 ) ; os.flush ( ) ; org.junit.Assert.fail ( ) ; } catch ( java.io.ObjectStreamException expected ) { } }

Target:
private static void assertNonSerializableLambdaCharacteristics ( java.lang.Object r1 ) throws java.lang.Exception { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream ( ) ; try ( java.io.ObjectOutputStream os = new java.io.ObjectOutputStream ( baos ) ) { os.writeObject ( r1 ) ; os.flush ( ) ; org.junit.Assert.fail ( ) ; } catch ( java.io.NotSerializableException expected ) { } }
Source:
public void testNotifyResponseSubscribeCancel ( ) throws org.json.JSONException { final short transactionId = 23 ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "status" , WifiNanNative.NAN_STATUS_DE_FAILURE ) ; args.putInt ( "value" , 0 ) ; args.putInt ( "response_type" , WifiNanNative.NAN_RESPONSE_SUBSCRIBE_CANCEL ) ; com.android.server.wifi.nan.WifiNanHalMock.callNotifyResponse ( transactionId , com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNanStateManager ) ; }

Target:
public void testNotifyResponseSubscribeCancel ( ) throws org.json.JSONException { final short transactionId = 23 ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "status" , WifiAwareNative.AWARE_STATUS_DE_FAILURE ) ; args.putInt ( "value" , 0 ) ; args.putInt ( "response_type" , WifiAwareNative.AWARE_RESPONSE_SUBSCRIBE_CANCEL ) ; com.android.server.wifi.aware.WifiAwareHalMock.callNotifyResponse ( transactionId , com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }
Source:
public void testSerialization ( ) { java.lang.String expected = "aced0005737200266a617661782e73656375726974792e617574682e7" + ( ( ( ( "83530302e583530305072696e636970616cf90dff3c88b877c703000078707572" + "00025b42acf317f8060854e002000078700000006a30683117301506035504031" ) + "30e7777772e676f6f676c652e636f6d31133011060355040a130a476f6f676c65" ) + "20496e63311630140603550407130d4d6f756e7461696e2056696577311330110" ) + "603550408130a43616c69666f726e6961310b300906035504061302555378" ) ; javax.security.auth.x500.X500Principal actual = new javax.security.auth.x500.X500Principal ( ( "C=US, " + ( ( ( "ST=California, " + "L=Mountain View, " ) + "O=Google Inc, " ) + "CN=www.google.com" ) ) ) ; new libcore.util.SerializationTester < javax.security.auth.x500.X500Principal > ( actual , expected ) . test ( ) ; }

Target:
public void testSerialization ( ) { java.lang.String expected = "aced0005737200266a617661782e73656375726974792e617574682e7" + ( ( ( ( "83530302e583530305072696e636970616cf90dff3c88b877c703000078707572" + "00025b42acf317f8060854e002000078700000006a30683117301506035504031" ) + "30e7777772e676f6f676c652e636f6d31133011060355040a130a476f6f676c65" ) + "20496e63311630140603550407130d4d6f756e7461696e2056696577311330110" ) + "603550408130a43616c69666f726e6961310b300906035504061302555378" ) ; javax.security.auth.x500.X500Principal actual = new javax.security.auth.x500.X500Principal ( ( "C=US, " + ( ( ( "ST=California, " + "L=Mountain View, " ) + "O=Google Inc, " ) + "CN=www.google.com" ) ) ) ; new libcore.libcore.util.SerializationTester < javax.security.auth.x500.X500Principal > ( actual , expected ) . test ( ) ; }
Source:
public void testGetConfig2 ( ) { com.android.ide.common.resources.configuration.FolderConfiguration configForFolder = com.android.ide.common.resources.configuration.FolderConfiguration.getConfigForFolder ( "values-en-rUS" ) ; assertNotNull ( configForFolder ) ; assertEquals ( "en" , configForFolder.getLanguageQualifier ( ) . getValue ( ) ) ; assertEquals ( "US" , configForFolder.getRegionQualifier ( ) . getValue ( ) ) ; assertNull ( configForFolder.getScreenDimensionQualifier ( ) ) ; assertNull ( configForFolder.getLayoutDirectionQualifier ( ) ) ; }

Target:
public void testGetConfig2 ( ) { com.android.ide.common.resources.configuration.FolderConfiguration configForFolder = com.android.ide.common.resources.configuration.FolderConfiguration.getConfigForFolder ( "values-en-rUS" ) ; assertNotNull ( configForFolder ) ; assertEquals ( "en" , configForFolder.getLocaleQualifier ( ) . getLanguage ( ) ) ; assertEquals ( "US" , configForFolder.getLocaleQualifier ( ) . getRegion ( ) ) ; assertNull ( configForFolder.getScreenDimensionQualifier ( ) ) ; assertNull ( configForFolder.getLayoutDirectionQualifier ( ) ) ; }
Source:
public static int [ ] copyOf ( int [ ] original , int newLength ) { if ( newLength < 0 ) { throw new java.lang.NegativeArraySizeException ( ) ; } return java.util.Arrays.copyOfRange ( original , 0 , newLength ) ; }

Target:
public static < T , U > T [ ] copyOf ( U [ ] original , int newLength , java.lang.Class < ? extends T [ ] > newType ) { if ( newLength < 0 ) { throw new java.lang.NegativeArraySizeException ( java.lang.Integer.toString ( newLength ) ) ; } return java.util.Arrays.copyOfRange ( original , 0 , newLength , newType ) ; }
Source:
public void run ( ) { new android.app.AlertDialog.Builder ( activity ) . setIcon ( android.R.drawable.ic_dialog_alert ) . setTitle ( R.string.error_state ) . setMessage ( ( ( msg + "\n\n" ) + ( activity.getString ( R.string.error_state_text ) ) ) ) . setPositiveButton ( R.string.yes , new android.content.DialogInterface.OnClickListener ( ) { public void onClick ( android.content.DialogInterface dialog , int which ) { dialog.dismiss ( ) ; } } ) . show ( ) ; }

Target:
public void run ( ) { new android.app.AlertDialog.Builder ( activity ) . setIconAttribute ( android.R.attr.alertDialogIcon ) . setTitle ( R.string.error_state ) . setMessage ( ( ( msg + "\n\n" ) + ( activity.getString ( R.string.error_state_text ) ) ) ) . setPositiveButton ( R.string.yes , new android.content.DialogInterface.OnClickListener ( ) { public void onClick ( android.content.DialogInterface dialog , int which ) { dialog.dismiss ( ) ; } } ) . show ( ) ; }
Source:
public void initialize ( android.telecom.CallAudioState initState ) { mCurrentCallAudioState = initState ; mLastKnownCallAudioState = initState ; mAvailableRoutes = initState.getSupportedRouteMask ( ) ; mIsMuted = initState.isMuted ( ) ; mWasOnSpeaker = false ; mStatusBarNotifier.notifyMute ( initState.isMuted ( ) ) ; mStatusBarNotifier.notifySpeakerphone ( ( ( initState.getRoute ( ) ) == ( android.telecom.CallAudioState.ROUTE_SPEAKER ) ) ) ; setInitialState ( mRouteCodeToQuiescentState.get ( initState.getRoute ( ) ) ) ; start ( ) ; }

Target:
private void reinitialize ( ) { android.telecom.CallAudioState initState = getInitialAudioState ( ) ; mDeviceSupportedRoutes = initState.getSupportedRouteMask ( ) ; mAvailableRoutes = ( mDeviceSupportedRoutes ) & ( getCurrentCallSupportedRoutes ( ) ) ; mIsMuted = initState.isMuted ( ) ; setMuteOn ( mIsMuted ) ; mWasOnSpeaker = false ; mHasUserExplicitlyLeftBluetooth = false ; mLastKnownCallAudioState = initState ; transitionTo ( mRouteCodeToQuiescentState.get ( initState.getRoute ( ) ) ) ; }
Source:
private void verifyInterfaceServingModeStarted ( ) throws java.lang.Exception { org.mockito.Mockito.verify ( mNMService , org.mockito.Mockito.times ( 1 ) ) . listInterfaces ( ) ; org.mockito.Mockito.verify ( mNMService , org.mockito.Mockito.times ( 1 ) ) . getInterfaceConfig ( mTestIfname ) ; org.mockito.Mockito.verify ( mNMService , org.mockito.Mockito.times ( 1 ) ) . setInterfaceConfig ( org.mockito.Matchers.eq ( mTestIfname ) , org.mockito.Mockito.any ( android.net.InterfaceConfiguration.class ) ) ; org.mockito.Mockito.verify ( mNMService , org.mockito.Mockito.times ( 1 ) ) . tetherInterface ( mTestIfname ) ; }

Target:
private void verifyInterfaceServingModeStarted ( boolean ifnameKnown ) throws java.lang.Exception { if ( ! ifnameKnown ) { org.mockito.Mockito.verify ( mNMService , org.mockito.Mockito.times ( 1 ) ) . listInterfaces ( ) ; } org.mockito.Mockito.verify ( mNMService , org.mockito.Mockito.times ( 1 ) ) . getInterfaceConfig ( mTestIfname ) ; org.mockito.Mockito.verify ( mNMService , org.mockito.Mockito.times ( 1 ) ) . setInterfaceConfig ( org.mockito.Matchers.eq ( mTestIfname ) , org.mockito.Mockito.any ( android.net.InterfaceConfiguration.class ) ) ; org.mockito.Mockito.verify ( mNMService , org.mockito.Mockito.times ( 1 ) ) . tetherInterface ( mTestIfname ) ; }
Source:
public void setListening ( boolean listening ) { if ( listening && ( ( android.nfc.NfcAdapter.getDefaultAdapter ( mContext ) ) != null ) ) { com.android.settings.nfc.PaymentBackend paymentBackend = new com.android.settings.nfc.PaymentBackend ( mContext ) ; paymentBackend.refresh ( ) ; com.android.settings.nfc.PaymentBackend.PaymentAppInfo app = paymentBackend.getDefaultApp ( ) ; if ( app != null ) { mSummaryLoader.setSummary ( this , mContext.getString ( R.string.payment_summary , app.label ) ) ; } } }

Target:
public void setListening ( boolean listening ) { if ( listening && ( ( android.nfc.NfcAdapter.getDefaultAdapter ( mContext ) ) != null ) ) { com.android.settings.nfc.PaymentBackend paymentBackend = new com.android.settings.nfc.PaymentBackend ( mContext ) ; paymentBackend.refresh ( ) ; com.android.settings.nfc.PaymentBackend.PaymentAppInfo app = paymentBackend.getDefaultApp ( ) ; java.lang.String summary = null ; if ( app != null ) { summary = mContext.getString ( R.string.payment_summary , app.label ) ; } mSummaryLoader.setSummary ( this , summary ) ; } }
Source:
public void tearDown ( ) throws java.lang.Exception { if ( testInstallDir.exists ( ) ) { libcore.tzdata.update2.FileUtils.deleteRecursive ( testInstallDir ) ; } if ( tempDir.exists ( ) ) { libcore.tzdata.update2.FileUtils.deleteRecursive ( tempDir ) ; } super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { if ( testSystemTzDataDir.exists ( ) ) { libcore.tzdata.update2.FileUtils.deleteRecursive ( testInstallDir ) ; } if ( testInstallDir.exists ( ) ) { libcore.tzdata.update2.FileUtils.deleteRecursive ( testInstallDir ) ; } if ( tempDir.exists ( ) ) { libcore.tzdata.update2.FileUtils.deleteRecursive ( tempDir ) ; } super . tearDown ( ) ; }
Source:
private java.lang.StringBuffer subformat ( int number , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr ) { if ( ( currencySignCount ) == ( android.icu.text.DecimalFormat.CURRENCY_SIGN_COUNT_IN_PLURAL_FORMAT ) ) { return subformat ( currencyPluralInfo.select ( getFixedDecimal ( number ) ) , result , fieldPosition , isNegative , isInteger , parseAttr ) ; } else { return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr ) ; } }

Target:
private java.lang.StringBuffer subformat ( double number , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr , int maxIntDig ) { if ( ( currencySignCount ) == ( android.icu.text.DecimalFormat.CURRENCY_SIGN_COUNT_IN_PLURAL_FORMAT ) ) { return subformat ( currencyPluralInfo.select ( getFixedDecimal ( number ) ) , result , fieldPosition , isNegative , isInteger , parseAttr , maxIntDig ) ; } else { return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr , maxIntDig ) ; } }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , float [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , int [ ] data ) { validateIsInt32 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.SIGNED_32 , data.length ) ; }
Source:
public void setScanInterval ( int scanInterval ) { doBooleanCommand ( ( "SCAN_INTERVAL " + scanInterval ) ) ; }

Target:
public boolean startFilteringMulticastV4Packets ( ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return ( ( mSupplicantStaIfaceHal.stopRxFilter ( ) ) && ( mSupplicantStaIfaceHal.removeRxFilter ( SupplicantStaIfaceHal.RX_FILTER_TYPE_V4_MULTICAST ) ) ) && ( mSupplicantStaIfaceHal.stopRxFilter ( ) ) ; } else { return ( ( doBooleanCommand ( "DRIVER RXFILTER-STOP" ) ) && ( doBooleanCommand ( "DRIVER RXFILTER-REMOVE 2" ) ) ) && ( doBooleanCommand ( "DRIVER RXFILTER-START" ) ) ; } }
Source:
private void reportConnectionAttemptEnd ( int level2FailureCode , int connectivityFailureCode ) { mWifiMetrics.endConnectionEvent ( level2FailureCode , connectivityFailureCode ) ; switch ( level2FailureCode ) { case WifiMetrics.ConnectionEvent.FAILURE_NONE : case WifiMetrics.ConnectionEvent.FAILURE_REDUNDANT_CONNECTION_ATTEMPT : case WifiMetrics.ConnectionEvent.FAILURE_CONNECT_NETWORK_FAILED : break ; default : mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; } }

Target:
private void reportConnectionAttemptEnd ( int level2FailureCode , int connectivityFailureCode ) { mWifiMetrics.endConnectionEvent ( level2FailureCode , connectivityFailureCode ) ; switch ( level2FailureCode ) { case WifiMetrics.ConnectionEvent.FAILURE_NONE : mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_SUCCEEDED ) ; break ; case WifiMetrics.ConnectionEvent.FAILURE_REDUNDANT_CONNECTION_ATTEMPT : case WifiMetrics.ConnectionEvent.FAILURE_CONNECT_NETWORK_FAILED : break ; default : mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; } }
Source:
public static void writeUint32 ( long i , byte [ ] buf , int offset ) { buf [ offset ] = ( ( byte ) ( i > > 24 ) ) ; buf [ ( offset + 1 ) ] = ( ( byte ) ( i > > 16 ) ) ; buf [ ( offset + 2 ) ] = ( ( byte ) ( i > > 8 ) ) ; buf [ ( offset + 3 ) ] = ( ( byte ) ( i ) ) ; }

Target:
public static void writeUint16 ( int i , byte [ ] buf , int offset ) { buf [ offset ] = ( ( byte ) ( i > > > 8 ) ) ; buf [ ( offset + 1 ) ] = ( ( byte ) ( i ) ) ; }
Source:
public final void testPkgTypeSample ( ) throws java.lang.Exception { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_SAMPLES ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertFalse ( p.hasPath ( ) ) ; assertFalse ( p.hasVendorId ( ) ) ; assertTrue ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }

Target:
public final void testPkgTypeSample ( ) throws java.lang.Exception { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_SAMPLES ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertFalse ( p.hasPath ( ) ) ; assertFalse ( p.hasVendor ( ) ) ; assertTrue ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }
Source:
private android.graphics.drawable.Drawable getCallProviderIcon ( com.android.incallui.Call call ) { android.telecom.PhoneAccount account = getAccountForCall ( call ) ; if ( ( account != null ) && ( getTelecomManager ( ) . hasMultipleCallCapableAccounts ( ) ) ) { return account.getIcon ( mContext ) ; } return null ; }

Target:
private java.lang.String getConferenceString ( com.android.incallui.Call call ) { boolean isGenericConference = call.can ( PhoneCapabilities.GENERIC_CONFERENCE ) ; com.android.incallui.Log.v ( this , ( "getConferenceString: " + isGenericConference ) ) ; final int resId = ( isGenericConference ) ? R.string.card_title_in_call : R.string.card_title_conf_call ; return mContext.getResources ( ) . getString ( resId ) ; }
Source:
public boolean canSupportCarrierVideoCall ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getCanSupportCarrierVideoCall ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return false ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }

Target:
public boolean canSupportCarrierVideoCall ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getCanSupportCarrierVideoCall ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CEQUINT : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return false ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }
Source:
public void testInstall_withNewerDistroVersion ( ) throws java.lang.Exception { libcore.tzdata.update2.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) . replaceFormatVersionForTests ( 2 , 1 ) . buildUnvalidated ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_FORMAT_VERSION , installer.installWithErrorCode ( distro.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }

Target:
public void testInstall_withNewerDistroVersion ( ) throws java.lang.Exception { libcore.tzdata.shared2.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) . replaceFormatVersionForTests ( 2 , 1 ) . buildUnvalidated ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_FORMAT_VERSION , installer.installWithErrorCode ( distro.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }
Source:
public void link ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVariable resolvedTarget ) { if ( ( varRef ) != null ) { varRef.setTarget ( resolvedTarget ) ; } else { assert ( lambda ) != null ; lambda.addCapturedVariable ( resolvedTarget ) ; } }

Target:
public void link ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVariable resolvedTarget ) { if ( ( varRef ) != null ) { varRef.setTarget ( resolvedTarget ) ; } else { assert ( lambda ) != null ; if ( resolvedTarget instanceof com.android.jack.ir.ast.JLocal ) { lambda.addCapturedVariable ( new com.android.jack.ir.ast.JLocalRef ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , ( ( com.android.jack.ir.ast.JLocal ) ( resolvedTarget ) ) ) ) ; } else { assert resolvedTarget instanceof com.android.jack.ir.ast.JParameter ; lambda.addCapturedVariable ( new com.android.jack.ir.ast.JParameterRef ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , ( ( com.android.jack.ir.ast.JParameter ) ( resolvedTarget ) ) ) ) ; } } }
Source:
private void initTetheredStateMachine ( int interfaceType , java.lang.String upstreamIface ) throws java.lang.Exception { initStateMachine ( interfaceType ) ; dispatchCommand ( TetherInterfaceStateMachine.CMD_TETHER_REQUESTED ) ; if ( upstreamIface != null ) { dispatchTetherConnectionChanged ( upstreamIface ) ; } org.mockito.Mockito.reset ( mNMService , mStatsService , mTetherHelper ) ; org.mockito.Mockito.when ( mNMService.getInterfaceConfig ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ) . thenReturn ( mInterfaceConfiguration ) ; }

Target:
private void initTetheredStateMachine ( int interfaceType , java.lang.String upstreamIface ) throws java.lang.Exception { initStateMachine ( interfaceType ) ; dispatchCommand ( TetherInterfaceStateMachine.CMD_TETHER_REQUESTED , com.android.server.connectivity.tethering.IControlsTethering.STATE_TETHERED ) ; if ( upstreamIface != null ) { dispatchTetherConnectionChanged ( upstreamIface ) ; } org.mockito.Mockito.reset ( mNMService , mStatsService , mTetherHelper ) ; org.mockito.Mockito.when ( mNMService.getInterfaceConfig ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ) . thenReturn ( mInterfaceConfiguration ) ; }
Source:
public void test_tryLockJJZ_NotShared ( ) throws java.lang.Exception { final long POSITION = 100 ; final long SIZE = 200 ; fileLock = writeOnlyFileChannel.tryLock ( POSITION , SIZE , false ) ; assertTrue ( fileLock.isValid ( ) ) ; assertFalse ( fileLock.isShared ( ) ) ; assertSame ( writeOnlyFileChannel , fileLock.channel ( ) ) ; assertEquals ( POSITION , fileLock.position ( ) ) ; assertEquals ( SIZE , fileLock.size ( ) ) ; }

Target:
public void test_tryLockJJZ_NotShared ( ) throws java.lang.Exception { final long POSITION = 100 ; final long SIZE = 200 ; fileLock = writeOnlyFileChannel.tryLock ( POSITION , SIZE , false ) ; assertTrue ( fileLock.isValid ( ) ) ; assertFalse ( fileLock.isShared ( ) ) ; assertSame ( writeOnlyFileChannel , fileLock.channel ( ) ) ; assertSame ( writeOnlyFileChannel , fileLock.acquiredBy ( ) ) ; assertEquals ( POSITION , fileLock.position ( ) ) ; assertEquals ( SIZE , fileLock.size ( ) ) ; }
Source:
public void onDestroy ( ) { com.android.dialer.common.LogUtil.d ( "CallLogFragment.onDestroy" , toString ( ) ) ; mAdapter.changeCursor ( null ) ; getActivity ( ) . getContentResolver ( ) . unregisterContentObserver ( mCallLogObserver ) ; getActivity ( ) . getContentResolver ( ) . unregisterContentObserver ( mContactsObserver ) ; super . onDestroy ( ) ; }

Target:
public void onDestroy ( ) { com.android.dialer.common.LogUtil.enterBlock ( "CallLogFragment.onDestroy" ) ; mAdapter.changeCursor ( null ) ; getActivity ( ) . getContentResolver ( ) . unregisterContentObserver ( mCallLogObserver ) ; getActivity ( ) . getContentResolver ( ) . unregisterContentObserver ( mContactsObserver ) ; super . onDestroy ( ) ; }
Source:
public void logStatus ( java.lang.String message ) { try { java.io.FileOutputStream fos = new java.io.FileOutputStream ( mFile , true ) ; java.io.BufferedWriter bw = new java.io.BufferedWriter ( new java.io.OutputStreamWriter ( fos ) ) ; bw.write ( message ) ; bw.newLine ( ) ; bw.close ( ) ; } catch ( java.io.IOException e ) { android.util.Log.e ( com.android.pmc.PMCStatusLogger.TAG , ( ( ( "Exception writing log: " + message ) + " " ) + e ) ) ; } }

Target:
public void logStatus ( java.lang.String message ) { try { java.io.FileWriter fos = new java.io.FileWriter ( mFile ) ; java.io.BufferedWriter bw = new java.io.BufferedWriter ( fos ) ; bw.write ( message ) ; bw.newLine ( ) ; bw.close ( ) ; } catch ( java.io.IOException e ) { android.util.Log.e ( com.android.pmc.PMCStatusLogger.TAG , ( ( ( "Exception writing log: " + message ) + " " ) + e ) ) ; } }
Source:
private void startManagedProfileProvisioning ( ) { com.android.managedprovisioning.ProvisionLogger.logd ( "Starting managed profile provisioning" ) ; createProfile ( getString ( R.string.default_managed_profile_name ) ) ; if ( ( mManagedProfileUserInfo ) != null ) { new com.android.managedprovisioning.task.DeleteNonRequiredAppsTask ( this , mMdmPackageName , mManagedProfileUserInfo.id , R.array.required_apps_managed_profile , R.array.vendor_required_apps_managed_profile , true , true , new com.android.managedprovisioning.task.DeleteNonRequiredAppsTask.Callback ( ) { @ java.lang.Override public void onSuccess ( ) { setUpProfileAndFinish ( ) ; } @ java.lang.Override public void onError ( ) { error ( "Delete non required apps task failed." ) ; } } ) . run ( ) ; } }

Target:
private void startManagedProfileProvisioning ( ) { com.android.managedprovisioning.ProvisionLogger.logd ( "Starting managed profile provisioning" ) ; createProfile ( getString ( R.string.default_managed_profile_name ) ) ; if ( ( mManagedProfileUserInfo ) != null ) { new com.android.managedprovisioning.task.DeleteNonRequiredAppsTask ( this , mMdmPackageName , mManagedProfileUserInfo.id , R.array.required_apps_managed_profile , R.array.vendor_required_apps_managed_profile , R.array.disallowed_apps_managed_profile , R.array.vendor_disallowed_apps_managed_profile , true , true , new com.android.managedprovisioning.task.DeleteNonRequiredAppsTask.Callback ( ) { @ java.lang.Override public void onSuccess ( ) { setUpProfileAndFinish ( ) ; } @ java.lang.Override public void onError ( ) { error ( "Delete non required apps task failed." ) ; } } ) . run ( ) ; } }
Source:
private com.android.ide.eclipse.adt.internal.editors.manifest.ManifestInfo getManifestInfo ( java.lang.String manifestContents ) throws java.lang.Exception { java.io.InputStream bstream = new java.io.ByteArrayInputStream ( manifestContents.getBytes ( "UTF-8" ) ) ; org.eclipse.core.resources.IFile file = getProject ( ) . getFile ( "AndroidManifest.xml" ) ; if ( file.exists ( ) ) { file.setContents ( bstream , IFile.FORCE , new org.eclipse.core.runtime.NullProgressMonitor ( ) ) ; } else { file.create ( bstream , false , new org.eclipse.core.runtime.NullProgressMonitor ( ) ) ; } return com.android.ide.eclipse.adt.internal.editors.manifest.ManifestInfo.get ( getProject ( ) ) ; }

Target:
private com.android.ide.eclipse.adt.internal.editors.manifest.ManifestInfo getManifestInfo ( java.lang.String manifestContents ) throws java.lang.Exception { java.io.InputStream bstream = new java.io.ByteArrayInputStream ( manifestContents.getBytes ( "UTF-8" ) ) ; org.eclipse.core.resources.IFile file = getProject ( ) . getFile ( "AndroidManifest.xml" ) ; if ( file.exists ( ) ) { file.setContents ( bstream , IFile.FORCE , new org.eclipse.core.runtime.NullProgressMonitor ( ) ) ; } else { file.create ( bstream , false , new org.eclipse.core.runtime.NullProgressMonitor ( ) ) ; } com.android.ide.eclipse.adt.internal.editors.manifest.ManifestInfo info = com.android.ide.eclipse.adt.internal.editors.manifest.ManifestInfo.get ( getProject ( ) ) ; info.clear ( ) ; return info ; }
Source:
void makeWindowFreezingScreenIfNeededLocked ( com.android.server.wm.WindowState w ) { if ( ! ( okToDisplay ( ) ) ) { if ( com.android.server.wm.WindowManagerService.DEBUG_ORIENTATION ) android.util.Slog.v ( com.android.server.wm.WindowManagerService.TAG , ( "Changing surface while display frozen: " + w ) ) ; w.mOrientationChanging = true ; w.mLastFreezeDuration = 0 ; mInnerFields.mOrientationChangeComplete = false ; if ( ! ( mWindowsFreezingScreen ) ) { mWindowsFreezingScreen = true ; mH.removeMessages ( com.android.server.wm.WindowManagerService.H.WINDOW_FREEZE_TIMEOUT ) ; mH.sendEmptyMessageDelayed ( com.android.server.wm.WindowManagerService.H.WINDOW_FREEZE_TIMEOUT , com.android.server.wm.WindowManagerService.WINDOW_FREEZE_TIMEOUT_DURATION ) ; } } }

Target:
void makeWindowFreezingScreenIfNeededLocked ( com.android.server.wm.WindowState w ) { if ( ( ! ( okToDisplay ( ) ) ) && ( ( mWindowsFreezingScreen ) != ( com.android.server.wm.WindowManagerService.WINDOWS_FREEZING_SCREENS_TIMEOUT ) ) ) { if ( com.android.server.wm.WindowManagerService.DEBUG_ORIENTATION ) android.util.Slog.v ( com.android.server.wm.WindowManagerService.TAG , ( "Changing surface while display frozen: " + w ) ) ; w.mOrientationChanging = true ; w.mLastFreezeDuration = 0 ; mInnerFields.mOrientationChangeComplete = false ; if ( ( mWindowsFreezingScreen ) == ( com.android.server.wm.WindowManagerService.WINDOWS_FREEZING_SCREENS_NONE ) ) { mWindowsFreezingScreen = com.android.server.wm.WindowManagerService.WINDOWS_FREEZING_SCREENS_ACTIVE ; mH.removeMessages ( com.android.server.wm.WindowManagerService.H.WINDOW_FREEZE_TIMEOUT ) ; mH.sendEmptyMessageDelayed ( com.android.server.wm.WindowManagerService.H.WINDOW_FREEZE_TIMEOUT , com.android.server.wm.WindowManagerService.WINDOW_FREEZE_TIMEOUT_DURATION ) ; } } }
Source:
public void sendDtmf ( char c , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_DTMF , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; rr.mParcel.writeString ( java.lang.Character.toString ( c ) ) ; send ( rr ) ; }

Target:
public void sendSMS ( java.lang.String smscPDU , java.lang.String pdu , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SEND_SMS , result , mRILDefaultWorkSource ) ; constructGsmSendSmsRilRequest ( rr , smscPDU , pdu ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; mMetrics.writeRilSendSms ( mInstanceId , rr.mSerial , SmsSession.Event.Tech.SMS_GSM , SmsSession.Event.Format.SMS_FORMAT_3GPP ) ; send ( rr ) ; }
Source:
public void error ( int errorCode , java.lang.String message ) { java.lang.String toastMessage = ( ( "Error: " + errorCode ) + ": " ) + message ; mActivity.runOnUiThread ( ( ) -> android.widget.Toast.makeText ( com.android.phone.testapps.embmsfrontend.mActivity , toastMessage , Toast.LENGTH_SHORT ) . show ( ) ) ; }

Target:
public void onError ( int errorCode , java.lang.String message ) { java.lang.String toastMessage = ( ( "Error: " + errorCode ) + ": " ) + message ; mActivity.runOnUiThread ( ( ) -> android.widget.Toast.makeText ( com.android.phone.testapps.embmsfrontend.mActivity , toastMessage , Toast.LENGTH_SHORT ) . show ( ) ) ; }
Source:
public void linkNativeLibraryDirectory ( java.lang.String uuid , java.lang.String packageName , java.lang.String nativeLibPath32 , int userId ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.linkNativeLibraryDirectory ( uuid , packageName , nativeLibPath32 , userId ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void linkNativeLibraryDirectory ( java.lang.String uuid , java.lang.String packageName , java.lang.String nativeLibPath32 , int userId ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.linkNativeLibraryDirectory ( uuid , packageName , nativeLibPath32 , userId ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "dependencies" , dependencies ) . add ( "variantName" , variantName ) . add ( "requestedCoordinates" , requestedCoordinates ) . add ( "resolvedCoordinates" , resolvedCoordinates ) . add ( "super" , super . toString ( ) ) . toString ( ) ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "dependencies" , dependencies ) . add ( "variantName" , variantName ) . add ( "requestedCoordinates" , requestedCoordinates ) . add ( "resolvedCoordinates" , resolvedCoordinates ) . add ( "isOptional" , isOptional ) . add ( "super" , super . toString ( ) ) . toString ( ) ; }
Source:
private native void gattClientDisableAdvNative ( int advertiserId ) ;

Target:
private void enableAdvertising ( com.android.bluetooth.gatt.AdvertiseClient client , boolean enable ) { int advertiserId = client.advertiserId ; int advertiseTimeoutSeconds = ( ( int ) ( java.util.concurrent.TimeUnit.MILLISECONDS.toSeconds ( client.settings.getTimeout ( ) ) ) ) ; if ( mAdapterService.isMultiAdvertisementSupported ( ) ) { gattClientEnableAdvNative ( advertiserId , enable , advertiseTimeoutSeconds ) ; } else { gattAdvertiseNative ( client.advertiserId , enable ) ; } }
Source:
private android.telecom.ParcelableConnection parcelable ( com.android.server.telecom.tests.ConnectionServiceFixture.ConnectionInfo c ) { return new android.telecom.ParcelableConnection ( c.request.getAccountHandle ( ) , c.state , c.capabilities , c.properties , c.request.getAddress ( ) , c.addressPresentation , c.callerDisplayName , c.callerDisplayNamePresentation , c.videoProvider , c.videoState , false , false , 0 , c.statusHints , c.disconnectCause , c.conferenceableConnectionIds , c.extras ) ; }

Target:
private android.telecom.ParcelableConnection parcelable ( com.android.server.telecom.tests.ConnectionServiceFixture.ConnectionInfo c ) { return new android.telecom.ParcelableConnection ( c.request.getAccountHandle ( ) , c.state , c.capabilities , c.properties , c.supportedAudioRoutes , c.request.getAddress ( ) , c.addressPresentation , c.callerDisplayName , c.callerDisplayNamePresentation , c.videoProvider , c.videoState , false , false , 0 , c.statusHints , c.disconnectCause , c.conferenceableConnectionIds , c.extras ) ; }
Source:
private void reportStartInstrumentationFailure ( android.app.IInstrumentationWatcher watcher , android.content.ComponentName cn , java.lang.String report ) { android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , report ) ; try { if ( watcher != null ) { android.os.Bundle results = new android.os.Bundle ( ) ; results.putString ( Instrumentation.REPORT_KEY_IDENTIFIER , "ActivityManagerService" ) ; results.putString ( "Error" , report ) ; watcher.instrumentationStatus ( cn , ( - 1 ) , results ) ; } } catch ( android.os.RemoteException e ) { android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , e ) ; } }

Target:
private void reportStartInstrumentationFailureLocked ( android.app.IInstrumentationWatcher watcher , android.content.ComponentName cn , java.lang.String report ) { android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , report ) ; if ( watcher != null ) { android.os.Bundle results = new android.os.Bundle ( ) ; results.putString ( Instrumentation.REPORT_KEY_IDENTIFIER , "ActivityManagerService" ) ; results.putString ( "Error" , report ) ; mInstrumentationReporter.reportStatus ( watcher , cn , ( - 1 ) , results ) ; } }